Research ·
Dharma Field Extractor: Any Document In, Structured Fields in JSON Out
Dharma-AI released Dharma Field Extractor, a 2B-parameter model that turns document images into typed, schema-conformant JSON, claiming better field-level accuracy than frontier LLMs at far lower cost.

Dharma-AI announced Dharma Field Extractor, a model that takes a document image plus either an open request or an exact schema and returns structured JSON. It is built on DharmaOCR-LITE v1.1 (a 2B-parameter OCR model refined with supervised fine-tuning and DPO), with a LoRA adapter trained on 43,384 field-annotated examples. The training data spans English multi-domain web documents, internal Brazilian documents in Portuguese, and a smaller multilingual share of other European and Asian languages, covering receipts, invoices, forms, bank statements, IDs and synthetic documents. One checkpoint handles all document types with no per-type fine-tuning.
It supports two request modes. Open mode, with no schema, has the model identify structured fields from context and layout and return everything as key-value pairs. Schema-directed mode takes exact field names with string, number or boolean types and returns exactly those keys; missing fields come back as null rather than invented values, and tables are filled row by row, matched to the right keys. Outputs are typed JSON with no extra fields, ready to feed a downstream system.
The benchmark covers 546 documents in three scenarios (1,638 cases), scored by field-level F1 times Levenshtein similarity on matched values times valid-JSON rate. Against four frontier LLM configurations, the quality gap ranged from 1.8 points over Claude Opus 5 to 9.3 over GPT-5.6 Luna, with costs roughly 6x to 147x lower since the model runs self-hosted on a single L40S. For builders doing high-volume document-to-database extraction, it offers schema-exact structured output at self-hosted economics instead of per-token API pricing and latency.
References
- Hugging Face · huggingface.co
Read the full story at Hugging Face ↗Like, save or discuss on Buzz