TL;DR
This paper introduces TRivia, a novel self-supervised fine-tuning framework for Vision-Language Models (VLMs) to perform table recognition (TR) directly from unlabeled images. TRivia leverages a question-answering (QA) based reward mechanism and reinforcement learning to achieve state-of-the-art performance, even outperforming proprietary models, while remaining open-source and privacy-preserving.
What Problem Does This Paper Address?
Table recognition (TR) is crucial for document digitalization, but it's a challenging task due to the complex structure and information density of tables. Traditionally, TR relies heavily on supervised learning with large amounts of labeled data, which is expensive and time-consuming to acquire. While powerful proprietary VLMs have advanced the field, open-source models often lag behind due to limited labeled data. This creates a bottleneck, especially for privacy-sensitive applications where proprietary cloud-based solutions are not ideal. The paper addresses the need for a method that can effectively learn TR from readily available unlabeled table images, bridging the gap between proprietary and open-source solutions.
Methods
TRivia employs a two-stage approach:
- Adaptive Data Engine (Preparation Stage):
- Response-Consistency Sampling: To identify the most informative unlabeled table images, TRivia generates multiple recognition outputs for each image and measures their structural similarity using the Tree Edit Distance-based Similarity (TEDS) metric. Images with lower consistency scores (indicating more diverse model responses) are prioritized for learning.
- Attention-guided QA Generation: To create supervisory signals, TRivia uses an attention-guided mechanism to generate diverse and verifiable question-answer (QA) pairs for each selected table image. This involves constructing a candidate QA pool, cross-checking their validity (ensuring they can be answered with the image but not without it), and then selecting pairs with minimal visual source overlap to ensure broad table coverage. This process leverages the attention distributions of VLMs to ground questions in specific visual elements.
- Table QA-driven Self-supervised Fine-tuning (In-training Stage):
- Reinforcement Learning (RL) with GRPO: TRivia uses Group Relative Policy Optimization (GRPO) to fine-tune a pre-trained VLM. The table QA pairs generated in the preparation stage serve as a proxy for supervision. The VLM is trained to recognize, structure, and reason over tables by producing outputs that allow a language model to correctly answer these QA pairs. The reward for each recognition output is the average F1-score of the predicted answers across all QA pairs associated with the table.
- Illegal-Sample Filtering: To stabilize training, TRivia filters out recognition results that lead to invalid table structures or cannot be used to generate meaningful answers, thus reducing reward noise.
Datasets
- Training Data:
- Stage 1 (OTSL Tag Warm-up): Aggregated data from PubTabNet, SynthTabNet, and MMTab (approximately 700K instances) to familiarize the model with OTSL syntax.
- Stage 2 (Supervised Fine-Tuning): Approximately 50K real-world table images from open-source datasets and web resources.
- Stage 3 (TRivia Fine-tuning): Approximately 50K unlabeled table images collected from web sources, curated using the response-consistency sampling and attention-guided QA generation.
- Evaluation Benchmarks: OmniDocBench, CC-OCR, and OCRBench v2.
- Other Datasets Mentioned: UniTable, dots.ocr, DeepSeek-OCR, PaddleOCR-VL, MinerU2.5, Gemini 2.5 Pro, GPT-40, GPT-5.
Key Insights and Ideas
- Leveraging Unlabeled Data for TR: The core idea is that even without explicit labels, VLMs can learn effective table recognition by being prompted to answer questions about table content. This bypasses the costly annotation bottleneck.
- QA as a Proxy for Supervision: Table QA is a powerful proxy because it requires understanding both the structure and content of a table, and its correctness can be more easily verified than full HTML markup.
- Response Diversity as a Signal: Images that elicit diverse responses from a VLM are more informative for fine-tuning, as they highlight areas of uncertainty or complexity for the model.
- Attention for Grounding and Diversity: Using attention mechanisms to guide QA generation ensures that questions are visually grounded and semantically diverse, leading to richer supervisory signals.
- TRivia as a Scalable Annotator: The framework can be used to generate high-quality pseudo-labels for unlabeled data, enabling efficient training of smaller models or enhancing existing VLMs.
Key Results
- State-of-the-Art Performance: TRivia-3B, an open-sourced model fine-tuned using the TRivia framework, achieves state-of-the-art performance on three popular benchmarks (OmniDocBench, CC-OCR, OCRBench v2), surpassing both expert TR models and general-purpose VLMs like Gemini 2.5 Pro.
- Robustness: TRivia-3B demonstrates superior robustness on complex table types (rotated, large, borderless, merged cells) compared to existing methods.
- Efficiency: The self-supervised approach significantly reduces reliance on labeled data.
- High-Quality Pseudo-Labels: Distilling knowledge from TRivia-3B into a Stage-2 model yields performance comparable to TRivia-3B itself, confirming the reliability of its generated annotations.
- Resilience to QA Noise: The framework is relatively insensitive to moderate QA corruption, with performance degradation being limited even with 20% incorrect QA pairs.
Limitations and Future Work
- Computational Cost: While self-supervised, the GRPO training stage can be computationally intensive.
- Generalization to Other Tasks: While initial experiments suggest compatibility with multi-task learning (e.g., KIE), a comprehensive study on other OCR-related tasks is needed.
- Future Work: The authors envision TRivia as a foundation for extending self-supervised principles to broader multimodal tasks for learning at scale, and for developing more efficient architectures. They also suggest exploring its use for enhancing OCR capabilities of general-purpose VLMs.
Summary updated