读见

基于 Nemotron 3.5 Parse 构建:开放数据、微调与更快推理

原题Building on Nemotron 3.5 Parse: Open Data, Fine-Tuning, and Faster Inference

约 6 分钟约 1,312 字原文英文已翻译

读前速览

4 个要点

本文详细介绍 NVIDIA 如何通过合成数据、SFT 和 RLVR 训练,以及 DFlash2 投机解码改进 Nemotron 3.5 Parse 模型,从而加快文档解析并提升图表和表格提取效果。

  1. Nemotron 3.5 Parse 使用合成数据集训练文档理解能力

    三个开源数据集——Synthetic Charts V1(9.98M 个样本)、Synthetic Tables V1(1M 个样本)和 OCR Synthetic Multilingual v2(7.9M 个样本)——通过已知的真实标注数据,帮助模型学习图表与表格提取以及多语言文档处理。

  2. 先进行 SFT、再进行 RLVR 的两阶段训练,能够提升提取质量和一致性

    SFT 为文本、布局、表格、图表和多语言文档建立基础能力;使用 GRPO 的 RLVR 则将被标记为循环的输出减少 77%,并使表格得分提高 +5.18、图表得分提高 +4.15。

  3. DFlash2 投机解码显著提升推理速度

    DFlash2 投机解码器最多可提前提出 32 个 token,平均有 14 个草稿 token 被接受。与 Parse 2.0 相比,在并发数为 1 时吞吐量提升 7.62 倍,在并发数为 512 时提升 1.52 倍。

  4. 多轮解析策略在吞吐量与复杂区域的准确性之间进行权衡

    单轮解析提供基准结果;双轮解析通过裁剪细化密集表格和图表细节;三轮解析则增加独立区域检测进行验证。与单轮解析相比,后两种策略在 ParseBench 上提升 2.18-2.46 分。

完整摘要

NVIDIA 推出 Nemotron 3.5 Parse,这是一款可将页面图像转换为结构化数据、供 RAG 和智能体使用的文档模型。本文介绍了合成训练数据集(Synthetic Charts V1、Synthetic Tables V1、OCR Synthetic Multilingual v2)如何帮助模型更好地提取图表和表格,并处理多语言文档。训练分为两个阶段:先通过监督微调(SFT)建立基础能力,再使用 GRPO 进行可验证奖励强化学习(RLVR),以提高准确性和一致性。架构改进包括 NaViT 动态输入、GQA-8 注意力机制和 DFlash2 投机解码;在并发数为 1 时,吞吐量提升 7.62 倍,在并发数为 512 时提升 1.52 倍。本文还提供了针对自定义文档类型的微调方案,并以牙科表单为例展示:经过 RLVR 后,pass@1 准确率达到 96.58%。

目录 · 4 节

查看原文
Enterprise + Article
Published November 26, 2026

我们最近发布了 NVIDIA Nemotron 3.5 Parse,这是一款紧凑型文档模型,可将页面图像转换为结构化数据,供检索增强生成(RAG)和智能体使用。We recently released NVIDIA Nemotron 3.5 Parse, a compact document model that turns page images into structured data for retrieval-augmented generation (RAG) and agents.

现在,我们在这一版本的基础上,推出了合成训练数据集、微调方案,以及用于加速推理的 DFlash2 推测器。我们还分享了 Parse 3.5 的训练方法:先通过监督微调教授文档理解,再利用强化学习提升准确性、一致性和可靠完成任务的能力。Now we’re building on that release with synthetic training datasets, a fine-tuning recipe, and a DFlash2 speculator for faster inference. We’re also sharing how we trained Parse 3.5: first teaching document understanding through supervised fine-tuning, then using reinforcement learning to improve accuracy, consistency, and reliable completion.

Parse 3.5 的产出内容 What Parse 3.5 produces

