2D-TPE: Two-Dimensional Positional Encoding Enhances Table Understanding for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Tables are ubiquitous across various domains for concisely representing structured information. Empowering large language models (LLMs) to reason over tabular data represents an actively explored direction. However, since typical LLMs only support one-dimensional~(1D) inputs, existing methods often flatten the two-dimensional~(2D) table structure into a sequence of tokens, which can severely disrupt the spatial relationships and result in an inevitable loss of vital contextual information. In this paper, we first empirically demonstrate the detrimental impact of such flattening operations on the performance of LLMs in capturing the spatial information of tables through two elaborate proxy tasks. Subsequently, we introduce a simple yet effective positional encoding method, termed ``2D-TPE'' (Two-Dimensional Table Positional Encoding), to address this challenge. 2D-TPE enables each attention head to dynamically select a permutation order of tokens within the context for attending to them, where each permutation represents a distinct traversal mode for the table, such as column-wise or row-wise traversal. 2D-TPE effectively mitigates the risk of losing essential spatial information while preserving computational efficiency, thus better preserving the table structure. Extensive experiments across five benchmarks demonstrate that 2D-TPE outperforms strong baselines, underscoring the importance of preserving the table structure for accurate table comprehension. Comprehensive analysis further reveals the substantially better scalability of 2D-TPE to large tables than baselines.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 40 of its 69 references that are in the map. First posted on arXiv 29 Sep 2024.
Builds on
40 of 69 references.
References · 40
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,267
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 950
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 723
- 2015Compositional Semantic Parsing on Semi-Structured Tablescited by 515
28 more
- 2020TAPAS: Weakly Supervised Table Parsing via Pre-trainingcited by 434
- 2020Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlationcited by 425
- 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 398
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
- 2023MedAgents: Large Language Models as Collaborators for Zero-shot Medical Reasoningcited by 316
- 2023Unified-IO 2: Scaling Autoregressive Multimodal Models with Vision, Language, Audio, and Actioncited by 302
- 2020ToTTo: A Controlled Table-To-Text Generation Datasetcited by 268
- 2022Binding Language Models in Symbolic Languagescited by 228
- 2024Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understandingcited by 188
- 2023Large Language Models are Versatile Decomposers: Decompose Evidence and Questions for Table-based Reasoningcited by 178
- 2021FeTaQA: Free-form Table Question Answeringcited by 175
- 2023TableLlama: Towards Open Large Generalist Models for Tablescited by 137
- 2021HiTab: A Hierarchical Table Dataset for Question Answering and Natural Language Generationcited by 118
- 2022Large Language Models are few(1)-shot Table Reasonerscited by 116
- 2023Table Meets LLM: Can Large Language Models Understand Structured Table Data? A Benchmark and Empirical Studycited by 116
- 2021TABBIE: Pretrained Representations of Tabular Datacited by 111
- 2020TUTA: Tree-based Transformers for Generally Structured Table Pre-trainingcited by 100
- 2022TableFormer: Robust Transformer Modeling for Table-Text Encodingcited by 91
- 2024FiT: Flexible Vision Transformer for Diffusion Modelcited by 85
- 2024TableLLM: Enabling Tabular Data Manipulation by LLMs in Real Office Usage Scenarioscited by 77
- 2023ReAcTable: Enhancing ReAct for Table Question Answeringcited by 76
- 2023Table-GPT: Table-tuned GPT for Diverse Table Taskscited by 69
- 2021MATE: Multi-view Attention for Table Transformer Efficiencycited by 54
- 2023HYTREL: Hypergraph-enhanced Tabular Data Representation Learningcited by 36
- 2024AMOR: A Recipe for Building Adaptable Modular Knowledge Agents Through Process Feedbackcited by 25
- 2022StruBERT: Structure-aware BERT for Table Search and Matchingcited by 24
- 2024ProTrix: Building Models for Planning and Reasoning over Tables with Sentence Contextcited by 23
- 2024From the Least to the Most: Building a Plug-and-Play Visual Reasoner via Data Synthesiscited by 17
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.