TL;DR
Table Structure Recognition (TSR) models traditionally rely on heavy CNN backbones, while pure Vision Transformers (ViTs) with linear projections suffer severe performance drops. This paper demonstrates that a lightweight "convolutional stem" (ConvStem) strikes the perfect balance—matching state-of-the-art CNN performance while cutting computational costs (MACs) nearly in half and reducing model parameters.
What Problem Does This Paper Address?
Table Structure Recognition (TSR) converts images of tables into machine-readable formats like HTML or LaTeX. Current state-of-the-art models typically use a hybrid architecture: a heavy convolutional neural network (CNN) backbone (like ResNet) as a visual encoder, paired with a Transformer textual decoder.
While effective, this hybrid setup has a major bottleneck. The complex CNN encoder accounts for nearly half of the total model parameters, significantly slowing down both training and inference. Naturally, one might wonder: why not swap the heavy CNN for a simple linear projection layer, just like a standard Vision Transformer (ViT)?
The authors show that doing so causes a massive performance drop (~6 percentage points overall, and ~8 percentage points on complex tables). This paper investigates why pure linear projections fail at TSR and proposes a lightweight alternative that doesn't sacrifice accuracy.
Methods
The authors evaluate three visual encoder options within an image-to-text TSR pipeline:
- Standard CNN Backbone: ResNet-18, ResNet-34, and ResNet-50 baselines.
- Linear Projection: A vanilla ViT-style encoder that flattens image patches directly into a sequence.
- Convolutional Stem (ConvStem): The proposed lightweight alternative. Instead of dozens of CNN layers, ConvStem uses a minimal stack of five stride-2, $3 \times 3$ convolutions, followed by a single $1 \times 1$ convolution to match the transformer's feature dimension.
The extracted visual features from these encoders are then fed into a standard four-layer Transformer decoder to autoregressively generate HTML table tags.
Datasets
The models were trained and evaluated on PubTabNet, one of the largest publicly available TSR datasets containing approximately 509,000 annotated tabular images. Performance is measured using the Tree-Edit-Distance-Based Similarity (TEDS) score, which converts HTML tags into a tree structure to compute structural accuracy.
Key Insights and Ideas
- The RF Ratio vs. Sequence Length Tradeoff: High-performance TSR requires a delicate balance between two factors: a high Receptive Field (RF) ratio (how much of the table the model can "see" at once) and a long sequence length ($N$, the context length available to the transformer).
- The Linear Projection Bottleneck: In a standard linear projection, the RF ratio and sequence length are inversely correlated. To get a larger receptive field, you must use larger image patches, which inherently shortens the sequence length. This restriction caps its performance.
- Decoupling with ConvStem: Early convolutions inject a crucial inductive bias (locality). ConvStem successfully decouples the RF ratio from the sequence length. It achieves a medium-sized receptive field to capture ample context while maintaining a long sequence length for the subsequent transformer decoder.
Key Results
- Bridging the Performance Gap: On the PubTabNet dataset, ConvStem achieved an overall TEDS score of 96.53%, slightly outperforming the ResNet-18 baseline (96.45%) and drastically beating the Linear Projection baseline (90.45%).
- Efficiency Gains: ConvStem reduced the model's computational complexity (MACs) by 19.86G (from 42.22G down to 22.36G) and shaved off 4.62M parameters compared to ResNet-18.
- Qualitative Superiority: Attention map visualizations revealed that ResNet-18 frequently miscounts columns in complex spanning cells, and Linear Projection exhibits scattered attention. ConvStem distributes attention evenly across complex structures, leading to perfect table reconstructions.
Limitations and Future Work
While the paper does not include a dedicated limitations section, the authors note that simplifying the visual encoder is a crucial stepping stone for Self-Supervised Learning (SSL) in document layout analysis. Because linear projections struggle with the structural complexities of tables, ConvStem provides a lightweight, highly performant visual processor that could unlock effective SSL pre-training strategies for table representation learning in the future.
Summary updated