NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TableRouter: Query-Aware Evidence Construction for Long-Table Question Answering

Anahita Bolourani, Xiaofeng Lin, Tung Sum Thomas Kwok, Guang ChengarXiv 2026

TL;DR

When you ask an LLM a question about a massive spreadsheet, simply retrieving the "most relevant" rows often fails—you can't calculate the exact average of 1,200 filtered items if your context window only holds 130 of them. TableRouter solves this without training or multi-step agent loops by inspecting your question first: if it's a lookup, it packs a diverse set of relevant rows; if it's math or aggregation, it computes exact statistics over the entire table and hands the LLM a neat summary. The result is substantially higher accuracy at a tiny fraction of the computational cost.

What Problem Does This Paper Address?

Tables easily outgrow an LLM's context budget (or make full-table prompting painfully expensive). The standard workaround—Retrieval-Augmented Generation (RAG) over table rows—treats spreadsheet reasoning as a row-selection problem.

The authors point out two distinct traps with this approach: evidence access and evidence use.

  1. Evidence access: Imagine a table of 48,000 car listings, where 1,284 are Toyotas made after 2015. If you ask for their average price, a 2,000-token retriever might grab the top 130 matching rows. Even with perfect relevance ranking, the mean of a 130-row sample is rarely the true mean of the 1,284-row population.
  2. Evidence use: Even when all necessary rows fit inside the prompt, LLMs frequently stumble when asked to count or sum across dozens of serialized lines of text. Conversely, if you only give an LLM high-level column summaries, you erase the specific row-level details needed to look up the price of listing #31907.

How do we give a frozen LLM the exact representation it needs for a given question in a single call?

Methods

TableRouter is a training-free, rule-guided framework that builds a compact, query-aware prompt for a single LLM call.

Figure 3: TableRouter workflow. Full-table statistics and ranked rows support query-dependent evidence construc- tion. The gate g (Eq. 3) selects the context passed to a frozen LLM in a single call.
  1. Offline Reusable Index: Done once per table and amortized across queries. It combines semantic clustering (BGE-small row embeddings grouped via spherical $k$-means), lexical search (BM25), and exact-value lookup ("postings" that map normalized cell values and rare strings directly to row IDs).
  2. Online Analysis & Routing: When a query arrives, lexical rules check for computational cues (like counts, averages, comparisons) and verify whether extracted conditions/columns actually ground to the table's schema and values. A simple gate then picks one of two paths (unless the whole table is tiny enough to pass through untouched):
  3. Computation Route ($\le$ 600 tokens): Computes exact, question-conditioned statistics (counts, sums, means, min/max) over all qualifying rows of the full source table—not just retrieved candidates—and packs them as text "fact lines" alongside a few supporting rows (e.g., the rows behind the min and max).
  4. Coverage Route ($\le$ 2,000 tokens): Uses a greedy submodular optimization heuristic to select a combination of ranked rows and general column summaries. By capping the reward for any single "information need" (like an entity mentioned in the prompt), it favors complementary evidence over redundant matches.

Datasets

Because TableRouter is training-free, datasets are used strictly for development and evaluation:

  • Main Benchmarks: TQA-Bench (16K/32K) (1,200 multiple-choice entity lookups across 120 tables), BirdQA-R (304 adapted SQL-style questions on 52 tables up to 200K rows), and DataBench-Test-L (311 questions on 9 large tables). TQA-Bench 64K and DataBench-Dev informed method development.
  • Post-Freeze BIRD: Because test outputs/inputs from the main benchmarks informed early system design, the authors curated a separate, clean holdout set after freezing the code: 299 questions across 55 long tables (10K–187K rows) from 27 previously unused databases.

Key Insights and Ideas

  • Access $\neq$ Use (The Fixed-Row Control): In a clever controlled experiment on 45 BirdQA-R questions, the authors gave LLMs prompts containing 100% of the answer-determining rows, and compared accuracy with and without appending explicit computed statistics. With identical rows, adding statistics doubled Qwen2.5-7B's accuracy from 40.0% to 80.0% (and boosted Llama-3.1-8B from 37.8% to 71.1%). Retrieval alone isn't enough; explicit representation offloads error-prone LLM arithmetic.
  • No Single Representation Rules Them All: When testing internal policies, "Coverage Alone" crushed "Computation-First" on lookup-heavy TQA-Bench (79.8% vs. 64.0%), while "Computation-First" dominated on aggregation-heavy BirdQA-R (35.5% vs. 24.7%). Routing dynamically gives you the best balance without knowing the workload in advance.

Key Results

Evaluated across three open-weight models (Qwen2.5-7B, Llama-3.1-8B, and Qwen3.5-9B) against six single-call baselines (including 24K-token truncation, BM25, Dense retrieval, LLMLingua-2, and TAP4LLM):

Figure 1: Observed accuracy across three LLMs and three benchmarks. TableRouter leads the six primary external baselines in each setting. Radial ranges are 0–100% for TQA-Bench and 0–50% otherwise. Under each label: TableRouter, then the strongest baseline in its color. Values appear in Table 1; internal context policies are compared separately in Table 4.
  • Clean Sweep on Accuracy: TableRouter beats the strongest primary baseline in all 9 model-benchmark settings by 1.2 to 18.3 percentage points (53 of 54 paired comparisons are statistically significant). On tables exceeding 100,000 rows in DataBench-Test-L, Qwen3.5-9B jumps from 29.2% (best baseline) to 61.1%.
  • Generalization Holds Up: On the strictly held-out Post-Freeze BIRD set with Qwen2.5-7B, TableRouter hits 35.8% accuracy, more than doubling the best external baseline (LLMLingua-2 at 16.4%).
  • Massive Compute Savings: With table indexing amortized across queries, prompts average ~940–1,600 tokens rather than ~20K–24K. This slashes estimated FLOPs by 77–95% compared to truncated-table prompting and cuts warm-index median latency on an A100 by more than half (e.g., 0.8s vs. 3.1s on TQA-Bench).

Limitations and Future Work

  • Brittle Lexical Rules: Condition extraction and routing rely on lexical heuristics rather than an LLM parser. Unusual phrasing, complex paraphrases, or subtle filtering logic can cause the router to miss a condition or pick the wrong route.
  • Scope Constraints: The evaluation focuses on English tables, 7B–9B open-weight models, and a strict single-call interface—multi-turn agentic or SQL/Python code-execution pipelines were outside the evaluated scope (and the post-freeze holdout only tested Qwen2.5-7B).
  • Cold-Start Overhead: Compute and latency wins assume a repeated-query workload where the upfront cost of embedding and clustering every row in a 100K-row table is amortized over many questions; a one-off query on a brand-new table incurs cold-start indexing costs. Future work is not explicitly detailed by the authors.

Summary updated

BibTeX
@misc{bolourani2026tablerouter,
  author = {Anahita Bolourani and Xiaofeng Lin and Tung Sum Thomas Kwok and Guang Cheng},
  title = {{TableRouter: Query-Aware Evidence Construction for Long-Table Question Answering}},
  year = {2026},
  eprint = {2611.32006},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32006},
}
Figure