Dharma-AI has released Dharma Field Extractor, a 2-billion-parameter model designed to convert document images into structured JSON output. The company reports that the model outperforms tested general-purpose large language models on field-level extraction tasks while operating at a significantly lower cost.
What Happened
The Field Extractor is built on the DharmaOCR-LITE v1.1 base model, which was optimized through supervised fine-tuning and Direct Preference Optimization (DPO). Dharma trained a LoRA adapter on 43,384 examples across English multi-domain, Brazilian domain, and multilingual datasets to handle two primary request modes: open extraction, where the model identifies fields without a predefined schema, and schema-directed extraction, where users specify exact field names, types, and nesting structures.
In a benchmark covering 546 documents and 1,638 cases, the model achieved a score of 0.834. This performance placed it above four general-purpose frontier configurations, including Claude Opus 5, which scored 0.816, and GPT-5.6 Luna, which scored 0.741. The scoring metric combined field-level F1 scores with Levenshtein similarity on values and the percentage of outputs returned as valid JSON.
Why It Matters
The release highlights a growing trend in enterprise AI toward specialized Small Language Models (SLMs) for bounded tasks. While general-purpose LLMs can perform document extraction via careful prompting, they often incur high latency and token-based costs that scale poorly with volume. Dharma reports that its self-hosted model, running on a single L40S GPU, costs between 6 and 147 times less per extraction than the frontier API alternatives, depending on the specific model and pricing structure.
For developers and businesses processing high volumes of invoices, IDs, and forms, the ability to return structured JSON directly—handling nested data and returning null for missing fields—reduces the need for downstream mapping code. The model’s performance on held-out public datasets like SROIE and FUNSD demonstrates its ability to generalize to document types not included in its training mix, such as receipts and variance forms with handwritten notes.
The Bottom Line
Dharma Field Extractor demonstrates that domain-specific training can yield higher accuracy and lower costs for structured data extraction compared to general-purpose frontier models. The company positions the model as a viable alternative for organizations seeking to reduce API dependency and infrastructure costs for document processing workflows.