Lune

EMNLP2022Top-tier venue

Segmenting Numerical Substitution Ciphers

Nada Aldarrab, Jonathan May

Abstract

Deciphering historical substitution ciphers is a challenging problem. Example problems that have been previously studied include detecting cipher type, detecting plaintext language, and acquiring the substitution key for segmented ciphers. However, attacking unsegmented ciphers is still a challenging task. Segmentation (i.e. finding substitution units) is essential for cracking those ciphers. In this work, we propose the first automatic methods to segment those ciphers using Byte Pair Encoding (BPE) and unigram language models. Our methods achieve an average segmentation error of 2% on 100 randomly-generated monoalphabetic ciphers and 27% on 3 real historical homophonic ciphers. We also propose a method for solving non-deterministic ciphers with existing keys using a lattice and a pretrained language model. Our method leads to the full solution of the IA cipher; a real historical cipher that has not been fully solved until this work.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · related work

Get the answer

Free to start. No credit card required.

Builds on1

  1. Can Sequence-to-Sequence Models Crack Substitution Ciphers?Nada Aldarrab, Jonathan MayACL 2021

Related papers

  1. Solving Historical Dictionary Codes with a Neural Language ModelChristopher Chu, Raphael Valenti, Kevin KnightEMNLP 2020
  2. Subword Segmental Language Modelling for Nguni LanguagesFrancois Meyer, Jan BuysEMNLP Findings 2022 · 3 citations
  3. Byte Pair Encoding is Suboptimal for Language Model PretrainingKaj Bostrom, Greg DurrettEMNLP Findings 2020 · 180 citations
  4. Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length ExtrapolationZhenyu He, Guhao Feng, Shengjie Luo, Kai Yang et al.ICML 2024 · 25 citations
  5. Exploring morphology-aware tokenization: A case study on Spanish language modelingAlba Táboas García, Piotr Przybyla, Leo WannerEMNLP 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines