Making Long-Context Language Models Better Multi-Hop Reasoners

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

Abstract

While long-context Large Language Models (LLMs) can process thousands of tokens, they frequently struggle to synthesize information across multiple documents, particularly when relevant facts are obscured by "noise." This paper introduces Reasoning with Attributions, a method that mandates models to cite or quote sources for every step of a multi-hop reasoning chain. We present AttrLoRA, a fine-tuned 7B model that utilizes a multi-task learning strategy to significantly boost accuracy and robustness. Our results show that AttrLoRA outperforms proprietary models like ChatGPT on complex multi-hop tasks and maintains high performance even as the volume of irrelevant information increases.

Introduction

The "Lost in the Middle" phenomenon remains a significant hurdle for long-context LLMs: models often prioritize information at the beginning or end of a prompt while neglecting the middle. This failure is critical in multi-hop reasoning, where a model must navigate and synthesize disparate facts from a large context to answer complex queries. Current models suffer from high noise sensitivity—failing to distinguish pertinent information from distractors—and poor knowledge integration, often leading to hallucinations or logical inconsistencies in smaller models.

Methodology: Reasoning with Attributions

To address these challenges, we propose shifting from standard Chain-of-Thought (CoT) to Reasoning with Attributions. This approach includes two primary variants:

  • Chain-of-Citation (CoC): The model includes a citation (e.g., [17]) for every reasoning step.
  • Chain-of-Quote (CoQ): The model provides a direct, word-for-word quote alongside the citation for every step.

AttrLoRA and Multi-Task Learning

To implement these capabilities in open-source models, we developed AttrLoRA, a fine-tuned Vicuna-7B model. The training process employs a Multi-Task Learning strategy involving four distinct tasks: Learning to Attribute (LA), Answer Prediction (AP), CoT Generation (CG), and Quotes Identification (QI).

The multi-task learning strategy used to train AttrLoRA, showing the various output formats for a given input.

Furthermore, we utilized data augmentation techniques, such as "Distractor Sampling" and "Document Shuffling," to eliminate positional biases and improve the model's ability to handle varying amounts of irrelevant data.

Datasets and Evaluation

Our study evaluates performance across three major multi-hop reasoning benchmarks: HotpotQA, 2WikiMultiHopQA, and MuSiQue. Additionally, we introduce MuSiQue-Attribute, a specialized dataset of 1,358 high-quality samples with verified attributions, created using a rigorous filtering pipeline to ensure accuracy and prevent hallucinations.

Results and Discussion

AttrLoRA demonstrates a significant performance leap, outperforming similar-scale baselines by over 20 points on average. Notably, on the MuSiQue dataset, AttrLoRA (7B) achieved an Exact Match (EM) score of 38.1, surpassing proprietary models like ChatGPT (37.0) and Claude-instant (32.2).

Robustness to Noise

A key finding is the model's resilience to "noise." While standard models see performance crater as irrelevant documents are added, attribution-based models remain robust. Forcing a model to cite sources acts as an implicit retrieval mechanism, compelling it to focus on specific context segments before reasoning.

Performance comparison (EM) across MuSiQue, 2WikiMultiHopQA, and HotpotQA as the noise ratio of distractor documents increases.

As shown in the figures above, AttrLoRA (+CoC) maintains significantly higher EM scores compared to baselines like LongChat and Vicuna as the noise ratio increases toward 100%. We also observed a strong positive correlation between citation precision and final answer accuracy, confirming that citation quality is a reliable proxy for reasoning integrity.

Conclusion and Future Work

Reasoning with Attributions effectively mitigates the "Lost in the Middle" problem by grounding model logic in verifiable evidence. While fine-tuning for intense reasoning tasks can slightly impact general instruction-following capabilities, the gains in multi-hop accuracy are substantial. Future work will explore integrating this method with active search engines and expanding attribution types to include URLs or mathematical proofs for specialized domains.

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