跪拜 Guibai
← All articles
Backend · Java · Programmer

OXR Turns Any PDF into Agent-Ready Markdown, and Its Layout Model Is Swappable

By SimonKing ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

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.

Summary

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.

Takeaways
— OXR is a 1.3B-parameter model pretrained from scratch and post-trained with a recursive self-improvement (RSI) paradigm for document parsing.
— It ranks first on OmniDocBench, olmOCR-Bench, and DocParsingBench, with table parsing as a standout sub-task.
— Official end-to-end throughput is about 0.99 pages per second on an RTX PRO 6000 with BF16 precision.
— Layout analysis is a separate, pluggable module; reading order is folded into the recognition stage, so teams can swap in their own layout model while keeping OXR's recognizer.
— Free API endpoints require no registration or API key: https://free-oxr.somark.ai/api/v1 and a China mirror at https://free-oxr.somark.cn/api/v1.
— Local deployment needs Linux, an NVIDIA GPU with BF16, a CUDA 13.0-compatible driver, Python 3.12, and 24GB VRAM minimum (48GB or more recommended).
Conclusions

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.

Concepts & terms
OXR (Optical Everything Recognition)
A document parsing model that goes beyond OCR by recognizing layout, reading order, and structure, outputting Markdown and JSON that agent pipelines can directly consume.
RSI (Recursive Self-Improvement)
A training paradigm where a model iteratively refines itself on its own outputs or derived signals; OXR is claimed to be the first to apply it to document parsing during the post-training phase.
From the discussion

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'.

— OXR and MinerU are compared, with a claim that their output quality is comparable.
— The reply asserts MinerU is more feature-rich than OXR.
— A side comment observes that the OCR acronym also refers to Open Code Review.
Featured comments
Percy_kk

What's the difference between the MinerU project and the OXR mentioned in the article?

SimonKing

They're about the same in effect, but MinerU has more powerful functionality.

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