General models
Dharma-AI Releases 2B-Parameter Field Extractor That Turns Any Document Into Structured JSON
Dharma-AI published Field Extractor, a 2B-parameter model built on DharmaOCR-LITE v1.1 with a LoRA adapter that extracts open or schema-directed fields from document images as typed JSON, claiming higher scores than four frontier APIs on its own benchmark.
Dharma-AI published Field Extractor on November 4, 2026, a 2-billion-parameter model that turns document images into structured JSON. The team says it beats every general-purpose frontier model it tested on this task while costing far less per extraction. That comparison comes from the vendor's own benchmark, not an independent evaluation.
The article frames the model as solving a different problem from OCR. OCR faithfully returns all the text on a page, but it does not tell a downstream system which string is the exam type, which is the date or which number is the total; someone still has to write the mapping code. A general-purpose LLM with careful prompting can do that mapping, but at frontier API pricing and latency, on a task many businesses run at high volume, the authors argue it becomes an expensive way to solve a well-defined problem.
Field Extractor accepts two request modes. In open mode no schema is supplied; the model infers from context and layout which parts of the page are structured fields, such as a label followed by a value or a table with a header row, and returns everything it finds as key-value pairs. In schema-directed mode the user specifies the exact shape, field by field, with a type for each (string, number or boolean) under the key names their system already uses. The output follows that schema exactly with no extra fields, and a requested field that is absent from the document returns null rather than an invented value. The authors say a single checkpoint handles all of it with no per-type fine-tuning.
Training starts from DharmaOCR-LITE v1.1, a new 2B-parameter version of the team's earlier OCR model that was already specialized through supervised fine-tuning and DPO. On top of that checkpoint they trained a LoRA adapter on 43,384 examples covering both request modes. The data has three streams: English multi-domain documents collected from the public web, internally sourced Brazilian documents in Portuguese, and a smaller share of other European and Asian languages for broader generalization. All three are annotated at the field level and mix receipts, commercial invoices, forms, bank statements, ID documents and synthetic documents rather than a single filing type.
The benchmark covers 546 documents across three request scenarios for 1,638 total cases: extracting every field with no schema, a partial schema naming only real fields, and a schema that also includes deliberately nonexistent fields. The score is field-level F1 matched by path, including position inside a table, multiplied by Levenshtein similarity on matched values and by the share of outputs that are valid JSON. The authors report an overall score of 0.834 against Claude Opus 5 at 0.816 down to GPT-5.6 Luna at 0.741, a quality gap of 1.8 to 9.3 points.
The cost comparison deserves care. Frontier figures come from measured average input and output tokens per page, reasoning tokens included, against each provider's published list pricing, with reasoning set to low and Claude Opus 5 using adaptive effort. Field Extractor is not billed per token; the figure is GPU time on a single L40S at $2.24 per hour, which the authors say yields roughly 6x to 147x lower cost. They state plainly that this is not a sales price and that self-hosted cost depends on hardware, volume and required latency. The number is better read as an argument that a specialized model can be self-hosted economically than as a portable price comparison.
For generalization the post shows two public datasets held out from training. On an SROIE receipt the model returns all 18 requested fields, folding a multi-line unlabeled billing address into one field, returning two blank fields as null and matching every number to the cent. On a FUNSD photocopying variance form with twelve boolean items and one nested group of five sub-options, it marks only the box actually checked as true and the other eleven as false, reads a handwritten Bates ID correctly and returns null for two blank fields.
For developers, the release illustrates a shift in document extraction from general models plus prompts toward small models with fixed output contracts. When the target structure is defined in advance by a downstream system and must land in a database as JSON, strict schema conformance and honest nulls can matter more than broad capability, and self-hosting keeps documents in-house. The margin over frontier APIs, however, is demonstrated on one vendor-built benchmark, so teams should still sample their own documents before relying on it.