All models

UniTable

A table recognition Transformer that predicts table structure, cell boxes and cell content as token sequences.

Documents and OCR · 2,178 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 2,178 operations (13 KB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
381.6M
Operations
2,178
Framework
PyTorch
Recurrent
No
Published
2024
Cited by
21 (as of 16 November 2026)
Authors
ShengYun Peng, Aishwarya Chakravarthy, Seongmin Lee and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21204
Graph hash
4ca0c5fe8d1818ab317a9970dd774b0e633a974ea63a98ad7548dbad8129c9aa
Skeleton hash
43461185239dbd59d671f6c705e8c8d02ba26e790d67937f6ecb20705db01631
Architecture hash
c33d1c61bb1524a08b36f74d53f588b7b5ff77f69c95201d7b6207c35adb7f6a
Diagram SHA-256
9eb6c4d37f29d90087d7ff13a1e081359468df19c61f01acd0de750e4a121134
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

UniTable is a table recognition model that reads an image of a table and extracts its structure, cell content and cell bounding boxes, treating all three tasks as language modeling. Table structure is predicted as discrete HTML table tags, and each bounding box coordinate is discretized into an integer, an approach the paper says was inspired by Pix2Seq.

The architecture has two modules, a visual encoder and a task decoder. The authors keep a Transformer whose linear projection divides the image into patches, and rely on self-supervised pretraining to close the performance gap. In pretraining, approximately 40% of the patch sequence is replaced with a masked token and the encoder learns to predict the visual tokens of the masked region, with a VQ-VAE used to train the visual codebook.

This model follows the large configuration, for which the paper reports 125M parameters with 12 encoder layers, 12 attention heads and a hidden size of 768. Its task decoder has 4 decoder layers. The paper evaluates on ICDAR 2019 B2 Modern, PubTabNet, FinTabNet and SynthTabNet.

Key idea. UniTable unifies the training paradigm and training objective of table recognition, casting structure, cell content and cell bounding box extraction as language modeling after self-supervised pretraining.

  • unitable
  • table recognition
  • table structure recognition
  • table image to html
  • cell bounding box
  • table cell content
  • document table parsing
  • self-supervised pretraining

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{peng2024unitableunifiedframeworktable,
      title={UniTable: Towards a Unified Framework for Table Recognition via Self-Supervised Pretraining}, 
      author={ShengYun Peng and Aishwarya Chakravarthy and Seongmin Lee and Xiaojing Wang and Rajarajeswari Balasubramaniyan and Duen Horng Chau},
      year={2024},
      eprint={2403.04822},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2403.04822}, 
}