UniRec-0.1B: Unified Text and Formula Recognition with 0.1B Parameters
Yongkun Du, Zhineng Chen, Yazhen Xie, Weikang Bai, Hao Feng, Wei Shi, Yuchen Su, Can Huang, Yu-Gang Jiang
TL;DR
The paper tackles the efficiency bottleneck of unified text-and-formula recognition in document parsing by introducing UniRec-0.1B, a lightweight 0.1B-parameter model trained on UniRec40M. It proposes two novel techniques—Hierarchical Supervision Training (HST) to capture multi-level layout structure and Semantics-Decoupled Tokenizer (SDT) to remove cross-modality semantic entanglement—enabling accurate recognition at character, word, line, and paragraph levels. Extensive evaluation on UniRec-Bench and OmniDocBench shows UniRec-0.1B achieving competitive or superior accuracy while offering 2–9× speedups compared to large VLM-based or multi-stage systems. The work provides a practical, scalable solution for real-world document parsing and highlights future directions for enhancing fine-grained and cross-domain performance.
Abstract
Text and formulas constitute the core informational components of many documents. Accurately and efficiently recognizing both is crucial for developing robust and generalizable document parsing systems. Recently, vision-language models (VLMs) have achieved impressive unified recognition of text and formulas. However, they are large-sized and computationally demanding, restricting their usage in many applications. In this paper, we propose UniRec-0.1B, a unified recognition model with only 0.1B parameters. It is capable of performing text and formula recognition at multiple levels, including characters, words, lines, paragraphs, and documents. To implement this task, we first establish UniRec40M, a large-scale dataset comprises 40 million text, formula and their mix samples, enabling the training of a powerful yet lightweight model. Secondly, we identify two challenges when building such a lightweight but unified expert model. They are: structural variability across hierarchies and semantic entanglement between textual and formulaic content. To tackle these, we introduce a hierarchical supervision training that explicitly guides structural comprehension, and a semantic-decoupled tokenizer that separates text and formula representations. Finally, we develop a comprehensive evaluation benchmark covering Chinese and English documents from multiple domains and with multiple levels. Experimental results on this and public benchmarks demonstrate that UniRec-0.1B outperforms both general-purpose VLMs and leading document parsing expert models, while achieving a 2-9$\times$ speedup, validating its effectiveness and efficiency. Codebase and Dataset: https://github.com/Topdu/OpenOCR.
