Abstract
Large Language Models (LLMs) often suffer from hallucinations and catastrophic forgetting during self-training. This paper introduces a novel framework that enables LLMs to identify their own knowledge gaps using reference-free consistency checks. By selectively training on "unknown" samples via Direct Preference Optimization (DPO), the proposed method enhances model truthfulness while preserving general knowledge. Experiments across multiple model sizes (1.1B to 13B) demonstrate significant improvements in factual accuracy and stability on standard benchmarks compared to traditional fine-tuning approaches.
Introduction
LLMs are notoriously data-hungry, leading researchers to explore self-training where models generate their own training signals. However, this often introduces two major issues: noise, where models learn from their own incorrect outputs, and catastrophic forgetting, where specialized fine-tuning erodes general knowledge acquired during pre-training. This study addresses these challenges by filtering training data to focus exclusively on facts the model has not yet mastered, using response consistency as a proxy for knowledge.
Methodology
The proposed framework utilizes a four-stage pipeline to refine model performance without human intervention:
- Instruction Generation: GPT-3.5 generates diverse questions based on Wikipedia snippets across 10 topics.
- Supervised Fine-Tuning (SFT): The target model (e.g., Llama-2) self-annotates these questions. To maintain stability, "Reading Comprehension" (RC) data is included, where the model answers questions with the source document in its context window.
- Preference Labeling: For every question, two responses are generated: a "chosen" one (context-backed) and a "rejected" one (from internal memory).
- Knowledge Filtering: This is the core innovation. Using SelfCheckGPT, the system measures consistency across multiple internal samples. Consistency Filtering ($S_L$) ensures the training signal is high-quality, while Knowledge Filtering ($S_K$) identifies "unknowns" where the model's internal responses are highly contradictory.
Finally, Direct Preference Optimization (DPO) is applied to align the model toward truthful, context-backed answers and away from its own hallucinatory guesses.
Key Results and Insights
The method was evaluated on a curated Wiki-Test and the Open LLM Leaderboard to assess both truthfulness and general knowledge retention.
- Improved Truthfulness: On the Wiki-Test, the proposed method consistently outperformed standard SFT and unfiltered DPO. For instance, the TinyLlama-1.1B model achieved a 54% win rate against its SFT baseline.
- Mitigating Catastrophic Forgetting: This is a standout result. While standard fine-tuning (w/o filtering) typically causes performance drops on general benchmarks, this selective approach actually improved average scores for 1.1B and 7B models across ARC, HellaSwag, TruthfulQA, Winogrande, and MMLU.
- Scaling and Efficiency: Training exclusively on "unknown" samples is more resource-efficient and prevents over-fitting on known facts. The benefits scaled across model sizes, though larger models required higher knowledge thresholds due to their inherent consistency.
Conclusion
By focusing training on identified knowledge gaps and using reference-free consistency checks, LLMs can effectively improve their factual accuracy without sacrificing general capabilities. This approach demonstrates that "less is more" in self-training data selection. Future work will explore recursive iterations of this framework and its application to specialized domains where human-labeled data is scarce.
Summary updated