OXR Turns Any PDF into Agent-Ready Markdown, and Its Layout Model Is Swappable
Document parsing is a routine bottleneck in retrieval and agent pipelines. A model that ships a separable layout stage and can run locally on 24GB gives teams a concrete base for custom structured extraction without forcing a fixed paragraph-and-table pipeline on them.
OCR reads text; OXR reads the document. SoMark's open-source OXR model, a 1.3B-parameter transformer, treats the whole page as a structured object, outputting Markdown and JSON along with layout analysis. It was pretrained from scratch and then tuned with a recursive self-improvement (RSI) paradigm for document parsing. On OmniDocBench, olmOCR-Bench, and DocParsingBench, OXR holds first place, and it runs at about 0.99 pages per second end-to-end on an RTX PRO 6000 with BF16.
The architecture separates layout analysis into an independent, pluggable module. Recognition handles the visual content while layout detection runs separately, and reading order is resolved inside the recognition stage. That split lets teams keep OXR's recognizer but replace the layout model with one trained on their own document types, without retraining the whole system. The practical trade-off is lower adaptation cost for different document structures, and the interface stays clean.
SoMark keeps a free API open without registration or keys, plus a China mirror, for quick tests. Local deployment needs Linux, an NVIDIA GPU with BF16 support, CUDA 13.0-compatible drivers, Python 3.12, and at least 24GB of VRAM for low concurrency, with 48GB or more recommended for longer documents or heavier load. Benchmark details and full docs live in the GitHub repository.
Separating layout analysis from recognition is the most consequential design choice here; typical document parsers bake layout into a single model, which makes adapting to a new document type expensive and slow.
The recursive self-improvement training claim is interesting but unverified in this write-up; the article gives no detail on how the RSI loop is structured or what data drives it, which makes the benchmark rankings hard to evaluate independently.
Offering a free API with no key registration is a strong evaluation hook, but the pledge to keep it running only until the servers fail under load is a real constraint for anyone weighing production reliance on that endpoint.
The discussion centers on how OXR stacks up against MinerU, a competing open-source document-parsing tool. A direct reply claims their output quality is roughly equivalent, while MinerU offers a broader feature set. A separate remark playfully notes that OCR also abbreviates 'Open Code Review'.
What's the difference between the MinerU project and the OXR mentioned in the article?
They're about the same in effect, but MinerU has more powerful functionality.