Making Long-Context Language Models Better Multi-Hop Reasoners

Yanyang Li, Shuo Liang, Michael R. Lyu, Liwei Wang · DOI

Abstract

Long-context Large Language Models (LLMs) often struggle with multi-hop reasoning, particularly when relevant information is buried within extensive "noise." This paper introduces Reasoning with Attributions, a method that requires models to cite specific evidence for each reasoning step. By fine-tuning a 7B model (AttrLoRA) using a multi-task strategy and a specialized dataset, researchers achieved significant performance gains, outperforming larger proprietary models on complex benchmarks and demonstrating remarkable resilience to contextual noise.

Introduction

While modern LLMs feature massive context windows, their ability to perform multi-hop reasoning—connecting disparate facts across a long document—remains limited. Models frequently suffer from the "lost in the middle" phenomenon, where they fail to retrieve information located in the center of a long prompt. Furthermore, smaller models often struggle to synthesize retrieved facts into a coherent logical chain.

Methods: Reasoning with Attributions

To address these challenges, the authors propose a paradigm shift: compelling models to provide explicit attributions for every assertion. Two prompting variants were explored:

  • Chain-of-Citation (CoC): Reasoning steps include citation indices (e.g., [8]).
  • Chain-of-Quote (CoQ): Reasoning steps include direct word-for-word quotes from the source text.

AttrLoRA and Multi-Task Learning

The researchers developed AttrLoRA, a fine-tuned Vicuna-7B model, using a multi-task learning strategy. The model is trained on four simultaneous tasks to internalize logical grounding:

  1. Learning to Attribute (LA): Generating reasoning with citations.
  2. Answer Prediction (AP): Directly predicting the answer.
  3. CoT Generation (CG): Standard Chain-of-Thought reasoning.
  4. Quotes Identification (QI): Pinpointing critical source quotes.
Multi-task learning framework for AttrLoRA.

Datasets and Data Augmentation

The study utilizes three benchmarks: MuSiQue (2-4 logical hops), 2WikiMultiHopQA (structured questions), and HotpotQA (standard multi-hop QA). A key contribution is the MuSiQue-Attribute dataset, consisting of 1,358 high-quality samples with verified attributions. To ensure robustness, the training data was augmented by shuffling document order and varying the number of distractor documents.

Key Results and Robustness

AttrLoRA demonstrates superior performance and resilience compared to baseline models and even larger proprietary systems. On the MuSiQue benchmark, AttrLoRA achieved an Exact Match (EM) score of 38.1, surpassing ChatGPT (37.0) and Claude-instant (32.2).

A critical finding is the model's resilience to "contextual noise." While standard models experience sharp performance declines as the ratio of irrelevant "distractor" documents increases, AttrLoRA maintains stable performance even at 100% noise.

Performance of AttrLoRA vs. baselines under varying noise ratios across MuSiQue, 2WikiMultiHopQA, and HotpotQA.

Discussion and Conclusion

The success of AttrLoRA suggests that attribution acts as a "reasoning anchor," grounding the model's logic in verifiable text. The strong correlation between citation precision and reasoning accuracy indicates that citation quality is a reliable proxy for logical depth. While there is a minor trade-off in general instruction-following ability, the significant gains in complex reasoning for 7B-scale models provide a cost-effective path toward more reliable and interpretable AI.

Summary updated

BibTeX
@inproceedings{li2024making,
  author = {Yanyang Li and Shuo Liang and Michael R. Lyu and Liwei Wang},
  title = {{Making Long-Context Language Models Better Multi-Hop Reasoners}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.135},
}
Figure