TL;DR
MATA is a model-agnostic, multi-agent framework for Table Question Answering (TableQA) that dynamically orchestrates Chain-of-Thought, Program-of-Thought, and text-to-SQL reasoning paths. By integrating lightweight specialized tools for scheduling and confidence checking, MATA delivers state-of-the-art accuracy across both open-source and proprietary LLMs while significantly slashing computational overhead through early-exit mechanisms.
What Problem Does This Paper Address?
Table Question Answering (TableQA) allows users to query structured data using natural language. While Large Language Models (LLMs) have drastically improved this domain, deploying them in practical, real-world environments reveals three major bottlenecks:
- Lack of Model-Agnosticism: Most high-performing TableQA frameworks rely heavily on expensive, closed-source proprietary APIs (like GPT-4). This makes them unsuitable for privacy-sensitive, data-restricted, or resource-constrained environments where open-source, local deployment is mandatory.
- High Computational Overhead: Existing frameworks often rely on brute-force repeated inferences (e.g., Self-Consistency or Best-of-N) to boost reliability. This leads to diminishing returns, high token costs, and can even degrade accuracy due to over-prompting.
- Rigid Reasoning Strategies: LLMs support various reasoning styles—textual Chain-of-Thought (CoT), code-based Program-of-Thought (PoT), or structured text-to-SQL. Prior works usually force a single approach, ignoring the fact that different models and question types excel under different reasoning pathways.
Methods
MATA introduces a compound AI system that balances reasoning diversity with computational efficiency. Instead of running every reasoning path for every question, MATA uses a coordinated multi-agent workflow paired with lightweight specialized tools (models under 500M parameters) to handle the heavy lifting of routing and verification.
The framework operates in three distinct stages:
- Agent Selection with Scheduler (Sch): A lightweight model (MobileBERT + MLP, ~24.65M parameters) analyzes the table features (size, schema, data types) and question semantics to decide whether to execute PoT or text-to-SQL first. Concurrently, a text-based CoT Agent runs once.
- Code Generation & Debugging: The prioritized agent (PoT or text-to-SQL) generates its code, which is executed. If errors occur, specialized Python or SQL Debug Agents iteratively refine the code (up to $N=3$ cycles). If the output matches the CoT answer, the remaining reasoning path is skipped entirely.
- Final Answer Decision via Confidence Checker (CC): A fine-tuned DeBERTaV3-large model (435M parameters) evaluates the candidate answers. If any candidate's confidence score exceeds a threshold ($\theta = 0.1$), MATA exits early and outputs the answer. If confidence is low, a heavy Judge Agent (JA) arbitrates the final answer, which is then cleaned up by a Format Matcher (FM) to ensure conciseness.
Datasets
- Training Data (for Sch and CC): The authors curated a large-scale dataset consisting of 173,664 samples from 57,888 unique table-question pairs across three public benchmarks: WikiTQ, TabMWP, and TabFact. Inferences from three open-source LLMs (phi4-14B, Qwen2.5-Coder-14B, and CodeLLaMA-13B) were used to train the lightweight discriminator tools.
- Evaluation Benchmarks: To ensure out-of-distribution robustness, MATA was tested on:
- Penguins in a Table: A basic diagnostic dataset from BIG-bench testing simple factual and comparative table reasoning.
- TableBench: A highly complex benchmark spanning 18 subcategories including advanced numerical reasoning, data analysis, and visualization.
Key Insights and Ideas
- Reasoning Strengths are Model-Dependent: The paper reveals that there is no universally optimal reasoning path. For instance, 7B models might favor text2SQL in Mistral but PoT in Qwen2.5-Coder. MATA's adaptive routing is crucial because static assumptions about which reasoning path is "best" do not generalize across model scales or architectures.
- The Power of Early Exiting: Brute-force verification loops can introduce noise and degrade performance on simpler tasks. By utilizing the Confidence Checker as a gatekeeper, MATA proves that a small, specialized discriminator can safely bypass expensive LLM judge calls most of the time.
- True Model Agnosticism: While baseline frameworks experience massive performance drops when swapping GPT-4 for a smaller open-source model (<10B parameters), MATA maintains high stability, effectively bridging the gap between proprietary and open-source performance.
Key Results
- State-of-the-Art Accuracy: On the challenging TableBench dataset, MATA achieved massive performance leaps over the strongest baseline (SynTQA), boosting Exact Match (EM) by up to 40.1%, fuzzy matching by 21.9%, and token-level F1 score by 33.1%.
- Efficiency Gains: The Confidence Checker successfully reduced expensive Judge Agent invocations by 95.8% on the simpler Penguins dataset and 60.6% on TableBench.
- Latency Reduction: MATA achieved a lower average end-to-end latency (27.55 seconds) compared to other call-heavy baselines like TabLaP (48.89s) and MixSC (44.48s), while maintaining superior accuracy.
Limitations and Future Work
While MATA successfully optimizes agent orchestration and minimizes unnecessary LLM calls, it does not reduce the fundamental computational cost of the backbone LLM inference itself when a path is executed. Each active reasoning path still demands a full forward pass from the underlying model.
The authors note that future work should explore LLM compression, distillation, or hybrid architectures that offload parts of the core reasoning process to smaller, non-LLM components to further enhance edge-device viability.
Summary updated