Ki-OCR
GitHub Repository | δΈζδ»η»
Model Overview
Ki-OCR is a formula-enhanced document parsing model distilled from OXR-1.0. It aims to improve formula recognition ability while preserving overall document parsing quality.
The model retains the original architecture and core document parsing pipeline of OXR-1.0. The model code and configuration have been adapted for Ki-OCR, including model registration and loading compatibility changes.
Training Data. Our training data is sourced from the public dataset IBEM-v1-cropped, a cropped version of IBEM containing mathematical formula images from scientific documents and their corresponding LaTeX annotations. We use displayed (isolated) formula images for training.
On-Policy Distillation (OPD). We use OXR-1.0 as the student model and MiniCPM-OCR 1.0 as the teacher model. The student model generates its own token sequences from formula images, and the teacher model provides token-level probability supervision on the student-generated prefixes. To accommodate the different vocabularies, we align candidate tokens and minimize reverse KL divergence over the aligned top-64 candidates. We fine-tune the student model using LoRA and merge the adapted weights for inference. The original architecture and document parsing pipeline are retained.
Results on OmniDocBench
| Model Type | Methods | Size | Overall β | TextEdit β | FormulaCDM β | TableTEDS β | TableTEDS-S β | Read OrderEdit β |
|---|---|---|---|---|---|---|---|---|
| Ki-OCR | Specialized VLMs | 1.3B | 97.2812 | 0.0242 | 97.6332 | 96.6306 | 98.4685 | 0.1224 |
| Sangfor-OCR | Specialized VLMs | 1.2B | 97.12 | 0.0288 | 98.5932 | 95.6527 | 97.5051 | 0.1174 |
| Youtu-Parsing-Omni | Omni-modal Parser | 5B | 97.11 | 0.026 | 96.84 | 97.13 | 98.55 | 0.11 |
| OXR-1.0 | Specialized VLMs | 1.3B | 97.03 | 0.0244 | 96.93 | 96.61 | 98.44 | 0.1216 |
| TeleOCR | Specialized VLMs | 1.2B | 96.91 | 0.0267 | 96.5895 | 96.8183 | 98.1806 | 0.1184 |
| OvisOCR3 | Specialized VLMs | 0.8B | 96.6861 | 0.025846 | 97.6571 | 94.9858 | 97.3552 | 0.113291 |
Source: The comparison models are the top five by Overall score on the v1.6_full leaderboard in the official OmniDocBench GitHub repository as of December 2, 2026. Ki-OCR results are from our local evaluation.
Reproduce on OmniDocBench
1. Clone the repository, download the model and start inference
Requirements: Linux, Docker, NVIDIA Container Toolkit and a BF16-capable NVIDIA GPU with a CUDA 13-compatible driver. Tested on an NVIDIA A100 80GB.
Clone the repository:
git clone https://github.com/NJUNLP/Ki-OCR.git
cd Ki-OCR
Download the model:
python -m pip install -U huggingface_hub
hf download AndyLiuys/Ki-OCR --local-dir ./models/Ki-OCR
Build the Docker image:
docker build -f docker/Dockerfile.allinone -t ki_ocr:1.0 .
Start the inference service:
docker run -d --name ki-ocr --gpus '"device=0"' --ipc=host \
-p 127.0.0.1:18000:8000 \
-v "$PWD/models/Ki-OCR:/models/ki_ocr-model:ro" \
ki_ocr:1.0
Replace device=0 with the index of an available GPU.
Check the service logs:
docker logs -f ki-ocr
Wait for all services are ready in the container logs, then press Ctrl+C to leave the log viewer; the container stays running.
2. Run full inference and evaluation
Use the OmniDocBench v1.6 full dataset (1,651 pages). From the repository root, run:
DATA="/path/to/OmniDocBench" bash eval_omnidocbench.sh
Replace /path/to/OmniDocBench with the actual dataset path. The directory should contain OmniDocBench.json and images/.
The script completes full inference and automatically runs the official OmniDocBench evaluator. The Markdown predictions, detailed evaluation results and summary.json are saved in the evaluation directory (omnidocbench_eval_*) printed at the end of the run.
Additional Benchmark Results
DocParsingBench
| Model | Overall β | Text β | Formula β | Table β |
|---|---|---|---|---|
| Ki-OCR | 88.41 | 90.98 | 87.12 | 80.21 |
| OXR-1.0 | 87.76 | 90.60 | 85.76 | 80.04 |
Source: OXR-1.0 results are taken from the official OXR benchmark report; Ki-OCR results are from our local evaluation.
olmOCR-bench
| Model | Overall β | ArXiv Math β | Baseline β | Headers / Footers β | Long Tiny Text β | Multi Column β | Old Scans β | Old Scans Math β | Tables β |
|---|---|---|---|---|---|---|---|---|---|
| Ki-OCR | 87.18 | 91.49 | 97.49 | 93.55 | 90.95 | 84.95 | 58.75 | 88.86 | 91.39 |
| OXR-1.0 | 87.11 | 91.49 | 97.27 | 93.68 | 90.95 | 85.29 | 58.37 | 88.43 | 91.39 |
Source: Both OXR-1.0 and Ki-OCR results are from our local evaluation using native PDF inputs. Since we could not reproduce the 87.84 Overall score in the official OXR benchmark report in our local evaluation environment, we report the locally evaluated results for both models under the same evaluation settings.
License and Attribution
Ki-OCR is derived from OXR-1.0 and retains its original model architecture and core document parsing pipeline.
The project is distributed under the OXR Open Source License, which is based on the Apache License 2.0 with additional terms.
The model weights are subject to the original OXR-1.0 model license. The original SoMark attribution and license terms remain applicable.
For the source code, evaluation scripts and third-party attributions, please refer to the Ki-OCR GitHub repository.
- Downloads last month
- 60
Model tree for AndyLiuys/Ki-OCR
Base model
SoMarkAI/OXR-1.0