Turn PDFs into JSON in one step: this open-source 9B model matches Gemini Flash 3.5
Open-source model lift uses JSON Schema-constrained decoding to output structured data directly from a single PDF scan. Field accuracy is 90.2%, close to Gemini Flash 3.5, but 3x faster. The traditional OCR + LLM + JSON repair pipeline is compressed into one step.
On X, someone mentioned: everyone is focused on OCR and complex pipelines, but they overlook a model called lift.
lift comes from Datalab, has 9B parameters, and open-source weights. Give it a PDF or image plus a JSON schema (a definition describing the field structure), and it directly returns JSON that conforms to the schema. No OCR step, no extra LLM calls, no code to repair broken JSON. One step.
Document extraction usually works like this: OCR converts the PDF to text, an LLM extracts fields, then code repairs the JSON format. The chain is long, every step can go wrong, and values across pages are easily lost. lift's approach is to have the model read the entire document directly, reading all pages in a single pass, then output according to the schema. It doesn't matter if values span pages.

On the benchmark released by Datalab, lift's field accuracy reaches 90.2%, based on an evaluation of about 11,000 fields. For comparison, Gemini Flash 3.5 is 91.3%, and Azure Content Understanding is 83.4%. lift's latency is 9.5 seconds, while Gemini is 28.1 seconds, roughly 3x.

Full data:
| Model | Size | Field accuracy | Full-document accuracy | Median latency |
|---|---|---|---|---|
| Datalab API | — | 95.9% | 44.4% | 30.8s |
| Gemini Flash 3.5 | — | 91.3% | 40.0% | 28.1s |
| lift | 9B | 90.2% | 20.9% | 9.5s |
| Azure Content Understanding | — | 83.4% | 22.2% | 73.7s |
| NuExtract3 | 4B | 81.5% | 8.4% | 8.3s |
| Qwen3.5-9B | 9B | 76.32% | 24.0% | 16.8s |

A few design choices:
- The model is designed to return null when a field is missing, rather than making up a value.
- Supports schema-constrained decoding, guaranteeing the output is valid JSON with no format errors.
- 9B parameters, can be self-hosted, with either vLLM or Hugging Face.
Installation and usage are also simple:
pip install lift-pdf
lift_extract input.pdf ./output --schema schema.json
Python call:
from lift import extract
result = extract("document.pdf", "schema.json")
There is one usage limitation: the schema should be concise, avoiding complex structures such as enum, anyOf, and $ref, otherwise constrained decoding will skip them. Write clear field descriptions to reduce errors.
Also, the license is Apache 2.0 + modified OpenRAIL-M. It is free for research, personal use, and startup projects (funding/revenue below $5 million). But if commercial use competes with Datalab's API, it cannot be used. Commercial self-hosting requires a separate license.
This direction is interesting. Document intelligence over the past few years has been building blocks: OCR, layout analysis, LLM extraction, and output repair. lift tries to replace the whole chain with a single large model. From the data, single-field accuracy is already close to closed-source APIs, while full-document accuracy still has a gap.
If you often process documents such as invoices, contracts, and papers, you can run it yourself and try it. Model weights are in the GitHub repository.
发布时间: 2026-11-23 11:18