The Power of Order: Fooling LLMs with Adversarial Table Permutations

arXiv cs.LG / 5/4/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper finds that modern LLMs can be vulnerable to the *layout* of tabular inputs, even when row/column rearrangements do not change the table’s underlying meaning.
  • It introduces Adversarial Table Permutation (ATP), a gradient-based method that searches for worst-case row/column permutations that maximally disrupt model outputs.
  • Extensive experiments show that ATP substantially degrades performance across many LLMs, including newer and widely used architectures.
  • The results suggest a pervasive weakness in how current LLMs handle structured data, highlighting the need for permutation-robust model designs for reliable real-world use.

Abstract

Large Language Models have achieved remarkable success and are increasingly deployed in critical applications involving tabular data, such as Table Question Answering. However, their robustness to the structure of this input remains a critical, unaddressed question. This paper demonstrates that modern LLMs exhibit a significant vulnerability to the layout of tabular data. Specifically, we show that semantically-invariant permutations of rows and columns - rearrangements that do not alter the table's underlying information - are sometimes sufficient to cause incorrect or inconsistent model outputs. To systematically probe this vulnerability, we introduce Adversarial Table Permutation, a novel, gradient-based attack that efficiently identifies worst-case permutations designed to maximally disrupt model performance. Our extensive experiments demonstrate that ATP significantly degrades the performance of a wide range of LLMs. This reveals a pervasive vulnerability across different model sizes and architectures, including the most recent and popular models. Our findings expose a fundamental weakness in how current LLMs process structured data, underscoring the urgent need to develop permutation-robust models for reliable, real-world applications.