UniTable: Towards a Unified Framework for Table Recognition via Self-Supervised Pretraining
ShengYun Peng, Aishwarya Chakravarthy, Seongmin Lee, Xiaojing Wang, Rajarajeswari Balasubramaniyan, Duen Horng Chau
TL;DR
UniTable tackles the challenge of table recognition by unifying the training paradigm and objective into a single language‑modeling framework that ingests raw tabular images and outputs a token sequence representing table structure, cell bbox, and content as HTML. It combines self‑supervised pretraining of the visual encoder on unannotated tabular images with a unified finetuning stage, enabling the model to perform all TSR tasks without task‑specific heads or pdf post‑processing. The approach achieves state‑of‑the-art performance on four large TSR datasets, surpassing prior TSR methods and general vision‑language models, and generalizes to pdf inputs converted to images. The authors release open‑source code and a Jupyter notebook to reproduce results and facilitate practical use via a HuggingFace API.
Abstract
Tables convey factual and quantitative data with implicit conventions created by humans that are often challenging for machines to parse. Prior work on table recognition (TR) has mainly centered around complex task-specific combinations of available inputs and tools. We present UniTable, a training framework that unifies both the training paradigm and training objective of TR. Its training paradigm combines the simplicity of purely pixel-level inputs with the effectiveness and scalability empowered by self-supervised pretraining from diverse unannotated tabular images. Our framework unifies the training objectives of all three TR tasks - extracting table structure, cell content, and cell bounding box - into a unified task-agnostic training objective: language modeling. Extensive quantitative and qualitative analyses highlight UniTable's state-of-the-art (SOTA) performance on four of the largest TR datasets. UniTable's table parsing capability has surpassed both existing TR methods and general large vision-language models, e.g., GPT-4o, GPT-4-turbo with vision, and LLaVA. Our code is publicly available at https://github.com/poloclub/unitable, featuring a Jupyter Notebook that includes the complete inference pipeline, fine-tuned across multiple TR datasets, supporting all three TR tasks.
