The Factorization Curse: Which Tokens You Predict Underlie the Reversal Curse and More
Ouail Kitouni, Niklas Nolte, Diane Bouchacourt, Adina Williams, Mike Rabbat, Mark Ibrahim
TL;DR
This work identifies the reversal curse as a specific instance of the factorization curse, where standard left-to-right autoregressive training fails to preserve the same joint distribution under alternate factorizations. It formalizes the problem, analyzes its implications for knowledge retrieval, and introduces factorization-agnostic objectives (PLM and MLM-$\mathcal{U}$) designed to store and retrieve information across all factorizations. Through controlled synthetic tasks and aWikiReversal benchmark—based on GenWiki/DBpedia content—the authors show that scale, naive bidirectional training, and fixed-masking MLM do not resolve the reversal curse, while factorization-agnostic training significantly mitigates it and even improves planning capabilities. The findings suggest new directions for finetuning domain-specific data and improving knowledge storage, with practical impact on reducing hallucinations and enhancing reliable information retrieval in large language models.
Abstract
Today's best language models still struggle with hallucinations: factually incorrect generations, which impede their ability to reliably retrieve information seen during training. The reversal curse, where models cannot recall information when probed in a different order than was encountered during training, exemplifies this in information retrieval. We reframe the reversal curse as a factorization curse - a failure of models to learn the same joint distribution under different factorizations. Through a series of controlled experiments with increasing levels of realism including WikiReversal, a setting we introduce to closely simulate a knowledge intensive finetuning task, we find that the factorization curse is an inherent failure of the next-token prediction objective used in popular large language models. Moreover, we demonstrate reliable information retrieval cannot be solved with scale, reversed tokens, or even naive bidirectional-attention training. Consequently, various approaches to finetuning on specialized data would necessarily provide mixed results on downstream tasks, unless the model has already seen the right sequence of tokens. Across five tasks of varying levels of complexity, our results uncover a promising path forward: factorization-agnostic objectives can significantly mitigate the reversal curse and hint at improved knowledge storage and planning capabilities.
