Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities in factual recall and reasoning. However, a significant logical blind spot persists: the "Reversal Curse." This phenomenon occurs when a model trained on the statement "Entity A is related to Entity B" fails to infer that "Entity B is related to Entity A." For instance, a model might correctly identify the director of a specific film when prompted with the director's name but fail to name the director when prompted with the film's title. This paper investigates the origins of this curse and proposes a novel mitigation strategy.
The Root Cause: Next-Token Prediction
The research identifies the standard Next-Token Prediction (NTP) training objective as the primary driver of the Reversal Curse. In NTP, models are trained to predict the next token in a sequence based solely on preceding context. This creates a unidirectional dependency. If a training corpus consistently places a name (A) before a description (B), the model learns the conditional probability $p(B|A)$ but gains no inherent understanding of $p(A|B)$.
As shown in Figure 4, standard NTP (b) restricts information flow to a single direction. In contrast, Autoregressive Blank Infilling (ABI) (c) allows for bidirectional context, which is the foundation of the proposed BICO framework.
BICO: Bridging the Bidirectional Gap
To address this asymmetry, the authors introduce BICO (BIdirectional Causal language model Optimization). BICO is a fine-tuning framework designed to adapt standard decoder-only models to learn bidirectionally without losing their generative capabilities.
The core of BICO is the ABI objective. During training, random tokens within a sequence are masked, and the model is tasked with reconstructing them using both the preceding and succeeding context. This forces the model to build bidirectional associations between entities.
Implementing bidirectional attention in a causal decoder requires technical adjustments, particularly regarding positional encoding. Standard models use Rotary Position Embeddings (RoPE) designed for unidirectional relative distances. BICO modifies RoPE to handle relative distances for "future" tokens that appear after the query in the bidirectional context.
Figure 6 illustrates how the attention weights and RoPE are adjusted. By incorporating $Q^T R_\theta^T K$ alongside the standard $Q^T R_\theta K$, the model can effectively process tokens regardless of their relative position in the sequence.
Experimental Evaluation and Results
The effectiveness of BICO was evaluated across three domains:
- Fictitious Name-to-Description (N2D): Using a dataset of 3,600 fake biographies to isolate the model's learning mechanism from pre-existing knowledge.
- GSM8k (Math): Testing "backward reasoning" by requiring the model to find starting variables given a final answer.
- Translation: Assessing generalization to reversed language pairs (e.g., English-to-Chinese after Chinese-to-English training).
The results were striking. On the fictitious N2D task, standard Llama models exhibited 0% accuracy on reversed queries. After BICO fine-tuning, accuracy reached approximately 70%. Furthermore, models pre-trained with bidirectional objectives (like GLM) showed natural resistance to the curse, achieving 88% accuracy out-of-the-box. BICO also yielded significant gains in mathematical reasoning and translation tasks, outperforming NTP-tuned baselines by up to 6%.
Conclusion
The Reversal Curse is not a fundamental architectural flaw of LLMs but a consequence of the unidirectional NTP training objective. By introducing bidirectional context through the BICO framework and ABI-like objectives, researchers can significantly improve the factual reliability and reasoning depth of AI models. Future work will explore the scalability of these methods to larger models and the influence of Reinforcement Learning from Human Feedback (RLHF) on bidirectional reasoning.
Summary updated