Abstract
Despite autoregressive large language models (arLLMs) being the current dominant paradigm in language modeling, effectively updating these models to incorporate new factual knowledge still remains difficult. They resist knowledge injection via fine-tuning due to inherent shortcomings such as the "reversal curse" -- the challenge of answering questions that reverse the original information order in the training sample. Masked diffusion large language models (dLLMs) are rapidly emerging as a powerful alternative to the arLLM paradigm, with evidence of better data efficiency and free of the "reversal curse" in pre-training. However, it is unknown whether these advantages extend to the post-training phase, i.e. whether pre-trained dLLMs can easily acquire new knowledge through fine-tuning. On three diverse datasets, we fine-tune arLLMs and dLLMs, evaluating them with forward and backward style Question Answering (QA) to probe knowledge generalization and the reversal curse. Our results confirm that arLLMs critically rely on extensive data augmentation via paraphrases for QA generalization, and paraphrases are only effective when their information order matches the QA style. Conversely, dLLMs achieve high accuracies on both forward and backward QAs without paraphrases; adding paraphrases yields only marginal gains. Inspired by the dLLM's performance, we introduce a novel masked fine-tuning paradigm for knowledge injection into pre-trained arLLMs. This proposed method successfully and drastically improves the data efficiency of arLLM fine-tuning, effectively closing its performance gap with dLLMs. We further show that the masked fine-tuning paradigm of arLLMs can be extended to the supervised fine-tuning (SFT) of mathematical capability. Across two models and two datasets, our masked SFT outperforms regular SFT.
Introduction
Updating the knowledge base of Large Language Models (LLMs) through fine-tuning is a critical yet challenging task. Standard autoregressive models (arLLMs) suffer from the "reversal curse": if a model learns that "A is B," it often fails to recognize that "B is A." To overcome this, researchers typically rely on expensive data augmentation, generating dozens of paraphrases for every fact. This paper explores whether the bidirectional nature of Masked Diffusion LLMs (dLLMs) can be adapted to standard arLLMs to solve these efficiency and generalization issues.
The Reversal Curse and Data Inefficiency
Standard arLLMs are trained using Next Token Prediction (NTP), which is inherently unidirectional. This training objective creates a "flow of information" problem where the model struggles to form bidirectional associations between entities. Consequently, arLLMs are brittle; they require extensive paraphrasing to answer questions that deviate from the exact phrasing or order of the training data.
Methodology: Masked Fine-Tuning (MFT)
To address these limitations, the authors propose Masked Fine-Tuning (MFT). This approach reframes fine-tuning as a reconstruction task rather than simple next-token prediction:
- The Task: A random percentage of tokens (5% to 95%) in the document are replaced with a
[MASK]token. - The Objective: The model is prompted to "recover the masked passage" and must generate the entire original, unmasked document as the response.
This objective forces the model to use bidirectional context. To recover a masked name at the beginning of a sentence, the model must attend to descriptions appearing later in the text, effectively mimicking the denoising process of diffusion models within a standard decoder-only architecture.
Key Results
The effectiveness of MFT was tested across synthetic datasets (NameDescription, Biography) and real-world data (Wiki 2025).
As shown in the comparison above, standard arLLMs fail significantly on backward questions without paraphrases. In contrast, the proposed masked fine-tuning allows arLLMs to match the performance of dLLMs, achieving high accuracy on both forward and backward questions without any data augmentation.
On the NameDescription task, a standard Llama 8B model achieved 0% accuracy on backward questions without paraphrases, whereas the masked version reached 94.9% accuracy. Furthermore, the masked models reached peak accuracy over 2x faster than standard methods and showed improved performance on mathematical reasoning tasks (GSM8K/MATH), suggesting the benefits extend beyond factual memorization to procedural logic.
Conclusion
The "knowledge injection advantage" of diffusion models is primarily a result of their bidirectional demasking objective rather than their underlying architecture. By implementing Masked Fine-Tuning, standard autoregressive models like Llama and Qwen can overcome the reversal curse and learn new facts with significantly higher data efficiency, eliminating the need for costly paraphrase-based data augmentation.
Summary updated