Manuscript Offprint
arXiv:2609.07707DeepTable: Structural Attention Biases and Tree Path Encoding for Hierarchical Table Understanding
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.
Structure-aware table understanding. Modeling structural information has long been a central problem in table understanding. TAPAS (Herzig et al., 2020) augments BERT with row, column, and rank embeddings. TABBIE (Iida et al., 2021) models row-wise and column-wise dependencies using separate Transformer encoders, while TUTA (Wang et al., 2021) introduces tree-based positional encodings for generally structured tables. These approaches incorporate table structure through specialized encoder architectures, whereas DeepTable models structural information within a parameter-efficient adaptation framework.
Parameter-efficient adaptation for table understanding. Recent work has adapted pretrained language models to table understanding through instruction tuning or task-specific fine-tuning (Li et al., 2024; Zhang et al., 2025; Zhuang et al., 2024). Parameter-efficient fine-tuning methods, including LoRA (Hu et al., 2022), prompt tuning (Lester et al., 2021), and p-tuning (Liu et al., 2024), reduce adaptation cost by updating only a small subset of model parameters. For table understanding, TableLoRA (He et al., 2025) extends LoRA with learnable row and column coordinate embeddings. DeepTable builds on this setting by additionally modeling pairwise row and column relationships and hierarchical header paths.
Structural modeling in Transformers. Structural priors can be incorporated into Transformer models through positional representations and attention mechanisms. T5 (Raffel et al., 2020) introduces learned relative-position biases, whereas ALiBi (Press et al., 2022) employs linear attention biases based on token distance. For table understanding, TableFormer (Yang et al., 2022) incorporates learnable attention-logit biases for row, column, and cell relationships. SAT (Zhang et al., 2020) and MATE (Eisenschlos et al., 2021) instead use fixed attention patterns derived from table layouts.
Hierarchical representations have also been studied for other structured inputs. Tree-LSTM (Tai et al., 2015) models tree-structured data through recursive computation, while HiBERT (Zhang et al., 2019) learns hierarchical document representations. DeepTable combines structural attention with header-path encodings in a parameter-efficient framework for hierarchical table understanding.
3 Method
DeepTable enhances hierarchical table understanding by incorporating structural information beyond flat row and column coordinate representations. It consists of two complementary components: Structural Attention Bias (SAB), which models structural relationships between table tokens, and Tree Path Encoding (TPE), which encodes the hierarchical organization of table headers.
We first review the underlying TableLoRA adaptation framework (§3.1), then describe our table serialization and tokenization scheme (§3.2), and finally present SAB (§3.3) and TPE (§3.4).
3.1 Background: TableLoRA
TableLoRA augments the key (K) and value (V) projections with learnable row and column coordinate embeddings. For each transformer layer and

Figure 1: Architecture of DeepTable. A hierarchical table is serialized into a token sequence and processed by a pretrained LLM with LoRA adaptation. DeepTable extends TableLoRA with two structural modules. Tree Path Encoding (TPE) encodes the row and column paths of each table token, while Structural Attention Bias (SAB) introduces learnable row- and column-aware attention biases into the self-attention mechanism.
table token corresponding to cell , the hidden representation is
where denote the output and input hidden states, is the frozen pretrained weight, and are the LoRA matrices, and projects the coordinate embedding into the hidden space.
The coordinate embedding of token is , where and are learnable row and column embedding functions, respectively. For non-table tokens, we set , resulting in zero impact to Eq. 1.
The resulting representation is based solely on flat row and column coordinates. It does not explicitly encode pairwise structural relations or hierarchical header structures.
3.2 Table Content Tokenization
The input table is serialized into a sequence of tokens. The entire table begins with a [TAB] token. Each row begins with a [ROW] token, and each cell begins with a [CELL] token followed by its textual content. All special tokens are embedded by a trainable Special Token Encoder (Fig. 1), while ordinary cell-content tokens use the frozen vocabulary embeddings of the pretrained LLM.
Tables are serialized in row-major order. Header cells and ordinary cells are treated uniformly as textual tokens. For column headers, each header level is serialized as a separate row, with consecutive levels separated by [ROW] tokens. For row headers, the lowest-level header and its associated data cells occupy the same row, while ancestor headers are duplicated in that row.
The serialized token sequence is then fed into DeepTable, as illustrated in Fig. 1, which follows the standard LoRA adaptation process. Equation 1 is independently applied to the key and value projections at each transformer layer. Fig. 2(a) shows an example of the serialization process.
3.3 Structural Attention Bias (SAB)
TableLoRA (He et al., 2025) represents each table token using row and column coordinate embeddings. While these embeddings encode the position of each token, they do not explicitly model structural relationships between tokens. A straightforward approach is to inject predefined row/column biases into the attention logits. TableLoRA investigated such a variant by assigning a fixed bias of +1 to tokens within the same cell and +0.5 to tokens in the same row or column. However, this strategy performed worse than the original 2D-LoRA baseline (40.50 and 41.00 vs. 48.94 on HiTab), suggesting that manually designed fixed structural biases are

