---
title: "DharmaOCR 利用 DPO 将文本退化率降低 59.4%"
canonical: "https://new.nat6.net/news/cmpy47xxi01kislax812354vk/"
date: "2026-06-03"
updated: "2026-11-05"
source: "Hugging Face 社区博客（混合发现）"
source_url: "https://huggingface.co/blog/Dharma-AI/direct-preference-optimization-beyond-chatbots"
language: "zh"
topics: []
license: "https://new.nat6.net/sources/"
attribution: "Content is based on curated titles and AI summaries from the AIHOT public API, with attribution and links back; original copyright remains with the original publishers and authors."
---

# DharmaOCR 利用 DPO 将文本退化率降低 59.4%

- 发布日期 / Published: 2026-06-03
- 更新时间 / Updated: 2026-11-05
- 分类 / Category: 教程与技巧
- 来源 / Source: Hugging Face 社区博客（混合发现） — [原文 / Original](https://huggingface.co/blog/Dharma-AI/direct-preference-optimization-beyond-chatbots)
- AIHOT: [条目页 / Item](https://aihot.news/items/cmpy47xxi01kislax812354vk)
- 页面 / Page: https://new.nat6.net/news/cmpy47xxi01kislax812354vk/
- 结构化数据 / JSON: https://new.nat6.net/api/v1/articles/cmpy47xxi01kislax812354vk.json

- 语言 / Languages: [zh](https://new.nat6.net/news/cmpy47xxi01kislax812354vk/) · [en](https://new.nat6.net/en/news/cmpy47xxi01kislax812354vk/) · [de](https://new.nat6.net/de/news/cmpy47xxi01kislax812354vk/) · [fr](https://new.nat6.net/fr/news/cmpy47xxi01kislax812354vk/) · [ru](https://new.nat6.net/ru/news/cmpy47xxi01kislax812354vk/) · [ja](https://new.nat6.net/ja/news/cmpy47xxi01kislax812354vk/) · [es](https://new.nat6.net/es/news/cmpy47xxi01kislax812354vk/) · [ko](https://new.nat6.net/ko/news/cmpy47xxi01kislax812354vk/) · [vi](https://new.nat6.net/vi/news/cmpy47xxi01kislax812354vk/) · [th](https://new.nat6.net/th/news/cmpy47xxi01kislax812354vk/) · [id](https://new.nat6.net/id/news/cmpy47xxi01kislax812354vk/) · [ms](https://new.nat6.net/ms/news/cmpy47xxi01kislax812354vk/) · [fil](https://new.nat6.net/fil/news/cmpy47xxi01kislax812354vk/) · [hi](https://new.nat6.net/hi/news/cmpy47xxi01kislax812354vk/)

## AI 摘要 / AI summary

4月发布的DharmaOCR（结构化OCR模型）在巴西葡萄牙语文档提取任务中，使用直接偏好优化（DPO）作为监督微调（SFT）后的第二训练阶段。SFT无法直接惩罚文本退化（重复循环），而DPO以模型自身失败输出（退化循环）作为负样本进行偏好训练，使所有测试模型族的文本退化率平均降低59.4%，最高达87.6%（如Nanonets-OCR2-3B从1.61%降至0.20%）。传统DPO多用于聊天对齐，该工作将其扩展至客观的OCR任务，证明DPO可针对性修复特定失败模式。

## 推荐理由 / Why it matters

DPO 不只能对齐，这篇直接用模型自身的垃圾输出当反例，把 OCR 的重复错误平均降了 59%。思路不复杂，但告诉做结构化生成的工程师：训练数据里最该保留的就是模型犯的错。

## 来源与版权 / Source & copyright

内容基于 AIHOT 公开 API 的精选标题与 AI 摘要，已注明来源并回链；原文版权归原媒体与作者所有。

原文版权归原媒体与作者所有；本站不镜像全文。/ Original copyright remains with the original publishers and authors; this site does not mirror full texts.

## 关于橙子中转站 / About Orange Relay

橙子中转站（pro.nat6.net）是一家优质的 AI API 中转站：价格优惠、质量稳定、模型齐全，支持 Claude、GPT、Gemini 等主流模型，欢迎体验。

[访问橙子中转站](https://pro.nat6.net/?utm_source=orange_news&utm_medium=article_footer&utm_campaign=brand&lang=zh)

## JSON-LD

```json
{
  "@context": "https://schema.org",
  "@type": "NewsArticle",
  "@id": "https://new.nat6.net/news/cmpy47xxi01kislax812354vk/#article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://new.nat6.net/news/cmpy47xxi01kislax812354vk/"
  },
  "url": "https://new.nat6.net/news/cmpy47xxi01kislax812354vk/",
  "headline": "DharmaOCR 利用 DPO 将文本退化率降低 59.4%",
  "description": "4月发布的DharmaOCR（结构化OCR模型）在巴西葡萄牙语文档提取任务中，使用直接偏好优化（DPO）作为监督微调（SFT）后的第二训练阶段。SFT无法直接惩罚文本退化（重复循环），而DPO以模型自身失败输出（退化循环）作为负样本进行偏好训练，使所有测试模型族的文本退化率平均降低59.4%，最高达87.6%（如Na…",
  "articleSection": "教程与技巧",
  "keywords": "AI, Hugging Face 社区博客（混合发现）",
  "datePublished": "2026-06-03T12:55:11Z",
  "dateModified": "2026-11-05T20:56:43Z",
  "inLanguage": "zh-CN",
  "isAccessibleForFree": true,
  "author": {
    "@type": "Organization",
    "name": "橙子新闻编辑部",
    "url": "https://new.nat6.net/about/"
  },
  "publisher": {
    "@type": "NewsMediaOrganization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://new.nat6.net/assets/img/logo-512.png",
      "width": 512,
      "height": 512
    }
  },
  "image": {
    "@type": "ImageObject",
    "url": "https://new.nat6.net/assets/img/og-default.png",
    "width": 1200,
    "height": 630
  },
  "isPartOf": {
    "@id": "https://new.nat6.net/#website"
  },
  "isBasedOn": "https://huggingface.co/blog/Dharma-AI/direct-preference-optimization-beyond-chatbots",
  "citation": [
    "https://aihot.news/items/cmpy47xxi01kislax812354vk",
    "https://huggingface.co/blog/Dharma-AI/direct-preference-optimization-beyond-chatbots"
  ],
  "license": "https://new.nat6.net/sources/",
  "about": [],
  "mentions": [
    {
      "@type": "Thing",
      "name": "Hugging Face 社区博客（混合发现）"
    }
  ],
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      ".article-summary"
    ]
  },
  "copyrightHolder": {
    "@type": "Organization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/"
  },
  "creditText": "橙子新闻（AI 摘要）；原文：Hugging Face 社区博客（混合发现）",
  "copyrightNotice": "© 2026 橙子新闻。标题与 AI 摘要基于 AIHOT 公开数据，原文版权归原媒体与作者所有；本站不镜像全文。",
  "copyrightYear": 2026,
  "alternativeHeadline": "Direct Preference Optimization Beyond Chatbots",
  "abstract": "DPO 不只能对齐，这篇直接用模型自身的垃圾输出当反例，把 OCR 的重复错误平均降了 59%。思路不复杂，但告诉做结构化生成的工程师：训练数据里最该保留的就是模型犯的错。",
  "subjectOf": [
    {
      "@type": "DigitalDocument",
      "name": "DharmaOCR 利用 DPO 将文本退化率降低 59.4% (Markdown)",
      "url": "https://new.nat6.net/news/cmpy47xxi01kislax812354vk/index.md",
      "encodingFormat": "text/markdown"
    },
    {
      "@type": "DigitalDocument",
      "name": "DharmaOCR 利用 DPO 将文本退化率降低 59.4% (JSON)",
      "url": "https://new.nat6.net/api/v1/articles/cmpy47xxi01kislax812354vk.json",
      "encodingFormat": "application/json"
    }
  ]
}
```

## 如何引用 / How to cite

- 引用格式 / Citation format (zh): 橙子新闻.《文章标题》. 发布日期. https://new.nat6.net/news/cmpy47xxi01kislax812354vk/
- Citation format (en): Orange News. "Article title". Published YYYY-MM-DD. https://new.nat6.net/news/cmpy47xxi01kislax812354vk/
- 回链要求 / Backlink: 引用请保留「橙子新闻」署名并回链 canonical URL；AI 摘要请注明数据来源 AIHOT；原文版权归原媒体与作者所有。
- Attribution & backlinks: Keep the "Orange News" attribution and link back to the canonical URL; cite AIHOT as the data source for AI summaries; original copyright remains with the original publishers and authors.

### 机器入口 / Machine entry points

- Markdown: https://new.nat6.net/news/cmpy47xxi01kislax812354vk/index.md
- JSON: https://new.nat6.net/api/v1/articles/cmpy47xxi01kislax812354vk.json
- API 清单 / API index: https://new.nat6.net/api/v1/site.json
- Markdown 内容协商 / negotiation: 对 https://new.nat6.net/news/cmpy47xxi01kislax812354vk/ 发送 `Accept: text/markdown`
