Can Sequence-to-Sequence Models Crack Substitution Ciphers?
Nada Aldarrab, Jonathan May
Abstract
Decipherment of historical ciphers is a challenging problem. The language of the target plaintext might be unknown, and ciphertext can have a lot of noise. State-of-the-art decipherment methods use beam search and a neural language model to score candidate plaintext hypotheses for a given cipher, assuming the plaintext language is known. We propose an end-to-end multilingual model for solving simple substitution ciphers. We test our model on synthetic and real historical ciphers and show that our proposed method can decipher text without explicit language identification while still being robust to noise.
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.
Lune answers from
the full paper · 5 top-tier papers that cite it · related work
Free to start. No credit card required.
Cited by top-tier papers5
- SALSA: Attacking Lattice Cryptography with TransformersEmily Wenger, Mingjie Chen, François Charton, Kristin E. LauterNeurIPS 2022 · 61 citations
- SALSA VERDE: a machine learning attack on LWE with sparse small secretsCathy Yuanchen Li, Emily Wenger, Zeyuan Allen-Zhu, François Charton et al.NeurIPS 2023 · 13 citations
- Lexinvariant Language ModelsQian Huang, Eric Zelikman, Sarah Li Chen, Yuhuai Wu et al.NeurIPS 2023 · 3 citations
- Segmenting Numerical Substitution CiphersNada Aldarrab, Jonathan MayEMNLP 2022 · 1 citation
- ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution CiphersZhouxiang Fang, Aayush Mishra, Muhan Gao, Anqi Liu et al.EMNLP 2025
Related papers
- Solving Historical Dictionary Codes with a Neural Language ModelChristopher Chu, Raphael Valenti, Kevin KnightEMNLP 2020
- Improving End-to-End Speech Translation by Leveraging Auxiliary Speech and Text DataYuhao Zhang, Chen Xu, Bojie Hu, Chunliang Zhang et al.AAAI 2023 · 17 citations
- A Multiplexed Network for End-to-End, Multilingual OCRJing Huang, Guan Pang, Rama Kovvuri, Mandy Toh et al.CVPR 2021
- Beyond WER: Probing Whisper's Sub-token Decoder Across Diverse Language Resource LevelsSiyu Liang, Nicolas Ballier, Gina-Anne Levow, Richard A. WrightEMNLP 2025
- Compositionality of Complex Graphemes in the Undeciphered Proto-Elamite Script using Image and Text Embedding ModelsLogan Born, Kathryn Kelley, M. Willis Monroe, Anoop SarkarACL Findings 2021 · 7 citations
