[论文解读] Nougat: Neural Optical Understanding for Academic Documents
Nougat 是一个编码器-解码器的视觉变换器,能够对文档页执行端到端 OCR,生成轻量级标记文本,在一个大型 arXiv/PMC 数据集上训练,并附带代码和模型发布。
Scientific knowledge is predominantly stored in books and scientific journals, often in the form of PDFs. However, the PDF format leads to a loss of semantic information, particularly for mathematical expressions. We propose Nougat (Neural Optical Understanding for Academic Documents), a Visual Transformer model that performs an Optical Character Recognition (OCR) task for processing scientific documents into a markup language, and demonstrate the effectiveness of our model on a new dataset of scientific documents. The proposed approach offers a promising solution to enhance the accessibility of scientific knowledge in the digital age, by bridging the gap between human-readable documents and machine-readable text. We release the models and code to accelerate future work on scientific text recognition.
研究动机与目标
- 动机:需要从 PDF 和扫描书籍中恢复语义结构,尤其是数学公式。
- 提出一种无需 OCR 的视觉文档理解方法,将页面图像转换为标记文本。
- 创建并发布用于科学文档标记生成的成对数据集和预训练模型。
提出的方法
- 编码器:Swin Transformer 将页面图像处理为潜在补丁嵌入。
- 解码器:基于 Transformer 的自回归生成器(受 Donut 和 mbART 启发)将嵌入转换为标记词汇。
- 训练:使用 AdamW 对批次进行端到端优化,训练周期为 3 个 epoch,序列长度较长(S=4096),推理采用贪婪解码。
- 数据增强:图像畸变和真实标记扰动,以模拟扫描并降低重复崩溃。
- 数据集构建:通过 LaTeXML 预处理和页面分割对齐,从 arXiv、PMC 和 Industry Documents Library 自动生成成对数据。
- 重复处理:推理阶段的反重复增强和启发式重复检测。
![Figure 1: Our simple end-to-end architecture followin Donut [ 28 ] . The Swin Transformer encoder takes a document image and converts it into latent embeddings, which are subsequently converted to a sequence of tokens in a auto-regressive manner](https://ar5iv.labs.arxiv.org/html/2308.13418/assets/x1.png)
实验结果
研究问题
- RQ1无需 OCR 的视觉 Transformer 是否能够将文档页图像准确转换为包含文本、数学公式和表格的结构化标记?
- RQ2该模型在科学文献中的纯文本、数学表达式和表格上的表现如何?
- RQ3模型规模(250M 与 350M 参数)和解码策略对精度与速度有何影响?
- RQ4哪些数据与增强策略可以在无外部 OCR 工具的情况下实现端到端学习?
主要发现
- Nougat small(250M)在各模态上实现强统一性能,在 arXiv 测试集上对纯文本和数学公式获得较高分数。
- Nougat base(350M)进一步提升纯文本和数学结果,在所提出的模型中实现最佳总体指标。
- 纯文本输出在各模型上约达到 91.0–91.2 BLEU 和 95.3–95.7 F1,表明文本恢复具有鲁棒性。
- 数学模态仍具挑战性,分数低于纯文本,原因是 LaTeX 与方程表示的歧义,但相较基线有改进。
- 表格方面获得中等程度的性能提升,BLEU 和 F1 通常低于纯文本,凸显了从方程和表中提取结构化内容的难度。
- 域内性能(arXiv)显示所提模型在大多数指标上超越 GROBID 和基于 OCR 的基线。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。