我们最近发布了 NVIDIA Nemotron 3.5 Parse,这是一款紧凑型文档模型,可将页面图像转化为用于检索增强生成(RAG)和智能体的结构化数据。
现在,我们正在基于此次发布,构建合成训练数据集、微调配方以及 DFlash2 推测器,以实现更快的推理速度。我们还分享了 Parse 3.5 的训练过程:首先通过监督微调教授文档理解能力,然后利用强化学习提高准确性、一致性和可靠的内容补全能力。
Parse 3.5 的输出内容
Parse 将文档页面中的内容按阅读顺序提取出来,分配标题、段落、表格和图表等内容类别,并返回定位内容的边界框。表格和图表转化为结构化记录,可为下游文档处理应用提供动力。
图 1. 来自合成作战简报的实际模型输出,展示了页面与其结构化表示之间的联系。
Parse 的最新版本显著扩展了其读取图表和表格的能力,尤其是在更困难和模糊的情况下。例如,没有标记任何数值条形图或其他图表。该模型能够通过查看坐标轴和条形高度来推断这些值。表格可能特别棘手,因为其结构意义重大,行或列的偏移会完全改变解释和含义。这些进步主要得益于合成数据生成,即渲染具有已知真实值的图表和表格变体,然后训练我们的模型逆转这一过程。
我们开源了 Parse 3.5 训练中使用的三个数据集:
每次发布都包含图像、注释、生成文档和训练格式。使用这些配对来微调文档模型,或为目标文档类型或语言创建新的变体。
图 2. Parse 从图表几何结构中恢复出 18、27、39 和 54
SFT 教授能力;RLVR 提高一致性
我们分两个阶段训练了 Parse 3.5。监督微调(SFT)涵盖文本、布局、表格、图表和多语言文档。学习预测结构化目标确立了读取页面并表达其内容的一般能力。
随后,我们继续使用可验证奖励的强化学习(RLVR),采用组相对策略优化(GRPO)。奖励检查采样提取的质量。例如,图表提取可以通过恢复正确的序列和值、生成可用的结构以及在不重复生成相同内容的情况下完成来获得更好的奖励。
一个困难的页面可能有几种有效的表示形式。这些检查赋予模型灵活性,使其能够找到正确答案,而不规定确切的令牌序列,同时 discouraging 循环和不完整的输出。
图 3. SFT 和 GRPO 在匹配评估设置下的受控比较。这些是开发检查点,与最终发布的模型分开。循环计数使用重复检查方法。
匹配的比较显示了益处:被标记为循环的输出从 126 页减少到 29 页——减少了约 77% ——达到 9,000 令牌限制的输出从 185 减少到 35 。总体得分从 66.24 提高到 71.38 ,其中包括表格增加 5.18 分,图表增加 4.15 分。
通过架构和 DFlash2 实现更快的推理
解析器必须为每一页生成大量的文本和结构。除了训练工作外,我们还优化了 Parse 3.5 处理图像和解码这些输出的方式。
| 组件 | Parse 2.0 | Parse 3.5 |
|---|---|---|
| 页面预处理 | 固定 2048 × 1664 画布 | NaViT 动态矩形输入 |
| 图像到文本连接 | 编码器-解码器交叉注意力 | 压缩视觉令牌作为因果前缀 |
| 解码器自注意力 | 多头注意力 | GQA-8:16 个查询头,8 个键/值头 |
| 推测解码 | 单令牌前瞻(MTP);可选 DFlash2 |
NaViT 预处理将输入形状适配至页面。视觉适配器压缩图像序列,文本解码器将其作为前缀消耗,从而取代编码器-解码器的交叉注意力机制。具有八个键/值头(GQA-8)的分组查询注意力(Grouped-query attention)减少了解码器的注意力缓存内存。
内置的多令牌预测(MTP)头提供单令牌的前瞻能力。我们的 DFlash2 推测器更进一步:一个小型草稿模型可提前提出多达 32 个令牌,Parse 则对提议进行联合验证。在测量的 32 令牌配置中,它平均接受约 14 个草稿令牌,或者说每个验证步骤(包括目标令牌)推进了大约 15 个输出令牌。
图 4. 在一块 H200 上使用 BF16 格式、相同 2,078 页数据下的原生单次通过吞吐量。Parse 2.0 每点使用一次试验;Parse 3.5 显示三次试验的中位数。箭头表示从 Parse 3.5 基础版到 DFlash2 的提升。测量详情。
在一块 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 倍。
快速解析为我们重新审视困难区域提供了空间。首先进行全页预测,然后在文档需要的地方添加聚焦的重处理:
单次通过 - 对文本、布局、表格和图表进行一次全页解析。
双次通过 - 用于密集表格和小图表细节。裁剪由解析器找到的表格和图表区域,以更高分辨率重新解析它们,并将优化结果合并到页面输出中。
三次通过 - 不仅使用模型的全页解析边界框,还使用模型的检测模式进行第二次通过,以验证所有框是否被准确找到且文本未被遗漏,并在第三次通过中重新提取任何找到的图表或表格。
图 5. 附加阶段将计算聚焦于困难区域。多次裁剪可能需要多次请求。
在发布的参考评估中,双次通过和三次通过相比单次通过分别增加了 2.18 和 2.46 个 ParseBench 分数。额外的工作使应用程序能够在困难区域以部分吞吐量换取更好的提取效果。参考结果和服务测量。
将相同的 SFT/RLVR 方法应用于您的文档
我们分享了一个 Parse 微调配方,指导开发者完成配对数据生成、NeMo Automodel SFT 和 NeMo RL GRPO,并使用 vLLM 生成候选答案。
该示例使用合成牙科表单与牙位图(odontogram):一种显示牙齿、计划程序和受影响牙面的图表。在适配之前,Parse 能读取打印的牙齿编号,但遗漏了预期的程序表。SFT 教会它将每个标记的牙齿与程序及其在牙齿上的位置关联起来。
图 6. 记录的配方示例:经过 SFT 后,所有六行图表数据均与目标匹配。完整图像和原生训练标签。
RLVR 随后强化准确性和一致性的完成。在牙科参考运行中,估计的首次尝试成功率(采样 pass@1)从基础模型的 0.00% 上升到 SFT 后的 95.85%,并在 RLVR 后达到 96.58%。
图 7. 对来自同一合成生成器的 256 个保留表单进行的匹配评估,每页八个样本。成功需要自然完成、精确的图表内容以及无错误的标准化页面文本。评估协议。
要适配此配方,请提供您自己的图像/标签对和验证器:用于确定提取是否正确的检查器。包含的文档奖励组件涵盖文本保真度、边界框、表格、图表事实和完整性。组合与您任务相关的组件,添加模式检查,并使用完整性和重复性检查来避免循环或未完成的输出。
我们很高兴看到社区已经对泰语、波斯语/法尔西语和阿拉伯语的 Parse 进行了扩展和改进,我们希望这些额外的数据集和微调配方能够鼓励这些努力以及未来的模型发展。
我们要感谢 Denis Ovchinnikov 在 vLLM 集成和独立性能验证方面的工作,感谢 Oliver Holworthy 改进了微调配方的运行时设置和可复现性,并感谢 Bo Liu 进行技术审查。
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.
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.
What Parse 3.5 produces
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.
Figure 1. Actual model output from a synthetic operations brief, showing the connection between the page and its structured representation.
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.
We are open-sourcing three datasets used in the Parse 3.5 training :
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.
Figure 2. Parse recovers 18, 27, 39, and 54 from the chart geometry
SFT teaches the capability; RLVR improves consistency
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.
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.
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.
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 .
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 .
Faster inference through architecture and DFlash2
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 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.
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.
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 .
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:
Single pass - Parse the full page once for text, layout, tables, and charts.
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.
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
Figure 5. Additional stages focus computation on difficult regions. Multiple crops can require multiple requests.
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 .
Apply the same SFT/RLVR approach to your documents
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.
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.
Figure 6. A recorded recipe example: after SFT, all six chart rows match the target. Full image and native training label .
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.
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.
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.
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.
首次收录 · 2026-11-27 · 10.14 分