2026-11-27 16:43 UTC

SoMark releases 1.3B OXR document parser; benchmark leadership remains unverified

state: expiredheat: mediumuncertainty: mediumrelevance: mediumdocument-parsing open-modelSoMark

What is this?

SoMark has released OXR-1.0, an open document-parsing model with 1.3 billion parameters. Its repository says it converts PDFs and document images into Markdown or JSON, including layout coordinates and reading order; supports local deployment and offers a free API for testing. SoMark also reports that OXR ranks first on three benchmarks and is especially fast, but these are publisher claims in the supplied evidence, not independently verified results. The project describes using a recursive self-improvement loop during post-training; its technical report is still listed as forthcoming.

Why it matters

OXR is worth tracking as a potentially useful, relatively small open model for turning complex PDFs and document images into structured, agent-ready data. Its Markdown/JSON output, layout coordinates, pluggable layout-analysis component and local deployment could suit teams that need to process documents without relying entirely on a hosted parser. But the top-benchmark and speed claims come from SoMark; the supplied evidence does not independently verify them, and a technical report is still forthcoming. Local testing also calls for a 24GB GPU at minimum, and the project’s custom license should be checked before adoption.

Current assessment

SoMark’s OXR-1.0 release is a 1.3B-parameter document parser that, according to its repository, handles PDFs and document images and outputs Markdown or JSON with layout coordinates and reading order. It supports 13 listed element types, including tables, formulas, code blocks and chemical structures. The publisher says it ranks first on olmOCR-Bench, OmniDocBench and DocParsingBench and leads open-source parsers on speed in tests using an RTX PRO 6000; these results are publisher-reported, and the repository points to benchmark instructions but no independent confirmation appears in the supplied material. SoMark says it used a recursive self-improvement loop during post-training and calls this a first for document parsing; a technical report is listed as forthcoming. OXR offers local deployment, with 24GB GPU memory cited for low-concurrency testing and 48GB or more recommended for longer documents or higher concurrency, plus a free, queued test API that is explicitly not recommended for production. The custom OXR Open Source License is based on Apache 2.0 with additional terms. Practical relevance depends on benchmark reproducibility, performance on a user’s own documents, deployment cost and license compatibility.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-21 16:20⭐ origin directly observedOXR – An RSI-trained 1.3B open-source SOTA document parsing model
ethegwo on hacker news
—
10-21 16:20amplified on hacker news 👑hn.story.50183506
ethegwo
peak 3 · 2 comments · 99% of case engagement
10-21 16:26our radar first saw it · +0.1hdiscovery anchor: hn.story.50183506—

Evidence (1) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hn ⭐OXR – An RSI-trained 1.3B open-source SOTA document parsing model
Retrieved article excerpt

Open article · Retrieved 2026-10-21T16:29:33.006717+00:00

# SoMark|OXR

An open-source document parsing model with SOTA accuracy and speed, using an RSI loop during post-training.

---

**Turn documents into Agent-Friendly data.**

