16 Open Models Reveal How LLMs Actually Read and Reason Over Tables
A study of 16 LLMs reveals a three-phase attention pattern for table reasoning and pinpoints where MoE models grow specialized table experts.
ProTakeaways
- Study of 16 LLMs reveals a three-phase attention flow: scan, localize, amplify across layer depth on tabular tasks.
- Masking table attention in early layers drops accuracy by 44 to 65 points, proving the pattern is causal.
- Table tasks require more layers to stabilize output distributions than math reasoning like GSM8K.
- MoE models grow table-specific experts concentrated in middle layers with minimal overlap with math experts.
- Chain-of-Thought lifts Table-R1-7B from 69.75% to 82.30% and increases attention to table content.
- Full analysis pipeline released on GitHub covering WTQ, HiTab, AIT-QA, TabFact.
Language models can answer questions over spreadsheets and Markdown tables surprisingly well, but almost nobody has cracked open the hood to see how they actually do it. A new interpretability study called A Closer Look into LLMs for Table Understanding runs that autopsy across 16 open models, and the results give a concrete map of which layers, which experts, and which prompting tricks actually move the needle on tabular tasks.
Most work on tables with LLMs has been performance chasing: better prompts, better fine-tuning data, better RL rewards. Unlike previous performance-oriented work, this paper conducts an in-depth empirical study to achieve a deeper understanding of the underlying mechanisms of LLMs' table understanding. The authors probe four things: how attention flows over the table, how many layers a model actually needs, whether Mixture-of-Experts models grow table specialists, and how format and reasoning prompts change internal behavior.
A three-phase pattern that shows up everywhere
The headline finding is a consistent attention choreography across model families and sizes. Early layers broadly encode the table, middle layers act as a critical reasoning phase where the model narrows focus to relevant cells and amplifies their impact on the residual stream, and late layers use the question and focused table content to jointly drive answer generation.
They verified this is causal, not just correlational, by zeroing out attention to the table in different layer ranges. Masking early layers universally caused the largest performance drops of 44 to 65 points, directly demonstrating that the broad scanning phase is functionally essential to downstream prediction. Llama-family models tolerated masking the top quarter of layers with only minor damage, while Qwen-family models degraded uniformly, hinting that architectures distribute the workload differently.
Middle-layer focus is also predictive of correctness. When low-entropy layers successfully attend to the correct answer cell, final prediction accuracy reaches 65.6% for Llama and 71.2% for Qwen. Conversely, when models answer incorrectly, 52.8% and 74.4% of errors are associated with low-entropy layers failing to attend to the correct cell. That opens the door to attention-based error detectors for table QA pipelines.
Tables need more depth than math
Using LogitLens to decode intermediate representations layer by layer, the authors compared table tasks against GSM8K math. KL-based stabilization depth is consistently higher for table tasks than math across 5 of 7 models, indicating that LLMs continue refining their output distributions across more layers when processing tabular data. The point where the top-k answer tokens crystallize is similar; it is the fine-grained distribution polishing that eats extra depth.
The practical consequence: early-exit inference tricks that work for math reasoning are likely to hurt more on tables, but late-layer interventions like inference-time steering could pay off well.
MoE models grow middle-layer table experts
Running the same analysis on DeepSeek-V2-Lite, Qwen3-30B-A3B, and OLMoE, the study found that the entropy of expert activation distribution reaches its minimum in the middle layers across all three MoE architectures, and these table-specific experts show minimal overlap with experts activated for math reasoning tasks. Early and late layers keep routing to general-purpose experts, so the specialization is surgical.
Format and prompting effects
A few findings that are directly useful when building table pipelines:
- HTML tables lead to higher attention entropy than Markdown tables, because verbose structural syntax like tr and td tags disperses the model's attention across more tokens. But internal representations of different formats converge in deeper layers, and the performance gap between Markdown and HTML is typically within 1-2%.
- Chain-of-Thought prompting leads to higher attention to table content in middle and late layers compared to direct answering, an effect further amplified by table-specific fine-tuning.
- CoT gains are large where it matters: Table-R1-7B improves from 69.75% to 82.30% with CoT.
What it means for practitioners
The empirical study covers WTQ, HiTab, AIT-QA, and TabFact, and the authors released the full analysis pipeline on GitHub. Three concrete takeaways worth acting on: prefer Markdown over HTML if you care about early-layer focus, keep CoT on for tabular workloads especially with tuned models, and if you compress KV caches or prune layers, do it in the top quarter rather than the middle where the actual cell localization happens. The finding that table circuits largely reuse pre-existing retrieval heads also suggests that KV cache compression techniques designed for long-context retrieval should transfer cleanly to table reasoning without much accuracy loss.