ALICE: An Interpretable Neural Architecture for Generalization in Substitution Ciphers
Not on the map. Why?
Abstract (arXiv)
We present cryptogram solving as an ideal testbed for studying neural network reasoning and generalization; models must decrypt text encoded with substitution ciphers, choosing from 26! possible mappings without explicit access to the cipher. We develop ALICE (an Architecture for Learning Interpretable Cryptogram dEcipherment), a simple encoder-only Transformer that sets a new state-of-the-art for both accuracy and speed on this decryption problem. Surprisingly, ALICE generalizes to unseen ciphers after training on only ~1500 unique ciphers, a minute fraction (3.7 × 10-24) of the possible cipher space. To enhance interpretability, we introduce a novel bijective decoding head that explicitly models permutations via the Gumbel-Sinkhorn method, enabling direct extraction of learned cipher mappings. Through early exit and probing experiments, we reveal how ALICE progressively refines its predictions in a way that appears to mirror common human strategies -- early layers place greater emphasis on letter frequencies, while later layers form word-level structures. Our architectural innovations and analysis methods are applicable beyond cryptograms and offer new insights into neural network generalization and interpretability.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 33 references that are in the map. First posted on arXiv 8 Sep 2025.
Builds on
13 of 33 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2020GLU Variants Improve Transformercited by 1,804
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
- 2019Attention is not Explanationcited by 929
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
- 2019Is Attention Interpretable?cited by 389
- 2022Confident Adaptive Language Modelingcited by 310
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 307
- 2018Learning Latent Permutations with Gumbel-Sinkhorn Networkscited by 175
- 2020Can Sequence-to-Sequence Models Crack Substitution Ciphers?cited by 9
1 more
- 2018Unsupervised Cipher Cracking Using Discrete GANscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025CipherBank: Exploring the Boundary of LLM Reasoning Capabilities through Cryptography Challenges
- 2025Benchmarking Large Language Models for Cryptanalysis and Side-Channel Vulnerabilities
- 2025Can Transformers Break Encryption Schemes via In-Context Learning?
- 2025Mechanistic Interpretability in the Presence of Architectural Obfuscation
- 2023Inhibitor Transformers and Gated RNNs for Torus Efficient Fully Homomorphic Encryption
- 2025All Code, No Thought: Current Language Models Struggle to Reason in Ciphered Language
- 2026Fiona: Accelerating FHE Inference with Packing-Aware Ternary Weights
- 2026HEAT: Faster Fully Homomorphic Inference via Approximations-Weights Co-Adaptation