All Code, No Thought: Current Language Models Struggle to Reason in Ciphered Language
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Detecting harmful AI actions is important as AI agents gain adoption. Chain-of-thought (CoT) monitoring is one method widely used to detect adversarial attacks and AI misalignment. However, attackers and misaligned models might evade CoT monitoring through ciphered reasoning: reasoning hidden in encrypted, translated, or compressed text. To assess this risk, we test whether models can perform ciphered reasoning. For each of 28 different ciphers, we fine-tune and prompt up to 10 models to reason in that cipher. We measure model accuracy on math problems as a proxy for reasoning ability. Across the models we test, we find an asymmetry: model accuracy can drop significantly when reasoning in ciphered text, even though models demonstrate comprehension of ciphered text by being able to translate it accurately to English. Even frontier models struggle with lesser-known ciphers, although they can reason accurately in well-known ciphers like rot13. We show that ciphered reasoning capability correlates with cipher prevalence in pretraining data. We also identify scaling laws showing that ciphered reasoning capability improves slowly with additional fine-tuning data. Our work suggests that evading CoT monitoring using ciphered reasoning may be an ineffective tactic for current models and offers guidance on constraining the development of this capability in future frontier models.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 40 of its 51 references that are in the map. First posted on arXiv 10 Oct 2025.
Builds on
40 of 51 references.
Closest ancestors · 1
Same direction, newest first
Other references · 39
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2023Let's Verify Step by Stepcited by 3,789
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2025s1: Simple test-time scalingcited by 1,341
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 703
- 2025LIMO: Less is More for Reasoningcited by 498
- 2025Reasoning Models Don't Always Say What They Thinkcited by 415
27 more
- 2025Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscationcited by 384
- 2024Frontier Models are Capable of In-context Schemingcited by 287
- 2025O1-Pruner: Length-Harmonizing Fine-Tuning for O1-Like Reasoning Pruningcited by 279
- 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 263
- 2025Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safetycited by 249
- 2024RedPajama: an Open Dataset for Training Large Language Modelscited by 182
- 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teamingcited by 181
- 2023Removing RLHF Protections in GPT-4 via Fine-Tuningcited by 171
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokenscited by 153
- 2022RL with KL penalties is better viewed as Bayesian inferencecited by 135
- 2025LlamaFirewall: An open source guardrail system for building secure AI agentscited by 127
- 2025When Chain of Thought is Necessary, Language Models Struggle to Evade Monitorscited by 88
- 2024LLM-Rubric: A Multidimensional, Calibrated Approach to Automated Evaluation of Natural Language Textscited by 87
- 2025Stress Testing Deliberative Alignment for Anti-Scheming Trainingcited by 86
- 2024Covert Malicious Finetuning: Challenges in Safeguarding LLM Adaptationcited by 80
- 2025SHADE-Arena: Evaluating Sabotage and Monitoring in LLM Agentscited by 71
- 2023Preventing Language Models From Hiding Their Reasoningcited by 65
- 2025CoT Red-Handed: Stress Testing Chain-of-Thought Monitoringcited by 54
- 2022Perfectly Secure Steganography Using Minimum Entropy Couplingcited by 44
- 2024Jailbreaking Large Language Models Against Moderation Guardrails via Cipher Characterscited by 42
- 2024Unveiling the Secret Recipe: A Guide For Supervised Fine-Tuning Small LLMscited by 40
- 2025The Jailbreak Tax: How Useful are Your Jailbreak Outputs?cited by 28
- 2025LLMs Can Covertly Sandbag on Capability Evaluations Against Chain-of-Thought Monitoringcited by 18
- 2024Generative Text Steganography with Large Language Modelcited by 17
- 2025Towards Safeguarding LLM Fine-tuning APIs against Cipher Attackscited by 11
- 2025The Steganographic Potentials of Language Modelscited by 10
- 2024StructuralSleight: Automated Jailbreak Attacks on Large Language Models Utilizing Uncommon Text-Organization Structurescited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 7.
8 papers.
- 2026Think Fast: Estimating No-CoT Task-Completion Time Horizons of Frontier AI Modelscited by 12
- 2025Reasoning Under Pressure: How do Training Incentives Influence Chain-of-Thought Monitorability?cited by 9
- 2026A Decision-Theoretic Formalisation of Steganography With Applications to LLM Monitoringcited by 8
- 2026Trojan-Speak: Bypassing Constitutional Classifiers with No Jailbreak Tax via Adversarial Finetuningcited by 1
- 2026Jailbroken Frontier Models Retain Their Capabilitiescited by 1
- 2026NEST: Nascent Encoded Steganographic Thoughtscited by 0
- 2026Rashid: A Cipher-Based Framework for Exploring In-Context Language Learningcited by 0
- 2026SchemeArena: Factorized Stress Testing of Scheming in LLM Agentscited by 0
- 2026SchemeArena: Factorized Stress Testing of Scheming in LLM Agents8 Sep 2026
- 2026Think Fast: Estimating No-CoT Task-Completion Time Horizons of Frontier AI Models5 Jun 2026
- 2026Jailbroken Frontier Models Retain Their Capabilities30 Apr 2026
- 2026Trojan-Speak: Bypassing Constitutional Classifiers with No Jailbreak Tax via Adversarial Finetuning30 Mar 2026
- 2026Rashid: A Cipher-Based Framework for Exploring In-Context Language Learning23 Mar 2026
- 2026A Decision-Theoretic Formalisation of Steganography With Applications to LLM Monitoring26 Feb 2026
- 2026NEST: Nascent Encoded Steganographic Thoughts15 Feb 2026
- 2025Reasoning Under Pressure: How do Training Incentives Influence Chain-of-Thought Monitorability?28 Nov 2025
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
- 2025Large language models can learn and generalize steganographic chain-of-thought under process supervision
- 2025Process or Result? Manipulated Ending Tokens Can Mislead Reasoning LLMs to Ignore the Correct Reasoning Steps
- 2025Evaluating Language Model Reasoning about Confidential Information
- 2025Weakest Link in the Chain: Security Vulnerabilities in Advanced Reasoning Models
- 2026Beyond Content Safety: Real-Time Monitoring for Reasoning Vulnerabilities in Large Language Models
- 2024Deciphering the Factors Influencing the Efficacy of Chain-of-Thought: Probability, Memorization, and Noisy Reasoning