aifollow.news
返回 Hugging Face 官方博客
Hugging Face 官方博客· · 原发布时间 AI 评分47

NVIDIA 为 Nemotron 3.5 Parse 开放训练数据与微调方案,并推出推理加速组件

AI 辅助摘要

NVIDIA 为文档解析模型 Nemotron 3.5 Parse 开放三套合成训练数据,分享微调方案和 DFlash2 推理加速组件。该模型可按阅读顺序提取页面文字、表格和图表;在单张 H200、BF16 的单次解析测试中,DFlash2 相比关闭推测解码的 Parse 3.5,在并发量为 1 时吞吐量提高 7.62 倍。

正文 · 原文

该语言的正文暂不可用,当前显示已有版本。

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 :

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

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

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

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

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.

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.

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.

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.

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

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.

发现内容有误?提交纠错

本文目录