[🌐 Online Demo](https://free-oxr.somark.ai) | [🔥 🆓 Free API](https://github.com/SoMarkAI/OXR#free-api)

[GitHub | OXR](https://github.com/SoMarkAI/OXR) [Hugging Face | OXR-1.0](https://huggingface.co/SoMarkAI/OXR-1.0) [ModelScope | OXR-1.0](https://modelscope.cn/models/SoMark/OXR-1.0)
[arXiv | Coming Soon](https://camo.githubusercontent.com/b645a85379388596d3af31cda55cdfe6b2ff8445170153d296cbacf0c44020b8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f61725869762d436f6d696e67253230536f6f6e2d4233314231423f7374796c653d666c61742d737175617265)

**English** · [简体中文](https://github.com/SoMarkAI/OXR/blob/main/README_CN.md)

OXR (Optical Everything Recognition) is an open-source model from the SoMark team. It turns PDFs and document images into Agent-Friendly data in Markdown or JSON, with layout coordinates included.

Pretrained from scratch, OXR uses a recursive self-improvement (RSI) loop during post-training—a first in document parsing. With just 1.3B parameters, OXR ranks #1 on olmOCR-Bench, OmniDocBench, and DocParsingBench while delivering industry-leading parsing speed.

OXR is the first to make its layout analysis module independent and pluggable. This design accelerates parsing and supports replacing the built-in layout model with a custom one. OXR continues to handle content recognition and reading order, enabling adaptation across diverse scenarios with minimal integration effort.

---

> If this project helps you, please click ⭐ Star in the top-right corner to support us. It's the best encouragement you can give the developers!

## Why OXR?

- 🎯 SOTA Accuracy. #1 Across Three Benchmarks.

  - OXR ranks 🏆#1 on olmOCR-Bench, OmniDocBench, and DocParsingBench, with a particularly wide lead in table parsing.
  - OXR can recognize 13 document element types, from formulas and tables to chemical equations, chemical structures, and code blocks, with bounding box coordinates included. It also performs well on challenging documents and layouts, including A3 exam papers, newspapers, vertical text, and handwriting.
  - See [docs/benchmark.md](https://github.com/SoMarkAI/OXR/blob/main/docs/benchmark.md) for the full results and instructions to reproduce the evaluations.
- 🚀 1.3B Parameters. Top-Tier Parsing Speed.

  - With only 1.3B parameters, OXR ranks 🏆#1 among open-source document parsing models in speed tests on the RTX PRO 6000.
  - OXR redesign its processing architecture at the task level to improve parsing speed while maintaining accuracy.
  - See [docs/benchmark.md](https://github.com/SoMarkAI/OXR/blob/main/docs/benchmark.md) for the full results and instructions to reproduce the evaluations.
- 🧩 Pluggable Layout Analysis. Document Structure on Your Terms.

  - Layout analysis requirements vary widely across domains. Even for the same document, element types, region boundaries, and grouping rules can differ depending on the business use case.
  - OXR is the first to make layout analysis independent and pluggable. Its built-in layout model can be replaced while retaining OXR’s recognition and reading order capabilities, enabling adaptation across document scenarios with minimal integration effort.
  - See the [How it works](https://github.com/SoMarkAI/OXR#how-to-works) section below for details.

Expand to see all 13 element types


| Name | JSON type value | Content or output format |
| --- | --- | --- |
| Caption | Caption | Plain text |
| Footnote | Footnote | Plain text |
| Formula | Formula | LaTeX |
| Text | Text | Plain text |
| Footer | Page-footer | Plain text (filtered out by default) |
| Header | Page-header | Plain text (filtered out by default) |
| Figure | Picture | Image |
| Title | Title | Plain text |
| Table | Table | HTML / Markdown |
| Stamp | Stamp | Plain text / Image |
| Chemical Equation | Chemical Equation | LaTeX (starting with \ce, using mhchem syntax) |
| Code Block | Code Block | Markdown code block |
| Chemical Structure | Chemical Structure | SMILES / Image |

## Parsing Examples

The animation shows OXR's parsing process.

[Animated OXR parsing example](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/oxr_parsing_demo.gif)

The examples below show OXR parsing different document types. Click an image to view the original.

|  |  |  |
| --- | --- | --- |
| **A3 Exam Paper** [A3 Exam Paper](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/a3_exam_paper.png) | **Chinese Handwriting** [Chinese Handwriting](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/chinese_handwriting.png) | **Code Block** [Code Block](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/code_block.png) |
| **Chemical Equation** [Chemical Equation](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/chemical_equation.png) | **Chemical Structure** [Chemical Structure](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/chemical_structure.png) | **Complex Formula** [Complex Formula](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/complex_formula.png) |
| **Complex Table** [Complex Table](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/complex_table.png) | **Academic Paper** [Academic Paper](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/academic_paper.png) | **Newspaper** [Newspaper](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/newspaper.png) |
| **Research Report** [Research Report](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/research_report.png) | **Resume** [Resume](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/resume.png) | **English Handwriting** [English Handwriting](https://raw.githubusercontent.com/SoMarkAI/image_bed/main/OXR_README/assets/parsing_examples/english_handwriting.png) |

## How it works

### Technical Architecture

The system consists of two models: a Layout Analysis model and OXR. We integrate Reading Order into the Recognition stage, with both tasks handled by the same model. This design improves both speed and accuracy.

We also designed the system this way to make customization easier. We have found that Layout Analysis varies more across document domains than any other module, and it is typically the part that document parsing providers need to customize most. Existing document parsing tools either assign it to the Recognition model or use a dedicated model that also handles Reading Order. OXR's design achieves the simplest access method for Layout Analysis, and any Layout Analysis model can work well with the OXR model.

### Improvement Through the RSI Loop

For a task like document parsing, where ground-truth answers exist, we have long wanted an engineering system that helps the core model improve itself. The diagram below shows OXR's RSI approach. It targets samples the model gets wrong or handles weakly, improving performance without human annotation. This has made our iteration faster than ever.

## Quick Start

### 0. 🔥 🆓 Free API

OXR provides a free API so you can test parsing on your own documents without registering or requesting an API key.

We'll keep the free API online until we can no longer afford to run it.

⚠️ Note: We do not recommend using the Free OXR API in production. We do not guarantee service stability, and requests are queued, so processing speed may vary slightly.

| Online Demo | <https://free-oxr.somark.ai> | <https://free-oxr.somark.cn> |
| --- | --- | --- |
| API URL | <https://free-oxr.somark.ai/api/v1> | <https://free-oxr.somark.cn/api/v1> |
| API documentation | <https://docs.somark.ai/api-reference> | <https://docs.somark.cn/api-reference> |

> somark.cn is a mirror of somark.ai. Choose the domain that works best for your region.

OXR's document parsing API is compatible with SoMark's official document parsing API. You can use SoMark's official document parsing CLI tools, somark-py and somark-js, by changing the **Base URL**. See Section 1.4 for supported endpoints and output formats.

```
# using python
pip install somark
# or using js
npm install -g somark-js

somark --base-url https://free-oxr.somark.ai/api/v1 --api-key dummy \
  parse document.pdf --formats md,json --out ./parsed-output/
```

### 1. Run Locally

```
Operating system: Linux
GPU: NVIDIA (with BF16 support)
Driver: NVIDIA driver (compatible with CUDA 13.0)
Python: 3.12 (for model downloads / running from source)
GPU memory to get started: 24GB on a single GPU (for low-concurrency testing)
Recommended GPU memory: ≥48GB on a single GPU (for long documents / higher concurrency)
```

#### 1.1 Download the Code and Models

| Model | Download links | Precision | Includes a lightweight layout analysis model? |
| --- | --- | --- | --- |
| OXR-1.0 | [🤗 Hugging Face](https://huggingface.co/SoMarkAI/OXR-1.0)   [🤖 ModelScope](https://modelscope.cn/models/SoMark/OXR-1.0) | BF16 | Yes, in the layout\_analysis folder |

First, get the code and prepare the environment for downloading the models:

```
git clone https://github.com/SoMarkAI/OXR.git
cd OXR

# pip install -U huggingface_hub
hf download SoMarkAI/OXR-1.0 --local-dir ./models/OXR-1.0

# or using ModelScope
# pip install -U modelscope-hub
modelscope download SoMark/OXR-1.0 --local_dir ./models/OXR-1.0
```

#### 1.2 Start the Services

##### 1.2.1 Run with Docker (Recommended)

We recommend Docker to configure and start all services together.

```
docker build -f docker/Dockerfile.allinone -t oxr-1.0 .
docker run --rm --gpus all --ipc=host \
  -p 127.0.0.1:8000:8000 \
  -v "$PWD/models/OXR-1.0:/models/oxr-model:ro" \
  oxr-1.0
```

Once the startup logs show that the services are ready, open <http://localhost:8000/demo> or <http://localhost:8000/docs>.
The first startup may take longer. The default startup timeout is 900 seconds.
See How to use OXR for more advanced options and usage examples.

##### 1.2.2 Run from Source

After downloading the code and models, start the following three services separately. Each service uses its own process and virtual environment. Run all commands from the OXR repository root. The document parsing API depends on both the OXR model service and the Layout Analysis model service, so start the two model APIs first.

**OXR Model Service (Port 8080)**

OXR supports vLLM, but the official vLLM release does not yet support OXR inference. We provide an out-of-tree plugin and a loading script in the model weights folder on Hugging Face. No recompilation is needed: you can use the plugin directly with the official vLLM Docker image or CLI.

```
# pip install vllm==0.25.1 transformers==5.13.1

MODEL_PATH="$PWD/models/OXR-1.0" \
  bash services/oxr/start_vllm.sh \
  --gpu-memory-utilization 0.70 --max-num-seqs 16
```

**Layout Analysis Model Service (Port 8081)**

The Layout Analysis model weights are included in the OXR model weights folder downloaded earlier.

```
# pip install torch==2.11.0 torchvision==0.26.0 --index-url https://download.pytorch.org/whl/cu130
# pip install -r services/layout_analyze/requirements.txt

MODEL_PATH="$PWD/models/OXR-1.0/layout_analysis/last.pth" \
DFINE_DEVICE=cuda \
  python -m uvicorn dfine_la.api:app \
  --app-dir services/layout_analyze \
  --host 127.0.0.1 --port 8081 --workers 1
```

**Document Parsing API (Port 8000)**

Copy the provided `config.example.yaml` to `config.yaml`. Set the url fields under `layout_analyze_model` and `oxr_model` to the addresses of the two services you started above.

```
# pip install -c docker/requirements.allinone.txt .

o
ethegwo32

Interpretation history

Decision trace