Parse 可按阅读顺序提取文档页面中的内容,将内容归类为标题、段落、表格和图表等类别,并返回用于定位内容的边界框。表格和图表会转换为结构化记录,为下游文档处理应用提供支持。Parse extracts content from pages of documents into reading order, assigns content classes such as headings, paragraphs, tables, and charts, and returns bounding boxes that locate the content. Tables and charts become structured records that can power downstream document processing applications.

An operations brief with predicted regions on the left and its structured extraction on the right.

图 1. 合成运营简报中的实际模型输出,展示页面与其结构化表示之间的关联。Figure 1. Actual model output from a synthetic operations brief, showing the connection between the page and its structured representation.

Parse 的这一最新版本显著增强了读取图表和表格的能力,尤其是在更困难、含糊不清的情况下。例如,柱状图或其他没有标注数值的图表。模型能够通过观察坐标轴和柱子的高度来推断数值。表格尤其棘手,因为其结构意义重大,行或列稍有错位,就可能彻底改变解读结果和含义。这些进步在很大程度上得益于合成数据生成:我们将已知真实结果的图表和表格渲染成各种形式,再训练模型逆向还原这一过程。This latest version of Parse significantly extends its ability to read charts and tables, especially in more difficult and ambiguous cases. For example, bar charts or other plots that do not have any marked numeric values. The model is able to infer values by looking at the axes and height of the bar to derive these. Tables can be especially tricky because the structure is so meaningful, a shifted row or column can totally change the interpretation and meaning. These advancements have been largely powered by synthetic data generation, rendering variations of charts and tables with known ground truth and then training our model to reverse this process.

我们将开源 Parse 3.5 训练中使用的三个数据集:We are open-sourcing three datasets used in the Parse 3.5 training:

  • 合成图表 V1 — 998 万个示例:用于学习类别、系列和数值的渲染图表及结构化注释。

    Synthetic Charts V1 — 9.98M examples: rendered charts and structured annotations for learning categories, series, and numerical values.

  • 合成表格 V1 — 100 万个示例:渲染后的 HTML 表格,其目标内容保留行、列、表头和单元格之间的关系。

    Synthetic Tables V1 — 1M examples: rendered HTML tables with targets that preserve rows, columns, headers, and cell relationships.

  • OCR 合成多语言版 v2 — 790 万个样例:采用 Parse 格式目标的合成文档页面,涵盖多种字体和版式,用于多语言 OCR 和结构化页面阅读。

    OCR Synthetic Multilingual v2 — 7.9M examples: synthetic document pages with Parse-format targets across varied fonts and layouts, for multilingual OCR and structured page reading.

每个版本都包含图像、标注、生成过程文档和训练格式。使用这些配对数据对文档模型进行微调,或针对特定文档类型或语言创建新的变体。Each release includes images, annotations, generation documentation, and the training format. Use these pairs to fine-tune document models or create new variations for a target document type or language.

A bar chart without printed bar values, alongside the released model’s extracted values of 18, 27, 39, and 54.

图 2. Parse 根据图表几何结构还原出 18、27、39 和 54Figure 2. Parse recovers 18, 27, 39, and 54 from the chart geometry

SFT 教授能力;RLVR 提升一致性 SFT teaches the capability; RLVR improves consistency

我们通过两个阶段的训练来训练 Parse 3.5。监督微调(SFT)涵盖文本、版面布局、表格、图表和多语言文档。通过学习预测结构化目标,模型建立了读取页面并表征其内容的通用能力。We trained Parse 3.5 with two phases of training. Supervised fine-tuning (SFT) spanning text, layout, tables, charts, and multilingual documents. Learning to predict structured targets established the general capability of reading a page and representing its contents.

随后,我们继续采用组相对策略优化(GRPO)进行可验证奖励强化学习(RLVR)。奖励用于评估采样提取结果的质量。例如,图表提取如果能够还原正确的数据系列和值、生成可用的结构,并避免反复生成相同内容,就能获得更高奖励。We then continued with reinforcement learning with verifiable rewards (RLVR), using Group Relative Policy Optimization (GRPO). Rewards check the quality of sampled extractions. For example, a chart extraction can earn a better reward for recovering the correct series and values, producing a usable structure, and finishing without repeatedly generating the same content.

