Abstract
We investigate how large language models (LLMs) fail when tabular data in an otherwise canonical representation is subjected to semantic and structural distortions. Our findings reveal that LLMs lack an inherent ability to detect and correct subtle distortions in table representations. Only when provided with an explicit prior, via a system prompt, do models partially adjust their reasoning strategies and correct some distortions, though not consistently or completely. To study this phenomenon, we introduce a small, expert-curated dataset that explicitly evaluates LLMs on table question answering (TQA) tasks requiring an additional error-correction step prior to analysis. Our results reveal systematic differences in how LLMs ingest and interpret tabular information under distortion, with even SoTA models such as GPT-5.2 model exhibiting a drop of minimum 22% accuracy under distortion. These findings raise important questions for future research, particularly regarding when and how models should autonomously decide to realign tabular inputs, analogous to human behavior, without relying on explicit prompts or tabular data pre-processing.
Introduction
In the field of data science, data cleaning often consumes the majority of a practitioner's time. While Large Language Models (LLMs) are frequently positioned as sophisticated assistants for these tasks, their ability to handle "messy" or distorted tabular data remains a critical bottleneck. Humans possess a latent ability to recognize structural or semantic inconsistencies—such as a misaligned column or swapped headers—and mentally repair them before performing analysis. This paper investigates whether LLMs share this autonomous repair capability or if they remain brittle when faced with non-canonical data representations.
Defining Tabular Distortions
To evaluate model robustness, the researchers defined two primary categories of distortions that render a table "broken" but logically solvable:
- Semantic Distortions: These preserve the physical shape of the table but violate logical invariants. For instance, swapping the headers for "Systolic" and "Diastolic" blood pressure or using inconsistent units across a column.
- Structural Distortions: These alter the spatial alignment of the data. Examples include vertical column shifts (where data starts several rows late) or horizontal row displacements.
Methodology and Dataset
The study introduced a new, expert-curated dataset consisting of 50 canonical samples derived from the WikiTQ benchmark or synthesized manually. From these, 22 semantic and 28 structural distorted variants were generated. Crucially, the correct answer to the associated query remains identical across all versions, providing a direct metric for robustness.
Models were evaluated across three modalities—Text (Markdown), Image (PNG), and direct file upload—using two prompting strategies:
- Distortion-Unaware: Standard persona-based prompts (e.g., "You are a data analyst").
- Distortion-Aware: Prompts explicitly instructing the model to check for and correct inconsistencies before analysis.
Key Findings
The Robustness Gap
Even state-of-the-art models like GPT-5.2 experienced a significant performance degradation, with accuracy falling from 100% on canonical tables to approximately 78% on distorted variants in the unaware setting. This 22% drop highlights that error-aware reasoning is not a default behavior in current LLMs.
Systematic Biases
The research identified a "Header Bias," where models rely heavily on the first few rows to establish semantic context, often ignoring layout shifts that occur deeper in the table. Furthermore, while horizontal shifts were handled with moderate success, vertical column displacements proved to be the most challenging "final boss" for the models, often resulting in catastrophic reasoning failures.
Prompting as a Partial Solution
Explicit "distortion-aware" prompting significantly improved performance. For example, GPT-5.2's accuracy on structural distortions rose from 67.86% to 71.43% when prompted to look for errors. However, this recovery remains incomplete, suggesting that current training paradigms do not sufficiently expose models to "broken" but repairable structures.
Conclusion
LLMs currently treat distorted tables as noisy inputs rather than structures requiring repair. While explicit prompting can activate some corrective reasoning, the goal for future research is to develop models that autonomously decide to realign tabular inputs. Moving toward LLMs that behave like human analysts—detecting and fixing errors before analysis—is essential for reliable real-world data applications.
Summary updated