arXiv:2609.07707cs.CLSep 2026

Manuscript Offprint

arXiv:2609.07707

DeepTable: Structural Attention Biases and Tree Path Encoding for Hierarchical Table Understanding

Jyun-Ying Yen, Cheng-Kuan Lin, Yu-Chee Tseng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) have demonstrated strong performance in table understanding. However, they typically process table content and headers as linearized token sequences. This representation weakens the two-dimensional and hierarchical structural relationships encoded by multi-level row and column headers. Existing parameter-efficient fine-tuning methods incorporate basic row and column information but do not explicitly capture the rich structural dependencies induced by hierarchical table headers. We propose DeepTable, a structure-aware approach for table understanding with LLMs. DeepTable comprises two complementary components. Structural Attention Bias (SAB) introduces learnable biases into the attention logits to explicitly represent whether pairs of table tokens share the same row or column. Tree Path Encoding (TPE) represents each table token using the ancestor paths of its row and column headers, preserving its position within the multi-level table structure. We integrate DeepTable with TableLoRA (He et al., 2025) to inject structural information into parameter-efficient adaptation. Across three LLM backbones, DeepTable consistently improves the corresponding TableLoRA baselines on three table question answering benchmarks, achieving average gains of 7.42 points on HiTab, 3.23 points on WikiTQ, and 2.01 BLEU points on FeTaQA. These results demonstrate the effectiveness of the proposed structural biases across different LLM backbones.

1 Introduction

Table understanding aims to answer natural-language queries using both the content and structure of tables. Unlike natural-language text, tables organize information through two-dimensional layouts defined by rows, columns, and headers. Many real-world tables further contain hierarchical row and column headers, which organize cells into nested groups and define relationships across different levels of the table. Accurately representing these relationships is therefore important for table understanding.

Recent approaches to table understanding can be broadly divided into three directions. The first develops dedicated models through large-scale pre-training or instruction tuning (Li et al., 2024; Zhang et al., 2025; Zhuang et al., 2024). The second keeps the underlying model frozen and performs reasoning through prompting or agent-based pipelines (Wang et al., 2024). The third adopts parameter-efficient fine-tuning (PEFT), which updates only a small number of parameters while keeping the pretrained model frozen. Our work follows the third direction and focuses on enhancing structural modeling within parameter-efficient fine-tuning.

A fundamental challenge for PEFT-based table understanding is that tables must first be serialized into one-dimensional token sequences. Although serialization preserves table content in textual form, it does not explicitly encode the two-dimensional structural relationships induced by multi-level row and column headers. Consequently, these structural relationships must be inferred implicitly from the serialized sequence.

Existing PEFT methods generally provide only limited structural modeling. For example, TableLoRA (He et al., 2025) incorporates learnable row and column coordinate embeddings. While effective, these embeddings represent each token using flat two-dimensional coordinates and do not explicitly encode pairwise row or column relationships or the hierarchical header paths that define a token's position within a multi-level table. Moreover, TableLoRA reports smaller improvements on tables with deeper header hierarchies, motivating the use of additional structural signals for hierarchical tables.

To address these limitations, we propose DeepTable, a structure-aware PEFT approach with two complementary components. Structural Attention Bias (SAB) introduces learnable biases into the attention logits to explicitly represent whether pairs of table tokens share the same row or column. Tree Path Encoding (TPE) represents each token using the ancestor paths of its top and left headers, thereby encoding information about its position within the corresponding header hierarchies. Our implementation is built upon the TableLoRA architecture while remaining fully parameter-efficient.

Experiments on three table question answering benchmarks using three LLM backbones demonstrate the effectiveness of DeepTable. Averaged across the three LLM backbones, DeepTable improves HiTab by 7.42 points, WikiTQ by 3.23 points, and FeTaQA by 2.01 BLEU points over the corresponding TableLoRA baselines.

Contributions. Our main contributions are three-fold. First, we introduce SAB, which explicitly models pairwise row and column relationships through learnable structural attention biases. Second, we introduce TPE, which represents the hierarchical position of each table token through its top-and left-header ancestor paths. Third, we integrate SAB and TPE into TableLoRA and demonstrate consistent improvements over its published results on three table question answering benchmarks.

References (17)