一个较难的页面可以有多种有效表示形式。这些检查让模型能够灵活地找到正确答案,而不要求采用某一种确切的 token 序列,同时还能抑制循环和未完成的输出。A difficult page can have several valid representations. These checks give the model flexibility to find a correct answer without prescribing one exact token sequence, while discouraging looping and unfinished output.

A matched training comparison showing extraction gains after GRPO and fewer repetition flags and token-cap hits.

图 3. 在评估设置一致的条件下,对 SFT 和 GRPO 进行受控比较。这些是开发阶段的检查点,与最终发布的模型相互独立。循环次数采用重复检测。方法。Figure 3. A controlled comparison of SFT and GRPO with matched evaluation settings. These are development checkpoints, separate from the final released model. Loop counts use a repetition check. Methods.

匹配对比结果表明了这一改进的成效:被标记为循环问题的输出从 126 页降至 29 页,减少约 77%;达到 9,000 个 token 上限的输出从 185 页降至 35 页。总体得分从 66.24 提升至 71.38,其中表格得分提高了 5.18 分,图表得分提高了 4.15 分。The matched comparison shows the benefit: loop-flagged outputs fall from 126 to 29 pages—about 77% fewer—and outputs reaching the 9,000-token limit fall from 185 to 35. Overall score improves from 66.24 to 71.38, including +5.18 points in tables and +4.15 in charts.

通过架构和 DFlash2 加速推理 Faster inference through architecture and DFlash2

解析器必须为每个页面生成大量文本和结构信息。除了训练工作之外,我们还优化了 Parse 3.5 处理图像和解码这些输出的方式。A parser must generate substantial text and structure for every page. Alongside the training work, we optimized how Parse 3.5 processes images and decodes those outputs.

Component Parse 2.0 Parse 3.5
Page preprocessing Fixed 2048 × 1664 canvas NaViT dynamic rectangular inputs
Image-to-text connection Encoder–decoder cross-attention Compressed visual tokens as a causal prefix
Decoder self-attention Multi-head attention GQA-8: 16 query heads, 8 key/value heads
Speculative decoding One-token lookahead (MTP); optional DFlash2

NaViT 预处理会根据页面调整输入形状。视觉适配器会压缩图像序列,文本解码器则将其作为前缀进行处理,从而取代编码器—解码器交叉注意力。采用八个键/值头的分组查询注意力(GQA-8)可减少解码器注意力缓存的内存占用。NaViT preprocessing adapts the input shape to the page. A visual adapter compresses the image sequence, and the text decoder consumes it as a prefix, replacing encoder–decoder cross-attention. Grouped-query attention with eight key/value heads (GQA-8) reduces the decoder’s attention-cache memory.

内置的多 token 预测(MTP)头提供一个 token 的前瞻。我们的 DFlash2 推测器更进一步:一个小型草稿模型最多可提前提出 32 个 token,Parse 会一并验证这些提议。在实测的 32-token 配置中,平均每次接受约 14 个草稿 token;每个验证步骤可推进约 15 个输出 token,其中包括目标 token。The built-in multi-token prediction (MTP) head supplies one-token lookahead. Our DFlash2 speculator goes further: a small draft model proposes up to 32 tokens ahead, and Parse verifies the proposals together. In the measured 32-token configuration, it averages about 14 accepted draft tokens, or roughly 15 output tokens of progress per verification step including the target token.

Throughput curves comparing Parse 2.0 with Parse 3.5 base, MTP, and DFlash2.

