Learning the Enigma with Recurrent Neural Networks
Recurrent neural networks (RNNs) represent the state of the art in
translation, image captioning, and speech recognition. They are also capable of
learning algorithmic tasks such as long addition, copying, and sorting from a
set of training examples. We demonstrate that RNNs can learn decryption
algorithms -- the mappings from plaintext to ciphertext -- for three
polyalphabetic ciphers (Vigen\ere, Autokey, and Enigma). Most notably, we
demonstrate that an RNN with a 3000-unit Long Short-Term Memory (LSTM) cell can
learn the decryption function of the Enigma machine. We argue that our model
learns efficient internal representations of these ciphers 1) by exploring
activations of individual memory neurons and 2) by comparing memory usage
across the three ciphers. To be clear, our work is not aimed at 'cracking' the
Enigma cipher. However, we do show that our model can perform elementary
cryptanalysis by running known-plaintext attacks on the Vigen\ere and Autokey
ciphers. Our results indicate that RNNs can learn algorithmic representations
of black box polyalphabetic ciphers and that these representations are useful
for cryptanalysis.
Code (1)
Tasks
Cryptanalysisspeech-recognitionTranslationSimilar Papers 제목 키워드 기반
ENIGMAWatch: ProofWatch Meets ENIGMA
In this work we describe a new learning-based proof guidance -- ENIGMAWatch -- for saturation-style first-order theorem provers. ENIGMAWatch combines two guiding approaches for the given-clause selection implemented for …
Enigma: Privacy-Preserving Execution of QAOA on Untrusted Quantum Computers
Quantum computers can solve problems that are beyond the capabilities of conventional computers. As quantum computers are expensive and hard to maintain, the typical model for performing quantum computation is to send th…
Privacy PreservingEnigmata: Scaling Logical Reasoning in Large Language Models with Synthetic Verifiable Puzzles
Large Language Models (LLMs), such as OpenAI's o1 and DeepSeek's R1, excel at advanced reasoning tasks like math and coding via Reinforcement Learning with Verifiable Rewards (RLVR), but still struggle with puzzles solva…
ARCLogical ReasoningMathMathematical ReasoningENIGMA-51: Towards a Fine-Grained Understanding of Human-Object Interactions in Industrial Scenarios
ENIGMA-51 is a new egocentric dataset acquired in an industrial scenario by 19 subjects who followed instructions to complete the repair of electrical boards using industrial tools (e.g., electric screwdriver) and equipm…
Action DetectionHuman-Object Interaction DetectionNatural Language UnderstandingObject+1EnigmaToM: Improve LLMs' Theory-of-Mind Reasoning Capabilities with Neural Knowledge Base of Entity States
Theory-of-Mind (ToM), the ability to infer others' perceptions and mental states, is fundamental to human interaction but remains a challenging task for Large Language Models (LLMs). While existing ToM reasoning methods …
Inductive Bias