Hierarchical Sequence Iteration for Heterogeneous Question Answering

Ruiyi Yang, Hao Xue, Imran Razzak, Hakim Hacid, Flora D. Salim · Submission to ICLR 2026 · Withdrawn

TL;DR

Heterogeneous retrieval-augmented generation (RAG) often trades off reasoning depth against runaway latency and token costs across disparate data sources. This paper presents Hierarchical Sequence (HSEQ) Iteration, a unified framework that standardizes documents, tables, and knowledge graphs (KGs) into a single reversible sequence of tagged segments. A guided, budget-aware iteration agent gathers "just enough" evidence under explicit sufficiency criteria before a head agent synthesizes an auditable, grounded answer.

What Problem Does This Paper Address?

Modern RAG pipelines struggle when answering complex, multi-hop questions over mixed data formats (unstructured text, relational tables, and structured knowledge graphs). Existing solutions encounter three primary bottlenecks:

  1. Poor coverage in single-pass retrievers: Standard "retrieve-then-generate" setups fail to follow interconnected multi-step reasoning chains and lack explicit signals indicating whether retrieved snippets are sufficient.
  2. Search space explosion in agentic RAG: Multi-agent iterative systems frequently suffer from branchy exploration paths, repetitive calls, and heuristic stopping rules that burn tokens without improving accuracy.
  3. Format fragmentation: Text, tables, and KGs typically demand separate indices, specialized retriever pipelines, and disparate prompt logic, preventing unified policy training and cross-modal reuse.

Methods

HSEQ decomposes heterogeneous question answering into three collaborating components operating over a unified data structure:

Raw Sources (Text, Tables, KG) 
       │
       ▼ [HSEQ-Adapter (HSEQ-A)]
Unified Hierarchical Sequence (Sh)
       │
       ▼ [HSEQ-Iterator (HSEQ-I)] ◄─── Guidance Prior (g) from HSEQ-H
Windowed Iterative Selection + Sufficiency Prediction (st)
       │
       ▼ [Canonicalizer (κ)]
Auditable Evidence Package (Z)
       │
       ▼ [HSEQ-Head (HSEQ-H)]
Final Answer (+ Optional Contradiction Refinement)
  • HSEQ-Adapter (HSEQ-A): Linearizes heterogeneous inputs into a sequence $S_h$ of lightweight segment records: (id, level, parent, content, metadata) sorted in parent-before-child order. The authors formally prove that this representation is injective (lossless and reversible) under benign formatting equivalence.
  • Guidance Prior ($g$): Generated either by a lightweight planning LLM or a rule-based template, providing the iterator with first-look search targets, expansion rules (e.g., neighbor hops or parent/child lookups), and expected stop conditions.
  • HSEQ-Iterator (HSEQ-I): An open-source LLM fine-tuned with LoRA to inspect a sliding context window over $S_h$. At each step, it selects up to $k$ candidate segments, traverses hierarchical neighborhood relations, and emits an explicit binary sufficiency signal ($s_t \in \{0, 1\}$) to halt search early once minimal evidence is collected.
  • HSEQ-Head (HSEQ-H) & Evidence Canonicalizer ($\kappa$): Once retrieval halts, $\kappa$ packages selected segments into a deduplicated, provenance-preserving structure containing exact source IDs and offsets. The head LLM generates the final answer grounded solely in this package, triggering a short refinement loop only if an entailment checker spots contradictions.

Datasets

The authors evaluate HSEQ across four standard multi-hop QA benchmarks spanning different data modalities (no new datasets were introduced):

  • HotpotQA: Multi-hop reasoning over Wikipedia passages (Text).
  • HybridQA: Multi-hop QA requiring joint reasoning over Wikipedia tables and linked text paragraphs (Table + Text).
  • TAT-QA: Financial QA involving discrete arithmetic operations over tables and contextual reports (Table + Text).
  • MetaQA (2-hop and 3-hop): Multi-hop relation reasoning over a movie knowledge graph (KG).

Key Insights and Ideas

  • One interface to rule all modalities: By representing documents, table cells/rows, and KG triples as typed hierarchical segments, a single small iterator model (e.g., 3B–4B parameters) navigates text, tabular data, and relational graphs without custom query languages or modality-specific vector stores.
  • Controlled iteration beats unbounded agent loops: Graph-based systems like Think-on-Graph (ToG) often require 11–17 exploration steps. HSEQ bounds search with a strict window and an explicit sufficiency stop head, halving total latency while maintaining high multi-hop path recall.
  • Strong prior guidance matters: Ablations show that even simple heuristic guidance templates significantly outperform unguided iterative search, showing that coarse query intent (e.g., numerical vs. factoid) effectively prevents the policy from chasing irrelevant context branches.

Key Results

  • Superior QA Accuracy: On HotpotQA, HSEQ achieves 56.3% Accuracy / 58.6 F1, surpassing AdaptiveRAG (50.3% / 52.5) and ToG (43.1% / 44.7). On MetaQA-2hop and 3hop, HSEQ sets the top marks (95.9% and 93.4% Accuracy, respectively).
  • Cross-Format Robustness: On HybridQA, HSEQ attains the highest overall accuracy (66.4%), outperforming HippoRAG (65.8%) and TTQA-RS (62.3%). On TAT-QA, its top configuration reaches 75.7% Acc / 83.5 F1.
  • Efficiency Gains: Compared to Think-on-Graph (ToG), HSEQ cuts average steps from ~13.3 down to 4.0 on HotpotQA and reduces wall-clock latency from 22,708 ms to 6,247 ms—over a 3.5× speedup.
  • Flexible Pareto Frontier: Pairing a small 3B/4B iterator with a medium 7B/8B head (such as Qwen3-4B + Falcon-H1-7B) strikes a strong balance between high precision and low token consumption.

Limitations and Future Work

  • Static vs. Streaming Knowledge: The framework currently assumes a static corpus per query; handling dynamic multi-turn interactions or continuous corpus updates remains unexplored.
  • Noisy Evidence & Sufficiency Hallucination: If the candidate context contains noisy, distractor-heavy evidence, the sufficiency classifier can occasionally trigger premature stops.
  • Supervision Dependency: Training trajectories rely on weak supervision heuristics (exact matches and lexical overlap), which may introduce label noise on subtle reasoning paths.

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