图 4. 单块 H200 上的原生单遍吞吐量,使用 BF16 和相同的 2,078 个页面。Parse 2.0 每个数据点进行一次试验;Parse 3.5 显示三次试验的中位数。箭头表示从 Parse 3.5 base 到 DFlash2 的提升。测量详情。Figure 4. Native single-pass throughput on one H200, BF16, using the same 2,078 pages. Parse 2.0 uses one trial per point; Parse 3.5 shows three-trial medians. Arrows show the gain from Parse 3.5 base to DFlash2. Measurement details.

在单张 H200、BF16 下的原生单遍基准测试中,与禁用推测解码的 Parse 3.5 相比,DFlash2 在并发度为 1 时将吞吐量提升了 7.62×,在并发度为 512 时提升了 1.52×。在并发度为 512 时,Parse 3.5 不启用推测解码的吞吐量为 13.48 页/秒,搭配 DFlash2 时为 20.44 页/秒,而 Parse 2.0 为 2.98 页/秒。两者分别是 Parse 2.0 吞吐量的 4.53× 和 6.86×。In the native single-pass benchmark on one H200 in BF16, DFlash2 increased throughput 7.62× at concurrency 1 and 1.52× at concurrency 512, compared with Parse 3.5 with speculative decoding disabled. At 512, Parse 3.5 reaches 13.48 pages/s without speculation and 20.44 pages/s with DFlash2, versus 2.98 for Parse 2.0. Those are 4.53× and 6.86× the Parse 2.0 throughput, respectively.

快速解析让我们能够重新处理困难区域。先进行整页预测,然后在文档需要的地方进行有针对性的重新处理:Fast parsing gives us room to revisit difficult regions. Start with a full-page prediction, then add focused reprocessing where the document needs it:

  1. 单次处理——对整个页面进行一次解析,提取文本、布局、表格和图表。

    Single pass - Parse the full page once for text, layout, tables, and charts.

  2. 双重处理——用于内容密集的表格和图表细节。裁剪解析器识别出的表格和图表区域,以更高的细节级别重新解析,并将优化结果合并到页面输出中。

    Double pass - use for dense tables and small chart details. Crop the table and chart regions found by the parser, re-parse them at higher detail, and merge the refinements into the page output.

  3. 三轮处理——不要只使用模型进行整页解析得到的边界框,而是再让模型以检测模式运行一轮,验证是否已准确定位所有边界框且没有遗漏文本,并在第三轮重新提取发现的任何图表或表格。

    Triple pass - Instead of only using the models full page parsing bounding boxes, use a second pass of the model in detection mode in order to get verification that all boxes have been accurately found and text has not been missed and re-extract any found charts or tables in a third pass

Single-pass page parsing, double-pass crop refinement, and triple-pass refinement with an independent region detector.

图 5. 额外的阶段会将计算集中在难以处理的区域。多个裁剪图可能需要多次请求。Figure 5. Additional stages focus computation on difficult regions. Multiple crops can require multiple requests.

在已发布的参考评测中,双遍和三遍处理相比单遍处理,ParseBench 得分分别提高了 2.18 分和 2.46 分。额外的计算工作让应用能够牺牲部分吞吐量,以便更好地提取困难区域中的内容。参考结果与服务测量。In the published reference evaluation, double and triple pass add 2.18 and 2.46 ParseBench points over single pass. The additional work lets applications trade some throughput for better extraction in difficult regions. Reference results and serving measurements.

将相同的 SFT/RLVR 方法应用于你的文档 Apply the same SFT/RLVR approach to your documents

我们将分享一套 Parse 微调方案,带领开发者完成配对数据生成、NeMo Automodel SFT 和 NeMo RL GRPO,并使用 vLLM 生成候选答案。We are sharing a Parse fine-tuning recipe that takes developers through paired data generation, NeMo Automodel SFT, and NeMo RL GRPO, using vLLM to generate candidate answers.

