Hierarchical Sequence Iteration for Heterogeneous Question Answering

Ruiyi Yang, Hao Xue, Imran Razzak, Hakim Hacid, Flora D. Salim · OpenReview

Abstract

Retrieval-augmented generation (RAG) remains brittle on multi-step questions and heterogeneous evidence sources, trading accuracy against latency and token/tool budgets. This paper introduces Hierarchical Sequence (HSEQ) Iteration for Heterogeneous Question Answering, a unified framework that (i) linearizes documents, tables, and knowledge graphs into a reversible hierarchical sequence with lightweight structural tags, and (ii) performs structure-aware iteration to collect just-enough evidence before answer synthesis. A Head Agent provides guidance that leads retrieval, while an Iteration Agent selects and expands HSeq via structure-respecting actions (e.g., parent/child hops, table row/column neighbors, KG relations). Finally, the head agent composes canonicalized evidence to generate the final answer, with an optional refinement loop to resolve detected contradictions. Experiments on HotpotQA (text), HybridQA/TAT-QA (table+text), and MetaQA (KG) show consistent EM/F1 gains over strong single-pass, multi-hop, and agentic RAG baselines with high efficiency.

Introduction

Standard Retrieval-Augmented Generation (RAG) systems are often brittle when faced with two specific challenges: heterogeneity and multi-hop reasoning. Most RAG pipelines are optimized for a single data type—usually plain text. When an answer requires jumping from a Wikipedia paragraph to a specific cell in a financial table and then following a link in a knowledge graph (KG), these systems often fail because different formats require specialized retrievers and prompts.

Furthermore, "single-pass" retrievers often fail to find the complete chain of evidence for complex questions, while "agentic" systems that loop indefinitely can lead to excessive latency and token costs. RELOOP aims to find the "Goldilocks" zone: retrieving just enough evidence to ensure certainty without wasting resources.

The RELOOP Framework

RELOOP unifies text, tables, and knowledge graphs into a single "Hierarchical Sequence" (HSEQ) and utilizes a multi-agent system to perform guided, budget-aware iterations.

The RELOOP framework workflow, illustrating the four steps from HSEQ construction to answer generation.

Core Components

  1. HSEQ-Adapter: This component linearizes diverse data sources into a Hierarchical Sequence. It uses lightweight structural tags (like parent/child or row/column) to turn tables and KGs into a format LLMs can natively process. This process is reversible, allowing the original structure to be reconstructed.
  2. RELOOP-Iterator (The Scout): A fine-tuned agent (using LoRA) that operates over a window of the HSEQ. It selects promising segments, expands on them (e.g., fetching neighboring table cells), and predicts a "sufficiency signal" to stop retrieval once enough evidence is found.
  3. RELOOP-Head (The Planner & Judge): This agent provides high-level guidance, setting the initial retrieval plan. Once the Scout finishes, the Head Agent composes the final answer from the "canonicalized" evidence and can perform an optional refinement loop to resolve contradictions.

Experimental Evaluation

RELOOP was evaluated across four diverse benchmarks to test its format-agnostic nature:

  • HotpotQA: Multi-hop reasoning over Wikipedia text.
  • HybridQA & TAT-QA: Questions requiring grounding in both tables and associated text.
  • MetaQA (2-hop and 3-hop): Reasoning over a Wikidata-style Knowledge Graph.

Key Results

RELOOP demonstrated significant performance gains over both standard RAG and specialized state-of-the-art baselines across all modalities.

Performance comparison of RELOOP against LLM-only and RAG-based baselines across heterogeneous datasets.
  • Accuracy: On HybridQA, RELOOP achieved 66.4% Accuracy, outperforming HippoRAG (65.8%). On MetaQA-3hop, it reached 93.4% Accuracy, a massive jump over the LLM-only baseline of 44.6%.
  • Efficiency: Compared to graph-centric methods like "Think on Graph" (ToG), RELOOP is significantly faster. On MetaQA-3hop, RELOOP achieved better accuracy in just 4.1 steps and ~10.6 seconds, compared to ToG’s 16.5 steps and 24 seconds.
  • Ablation Studies: Fine-tuning the Iterator (SFT) proved critical; without it, accuracy on TAT-QA dropped from 75.7% to 60.4%, confirming that structure-aware scouting is a learned skill.

Discussion and Insights

RELOOP's success stems from three primary advantages:

  1. Format-Agnostic Unification: By treating all data as a hierarchical sequence, a single learned policy can navigate tables, text, and KGs without dataset-specific specialization.
  2. Budget-Awareness: Unlike agentic systems that run until hitting hard limits, RELOOP is trained to recognize "sufficiency," preventing uncontrolled iteration and unnecessary tool calls.
  3. Evidence Canonicalization: Packaging evidence into a compact, provenance-preserving format improves the auditability and consistency of the final generated answers.

Conclusion

RELOOP offers a robust framework for multi-hop QA across heterogeneous data sources. While powerful, future work will address limitations such as sensitivity to noisy evidence and extending the framework to dynamic, streaming data environments. The current results suggest that structure-aware iteration is a highly effective path toward more efficient and accurate RAG systems.

Summary updated

BibTeX
@misc{yang2025hierarchical,
  author = {Ruiyi Yang and Hao Xue and Imran Razzak and Hakim Hacid and Flora D. Salim},
  title = {{Hierarchical Sequence Iteration for Heterogeneous Question Answering}},
  year = {2025},
  eprint = {2510.20505},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.20505},
}
Figure