PixT3: Pixel-based Table-To-Text Generation

Iñigo Alonso, Eneko Agirre, Mirella Lapata

Abstract

Traditional table-to-text models rely on linearization, converting 2D tables into 1D strings. This process often leads to structural loss and exceeds context limits for large tables. PixT3 addresses these challenges by treating table-to-text generation as a visual recognition task. By rendering tables as images and utilizing a Vision Transformer (ViT) encoder, PixT3 maintains spatial relationships and demonstrates remarkable robustness to table size. Experimental results show that PixT3 significantly outperforms state-of-the-art text-based models in loosely controlled and open-ended settings, particularly as table complexity increases.

Introduction: The Linearization Bottleneck

Most contemporary AI models process tables by "reading" them—a technique known as linearization. This involves flattening a multi-dimensional grid into a continuous string of text. While effective for small, simple tables, this approach encounters a "linearization bottleneck" when faced with real-world data.

Linearization introduces two primary hurdles. First, it is highly verbose; complex tables can quickly exceed a model's context window, leading to data truncation. Second, it destroys the inherent 2D spatial relationships that humans use to interpret tables. When a model loses track of which value corresponds to which header, "structural faithfulness errors" occur, where the model hallucinates relationships that do not exist in the source data. PixT3 proposes a shift from reading to "seeing" tables to preserve these vital structural cues.

Methods: A Vision-Centric Approach

PixT3 is an image-encoder-text-decoder model built upon the Pix2Struct framework, specifically designed for visually-situated language tasks.

The PixT3 architecture processes tables as image patches through a ViT encoder and Transformer decoder.

The model's technical pipeline includes:

  • Table-to-Image Rendering: Tables, along with relevant metadata like page titles, are rendered as images.
  • Structure Learning Curriculum (SLC): To teach the model the underlying logic of table structures, the authors implemented a self-supervised intermediate task. The model must identify all cells within the same row and column as a highlighted target cell. This training reduced structural faithfulness errors from 23% to 7%.
  • Adaptive Scaling: To manage massive tables, PixT3 uses a $\gamma$-scaling strategy that balances image down-scaling with strategic truncation to fit within a 2,048-patch limit without sacrificing readability.

Performance and Robustness

The model was evaluated using the ToTTo benchmark for controlled generation and a modified Logic2Text dataset to test generalization on complex reasoning tasks.

A key finding is PixT3's stability across varying table sizes. While text-based models like T5, Lattice, and CoNT experience a sharp decline in performance as tables grow larger, PixT3's visual approach allows it to maintain high accuracy. In "loosely controlled" settings—where the model is given the full table but must identify relevant cells—PixT3 nearly doubled the performance of its text-based competitors, achieving 45.4 BLEU compared to 23.9 for the next best model.

Performance comparison (PARENT score) across different table size groups, showing PixT3's robustness to large tables compared to text-based models.

Conclusion and Future Directions

By moving from tokens to pixels, PixT3 provides a more faithful and robust solution for generating text from large-scale, complex tables. However, challenges remain. Extremely large tables (representing approximately 16% of Wikipedia tables) still require truncation that can impact patch readability. Furthermore, while PixT3 excels at descriptive tasks, it still faces gaps in complex logical reasoning, such as identifying ordinal rankings. Future work may involve integrating explicit planning components to enhance the model's reasoning capabilities before the generation phase.

Summary updated

BibTeX
@inproceedings{alonso2024pixt,
  author = {Iñigo Alonso and Eneko Agirre and Mirella Lapata},
  title = {{PixT3: Pixel-based Table-To-Text Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.364},
}
Figure