Hugging Face、新モデル発表も優位性は継続
Hugging Face は新モデルを発表したが、同社の技術的優位性や競争上の利点は従来通り維持されていると述べている。
キーポイント
新モデルの発表と現状の評価
Hugging Face が新たなモデルをリリースしたが、これが既存の優位性を劇的に変えるものではないと位置づけている。
競争上の利点の維持
市場における同社の技術的立ち位置や強みは、新モデル登場後も従来通り継続していると明言している。
業界内での安定した地位
競合他社との比較において、Hugging Face が持つ独自性や優位性が相対的に変化していないことを示唆している。
重要な引用
同社の技術的優位性や競争上の利点は従来通り維持されている
影響分析・編集コメントを表示
影響分析
このニュースは、Hugging Face が新モデルを出しても市場での支配力や技術的リーダーシップが揺らがないことを示しており、業界全体として成熟期に入ったか、あるいは同社が確固たる地位を築いていることを意味します。短期的な市場の動揺を招くような劇的な変化はないものの、プラットフォームとしての安定性が確認される内容です。
編集コメント
新モデルの発表にもかかわらず「優位性は従来通り」という評価は、AI業界が過熱する中で、単なる新機能の追加ではなく、持続的な競争力の維持がいかに重要かを浮き彫りにしています。Hugging Face のようなプラットフォーム企業が、技術的革新よりもエコシステムの安定性を重視している現状を示唆する内容です。
新しいアーキテクチャでも、DharmaOCR はブラジルポルトガル語において Mistral OCR4 や Unlimited-OCR を上回る性能を発揮しました。その背景にあるドメイン特化とターゲットを絞った学習の仕組みについて解説します。
3 ヶ月前に、私たちは DharmaOCR に関する論文 [1] と、そのモデルの一つ [2] を公開しました。目的は明確でした。ブラジルポルトガル語に最適化された文字認識(OCR)システムの構築です。
学習パイプラインは 2 つの段階を経て構築されました。
最初の段階は、多様なソースやフォーマット、複雑さを持つポルトガル語ファイル群を基にした教師あり微調整です。この段階では、モデルの重みをブラジルポルトガル語特有の語彙、構文、ドキュメント構造に適合させました。これにより、表現能力を広範な多言語空間に分散させるのではなく、対象言語に集中させることができました。
2 番目の段階では、直接選好最適化(Direct Preference Optimization)を適用しました。正解の書き起こしデータのみで学習するのではなく、競合する出力間の比較選好データから学ばせることで、推論時に常に最適な抽出結果を選択できるモデルに仕立て上げました。この段階が解決したのは、精度そのものではなく「安定性」という課題です。
生成モデルが反復的な出力や不整合な文章を生成してしまう失敗モードを抑制することで、DPO は推論時間の短縮とコスト削減を実現し、本番環境でのモデルの信頼性を劇的に向上させました。
その結果、ポルトガル語に特化したベンチマークにおいて、最高レベルの抽出品質スコアと最低限の劣化率を達成するモデルが誕生しました。両方の段階は不可欠でした。微調整によってドメイン固有の能力を構築し、DPO によって、モデルが失敗しやすい条件下でもその能力が維持されることを保証したのです。
OCR モデルの進化は目覚ましいものがあります。しかし、DharmaOCR の設計を促した当初の課題——複雑な文書における抽出精度や、実運用環境下でのモデル安定性——は解消されていません。むしろ、分野全体が変化する中で、これらの課題はより重要な示唆を含んでいると言えるでしょう。
マルチモーダル生成モデルの普及により、言語モデルベースの OCR が広く利用可能になりました。それに続く微調整済み OCR バリアントの波も、その普及速度を如実に物語っています。しかし、この拡大が技術の本質的な性格を変えたわけではありません。生成モデルを基盤とするすべての OCR システムは確率的な性質を持っています。誤認識は、この確率的技術に内在する変数なのです。モデル間の違いは、発生する誤りの数や種類によって決まります。これは主に二つの要因で決定されます。一つはモデルの構造(アーキテクチャとパラメータ数)であり、もう一つはそのタスク向けにどのように学習されたかです。
アーキテクチャとパラメータ数は、モデルが学習できる上限を定めます。一方、学習プロセスがその能力をどう配分するかを決めるのです。
この違いこそが、専門化が設計上の好みの問題ではなく、構造的な課題へと昇華する地点です。モデルが特定のドメイン(単一言語、限定された文書タイプ、あるいは特定のタスクなど)で訓練される場合、そのパラメータのすべてがその特定のタスクに専念します。一方、より広範なドメインをカバーするように訓練されたモデル(例えば N 言語に対応する多言語モデルなど)では、同じパラメータをそれらすべての領域に分散させる必要があります。この配分は線形ではありません。ニューロンの超位置の原理により、個々のパラメータが複数の特徴を同時に符号化できるからです。しかし、その分割は実在しており、その帰結もまた現実的なものです。より広い範囲をカバーするモデルほど、特定の一部分へのコミットメントは薄らぎます。
DharmaOCR は、この制約を逆手に取って訓練されました。このモデルは他の言語において最良の選択肢となるようには設計されておらず、そのような意図もありませんでした。その代わりとして、ネットワークが利用可能なすべてのパラメータを、ブラジルポルトガル語特有の語彙、形態論、そして文字体系のパターンに最適化することができました。これは、そのドメインにおいてモデルのリソースを最大限に集中させた、最も直接的な活用方法と言えます。
この集中こそが、多言語対応や広範なドメインをカバーするモデルに対する本質的な優位性の構造的基盤となっています。この優位性は、競合他社よりも大規模なアーキテクチャを採用していることや、より洗練されたトレーニング手順を用いていることに依存しているわけではありません。新しいアーキテクチャやトレーニング手法は、あらゆるモデルの能力を向上させるものです。重要なのは、そのリソースがどこに集中されているかです。多くのドメインに分散するのではなく、特定の 1 つのドメインに注力しているかどうかです。
それから 3 ヶ月後、より新しいモデルが登場しました。これらのモデルがより新しく、能力が高くなった現在でも、専門化という主張が成り立つのかどうかは別の問題です。
DharmaOCR の論文発表から 3 ヶ月後、研究コミュニティの注目を集めた OCR モデルが 2 つ登場しました。それが Mistral OCR4 と Unlimited-OCR です。両者とも真の技術的進歩を遂げたモデルで、新しいトレーニング手法やデータセットを採用し、複数の言語にわたるさまざまなベンチマーク評価において強力な結果を残しています。これらは OCR システムに対して期待される水準を引き上げるような、競争力を高めるモデルです。
私たちが DharmaOCR のベンチマーク(ポルトガル語に特化して設計された評価基準)で両モデルをテストしたところ、その結果は明確でした。
DharmaOCR は 0.925 を記録しました。Mistral OCR4 は 0.798、Unlimited-OCR は 0.7587 です。
差は明白です。Mistral OCR4 は DharmaOCR より約 13 ポイント、Unlimited-OCR はさらに 16 ポイント以上も下回っています。両モデルとも当社のモデルより後にリリースされ、十分な研究リソースを背景にしています。DharmaOCR が「ポルトガル語への完全な集中」という根本的な設計判断を行ったタスクにおいて、この専門化による優位性は測定可能であり、かつ決定的です。
ベンチマーク結果が最も重要な発見です。以下では、なぜこの差が特定の形状をとるのかを解説します。
非自明なポルトガル語文書を処理する際、多言語モデルがどこで破綻するかを浮き彫りにできます。ブラジルの高校卒業試験(ENEM)のエッセイは、手書き文字と、ブラジル特有の語彙、固有名詞、文化的背景が混在した文書です。まさに言語特化型の学習が効果を発揮する領域と言えます。
図 1:ベンチマーク評価で使用された ENEM エッセイの手稿および各モデルの出力結果。誤読箇所は赤色で示しています。
Mistral OCR4 は、このような文書を評価した際、ブラジルで最も著名なミュージシャンかつ詩人の一人である「Chico Buarque」の名前を「Chico Barque」と誤って書き起こしました。Unlimited-OCR は同じ名前を「chico bique」と変換してしまいました。さらに、同文書に埋め込まれている Chico Buarque の名言「O Brasil não exclui, assimila」(直訳:ブラジルは排除せず、同化する)というフレーズに対しても、Unlimited-OCR は「a dose de chico bique, 'o Brasil no exclu, eliminila.」と返答しています。
これらのエラーはランダムなものではありません。ブラジルポルトガル語への学習機会が不十分なモデルは、無作為に失敗するのではなく、ブラジルポルトガル語を他の多言語コーパスと区別する語彙や固有名詞において、明確なパターンで失敗します。
チコ・ブアルキ(Chico Buarque)はマニアックな参照先ではありません。この名前は全国に知られています。出力結果全体で見られるその名の体系的な誤変換は、例外ケースなどではなく、モデルの学習範囲がどこまで及んでいなかったかを示す診断的な証拠です。
DharmaOCR は同じ文書で評価が行われましたが、これらのケースを正しく処理しています。理由は明白です。このモデルの学習リソースは、特定の言語空間に集中させられており、多くの言語にまたがるのではなく、ブラジルポルトガル語の特徴である語彙や固有名詞の分布に最適化されています。
提示された事例はベンチマークを代替するものではなく、その重要性を示すものです。ベンチマークがギャップの規模を明らかにし、事例はそのギャップが汎用能力の問題ではなく、言語固有の認識領域に集中している理由を説明しています。
ただし、抽出精度は生産環境でのパフォーマンスを測る一つの側面に過ぎません。視覚的な困難さに対する安定性もまた重要な指標であり、運用上は後者の失敗の方がより深刻な影響をもたらします。
生成モデルが、小さなフォントや劣化したスキャン品質、密集した手書き文字など、明確に解析できない文書に出会うと、入力信号の不確実性に直面します。主に次のトークン予測を目的として訓練されたモデルは、ここで特有の脆弱性を抱えています。視覚的な手がかりが曖昧になると、モデルは元の文書に基づいて生成するのではなく、以前学習したパターンに従って生成を続けてしまうのです。
その結果、テキストの劣化が生じます。出力される文章は反復的になり、一貫性が失われ、ページの内容とは意味的に乖離したものになってしまいます。
小さなフォントの文書に対して Mistral OCR4 を適用すると、元の記述と無関係な出力が得られます。
Figure 2: small-font document
Figure 3: DharmaOCR output and Mistral OCR4 degenerated output
これは単なる低品質な転写ミスではありません。全く異なるカテゴリーの失敗です。
誤字脱字と、出力の劣化(デジェネレーション)は、その運用上の帰結が明確に異なります。誤字脱字は回復可能な形で間違っており、元の文書との関係性が保たれているため、原理的にはエラーを特定して修正することが可能です。一方、劣化した出力にはそのような関係性すら存在しません。修正すべき対象がないため、修正自体が不可能です。
構造化された OCR 出力に依存する下流プロセス——ドキュメント分類、情報抽出、コンプライアンスワークフローなどにおいて、劣化した出力は単なる「不正確なデータ」ではありません。それは構造的に利用不能なデータなのです。自動化によって期待されていた効率性は、出力がもはや情報として機能しなくなった瞬間に、完全に無効化されてしまいます。
Mistral OCR4 や Unlimited-OCR は、背後にある技術的進歩が著しい優れたモデルです。ここで指摘した劣化の挙動は、これらのモデルを定義するものではなく、現在のトレーニングではこのドメインにおける特定の失敗条件に対処しきれていないことを示しています。重要なのは、それを解決するために設計されたトレーニングパイプラインがどのようなものかという点です。
DharmaOCR においては、その答えは DPO(Direct Preference Optimization)の段階にあります。
教師あり微調整(SFT)は、モデルのリソースを特定のドメインに集中させる役割を果たします。これは前述のような言語的な整合性を構築する段階です。しかし、SFT は個々のトークン予測に基づいて学習を行います。つまり、モデルは文脈に応じて「正しい次のトークン」を生み出す方法を学ぶのです。
このアプローチには、視覚的な複雑さが高まった際に問題が生じるという欠点があります。出力の初期段階でソースドキュメントから逸脱したトークンが選ばれてしまうと、その後の予測はすべてその逸脱した状態を前提として行われることになります。結果として、出力は次第にずれていくのです。
この文脈において、繰り返しのループや一貫性のないシーケンスは避けられない特徴です。これは、抽出全体の整合性を考慮せずに、ステップごとに最適化された目的関数を追求した結果として予測可能な現象なのです。
一方、DPO は異なる信号に対して学習を行います。SFT がトークン単位で訓練するのに対し、DPO は完全な出力の品質に基づいてモデルを訓練します。これは、個々の予測の精度ではなく、抽出全体の整合性に基づいて競合する応答を区別することを教えるものです。
その効果は安定化にあります。視覚的な複雑さによって通常ならドリフトを引き起こすようなドキュメントにおいてさえ、モデルが逸脱した経路に固執しにくくなります。なぜなら、抽出レベルで整合性を失った出力に対して学習時にペナルティが課されているからです。
その結果、元のベンチマークで示された通り、同じドキュメントにおいて、この訓練段階を持たないモデルが一貫性を失う中で、DPO を適用したモデルはより低い劣化率と高い抽出精度を達成します。
このベンチマークは、現在の状況を明確に示すものです。ただし、2 年後の状況については、それほど精密な予測はできません。
より新しいモデルが将来的には、ブラジルポルトガル語を含むあらゆる分野で現在の DharmaOCR を上回るようになる可能性は十分にあります。アーキテクチャは進化し、トレーニング手法も向上します。データセットも拡大していくでしょう。この業界全体があらゆるレベルで高い能力へと向かって進んでおり、その軌道が止まる理由はありません。これは予想されることであり、歓迎すべき事態です。
アーキテクチャの世代交代によって変化するものは、絶対的な性能の上限(シールディング)です。一方、特定のドメインにおいてどのシステムがその上限に最も近づけるかを決定する構造的な論理は変わりません。
利用可能なリソース——計算資源、パラメータ数、トレーニングデータ——には限りがあります。これらをどこに配分するかを決定する必要があります。単一のドメインにリソースを集中させるシステムの方が、同じリソースを多数のドメインに分散させるシステムよりも、その特定の分野でより高い成果を引き出します。この関係性は、汎用モデルがどれほど能力を高めても変わりません。アーキテクチャの進化に伴い、専門特化型と汎用型の性能差は変化するかもしれませんが、構造的な力学が逆転することはありません。AI システムが進化する中でなぜ専門特化が依然として優位性を生み出し続けるのかについては、以前の連載記事でより深く掘り下げています(Why Specialization Is Inevitable)。
これが、Dharma が次に何をどう取り組むべきかを形作る考え方です。現在のモデルのベンチマークでの地位を守ることを目的としているわけではありません。重要なのは、新たなアーキテクチャやトレーニング手法、アライメントや評価への新しいアプローチなど、出現する技術の最前線に留まり続けることです。そして、それらを同じゴールに向けて適応させること。それは、利用可能なリソースを最大限に活用し、コストと推論時間を最小限に抑えた、ブラジルポルトガル語向けの OCR 専用システムを実現することです。
より優れたツールが専門化を阻害するわけではありません。むしろ、専門化が達成できる範囲を広げるのです。
3 ヶ月前、特定のドメインに学習を集中させることが、より新しくリソース豊富な汎用システムと比較しても、明確な優位性をもたらすことを示しました。その優位性は現在も維持されています。DharmaOCR の今後の進化においても、この原則が適用されます。固定された状態を保つのではなく、分野全体で進歩した技術を、変化しない特定のドメインに適用し続けることで発展していくのです。
Source
- Cardoso, Gabriel Pimenta de Freitas 他。「DharmaOCR: Structured OCR においてオープンソースおよび商用ベースラインを上回る専門化された小型言語モデル。」arXiv プリプリント arXiv:2604.14314 (2026)。
Further Reading
- なぜ専門化は避けられないのか — 専門化の主張に対する構造的・理論的基盤。最適化理論、進化生物学、競争市場、機械学習はいずれも同じ予測に収束します。有限のリソースと選択圧の下では、広さよりも適合性が勝るのです。
- 専門化は規模に勝る:AI 調達決定で見過ごされがちな戦略的変数 — この記事の実証的かつ戦略的な補完資料です。「無償の Lunch(No Free Lunch)定理」がなぜ専門化が構造的に優位と予測されるのかを説明する一方で、この記事では実践においてそれがどのように優位性を発揮するかという証拠と、なぜ AI 調達決定の多くでその重要性が過小評価され続けているのかを検証します。
- テキスト劣化:ベンチマークが追跡しない生産上の故障モード — 言語モデルが有効なドメインの範囲外で動作した際に発生する、文書化された故障モードです。
- チャットボットを超えた直接選好最適化(DPO) — 選好最適化技術が、会話型 AI を超えて専門分野にどのように拡張されるか。これは本記事で構造的に予測されているドメイン特化戦略の具体的な実装例です。
*Hugging Face の Dharma AI で*、インタラクティブなデモを試す*や、* オープンソースモデルをダウンロード*して、専門特化型 AI システムが実際の企業アプリケーションにおいて汎用モデルをどのように上回るかをご覧ください。*
原文を表示
Despite newer architectures, DharmaOCR outperformed Mistral OCR4 and Unlimited-OCR on Brazilian Portuguese through domain specialization and targeted training. This article presents the evidence and the mechanism behind that advantage. Source Further Reading
Despite newer architectures, DharmaOCR outperformed Mistral OCR4 and Unlimited-OCR on Brazilian Portuguese through domain specialization and targeted training. This article presents the evidence and the mechanism behind that advantage.
Three months ago, we published a paper on DharmaOCR and open-sourced one of the models. The objective was specific: optical character recognition engineered for Brazilian Portuguese.
The training pipeline was built in two stages. The first was a supervised fine-tuning step, drawing on a broad collection of Portuguese-language files from different sources, formats, and levels of complexity. This stage aligned the model's weights to the specific vocabulary, syntax, and document structures of Brazilian Portuguese — concentrating representational capacity on the target language rather than distributing it across a broader multilingual space. The second stage applied Direct Preference Optimization: rather than training only on correct transcriptions, the model learned from comparative preference data between competing outputs, teaching it to consistently select the better extraction at inference time. This stage addressed a different problem: not accuracy, but stability. By suppressing the failure modes that cause generative models to produce repetitive or incoherent output, DPO reduced inference time and cost, and materially improved the reliability of what the model delivered in production.
The combined result was a model that achieved the highest extraction quality score with the lowest degeneration rate on a Portuguese-focused benchmark. Both stages were necessary. The fine-tuning stage built domain competency; the DPO stage ensured that competency held under the conditions where models tend to fail.
OCR models have been moving quickly. But the gaps that originally motivated DharmaOCR's design (in extraction quality on complex documents and in model stability under production conditions) have not closed. They have, if anything, become more instructive as the field has changed.
The proliferation of multimodal generative models made language model-based OCR widely accessible, and the wave of fine-tuned OCR variants that followed reflects how fast that adoption has moved. That proliferation has not, however, changed the fundamental character of the technology. Every OCR system built on a generative model is probabilistic. Transcription errors are an inherent variable of this probabilistic technology. What differentiates models is how many errors they make and of what kind. That is determined by two things: the structure of the model (its architecture and parameter count) and how those parameters were trained for the task.
Architecture and parameter count establish the ceiling on what a model can learn. Training determines how that capacity is allocated.
This distinction is where specialization becomes a structural question rather than a design preference. When a model is trained on a restricted domain — a single language, a bounded document type, a specific task — All of its parameters are dedicated to that specific task. When a model is trained to cover a broader range of domains — a multilingual model handling N languages, for instance — those same parameters must be distributed across all of them. The distribution is not linear: the neuron superposition principle means individual parameters can encode multiple features simultaneously. But the division is real, and its consequences are real. A model covering more ground commits less to any given part of it.
DharmaOCR was trained to accept that constraint in reverse. The model is not designed to be the best option for other languages, and was never intended to be. In exchange, every parameter available to the network could be oriented toward the specific vocabulary, morphology, and orthographic patterns of Brazilian Portuguese — the most directed possible use of the model's resources for that domain.
That concentration is the structural basis of an inherent advantage over multilingual and broader-domain models. The advantage does not depend on having a larger architecture or a more sophisticated training procedure than competitors use — new architectures and new training techniques improve what any model can do. It depends on where those resources are directed: at one domain rather than spread across many.
Three months later, newer models have arrived. Whether the case for specialization holds when those models are newer and more capable is a different question.
Three months after the DharmaOCR paper appeared, two new OCR models attracted significant attention from the research community: Mistral OCR4 and Unlimited-OCR. Both represent genuine technical advances — new training techniques, new datasets, and strong results across multiple languages on a range of benchmark evaluations. They are the kind of models that raise the competitive standard for what OCR systems are expected to deliver.
When we ran both against the DharmaOCR benchmark — an evaluation designed exclusively around Portuguese — the results were conclusive.
DharmaOCR scored 0.925. Mistral OCR4 scored 0.798. Unlimited-OCR scored 0.7587.
The difference is significant. Mistral OCR4 falls approximately 13 points below DharmaOCR; Unlimited-OCR falls more than 16 points below. Both were released after our model, both backed by substantial research resources. On a task where DharmaOCR's fundamental design decision was to concentrate entirely on Portuguese, the specialization advantage is measurable and significant.
The benchmark is the central finding. What follows illustrates why the gap takes the specific shape it does.
Processing non-trivial Portuguese documents reveals precisely where multilingual models tend to break. ENEM essays (Brazil's national high school examination) combine handwritten text with vocabulary, proper nouns, and cultural references that are specific to Brazilian Portuguese. They are exactly the kind of documents where language-specific training produces a return.
Figure 1: ENEM essay manuscript used in benchmark evaluation with outputs of the each model. Misreads marked in red.
Mistral OCR4, evaluated on documents of this kind, transcribed the name Chico Buarque (one of Brazil's most widely recognized musicians and poets) as "Chico Barque." Unlimited-OCR rendered the same name as "chico bique." Confronted with the phrase "O Brasil não exclui, assimila" ("Brazil does not exclude, it assimilates", a Chico Buarque quotation embedded in the same document) Unlimited-OCR returned: "a dose de chico bique, 'o Brasil no exclu, eliminila.'
These are not random errors. A model with insufficient exposure to Brazilian Portuguese does not fail arbitrarily — it fails at precisely the vocabulary and proper nouns that distinguish Brazilian Portuguese from the broader multilingual corpus. Chico Buarque is not an obscure reference; the name is nationally recognized. Its systematic corruption across outputs is not an edge case. It is a diagnostic: evidence of where the model's training did not go.
DharmaOCR, evaluated on the same documents, handles these cases correctly. The reason is direct: the model's training was concentrated on this linguistic space, orienting its resources toward the vocabulary and proper noun distributions that characterize Brazilian Portuguese rather than spreading them across many languages at once.
The examples illustrate the benchmark rather than replace it. The benchmark establishes the magnitude of the gap; the examples show why it is concentrated in language-specific recognition rather than in general capability.
Extraction accuracy, however, is only one dimension of production performance. Stability under visual difficulty is another — and operationally, it is the more consequential one to fail on.
When a generative model encounters a document it cannot clearly resolve — small fonts, degraded scan quality, dense handwriting — it faces uncertainty in its input signal. Models trained primarily on next-token prediction objectives face a specific vulnerability here: when the visual signal becomes ambiguous, the model can continue generating from prior learned patterns rather than from the source document. The result is text degeneration — output that is repetitive, incoherent, and semantically disconnected from the page.
Presented with a document with small fonts, Mistral OCR4 produces output with no connection to what is written.
Figure 2: small-font document
Figure 3: DharmaOCR output and Mistral OCR4 degenerated output
This is not a low-quality transcription of the source. It is a failure of an entirely different category.
The operational consequence is distinct from that of a transcription error. An incorrect transcription is wrong in a recoverable way — it stands in a relationship to the source document, and the error can in principle be identified and corrected. Degenerated output has no such relationship. It cannot be corrected because there is nothing to correct toward. For downstream processes that depend on structured OCR output — document classification, information extraction, compliance workflows — degenerated output is not inaccurate data. It is structurally unusable data. The efficiency that automation was meant to deliver is negated at precisely the point where output stops being information.
Mistral OCR4 and Unlimited-OCR are good models with significant technical advances behind them. The degeneration behavior described here does not define them; it identifies a specific failure condition that their current training has not addressed for this domain. The question is what a training pipeline designed to address it looks like.
In DharmaOCR, the answer is the DPO stage.
Supervised fine-tuning concentrates the model's resources on the target domain — the stage that builds the linguistic alignment described above. But SFT trains on individual token predictions: the model learns to produce the correct next token given the context preceding it. Under visual complexity, this creates the condition that produces degeneration. If an early token in the output diverges from the source document, each subsequent prediction is conditioned on that divergent state, and the output continues to drift. Repetition loops and incoherent sequences are an inherent characteristic in this context — they are the predictable result of an objective optimized step by step without accounting for the coherence of the full extraction.
DPO trains against a different signal. Where SFT trains token by token, DPO trains the model against the quality of complete outputs — teaching it to discriminate between competing responses based on the coherence of the full extraction rather than the accuracy of individual predictions. The effect is stabilizing: on documents where visual complexity would otherwise trigger drift, the model is less likely to commit to a divergent path, because its training penalized outputs that lost coherence at the extraction level.
The result is what the original benchmark demonstrated: lower degeneration rates alongside higher extraction accuracy, on the same documents where models without this training stage lose coherence.
The benchmark establishes what is true today. It is less precise about what will be true in two years.
It is possible — and likely — that newer models will eventually outperform the current DharmaOCR even in Brazilian Portuguese. Architectures will improve. Training techniques will advance. Datasets will expand. The field moves toward higher capability at every level, and there is no reason to expect that trajectory to stop. This is expected, and it is welcome.
What changes with each architectural generation is the ceiling on absolute performance. What does not change is the structural logic that determines which systems come closest to their ceiling in a given domain.
Available resources — compute, parameters, training data — are finite. They must be directed somewhere. A system that directs them at a single domain will extract more from them in that domain than a system distributing the same resources across many. This relationship holds regardless of how capable the generalist model has become. The gap between specialist and generalist may evolve as architectures improve. The structural dynamic does not reverse. We explored this principle in more depth in an earlier piece on why specialization continues to produce an advantage as AI systems advance (Why Specialization Is Inevitable).
This is what shapes how Dharma approaches what comes next. The objective is not to defend the current model's benchmark position. It is to remain at the frontier of emerging techniques — new architectures, new training methods, new approaches to alignment and evaluation — and adapt them toward the same end: a specialized system for Brazilian Portuguese OCR that makes the best possible use of available resources, at the lowest possible cost and the shortest possible inference time.
Better tools do not work against specialization. They expand what it can achieve.
Three months ago, we showed that concentrating a model's training on a specific domain produces a measurable advantage over generalist systems, including ones that are newer and better-resourced. That advantage held. The same principle will determine how DharmaOCR continues to evolve — not by staying fixed, but by applying whatever progress the field makes to a domain that remains fixed.
Source
- Cardoso, Gabriel Pimenta de Freitas, et al. "DharmaOCR: Specialized Small Language Models for Structured OCR that outperform Open-Source and Commercial Baselines." arXiv preprint arXiv:2604.14314 (2026).
Further Reading
- Why Specialization Is Inevitable — The structural and theoretical foundation for the specialization argument. Optimization theory, evolutionary biology, competitive markets, and machine learning all converge on the same prediction: under finite resources and selection pressure, fit beats breadth.
- Specialization Beats Scale: A Strategic Variable Most AI Procurement Decisions Overlook — The empirical and strategic complement to this article. Where the No Free Lunch theorem establishes why specialization is structurally predicted, this piece examines the evidence that it outperforms in practice — and why it remains underweighted in most AI procurement decisions.
- Text Degeneration: A Production Failure Mode That Most Benchmarks Do Not Track — A documented failure mode that emerges when language models operate outside the boundaries of their effective domain.
- Direct Preference Optimization Beyond Chatbots — How preference optimization techniques extend into specialized domains beyond conversational AI — a concrete instantiation of the domain focus strategy this article argues is structurally predicted.
*Explore* Dharma AI on Hugging Face *to* try our interactive demos*,* download our open-source models*, and discover how specialized AI systems outperform general-purpose models in real enterprise applications.*
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み