Unsupervised decoding of encoded reasoning using language model interpretability

Ching Fang, Samuel Marks

TL;DR

This paper tackles the growing concern that large language models (LLMs) might develop "opaque" reasoning processes that are hidden from human understanding. The authors create a novel testbed where an LLM is trained to reason using ROT-13 encryption, and then demonstrate that mechanistic interpretability techniques, specifically logit lens analysis, can successfully decode this hidden reasoning. This work offers a promising framework for evaluating our ability to maintain oversight over increasingly capable AI systems.

What Problem Does This Paper Address?

As LLMs become more powerful, there's a rising worry that their internal reasoning processes might become "encoded" or "opaque" – meaning they are not easily understandable by humans, even if the final output is coherent. This could happen for various reasons, such as models optimizing for efficiency by using compressed or non-human-readable internal representations, or even through adversarial training. This opacity poses a significant challenge for AI safety and interpretability, as it hinders our ability to understand why a model makes a certain decision or to detect potential misbehavior. The paper aims to investigate whether current interpretability tools can penetrate such encoded reasoning and, if so, how effectively.

Methods

The core of the paper's methodology involves two main parts:

  1. Constructing an Encoded Reasoning Testbed: The researchers fine-tuned a reasoning LLM (DeepSeek-R1-Distill-Llama-70B) to perform chain-of-thought (CoT) reasoning using ROT-13 encryption. Crucially, they ensured that the model still produced intelligible English outputs, creating a controlled environment to study non-human-readable reasoning. This involved supervised fine-tuning on a dataset where the internal reasoning steps were encoded in ROT-13, while the final output remained in English.
  2. Unsupervised Decoding Pipeline: To decode the hidden reasoning, they employed logit lens analysis. This technique uses the internal activations of the model to predict the next token. The authors found that logit lens was most effective in intermediate to late layers of the model. They then combined this with an automated paraphrasing step, using a smaller LLM to reconstruct a coherent English paragraph from the decoded logit lens output. This created a fully unsupervised pipeline for reconstructing reasoning transcripts.

Datasets

  • Training Dataset: The researchers used prompts from the LM-Sys dataset to collect responses from a base LLM. The internal "thinking" tags of these responses were then converted to ROT-13 to create the supervised fine-tuning dataset. This dataset contained 85,500 prompt-response samples.
  • Evaluation Dataset: A test dataset of 50 simple prompts requiring multi-step reasoning was constructed, a mix of handcrafted and LLM-generated questions. These prompts asked for information like the capital of a state where a famous person was born or died.

Key Insights and Ideas

  • Logit Lens is Surprisingly Robust: The study demonstrates that logit lens analysis, a relatively straightforward mechanistic interpretability technique, can effectively "translate" encoded reasoning. This suggests that even when reasoning is hidden, the underlying semantic information might be preserved in a decodable form within the model's activations.
  • Intermediate Layers are Key: The effectiveness of logit lens analysis peaked in the intermediate-to-late layers of the model. This aligns with existing theories suggesting that these layers act as a "semantic hub" where representations across different modalities or languages anchor.
  • Unsupervised Decoding is Feasible: The combination of logit lens and automated paraphrasing achieved substantial accuracy in reconstructing complete reasoning transcripts without prior knowledge of the encoding scheme. This is a significant step towards practical interpretability tools for opaque reasoning.
  • ROT-13 is a Simple but Effective Test Case: Using ROT-13 provided a controlled and easily verifiable method for encoding reasoning, allowing the researchers to rigorously test their interpretability methods.

Key Results

  • The fine-tuned ROT-13 model achieved 72% accuracy on the multi-step reasoning prompts.
  • Logit lens analysis showed peak accuracy in intermediate-to-late layers, specifically around layer 58.
  • The unsupervised decoding pipeline, combining logit lens and paraphrasing, achieved substantial accuracy in reconstructing reasoning transcripts. The paper shows qualitative examples where the reconstructed transcripts are highly similar to the ground truth.
  • The grader scores for the unsupervised translation pipeline were significantly higher when using transcripts from layer 58 compared to layer 40 or raw encoded text.

Limitations and Future Work

  • Simplicity of Encoding: The ROT-13 encoding is a simple substitution cipher. The authors acknowledge that real-world opaque reasoning might be more complex, potentially arising from reinforcement learning (RL) post-training, which could lead to less English-aligned activation spaces.
  • Preservation of Activation Space: The method of supervised fine-tuning might lead to a scenario where much of the base model's activation space is preserved, making decoding easier. Future work should explore more complex methods of instilling encoded reasoning, such as RL post-training.
  • Generalizability: While the findings are promising, further research is needed to test these interpretability methods on models that develop opaque reasoning through more complex, emergent processes rather than explicit fine-tuning.

Nonetheless, this work provides a crucial initial framework for evaluating our ability to interpret and oversee AI systems that might employ non-human-readable reasoning strategies.

Summary updated

BibTeX
@inproceedings{fang2025unsupervised,
  author = {Ching Fang and Samuel Marks},
  title = {{Unsupervised decoding of encoded reasoning using language model interpretability}},
  booktitle = {MechInterp @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=OEDW0lmJTv},
}
Figure