High-Performance Transformers for Table Structure Recognition Need Early Convolutions

ShengYun Peng, Seongmin Lee, Xiaojing Wang, Rajarajeswari Balasubramaniyan, Duen Horng Chau
11/9/2023
cs.CVcs.LG

Official code: poloclub/tsr-convstem (45 stars, MIT, last commit 2026-04-21).

Abstract

Table structure recognition (TSR) aims to convert tabular images into a machine-readable format, where a visual encoder extracts image features and a textual decoder generates table-representing tokens. Existing approaches use classic convolutional neural network (CNN) backbones for the visual encoder and transformers for the textual decoder. However, this hybrid CNN-Transformer architecture introduces a complex visual encoder that accounts for nearly half of the total model parameters, markedly reduces both training and inference speed, and hinders the potential for self-supervised learning in TSR. In this work, we design a lightweight visual encoder for TSR without sacrificing expressive power. We discover that a convolutional stem can match classic CNN backbone performance, with a much simpler model. The convolutional stem strikes an optimal balance between two crucial factors for high-performance TSR: a higher receptive field (RF) ratio and a longer sequence length. This allows it to "see" an appropriate portion of the table and "store" the complex table structure within sufficient context length for the subsequent transformer. We conducted reproducible ablation studies and open-sourced our code at https://github.com/poloclub/tsr-convstem to enhance transparency, inspire innovations, and facilitate fair comparisons in our domain as tables are a promising modality for representation learning.

View on arXivView PDF

Code Implementations(1)

MIT

High-Performance Transformers for Table Structure Recognition Need Early Convolutions

453Python, MakefileOct 5, 20236 months agoMIT
receptive-fieldtable-structure-recognitiontransformers

Similar Papers

Cite this paper

@article{peng2023highperformance,
  title  = {High-Performance Transformers for Table Structure Recognition Need Early Convolutions},
  author = {ShengYun Peng and Seongmin Lee and Xiaojing Wang and Rajarajeswari Balasubramaniyan and Duen Horng Chau},
  year   = {2023},
  eprint = {2311.05565},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.05565v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.05565.svg)](https://codeofpaper.com/paper/2311.05565)

Discussion