Introduction
Modern Large Language Models (LLMs) have demonstrated impressive capabilities in retrieving specific information from vast contexts, often referred to as the "needle-in-a-haystack" challenge. However, they frequently stumble when performing long-context reasoning, which requires synthesizing multiple pieces of information scattered across a document to answer complex, multi-hop questions. Traditional fine-tuning relies on high-quality human-annotated data or distillation from larger "teacher" models like GPT-4, both of which are costly and potentially limit the model's performance ceiling. This paper introduces SEALONG (Self-improving for rEAsoning over LONG contexts), a framework that enables LLMs to self-improve by leveraging their own diverse reasoning attempts.
The SEALONG Framework
SEALONG operates in two primary stages: self-supervision via consensus and fine-tuning. In the first stage, the model generates multiple reasoning trajectories for a given long-context question using a "Plan-and-Solve" prompt. Rather than relying on the model's own self-evaluation—which is often unreliable—the framework employs Minimum Bayes Risk (MBR) to score outputs based on semantic consistency.
The core intuition is that while hallucinations are idiosyncratic and varied, correct reasoning paths tend to converge on similar logical steps and facts. Semantic similarity between trajectories is measured using a lightweight RoBERTa-based embedding model. In the second stage, the highest-scoring trajectory is used for Supervised Fine-Tuning (SFT) or Odds Ratio Preference Optimization (ORPO), teaching the model to favor consistent logic over inconsistent hallucinations.
Experimental Results
The effectiveness of SEALONG was evaluated using Llama-3.1-8B and Qwen-2.5-14B models on the LongBench benchmark. Training was conducted on a synthesized version of the MuSiQue dataset, featuring contexts ranging from 4K to 31K tokens.
A key finding is the significant performance gap between "greedy" decoding and "oracle" potential. As shown in the figure below, sampling multiple responses reveals that models often possess the correct reasoning within their distribution, even if they fail to produce it on the first try. MBR effectively bridges this gap by selecting consistent, high-quality reasoning paths.
SEALONG-tuned models showed substantial improvements across various tasks. For instance, Llama-3.1-8B-Instruct saw an absolute improvement of 4.2 points on average. Notably, Qwen-2.5-14B with SEALONG outperformed the larger Qwen-2.5-32B variant (54.7 vs 53.1). The method also demonstrated strong generalization; models trained on MuSiQue showed improved performance on unrelated datasets like Qasper, indicating the acquisition of general reasoning skills rather than dataset-specific patterns.
Conclusion
SEALONG demonstrates that LLMs can effectively bootstrap their long-context reasoning abilities through self-supervision. By identifying and learning from their own most consistent reasoning paths, models can overcome the limitations of human labeling and teacher-model distillation. This approach achieves state-of-the-art performance with high data efficiency, requiring as few as 1,000 self-generated examples to achieve significant gains.
Summary updated