TL;DR
LLMs often fail to reason about facts they have memorized—a phenomenon known as the "reversal curse." This paper demonstrates that training models to use test-time compute (or "thinking") via Reinforcement Learning significantly improves their ability to generalize from internal knowledge, outperforming traditional data augmentation especially on new, unseen information.
What Problem Does This Paper Address?
Large Language Models (LLMs) have two ways of "knowing" things: in-context learning (ICL), where they reason over information provided in the prompt, and in-weights learning, where information is baked into the model's parameters during training.
While LLMs are great at reasoning over context, they are surprisingly bad at reasoning over their own internal knowledge. This is called a deficit in latent generalization. A classic example is the "reversal curse": a model trained on "A is the father of B" often fails to realize "B is the son of A" unless explicitly told.
Previously, researchers tried to fix this with train-time data augmentation (e.g., training on both forward and reversed facts). However, the authors argue this is a "band-aid" solution: it is task-specific, scales poorly, and fails to generalize to new types of knowledge not seen during the augmentation process.
Methods
The authors propose a three-stage pipeline to teach models to "think" their way through their internal memory:
- Knowledge Acquisition: The model is fine-tuned (SFT) on a set of new, controlled facts to ensure the knowledge is in its weights but not its training "habits."
- Thinking Bootstrapping: Using a more capable "teacher" model (Gemini), the authors curate a small dataset of "golden" reasoning traces. These traces demonstrate behaviors like focus-driven recall, self-probing, and generate-and-verify. The student model is then fine-tuned on these traces.
- Reinforcement Learning (RL): The model undergoes RL (using a variant of REINFORCE) where it is rewarded for reaching the correct answer through its own generated Chain-of-Thought (CoT). This encourages the model to spend more test-time compute to elicit its own internal knowledge.
The core comparison is between this "Thinking" approach and "Augmentation" baselines, where the training data is explicitly expanded to include reversed or syllogistic variations of facts.
Datasets
The study utilizes two primary benchmarks designed to test the limits of internal reasoning:
- Semantic Structure Benchmark: A dataset of real-world categories and relations. It tests syllogisms (composing two facts), reversals (inverting a fact), and category holdouts (generalizing to a category where only one specific fact was seen during training).
- Reversal Curse Dataset: A collection of fictional celebrity names and descriptions. This is a "pure" reversal task: the model learns "Name -> Description" and is tested on "Description -> Name."
Key Insights and Ideas
- Thinking vs. Augmentation: As shown in Figure 1, train-time augmentation is rigid. If you don't augment a specific fact, the model fails. "Thinking," however, is a flexible strategy that the model can apply to any internal knowledge.
- Out-of-Distribution (OOD) Success: This is the paper's "aha moment." While augmentation helps on facts similar to the training set, it fails completely on new knowledge structures. The "Thinking" model, however, maintains its performance on OOD facts, proving it has learned a reasoning capability rather than just memorizing reversed strings.
- The Generate-and-Verify Heuristic: For strict reversals (where no logical path exists other than inversion), models don't actually "invert" their weights. Instead, they use CoT to propose candidate names and then "verify" them by checking if the candidate's description matches the query. This effectively turns a hard retrieval problem into a series of easier recognition problems.
Key Results
- Syllogisms: On tasks requiring the composition of facts, the Thinking model achieved performance comparable to In-Context Learning (ICL), which has the "cheat sheet" of all facts in its prompt.
- OOD Generalization: In the Semantic Structure experiment, the "Augmentation + RL" baseline failed to generalize to new knowledge structures, while the "Thinking" model showed consistent improvement across all holdout types (see Figure 2/3).
- Reversal Curse: On the fictional celebrity dataset, standard fine-tuning failed completely (0% accuracy). The Thinking model achieved a non-trivial 36% accuracy (Pass@16). While still below the 93% achieved by ICL, it represents a massive leap over models that don't "think."
Limitations and Future Work
Despite the progress, strict logical reversals remain elusive. The authors found that factual self-verification is brittle; if the model doesn't happen to "guess" the right entity to verify in its CoT, it fails.
The authors hypothesize that this limitation is fundamental to the Transformer architecture and the autoregressive objective, which create rigid, one-way associative memories. They suggest that while test-time compute is a powerful tool, true bidirectional memory might require new architectural inductive biases or alternative loss functions beyond next-token prediction.
Summary updated