这个示例使用了一份带有牙位图的合成牙科表单:牙位图是一种显示牙齿、计划进行的治疗项目以及受影响牙面的图表。适配前,Parse 能读取印刷的牙齿编号,却无法识别预期的治疗项目表。SFT 会教它将每颗标记的牙齿与相应的治疗项目及其在牙齿上的位置关联起来。The worked example uses a synthetic dental form with an odontogram: a chart showing teeth, planned procedures, and affected tooth surfaces. Before adaptation, Parse reads the printed tooth numbers but misses the intended procedure table. SFT teaches it to associate each marked tooth with a procedure and its placement on the tooth.

A synthetic dental page, the base model’s tooth-number transcription, and the intended tooth/procedure/surface table.

图 6. 已记录的配方示例:经过 SFT 后,图表的六行均与目标一致。完整图像和原生训练标签。Figure 6. A recorded recipe example: after SFT, all six chart rows match the target. Full image and native training label.

随后,RLVR 进一步提升了准确性和稳定完成任务的能力。在牙科参考测试中,估算的首次尝试成功率(采样 pass@1)从基础模型的 0.00% 提升至 SFT 后的 95.85%,并在 RLVR 后达到 96.58%。RLVR then reinforces accuracy and consistent completion. In the dental reference run, the estimated first-attempt success rate (sampled pass@1) rose from 0.00% for the base model to 95.85% after SFT and 96.58% after RLVR.

Dental sampled pass@1: 95.85% after SFT and 96.58% after RLVR, with the y-axis shown from 90% to 100%

图7. 在同一合成生成器生成的256份留出表单上进行匹配评估,每页包含八个样本。成功须满足以下条件:自然地完成表单、图表内容完全准确,且规范化后的页面文本无误。评估协议。Figure 7. Matched evaluation on 256 held-out forms from the same synthetic generator, with eight samples per page. Success requires natural completion, exact chart content, and error-free normalized page text. Evaluation protocol.

要调整此方案,请提供您自己的图像/标签对和验证器:用于判断提取结果是否正确的检查项。内置的文档奖励组件涵盖文本保真度、边界框、表格、图表事实和完成度。请组合与您的任务相关的组件,添加架构检查,并使用完成度和重复检查来减少循环输出或未完成输出。To adapt the recipe, supply your own image/label pairs and a verifier: checks that determine whether an extraction is correct. The included document reward components cover text fidelity, bounding boxes, tables, chart facts, and completion. Combine the components relevant to your task, add schema checks, and use completion and repetition checks to discourage looping or unfinished output.

我们很高兴看到社区已经为泰语、波斯语/法尔斯语和阿拉伯语扩展并改进了 Parse。我们希望这些额外的数据集和微调方案能够助力这些工作,并推动未来模型的发展。We are excited that the community has extended and improved Parse for Thai, Persian/Farsi, and Arabic already and we hope that these additional datasets and fine-tuning recipes will help encourage these efforts and future models.

感谢 Denis Ovchinnikov 在 vLLM 集成和独立性能验证方面所做的工作,感谢 Oliver Holworthy 改进微调方案的运行时配置与可复现性,也感谢 Bo Liu 提供技术审查。We thank Denis Ovchinnikov for his work on vLLM integration and independent performance validation, Oliver Holworthy for improving the fine-tuning recipe's runtime setup and reproducibility, and Bo Liu for technical review.

值得记下

  1. NVIDIA Nemotron 3.5 Parse 是一款紧凑型文档模型,可将页面图像转换为结构化数据,供检索增强生成(RAG)和智能体使用。
  2. 生成合成数据:渲染带有已知真实标注的图表和表格变体,再训练模型反向还原这一过程。
  3. 被标记为循环的输出从 126 页降至 29 页,减少约 77%;达到 9,000-token 上限的输出则从 185 个降至 35 个。
  4. DFlash2 投机解码器更进一步:小型草稿模型最多提前提出 32 个 token,再由 Parse 一并验证这些提议。
  5. 在牙科参考测试中,估算的首次尝试成功率(抽样 pass@1)从基础模型的 0.00% 提升至 SFT 后的 95.85%,并在 RLVR 后达到 96.58%。