TableRouter: Query-Aware Evidence Construction for Long-Table Question Answering
Organizations: University of California, Los Angeles
Abstract
LLMs can reason over tables, but when tables outgrow the context budget, retrieving relevant rows is only part of the solution. A retrieved subset may omit information required for an exact aggregate; even complete evidence may remain difficult for an LLM to use. We introduce TableRouter, a training-free framework that analyzes each query, then chooses between two routes: a computation route, which derives question-conditioned statistics from the full table, and a coverage route, which retrieves relevant rows and column summaries. The chosen context is passed to a frozen LLM in one call. Across three LLMs and three large-table benchmarks, TableRouter outperforms the strongest of six single-call baselines in all nine settings by 1.2-18.3 accuracy points, using 77-95% fewer estimated FLOPs than truncated-table prompting, with indexing amortized across questions. The gains extend to long tables from databases not used in earlier experiments, where TableRouter achieves 35.8% with Qwen2.5-7B, versus 16.4% for the strongest external baseline. A controlled experiment shows that explicitly providing computed statistics improves accuracy by up to 40.0 points, even when all answer-determining rows are available. These results distinguish evidence access from evidence use: long-table reasoning depends on how information is represented, not only on which rows are retrieved.
Figures & tables
| TQA-Bench (1,200) | BirdQA-R (304) | DataBench-Test-L (311) | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | Q2.5 | L3.1 | Q3.5 | Q2.5 | L3.1 | Q3.5 | Q2.5 | L3.1 | Q3.5 |
| Truncated table | 66.2 | 71.0 | 84.1 | 17.4 | 13.5 | 23.4 | 31.2 | 28.0 | 23.5 |
| BM25-Nat | 70.6 | 67.5 | 86.5 | 18.1 | 16.8 | 25.3 | 31.5 | 22.5 | 24.4 |
| BM25-2K | 71.0 | 64.9 | 80.2 | 16.8 | 17.4 | 25.3 | 26.4 | 23.8 | 28.9 |
| Dense-2K | 54.3 | 51.4 | 59.7 | 13.8 | 13.5 | 20.1 | 25.4 | 19.0 | 23.2 |
| LLMLingua-2 | 57.0 | 51.5 | 61.7 | 17.4 | 11.5 | 14.1 | 17.7 | 13.8 | 12.9 |
| Method | Accuracy | Prompt tokens |
|---|---|---|
| Truncated table | 9.0 | 23,479 |
| BM25-Nat | 12.7 | 12,399 |
| BM25-2K | 13.4 | 2,144 |
| Dense-2K | 11.7 | 2,142 |
| LLMLingua-2 | 16.4 | 1,517 |
| TAP4LLM | 13.0 | 1,202 |
| LLM | Rows | +Statistics | Gain [95% CI] |
|---|---|---|---|
| Qwen2.5-7B | 40.0 | 80.0 | [26.7, 55.6] |
| Llama-3.1-8B | 37.8 | 71.1 | [17.8, 48.9] |
| Qwen3.5-9B | 86.7 | 93.3 | [0.0, 15.6] |
| Configuration | TQA | Bird | DB-L |
|---|---|---|---|
| TableRouter | 75.9/23.5 | 34.5/78.1 | 42.4/34.6 |
| Coverage Alone | 79.8/27.7 | 24.7/90.5 | 32.5/48.1 |
| Computation-First | 64.0/8.4 | 35.5/73.6 | 40.8/29.7 |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value |
|---|---|
| Computation / coverage evidence caps | 600 / 2,000 tokens |
| Statistic lines / conditions / hops | 18 / 4 / 2 |
| Numeric / categorical targets | 3 / 2 |
| Encoder input cap | 512 tokens |
| Small-table computation bypass | , fits 600 |
| Selective anchor |
| Cue family | Implementation words and patterns |
|---|---|
| Aggregation | sum, total, combined, overall, average, avg, mean, median, count, how many, number of, difference |
| Extremes | highest, largest, maximum, most, biggest, greatest, top, best, lowest, smallest, minimum, least, fewest, worst; top, first, bottom or last ; highest; highest |
| Count | how many, number of, count |
| Frequency | most common, frequent, popular or often; mode; appears most; occurs most; most … entries, records or rows; least or fewest … common, frequent, popular or often |
| Ratio | ratio, percent, percentage, proportion, share, fraction, times as, times more, times less |
| Difference | difference, differ, subtract…, minus, how much or many more, less, fewer, higher or lower |
| LLM | BirdQA-R | DataBench-Test-L |
|---|---|---|
| Qwen2.5-7B | [5.6, 15.1] | [7.4, 17.4] |
| Llama-3.1-8B | [5.6, 13.8] | [1.6, 10.9] |
| Qwen3.5-9B | [2.0, 10.2] | [10.0, 18.6] |
| Set | LLM | TAP+Stats | TableRouter | Gain |
|---|---|---|---|---|
| TQA | Q2.5 | 47.5 | 75.9 | |
| L3.1 | 52.8 | 76.6 | ||
| Q3.5 | 58.1 | 87.8 | ||
| Bird | Q2.5 | 16.4 | 34.5 | |
| L3.1 | 14.8 | 30.9 | ||
| Q3.5 | 19.7 | 41.8 |
| Set | LLM | LLM TF | Index TF | Total TF |
|---|---|---|---|---|
| TQA | Q2.5 | 22.9 | 0.6 | 23.5 |
| L3.1 | 29.1 | 0.6 | 29.8 | |
| Q3.5 | 28.3 | 0.6 | 29.0 | |
| Bird | Q2.5 | 13.7 | 64.4 | 78.1 |
| L3.1 | 20.3 | 64.4 | 84.7 | |
| Q3.5 | 20.4 | 64.4 | 84.8 |
| TQA-Bench | BirdQA-R | DataBench-Test-L | ||||
|---|---|---|---|---|---|---|
| Configuration | Acc. | TF | Acc. | TF | Acc. | TF |
| TableRouter | 75.9 | 23.5 | 34.5 | 78.1 | 42.4 | 34.6 |
| Without lexical grounding | 75.9 | 23.5 | 34.5 | 77.8 | 44.7 | 33.0 |
| Ranked rows in coverage branch | 75.9 | 23.3 | 33.6 | 78.2 | 41.2 | 34.7 |
| Ranked Rows Only | 76.6 | 27.4 | 18.1 | 90.5 | 26.7 | 48.2 |
| One prototype ( ) | 77.0 | 23.5 | 35.2 | 77.8 | 43.4 | 34.6 |
Table QA
Table question answering studies how AI systems retrieve, interpret, and reason over structured data to answer natural-language questions.
See all 71 papers