Figure 2: Illustration of the structural representations used in DeepTable. (a) A hierarchical table and its serialized token sequence; (b–c) row- and column-adjacency matrices, and (special tokens [ROW] and [CELL] are omitted for clarity); (d–e) row-header and column-header trees; (f) examples of row-header and column-header paths and their corresponding embeddings.
insufficient for modeling hierarchical table structures (He et al., 2025).
To address this limitation, SAB introduces learnable attention biases. Instead of using predefined constants, SAB learns how much additional attention should be assigned between structurally related tokens. Specifically, the attention operation becomes
where the structural bias is defined as , where and are learnable scalar parameters that are independent for each layer and each attention head.
The binary matrices indicate whether two table tokens belong to the same row or the same column, respectively, where is the total number of tokens. For any two tokens and ,
where is true iff the token corresponds to a table token (including both headers and data cells). Special tokens therefore always receive zero structural bias. The definition of is analogous.
Figs. 2(b)–(c) illustrate the row- and column-adjacency matrices and . For example,
2014 and 2015 belong to the same header row, while 2014 shares a column with 10 and 8. In contrast, 2014 and 12 share neither a row nor a column. The parent headers further demonstrate that hierarchical structures naturally propagate row and column membership to their descendants. For instance, years shares a column with every cell beneath 2014 and 2015, while A shares a row with every cell beneath A1 and A2.
Overall, SAB explicitly encourages attention between tokens belonging to the same row or column, allowing structural relationships to be modeled directly within the attention mechanism. Removing S reduces DeepTable to the original TableLoRA.
3.4 Tree Path Encoding (TPE)
SAB explicitly models same-row and same-column relationships through attention biases. However, it does not explicitly encode the hierarchical organization of table headers. For example, in Fig. 2(b), the matrix only implicitly indicates that the headers 2014 and 2015 share the same parent, years. Moreover, a table may contain multiple subheaders with the same name (e.g., two 2015 subheaders), making the hierarchy ambiguous. To address this limitation, TPE explicitly encodes tree paths.
TPE first represents the table headers as row-header and column-header trees, as illustrated in Fig. 2(d)–(e). For each table token , two tree paths are defined. The row path of , denoted by , consists of the sequence of the nodes from the root to the bottom header node directly above in the row-header tree. Similarly, the column path of , , is defined in the column-header tree. For example, and .
These tree paths are then encoded into embedding vectors, using dedicated path-embedding tables and . Each header node in either tree is assigned a unique integer identifier, which is then mapped to a trainable embedding vector through an embedding table. The embedding of the row path of is computed as the average of the embeddings of all nodes along the path . The embedding of the column path of , , is defined analogously using a separate embedding table . Both embedding tables are layer-specific and zero-initialized.
Finally, the row-path and column-path embeddings are added to the original row and column coordinate embeddings, and the resulting structural embeddings are incorporated into the LoRA adaptation,
Consequently, each table token is represented by four structural signals: the row coordinate, the column coordinate, the row-path embedding, and the column-path embedding.
4 Experiments
4.1 Experimental Setup
Models and training. We use DeepSeek-LLM-7B-Chat (DeepSeek-AI et al., 2024) as our primary base model. Following TableLoRA (He et al., 2025), which also evaluates Llama-3-8B-Instruct (Grattaflori et al., 2024), we additionally report results on this backbone. To further evaluate whether DeepTable generalizes across different LLM architectures, we conduct the same experiments on Qwen2.5-7B-Instruct (Qwen et al., 2024), which was not evaluated in the original paper. Both Llama-3-8B-Instruct and Qwen2.5-7B-Instruct adopt grouped-query attention instead of the standard multi-head attention used by DeepSeek. Unless otherwise specified, we follow the experimental settings of TableLoRA (He et al., 2025).
All models are trained using the same training hyperparameters. Detailed training settings, including the LoRA rank, learning rate, batch size,
| HiTab | WikiTQ | FeTaQA | TabFact | |
|---|---|---|---|---|
| Structure | hier. | flat | flat+span | flat |
| Multi-lvl col hdr | 78% | 0% | 0% | 0% |
| Multi-lvl row hdr | 86% | 0% | 0% | 0% |
| Test size | 1,584 | 4,344 | 2,003 | 12,779 |
| Output | value | span | sentence | bit |
| Metric | acc | acc | BLEU | acc |
Table 1: Summary of the tabular datasets. HiTab is the only dataset with hierarchical headers and therefore serves as our primary benchmark. FeTaQA is the only generative benchmark, whereas TabFact is the only binary classification benchmark.
number of epochs, and hardware configuration, are provided in Appendix G.
The learning-rate multiplier for SAB and TPE is fixed to a single shared value across all experiments, selected using a grid search on HiTab with DeepSeek (Appendix B) and applied unchanged to Qwen2.5. We report the average performance over four random seeds using greedy decoding throughout. Additional comparisons with sampling decoding are provided in Appendix A.
Datasets and metrics. We evaluate on the four benchmark datasets used by TableLoRA (He et al., 2025): HiTab (Cheng et al., 2022), WikiTQ (Pasupat and Liang, 2015), FeTaQA (Nan et al., 2022), and TabFact (Chen et al., 2020). Table 1 summarizes their structural characteristics and output formats.
HiTab evaluates hierarchical-table question answering, WikiTQ evaluates flat-table question answering, FeTaQA evaluates free-form table question answering, and TabFact evaluates table fact verification. We follow the standard evaluation metrics: accuracy for HiTab, WikiTQ, and TabFact, and BLEU (Post, 2018) for FeTaQA.
The four datasets differ in both table structure and output format. HiTab is the only benchmark containing genuinely hierarchical headers, where 78% of tables have multi-level column headers and 86% have multi-level row headers (up to depth 3). Therefore, HiTab serves as our primary benchmarking dataset. In contrast, WikiTQ and TabFact contain only flat tables, while FeTaQA contains flat tables with horizontally spanning column groups (23% of tables). The output formats also vary across datasets: HiTab and WikiTQ predict short cell values, TabFact predicts a binary True/False label, and FeTaQA generates a free-form sentence (median length 19 words).
| Backbone | Method | SAB | TPE | HiTab (acc)↑ | WikiTQ (acc)↑ | FeTaQA (BLEU)↑ | TabFact (acc)↑ |
|---|---|---|---|---|---|---|---|
| DeepSeek-LLM-7B-Chat | TableLoRA | — | — | 46.94 | 40.42 | 27.29 | 77.05 |
| DeepTable | ✓ | × | 52.05 (+5.11) | 42.79 (+2.37) | 29.52 (+2.23) | 76.35 (-0.70) | |
| DeepTable | × | ✓ | 45.83 (-1.11) | 42.30 (+1.88) | 30.32 (+3.03) | 74.44 (-2.61) | |
| DeepTable | ✓ | ✓ | 51.20 (+4.26) | 43.08 (+2.66) | 30.27 (+2.98) | 75.03 (-2.02) | |
| Llama-3-8B-Instruct | TableLoRA | — | — | 58.56 | 53.45 | 30.23 | 84.01 |
| DeepTable | ✓ | × | 74.01 (+15.45) | 59.81 (+6.36) | 32.63 (+2.40) | 85.06 (+1.05) | |
| DeepTable | × | ✓ | 71.83 (+13.27) | 59.19 (+5.74) | 32.66 (+2.43) | 84.40 (+0.39) | |
| DeepTable | ✓ | ✓ | 73.39 (+14.83) | 59.45 (+6.00) | 32.79 (+2.56) | 84.36 (+0.35) | |
| Qwen2.5-7B | TableLoRA | — | — | 62.38 | 52.95 | 30.49 | 81.20 |
| DeepTable | ✓ | × | 65.36 (+2.98) | 53.79 (+0.84) | 30.96 (+0.47) | 81.33 (+0.13) | |
| DeepTable | × | ✓ | 62.34 (-0.04) | 53.21 (+0.26) | 30.77 (+0.28) | 80.71 (-0.49) | |
| DeepTable | ✓ | ✓ | 65.56 (+3.18) | 53.99 (+1.04) | 30.97 (+0.48) | 81.14 (-0.06) |
Table 2: Comparison of DeepTable with TableLoRA across four benchmarks using three LLM backbones. Results are reported as four-seed greedy means. For DeepSeek-LLM-7B-Chat and Llama-3-8B-Instruct, TableLoRA results are taken from (He et al., 2025). For Qwen2.5-7B, the TableLoRA baseline is reproduced using the official implementation because this backbone was not evaluated in the original paper. Values in parentheses denote improvements over the corresponding TableLoRA baseline. Bold indicates the best result, and underline indicates the second-best result.
| SAB | TPE | HiTab | WikiTQ | FeTaQA | TabFact |
|---|---|---|---|---|---|
| ✓ | × | +7.85 | +3.19 | +1.70 | +0.16 |
| × | ✓ | +4.04 | +2.63 | +1.91 | -0.90 |
| ✓ | ✓ | +7.42 | +3.23 | +2.01 | -0.58 |
Table 3: Average improvements (%) of DeepTable variants over the corresponding TableLoRA baselines, averaged across the three LLM backbones.
4.2 Comparison with TableLoRA
Table 2 compares DeepTable with the corresponding TableLoRA baselines across four table question answering benchmarks and three base models. Overall, the proposed structural biases consistently improve performance on HiTab, WikiTQ, and FeTaQA while maintaining performance comparable to TableLoRA on TabFact, which contains only flat tables.
These results lead to the following hypotheses. First, the largest improvements are consistently observed on HiTab, the only benchmark containing hierarchical row and column headers. This suggests that the proposed structural biases are particularly effective for hierarchical tables (§4.3). Second, the relative contributions of the two proposed biases are task-dependent (§4.4). While SAB consistently provides the largest improvements on HiTab, TPE achieves its largest gains on the generative benchmark FeTaQA.
Across all three base models, the same qualitative trend is observed. Both SAB and TPE consistently improve or maintain the corresponding TableLoRA baselines on the three table ques-
tion answering benchmarks, and their combination remains competitive across all four datasets. The magnitude of improvement, however, varies across backbones. DeepSeek exhibits the clearest gains, Qwen2.5-7B shows smaller improvements because its TableLoRA baseline is already substantially stronger (e.g., 62.38 vs. 46.94 on HiTab), and Llama-3-8B-Instruct demonstrates that the proposed structural biases generalize to a third independently trained backbone. Backbone-specific differences are further discussed in §4.4.
Table 3 summarizes the average improvements achieved by DeepTable across the three LLM backbones. Overall, all three variants improve performance over the corresponding TableLoRA baselines. While DeepTable achieves the largest average improvements on WikiTQ and FeTaQA, DeepTable w/o TPE performs better on HiTab and TabFact, suggesting that SAB and TPE provide complementary structural benefits whose relative effectiveness varies across datasets.
HiTab additionally annotates each query with its aggregation function (Cheng et al., 2022). We therefore stratify the 4-seed paired accuracy by aggregation type in Table 4 to understand where the proposed structural biases are most effective. This fine-grained analysis is currently available only for DeepSeek-LLM-7B; we leave the corresponding Qwen2.5-7B and Llama-3-8B analyses for future work.
Table 4 reveals three notable patterns. First, the largest single SAB gain is observed on none queries (+9.2 pp, n = 1133), which require retrieving a single table cell. Second, comparison and ranking queries (pair-argmax, argmax, opposite, and pair-argmin) also benefit from SAB, although the improvements are more modest (+1-4 pp). Finally, arithmetic queries (division and summation) remain unsolved, with all configurations, including TableLoRA, achieving 0% accuracy.
4.3 Header-Depth Analysis
To analyze the HiTab results, we further stratify the test set by top-header depth and compute the 4-seed paired lift over the TableLoRA baseline. Table 5 reveals two clear observations. First, SAB's lift increases monotonically with header depth, from +6.37 to +7.03 and +7.52. Second, TPE's lift remains nearly flat across the three depth levels (+0.14, +1.11, and +0.41).
The lower block of Table 5 repeats the same analysis on Qwen2.5-7B using the same depth metadata and evaluation protocol. The same two observations are reproduced. SAB's lift again increases monotonically with header depth (+1.27 → +2.54 → +6.29), whereas TPE's lift remains small and shows no monotonic trend (+0.28, -0.59, and +1.31). The overall improvement of SAB is also statistically significant under a paired t-test (+2.98 pp, 4/4 seeds positive, p≈0.04).
4.4 Two-Axis Analysis: Structure vs. Hierarchy Complexity
A table consists of headers and data cells. While TPE explicitly models the hierarchical organization of table headers, SAB captures the structural relationships among data cells. These two structural biases are not always complementary. On some datasets, combining SAB and TPE achieves the best performance, whereas on others, SAB alone performs better. We therefore investigate this issue in detail.
Table Structural Complexity. The benefit of SAB is governed by the structural complexity of the table, including both table size and header depth. By encouraging same-row and same-column attention, SAB directly facilitates the structural alignment required for locating and comparing table cells.
This explanation is consistent with the aggregation analysis in Table 4. The largest improvement is observed on none queries, which require retrieving a single target cell, exactly the type of structural alignment that SAB is designed to facilitate. Comparison and ranking queries also benefit from SAB, although the improvements are smaller because alignment is performed over multiple candidate cells rather than a single target cell. In contrast, arithmetic queries remain at 0% across all configurations, indicating that structural bias alone cannot compensate for numerical reasoning abilities absent from the underlying LLM.
The same explanation also accounts for the depth analysis in Table 5. As header depth increases, a header cell's identity becomes increasingly dispersed across its descendant cells, making structural alignment progressively more difficult. Accordingly, the performance gains of SAB increase monotonically with header depth on both DeepSeek and Qwen2.5-7B.
Generation vs. Extraction Tasks. The contribution of TPE is governed by the output modality. TPE enriches each cell with hierarchical header semantics, which are particularly useful for generation tasks, where the model must explicitly verbalize header information rather than simply extract cell values.
The above hypothesis is supported by both the aggregation and depth analyses. Across aggregation types and header depths, TPE provides only marginal or even slightly negative gains on extraction tasks, where the goal is to retrieve a table cell rather than generate a sentence. In these cases, the hierarchical header signal is largely redundant. We suspect that it sometimes interferes with the two-dimensional coordinate representations. In contrast, TPE achieves its largest improvement on the generative benchmark FeTaQA, where header semantics naturally become part of the generated output.
Together, these two properties explain the results in Table 2. HiTab combines high structural complexity with cell extraction, making SAB the dominant contributor. FeTaQA requires sentence generation, where TPE achieves its largest improvement. WikiTQ benefits from combining both structural biases.
Control Experiment on TabFact. TabFact is the only benchmark that is both structurally simple and binary (a single True/False output). Accordingly, SAB remains essentially on par with the TableLoRA baseline, while TPE provides little benefit. The same trend is also observed on Qwen2.5-7B (Appendix F), where both effects shrink toward zero rather than reversing.
| Category | Aggregation | n | TableLoRA | DeepTable | ||
|---|---|---|---|---|---|---|
| w/o TPE | w/o SAB | Full | ||||
| Lookup | none | 1133 | 53.1 | 62.1 (+9.2) | 54.4 (+1.3) | 61.3 (+8.2) |
| Comparison/Ranking | pair-argmax | 93 | 38.7 | 39.8 (+1.1) | 36.0 (-2.7) | 41.4 (+2.7) |
| argmax | 56 | 30.4 | 33.1 (+2.7) | 29.1 (-1.3) | 30.4 (+0.0) | |
| opposite | 50 | 49.0 | 53.0 (+4.0) | 51.0 (+2.0) | 51.5 (+2.5) | |
| pair-argmin | 21 | 44.0 | 45.2 (+1.2) | 39.2 (-4.8) | 44.0 (+0.0) | |
| Arithmetic | diff | 56 | 5.4 | 7.2 (+1.8) | 7.2 (+1.8) | 8.1 (+2.7) |
| div | 76 | 0.0 | 0.0 (+0.0) | 0.0 (+0.0) | 0.0 (+0.0) | |
| sum | 22 | 0.0 | 0.0 (+0.0) | 0.0 (+0.0) | 0.0 (+0.0) | |
Table 4: Performance by aggregation type on HiTab with DeepSeek-LLM-7B-Chat. Four-seed accuracy (%) is reported for each aggregation type, with improvements over TableLoRA shown in parentheses. Only aggregation types with test instances per seed are shown. DeepTable achieves its largest gains on lookup and comparison/ranking queries, whereas arithmetic queries remain difficult for all methods.
| Backbone | Method | SAB | TPE | Depth 1 (n = 353) | Depth 2 (n = 925) | Depth 3 (n = 306) | Monotonic |
|---|---|---|---|---|---|---|---|
| DeepSeek-LLM-7B-Chat | TableLoRA | — | — | 42.56 | 50.38 | 31.94 | — |
| DeepTable | ✓ | ✗ | 48.93 (+6.37) | 57.41 (+7.03) | 39.46 (+7.52) | ✓ | |
| DeepTable | ✗ | ✓ | 42.70 (+0.14) | 51.49 (+1.11) | 32.35 (+0.41) | Flat (≈ 0) | |
| DeepTable | ✓ | ✓ | 47.66 (+5.10) | 56.57 (+6.19) | 39.05 (+7.11) | ✓ | |
| Qwen2.5-7B | TableLoRA | — | — | 56.73 | 68.11 | 51.55 | — |
| DeepTable | ✓ | ✗ | 58.00 (+1.27) | 70.65 (+2.54) | 57.84 (+6.29) | ✓ | |
| DeepTable | ✗ | ✓ | 57.01 (+0.28) | 67.52 (-0.59) | 52.86 (+1.31) | Flat (≈ 0) | |
| DeepTable | ✓ | ✓ | 59.14 (+2.41) | 71.08 (+2.90) | 56.29 (+4.74) | ✓ |
Table 5: SAB’s improvement increases with header depth, whereas TPE remains nearly flat. HiTab four-seed accuracy (%) and paired relative to the TableLoRA baseline are stratified by top-header depth. The largest gain is consistently observed on depth-3 tables. A finer left×top depth analysis for DeepSeek is provided in Appendix E.
Cross-Backbone Generalization. The above findings remain consistent across both DeepSeek and Qwen2.5-7B. The primary difference is not whether the two biases help, but how much they contribute once combined. On HiTab, the full model slightly outperforms SAB alone on Qwen2.5-7B, whereas SAB alone performs better on DeepSeek. Similarly, on FeTaQA, TPE provides a substantially larger standalone gain on DeepSeek than on Qwen2.5-7B. We attribute this difference to the stronger instruction-following capability of Qwen2.5-7B, which likely already captures part of the hierarchical header semantics that TPE explicitly injects. Consequently, the effectiveness of TPE appears to depend more strongly on the underlying backbone, whereas the benefits of SAB are consistently observed across both models.
5 Conclusion
DeepTable introduces two structural biases for hierarchical table understanding. SAB adds learnable attention biases for same-row and same-column cell pairs at the per-layer, per-attention-head level, whereas TPE injects hierarchical header-path information into each cell representation. On DeepSeek-LLM-7B-Chat, the combined model outperforms TableLoRA on all three table question answering benchmarks (HiTab: +5.11, WikiTQ: +2.66, and FeTaQA: +3.03 BLEU), while maintaining comparable performance on TabFact.
Our analyses further distinguish the empirical behavior of the two biases. SAB provides substantial gains on lookup and comparison/ranking queries, and its improvement increases with header depth on both DeepSeek-LLM-7B-Chat and Qwen2.5-7B. In contrast, TPE provides limited or inconsistent gains across most aggregation types and header depths, but contributes more prominently on the free-form generation benchmark. The overall comparison across DeepSeek-LLM-7B-Chat, Llama-3-8B-Instruct, and Qwen2.5-7B also shows that the relative effectiveness of the two biases can vary across backbones and datasets.
Future work may explore adaptive mechanisms that select structural biases according to the task.
Limitations
Backbone coverage. We evaluate DeepTable on three open-source LLMs (DeepSeek-LLM-7B-Chat, Qwen2.5-7B-Instruct, and Llama-3-8B-Instruct), all in the 7–8B parameter range. Whether the same improvements generalize to substantially larger or closed-source LLMs remains to be investigated. Moreover, the effectiveness of explicit structural biases may decrease as stronger base models implicitly capture richer table structures.
Evaluation scope. Our fine-grained analyses that explain why DeepTable improves performance include the aggregation-type breakdown (Table 4, DeepSeek-LLM-7B-Chat only), the header-depth analysis (Table 5 and Appendix E), and the Tab-Fact True/False breakdown (Appendix F); the latter two are conducted on both DeepSeek-LLM-7B-Chat and Qwen2.5-7B-Instruct. For Llama-3-8B-Instruct, we report only the overall results in Table 2. In addition, the magnitude of DeepTable's improvements depends on the decoding strategy (Appendix A). We report greedy decoding throughout for consistency, but the absolute performance and improvement over TableLoRA may differ under other generation settings.
Arithmetic reasoning remains challenging. On HiTab queries that require arithmetic operations, such as division and summation, all evaluated methods, including the TableLoRA baseline and DeepTable, achieve 0% accuracy (Table 4). While the proposed structural biases help identify and align relevant table cells, they do not improve the numerical reasoning capability of the underlying LLM. Consequently, DeepTable's performance on arithmetic queries remains bounded by the reasoning ability of the base model.
Hyperparameter tuning. The learning-rate multiplier for SAB and TPE () is selected using a sweep on a single HiTab seed with DeepSeek (Appendix B) and then reused across all datasets, random seeds, and backbone LLMs. Although this demonstrates that a single setting generalizes well across different conditions, further per-model or per-dataset tuning may yield additional improvements.
References
Wenhu Chen, Hongmin Wang, Jianshu Chen, Yunkai Zhang, Hong Wang, Shiyang Li, Xiyou Zhou, and William Yang Wang. 2020. TabFact: A large-scale dataset for table-based fact verification. In International Conference on Learning Representations (ICLR), Addis Ababa, Ethiopia.
Zhoujun Cheng, Haoyu Dong, Zhiruo Wang, Ran Jia, Jiaqi Guo, Yan Gao, Shi Han, Jian-Guang Lou, and Dongmei Zhang. 2022. HiTab: A hierarchical table dataset for question answering and natural language generation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1094–1110, Dublin, Ireland. Association for Computational Linguistics.
DeepSeek-AI, Xiao Bi, Deli Chen, Guanting Chen, Shanhuang Chen, Damai Dai, Chengqi Deng, Honghui Ding, Kai Dong, Qiushi Du, Zhe Fu, Huazuo Gao, Kaige Gao, Wenjun Gao, Ruiqi Ge, Kang Guan, Daya Guo, Jianzhong Guo, Guangbo Hao, and 68 others. 2024. DeepSeek LLM: Scaling open-source language models with longtermism. arXiv preprint arXiv:2401.02954.
Julian Eisenschlos, Maharshi Gor, Thomas Müller, and William Cohen. 2021. MATE: Multi-view attention for table transformer efficiency. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7606–7619, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
Aaron Grattafori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, and 542 others. 2024. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783.
Xinyi He, Yihao Liu, Mengyu Zhou, Yeye He, Haoyu Dong, Shi Han, Zejian Yuan, and Dongmei Zhang. 2025. TableLoRA: Low-rank adaptation on table structure understanding for large language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 22376–22391, Vienna, Austria. Association for Computational Linguistics.
Jonathan Herzig, Pawel Krzysztof Nowak, Thomas Müller, Francesco Piccinno, and Julian Eisenschlos. 2020. TaPas: Weakly supervised table parsing via pre-training. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4320–4333, Online. Association for Computational Linguistics.
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.
Hiroshi Iida, Dung Thai, Varun Manjunatha, and Mohit Iyyer. 2021. TABBIE: Pretrained representations of tabular data. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3446–3456, Online. Association for Computational Linguistics.
Brian Lester, Rami Al-Rfou, and Noah Constant. 2021. The power of scale for parameter-efficient prompt tuning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3045–3059, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
Peng Li, Yeye He, Dror Yashar, Weiwei Cui, Song Ge, Haidong Zhang, Danielle Rifinski Fainman, Dongmei Zhang, and Surajit Chaudhuri. 2024. Table-GPT: Table fine-tuned gpt for diverse table tasks. Proc. ACM Manag. Data, 2(3).
Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. 2024. GPT understands, too. AI Open, 5:208–215.
Linyong Nan, Chiachun Hsieh, Ziming Mao, Xi Victoria Lin, Neha Verma, Rui Zhang, Wojciech Kryściński, Hailey Schoelkopf, Riley Kong, Xiangru Tang, Mutethia Mutuma, Ben Rosand, Isabel Trindade, Renusree Bandaru, Jacob Cunningham, Caiming Xiong, and Dragomir Radev. 2022. FeTaQA: Free-form table question answering. Transactions of the Association for Computational Linguistics, 10:35–49.
Panupong Pasupat and Percy Liang. 2015. Compositional semantic parsing on semi-structured tables. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1470–1480, Beijing, China. Association for Computational Linguistics.
Matt Post. 2018. A call for clarity in reporting BLEU scores. In Proceedings of the Third Conference on Machine Translation: Research Papers, pages 186–191, Brussels, Belgium. Association for Computational Linguistics.
Ofir Press, Noah A. Smith, and Mike Lewis. 2022. Train short, test long: Attention with linear biases enables input length extrapolation. In International Conference on Learning Representations.
Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, and 24 others. 2024. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115.
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67.
Kai Sheng Tai, Richard Socher, and Christopher D. Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1556–1566, Beijing, China. Association for Computational Linguistics.
Zhiruo Wang, Haoyu Dong, Ran Jia, Jia Li, Zhiyi Fu, Shi Han, and Dongmei Zhang. 2021. TUTA: Tree-based transformers for generally structured table pre-training. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pages 1780–1790.
Zilong Wang, Hao Zhang, Chun-Liang Li, Julian Martin Eisenschlos, Vincent Perot, Zifeng Wang, Lesly Miculich, Yasuhisa Fujii, Jingbo Shang, Chen-Yu Lee, and Tomas Pfister. 2024. Chain-of-Table: Evolving tables in the reasoning chain for table understanding. In The Twelfth International Conference on Learning Representations.
Jingfeng Yang, Aditya Gupta, Shyam Upadhyay, Luheng He, Rahul Goel, and Shachi Paul. 2022. TableFormer: Robust transformer modeling for table-text encoding. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 528–537. Association for Computational Linguistics.
Hongzhi Zhang, Yingyao Wang, Sirui Wang, Xuezhi Cao, Fuzheng Zhang, and Zhongyuan Wang. 2020. Table fact verification with structure-aware transformer. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1624–1629. Association for Computational Linguistics.
Xiaokang Zhang, Sijia Luo, Bohan Zhang, Zeyao Ma, Jing Zhang, Yang Li, Guanlin Li, Zijun Yao, Kangli Xu, Jinchang Zhou, Daniel Zhang-Li, Jifan Yu, Shu Zhao, Juanzi Li, and Jie Tang. 2025. TableLLM: Enabling tabular data manipulation by LLMs in real office usage scenarios. In Findings of the Association for Computational Linguistics: ACL 2025, pages 10315–10344. Association for Computational Linguistics.
Xingxing Zhang, Furu Wei, and Ming Zhou. 2019. HIBERT: Document level pre-training of hierarchical bidirectional transformers for document summarization. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5059–5069, Florence, Italy. Association for Computational Linguistics.
Alex Zhuang, Ge Zhang, Tianyu Zheng, Xinrun Du, Junjie Wang, Weiming Ren, Wenhao Huang, Jie Fu, Xiang Yue, and Wenhu Chen. 2024. StructLM: Towards building generalist models for structured knowledge grounding. In First Conference on Language Modeling.
A Decoding-Protocol Audit
During development, we found that evaluation results depend on the decoding protocol. The base chat model provides a default generation configuration with stochastic sampling (do_sample=true, temperature = 0.7, top-p = 0.95), which is inherited by the fine-tuning framework unless explicitly overridden. Under stochastic sampling, both the absolute scores and the observed performance gap differ from those obtained using greedy decoding. Therefore, all results reported in this paper are evaluated using greedy decoding.
Table 6 compares the two decoding protocols on HiTab with DeepSeek-LLM-7B-Chat. Under stochastic sampling, DeepTable improves over TableLoRA by 2.49 percentage points, whereas the improvement is 1.50 percentage points under greedy decoding.
B Learning-Rate Multiplier Sweep
The SAB/TPE parameter groups are substantially smaller than the base LoRA matrices and therefore require separate learning-rate multipliers. To determine appropriate values, we performed a two-dimensional grid search over on HiTab using a single random seed (seed 0) under greedy decoding. Table 7 summarizes the evaluated settings and their corresponding accuracies. Among the tested combinations, (1000, 1000) achieved the highest accuracy. Accordingly, we use in all reported experiments.
C Subspace-Overlap and Tree Path Encoding Variant Ablations
Subspace overlap between Tree Path Encoding and 2D LoRA. To examine the relationship between TPE and the row/column embeddings used in 2D LoRA, we disable the row/column embeddings while retaining TPE (and SAB). On HiTab, removing the row/column embeddings decreases the accuracy from 45.71% to 43.75%. This result shows that the header-path encoding remains effective even without the row/column embeddings.
Alternative Tree Path Encoding variants. We also evaluated several implementation variants of TPE, including replacing mean pooling with sum pooling, varying the learning-rate multiplier , and using only the top-header path. None of these
| Method | Sampling | Greedy |
|---|---|---|
| TableLoRA | 40.95 | 45.08 |
| DeepTable | 43.45 (+2.49) | 46.58 (+1.50) |
| Paired t-test | p = .015 | p ≈ .06 |
Note. Results are averaged over four random seeds. p-values are computed using paired t-tests.
Table 6: Decoding-protocol audit on HiTab with DeepSeek-LLM-7B-Chat. Greedy decoding lowers absolute scores and reduces the performance gap relative to the default sampling decoder. TableLoRA is our own reproduction under each decoding protocol, and therefore differs slightly from the published TableLoRA number used as the baseline in Table 2.
| (λ_SAB, λ_TPE) | Accuracy |
|---|---|
| (30, 30) | 44.95 (-3.41) |
| (100, 1000) | 47.10 (-1.26) |
| (300, 100) | 47.41 (-0.95) |
| (300, 300) | 47.79 (-0.57) |
| (100, 100) | 48.74 (+0.38) |
| (1000, 100) | 49.49 (+1.13) |
| (100, 300) | 50.06 (+1.70) |
| (2000, 2000) | 50.63 (+2.27) |
| (2500, 2500) | 52.59 (+4.23) |
| (1000, 1000) | 53.28 (+4.92) |
Table 7: Learning-rate multiplier sweep on HiTab (seed 0, greedy decoding). Values in parentheses denote the improvement over the TableLoRA baseline (48.36%).
variants consistently outperformed the adopted configuration, and all achieved performance close to the TableLoRA baseline on HiTab.
Under the current design, TPE shares the projection matrix with 2D LoRA, making it impossible to increase the capacity of the path embeddings without modifying the underlying architecture. Exploring decoupled projection matrices is left for future work.
D Per-Seed Results and Significance
Tables 8–9 report the per-seed results underlying the averaged results in Table 2. For each benchmark, we present the results for all four random seeds together with the corresponding average performance. Results are provided for all three backbones (DeepSeek-LLM-7B-Chat, Llama3-8B-Instruct, and Qwen2.5-7B-Instruct) under the same experimental settings used in the main paper, providing a complete breakdown of the reported results.
| Backbone | Dataset | SAB | TPE | s0 | s1 | s2 | s3 | Avg. |
|---|---|---|---|---|---|---|---|---|
| DeepSeek-LLM-7B-Chat | HiTab | ✓ | ✕ | 53.79 | 51.58 | 51.20 | 51.64 | 52.05 |
| ✕ | ✓ | 47.16 | 43.18 | 46.15 | 46.84 | 45.83 | ||
| ✓ | ✓ | 53.28 | 51.01 | 50.44 | 50.06 | 51.20 | ||
| WikiTQ | ✓ | ✕ | 43.05 | 42.45 | 42.70 | 42.96 | 42.79 | |
| ✕ | ✓ | 42.77 | 41.55 | 43.02 | 41.87 | 42.30 | ||
| ✓ | ✓ | 43.09 | 42.63 | 43.39 | 43.21 | 43.08 | ||
| FeTaQA (BLEU) | ✓ | ✕ | 29.83 | 29.51 | 29.40 | 29.36 | 29.52 | |
| ✕ | ✓ | 29.69 | 30.34 | 30.76 | 30.48 | 30.32 | ||
| ✓ | ✓ | 30.20 | 30.55 | 30.36 | 29.96 | 30.27 | ||
| Llama-3-8B-Instruct | HiTab | ✓ | ✕ | 72.98 | 74.56 | 73.36 | 75.13 | 74.01 |
| ✕ | ✓ | 71.40 | 72.85 | 70.96 | 72.10 | 71.83 | ||
| ✓ | ✓ | 72.41 | 73.80 | 72.92 | 74.43 | 73.39 | ||
| WikiTQ | ✓ | ✕ | 59.62 | 60.04 | 59.83 | 59.74 | 59.81 | |
| ✕ | ✓ | 59.76 | 58.68 | 59.07 | 59.23 | 59.19 | ||
| ✓ | ✓ | 59.42 | 59.32 | 59.46 | 59.60 | 59.45 | ||
| FeTaQA (BLEU) | ✓ | ✕ | 32.31 | 33.18 | 32.70 | 32.32 | 32.63 | |
| ✕ | ✓ | 32.66 | 32.91 | 32.71 | 32.34 | 32.66 | ||
| ✓ | ✓ | 32.39 | 33.15 | 32.82 | 32.81 | 32.79 | ||
| Qwen2.5-7B | HiTab | ✓ | ✕ | 64.90 | 63.38 | 67.36 | 65.78 | 65.36 |
| ✕ | ✓ | 61.93 | 60.73 | 63.83 | 62.88 | 62.34 | ||
| ✓ | ✓ | 66.92 | 65.78 | 63.95 | 65.59 | 65.56 | ||
| WikiTQ | ✓ | ✕ | 53.75 | 54.70 | 53.34 | 53.36 | 53.79 | |
| ✕ | ✓ | 53.43 | 52.88 | 53.31 | 53.20 | 53.20 | ||
| ✓ | ✓ | 54.33 | 53.98 | 54.12 | 53.52 | 53.99 | ||
| FeTaQA (BLEU) | ✓ | ✕ | 30.83 | 31.01 | 30.96 | 31.04 | 30.96 | |
| ✕ | ✓ | 30.63 | 30.97 | 30.70 | 30.78 | 30.77 | ||
| ✓ | ✓ | 30.82 | 30.83 | 31.08 | 31.15 | 30.97 |
Table 8: Per-seed accuracy (%; BLEU for FeTaQA) of DeepTable variants on HiTab, WikiTQ, and FeTaQA under greedy decoding. All experiments use . Bold indicates the best result and underline the second-best, among the three DeepTable variants, per column.
E Depth-Stratified Grid
Table 10 provides a finer-grained analysis of HiTab by jointly stratifying samples according to the depths of the top and left header hierarchies. For each depth combination, the table reports the four-seed average accuracy of TableLoRA and DeepTable, together with the paired improvement () and the corresponding sample count.
Consistent with the marginal analysis in Table 5, DeepTable improves upon TableLoRA for most depth combinations. The largest fluctuations occur in the deepest buckets, which contain relatively few samples.
F TabFact True/False Asymmetry
TabFact is a binary classification task, allowing the effects of the proposed structural modules to be analyzed separately on True and False examples. Table 11 reports the four-seed average accuracy for each gold label.
On DeepSeek-LLM-7B-Chat, TPE and SAB ex-hibit different effects. Compared with TableLoRA, TPE improves the accuracy on True examples by 2.8 percentage points but reduces the accuracy on False examples by 5.8 percentage points. In contrast, SAB produces only a small change on True examples ( points) while improving the accuracy on False examples by 1.4 percentage points. DeepTable combines the two modules and achieves intermediate results on both labels.
To further characterize this behavior, we computed the distribution of predicted labels. Compared with TableLoRA, TPE increases the proportion of predicted True labels from 58.9% to 62.0%, consistent with its higher accuracy on True examples and lower accuracy on False examples.
We further report the same analysis on Qwen2.5-7B. Compared with DeepSeek-LLM-7B-Chat, the differences among the methods are considerably smaller, although the reduction on False examples for TPE remains.
| Backbone | SAB | TPE | s0 | s1 | s2 | s3 | Avg. |
|---|---|---|---|---|---|---|---|
| DeepSeek-LLM-7B-Chat | ✓ | × | 76.15 | 76.39 | 76.46 | 76.39 | 76.35 |
| × | ✓ | 74.65 | 74.48 | 74.51 | 74.12 | 74.44 | |
| ✓ | ✓ | 75.36 | 75.04 | 74.83 | 74.87 | 75.03 | |
| Llama-3-8B-Instruct | ✓ | × | 85.01 | 85.01 | 84.89 | 85.35 | 85.06 |
| × | ✓ | 84.47 | 83.98 | 84.63 | 84.51 | 84.40 | |
| ✓ | ✓ | 84.90 | 82.75 | 84.83 | 84.94 | 84.36 | |
| Qwen2.5-7B | ✓ | × | 81.31 | 81.47 | 81.38 | 81.17 | 81.33 |
| × | ✓ | 80.64 | 81.17 | 80.59 | 80.44 | 80.71 | |
| ✓ | ✓ | 80.87 | 81.39 | 81.05 | 81.23 | 81.14 |
Table 9: Per-seed TabFact accuracy (%) of DeepTable variants under greedy decoding, across all three LLM backbones.
| top | left | n | TableLoRA | DeepTable |
|---|---|---|---|---|
| 1 | 1 | 35 | 40.00 | 40.71 (+0.71) |
| 1 | 2 | 97 | 42.01 | 39.95 (-2.06) |
| 1 | 3 | 205 | 36.95 | 38.66 (+1.71) |
| 1 | 4 | 16 | 35.94 | 48.44 (+12.50) |
| 2 | 1 | 88 | 38.64 | 41.76 (+3.12) |
| 2 | 2 | 516 | 54.60 | 57.03 (+2.42) |
| 2 | 3 | 307 | 36.32 | 39.50 (+3.18) |
| 2 | 4 | 14 | 23.21 | 17.86 (-5.36) |
| 3 | 1 | 100 | 24.75 | 33.00 (+8.25) |
| 3 | 2 | 156 | 28.85 | 30.13 (+1.28) |
| 3 | 3 | 45 | 20.56 | 22.78 (+2.22) |
| 3 | 4 | 5 | 60.00 | 65.00 (+5.00) |
Table 10: Depth-stratified results on HiTab. Samples are grouped by the depths of the top and left header hierarchies. The table reports the four-seed average accuracy (%) of TableLoRA and DeepTable, together with the paired improvement (). denotes the number of samples in each depth combination.
G Hyperparameters
Table 12 summarizes the training hyperparameters used in all experiments. Unless otherwise specified, all settings follow He et al. (2025). The only modifications are those required by our hardware (effective batch size and precision) and the learning-rate multipliers introduced for SAB and TPE.
The DeepSeek-LLM-7B-Chat and Qwen2.5-7B-Instruct experiments share the same training configuration. The only differences are the base model itself and the resulting number of SAB parameters, which depends on the model architecture.
H Implementation Details
Metadata pipeline. Each serialized example is accompanied by a per-cell metadata record, including the row index, column index, cell text, top-header path, left-header path, and cell type, where the cell type is one of {corner, header-top, header-
| SAB | TPE | True | False | |
|---|---|---|---|---|
| DeepSeek-LLM-7B-Chat | ||||
| TableLoRA | — | — | 84.6 | 67.1 |
| DeepTable | ✓ | × | 84.1 (-0.5) | 68.5 (+1.4) |
| DeepTable | × | ✓ | 87.4 (+2.8) | 61.3 (-5.8) |
| DeepTable | ✓ | ✓ | 86.8 (+2.2) | 63.2 (-3.9) |
| Qwen2.5-7B | ||||
| TableLoRA | — | — | 86.6 | 75.7 |
| DeepTable | ✓ | × | 86.6 (+0.0) | 76.0 (+0.3) |
| DeepTable | × | ✓ | 86.6 (+0.0) | 74.7 (-1.0) |
| DeepTable | ✓ | ✓ | 86.6 (+0.0) | 75.6 (-0.1) |
Table 11: TabFact four-seed accuracy (%) by gold label. Values in parentheses denote the differences from the corresponding TableLoRA baseline. The TabFact test set contains 6,425 True and 6,354 False examples.
left, data}. During batching, the data collator assigns each cell's row and column indices to all tokens belonging to that cell to construct the attention masks for SAB. Likewise, the corresponding top-and left-header path-ID sequences are assigned to all tokens for TPE. Variable-length header paths are padded to a common depth within each batch.
Attention implementation and load order. SAB is implemented by patching both the eager and SDPA attention implementations of the underlying LLMs. For DeepSeek-LLM-7B-Chat, we modify LlamaAttention and LlamaSdpaAttention; for the Qwen2.5-7B cross-model experiments, we modify Qwen2Attention and Qwen2SdpaAttention. For grouped-query attention, the structural bias is added to the attention logits after the repeat_kv expansion, with an independent learnable bias for each query head.
In the eager implementation, the structural bias is added to the pre-softmax attention logits immediately after applying the causal mask. In the SDPA implementation, the same bias is incorporated into the additive attention-mask argument.
| Configuration | Value | |
|---|---|---|
| Model | Base model | DeepSeek-LLM-7B-Chat (30L, 32H); Qwen2.5-7B-Instruct (28L, 28Q/4KV heads, GQA); Llama-3-8B-Instruct (32L, 32Q/8KV heads, GQA) |
| LoRA / 2D-LoRA rank | 8 | |
| Adapted modules | key and value projectionsDeepSeek: 1,920 scalars (30×32×2); | |
| SAB parameters | Qwen2.5: 1,568 (28×28×2);Llama-3: 2,048 (32×32×2) | |
| TPE vocabulary | 16,793 nodes (HiTab) | |
| Training | Base learning rate | , cosine |
| Add-on LR mult. λ | 1000 (shared across backbones) | |
| Epochs | 3 (all datasets) | |
| Serialization cutoff | 2000 (4000 for TabFact) | |
| Effective batch size | 16 | |
| Precision | bf16 | |
| Seeds | 0, 1, 2, 3 | |
| Total training compute | ~3,041 GPU-hours (2×L40S) across 202 runs | |
| Inference | Hardware | 2× NVIDIA L40S (48 GB) |
| Decoding | greedy |
Table 12: Training hyperparameters used in all experiments. The Qwen2.5-7B and Llama-3-8B-Instruct configurations differ from the DeepSeek configuration only in the base model and the resulting number of SAB parameters.
The attention patch must be installed after loading TableLoRA's prompt encoder; otherwise, the custom data collator that provides the row and column indices is overwritten. FlashAttention is disabled because it does not provide an interface for injecting arbitrary additive attention biases, resulting in approximately a 22% reduction in training throughput.
Zero-initialization verification. As a sanity check, we evaluate a fixed validation batch using both TableLoRA and the full SAB + TPE model before any optimization (step 0). The two models produce bit-identical logits, confirming that the additional parameters introduce no changes before training and that all observed differences arise solely from subsequent parameter updates.