Joint Enhancement of Relational Reasoning for Long-Context LLMs

Zhirui Chen, Wei Shen, Jiashui Huang, Ling Shao

TL;DR

This paper introduces JERR, a novel framework that enhances Large Language Models (LLMs) for long-context reasoning by integrating graph-based relational reasoning with synopsis extraction and Monte Carlo Tree Search (MCTS). JERR significantly improves performance on long-context QA tasks by building a structured knowledge representation and intelligently navigating it.

What Problem Does This Paper Address?

Large Language Models (LLMs) have made impressive strides, but they still struggle with processing and reasoning over long contexts. This limitation stems from memory constraints and the inherent difficulty in extracting and connecting relevant information scattered across extensive texts. Furthermore, LLMs often lack transparency, leading to hallucinations and making their decision-making processes opaque. Existing approaches either focus on graph-based methods or training-free frameworks, but few effectively combine these to address the core challenges of long-context comprehension and robust reasoning in a human-like, deliberative manner.

Methods

JERR tackles these challenges through a three-stage framework:

  1. Synopsis Extraction: The long context is first segmented into manageable chunks. LLMs are then prompted to summarize these chunks into concise "synopses." This process helps the model efficiently grasp key information without being overwhelmed by the full context.
  2. Graph Construction: A Directed Acyclic Graph (DAG) is constructed from the synopses. This involves extracting entities and their attributes, followed by deduplication using Bloom Filters and SimHash to ensure uniqueness. The DAG explicitly models semantic relationships between entities, providing a structured representation of the knowledge within the text.
  3. Relational Reasoning: Monte Carlo Tree Search (MCTS) is employed to navigate the constructed graph. Given a query, MCTS identifies the most relevant nodes within the graph. These relevant nodes, along with the extracted synopses, are then used to prompt the LLM for inference and answer generation. This approach allows the model to explore complex reasoning paths and retrieve information more accurately and interpretably.

Datasets

The authors evaluated JERR on three long-context Question Answering (QA) benchmarks:

  • QuALITY: A multi-choice QA dataset focusing on long-context comprehension.
  • MuSiQue: A multi-hop QA benchmark with an average of 15.5 thousand tokens per sample, covering diverse content types.
  • NarrativeQA: A single-hop QA benchmark focused on narrative comprehension in long-form contexts, averaging 29.7 thousand tokens per sample.

Key Insights and Ideas

  • Graph as a Memory Aid: The core idea is to transform unstructured long text into a structured graph, acting as an external memory that LLMs can efficiently query and reason over.
  • Synopsis as a Summarization Layer: Summarizing chunks into synopses before graph construction helps distill essential information, making the graph more manageable and relevant.
  • MCTS for Intelligent Navigation: Using MCTS to traverse the graph allows for a more deliberate and targeted retrieval of relevant information, mimicking human problem-solving by exploring promising paths.
  • DAG for Hierarchical Relationships: The use of a Directed Acyclic Graph (DAG) is crucial for explicitly modeling causal and hierarchical relationships, which is more effective than undirected graphs for complex reasoning.

Key Results

JERR consistently outperformed several baselines, including Retrieval Augmented Generation (RAG) methods (BM25 and neural retrieval), a direct long-context LLM (qwen-plus-128k), and agent-based methods like ReadAgent, LongRAG, and GraphRAG.

  • On the QuALITY benchmark, JERR achieved an accuracy of 86.39%, outperforming other methods.
  • In MuSiQue and NarrativeQA, JERR demonstrated superior performance across metrics like LR-1, LR-2, ROUGE, and F₁ scores. For instance, on MuSiQue, JERR achieved LR-1 scores of 0.425-0.515 and LR-2 scores of 0.515-0.735, indicating robust semantic understanding.
  • JERR also showed a 5% accuracy boost by using MCTS compared to a PageRank algorithm for graph traversal.
  • The framework demonstrated efficiency, consuming 1.23 times more tokens than ReadAgent but achieving superior performance, and significantly reducing token costs when graph construction is reused.

Limitations and Future Work

The authors acknowledge several limitations:

  • Task Scalability: JERR's generalization ability to other reasoning tasks and knowledge domains beyond the tested benchmarks needs further validation.
  • Knowledge Graph Construction: While Qwen API aids in extraction, building large-scale, high-precision knowledge graphs remains a complex task.
  • Task Complexity: The effectiveness of JERR on simpler tasks has not been systematically evaluated, and future work should compare its performance across a spectrum of task complexities.

Future work could involve exploring broader datasets, refining graph construction pipelines, and conducting more extensive evaluations on diverse reasoning tasks.

Summary updated

BibTeX
@inproceedings{chen2025joint,
  author = {Zhirui Chen and Wei Shen and Jiashui Huang and Ling Shao},
  title = {{Joint Enhancement of Relational Reasoning for Long-Context LLMs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure