paper-with-me

홈 › Papers

Learning the Enigma with Recurrent Neural Networks

2017-08-24 · Sam Greydanus

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.

📄 PDF Abstract BibTeX arXiv:1708.07576

Code (1)

greydanus/crypto-rnn 공식 구현 tf

Tasks

Cryptanalysisspeech-recognitionTranslation

Similar Papers 제목 키워드 기반

ENIGMAWatch: ProofWatch Meets ENIGMA

2019-05-23 · Zarathustra Goertzel, Jan Jakubův, Josef Urban

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

2023-11-22 · Ramin Ayanzadeh, Ahmad Mousavi, Narges Alavisamani, Moinuddin Qureshi

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 Preserving

Enigmata: Scaling Logical Reasoning in Large Language Models with Synthetic Verifiable Puzzles

2025-05-26 · Jiangjie Chen, Qianyu He, Siyu Yuan, Aili Chen 외

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 Reasoning

ENIGMA-51: Towards a Fine-Grained Understanding of Human-Object Interactions in Industrial Scenarios

2023-09-26 · Francesco Ragusa, Rosario Leonardi, Michele Mazzamuto, Claudia Bonanno 외

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+1

EnigmaToM: Improve LLMs' Theory-of-Mind Reasoning Capabilities with Neural Knowledge Base of Entity States

2025-03-05 · Hainiu Xu, Siya Qi, Jiazheng Li, Yuxiang Zhou 외

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