SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.17163 · ICLR · 2025

OCR-Reasoning Benchmark: Unveiling the True Capabilities of MLLMs in Complex Text-Rich Image Reasoning

Dezhi Peng, Yongxin Shi, Lianwen Jin, Mingxin Huang, Songxuan Lai, Zecheng Xie

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.17163.json · badge: /api/ran/2505.17163.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
SCUT-DLVCLab/OCR-Reasoning canonical (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
FunctionStatusWhere it lives
build_ocrr_gpt4_prompt Ran
ran on a synthesized input
SCUT-DLVCLab/OCR-Reasoning/vlmeval/dataset/utils/ocr_reasoning.py
code served (permissive licence) · get_code("361269a4a5505e32")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Setup code for build_ocrr_gpt4_prompt

ARGS = {
    'line': {
        'question': 'What is the total revenue for brand X in 2023?',
        'prediction': 'The total revenue for brand X in 2023 is 500 billion yuan.'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
chat_mt Ran
ran; our contract draft was wrong, not the code
SCUT-DLVCLab/OCR-Reasoning/vlmeval/inference_mt.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ylhz/FlexAC, is pointer only (licence: NONE) · get_code("c96f86fc774ee85d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ylhz/FlexAC, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_single_sample Ran
ran on a synthesized input
SCUT-DLVCLab/OCR-Reasoning/vlmeval/dataset/utils/ccocr_evaluator/ocr_evaluator.py
code served (permissive licence) · get_code("ba2fa310ee4e7da7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from collections import Counter

# Analyze the function:
# - gts: ground truth, appears to be an iterable that can be passed to Counter()
# - preds: predictions, appears to be an iterable that can be passed to Counter()
# - Both are used to count occurrences of tokens
# - Returns an integer representing the number of matching tokens

# Create sample data for gts and preds
# These should be sequences/lists of tokens that can be counted

gts = ['cat', 'dog', 'cat', 'bird', 'cat', 'dog']
preds = ['cat', 'cat', 'dog', 'fish', 'bird', 'dog']

ARGS = {
    'gts': gts,
    'preds': preds,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_gpu_num Ran
ran, honoured the contract we drafted
SCUT-DLVCLab/OCR-Reasoning/vlmeval/api/hf_chat_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ylhz/FlexAC, is pointer only (licence: NONE) · get_code("6517db7a566fb96d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ylhz/FlexAC, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_to_dict Ran
ran; our contract draft was wrong, not the code
SCUT-DLVCLab/OCR-Reasoning/vlmeval/dataset/utils/ocr_reasoning.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from seephys/seephys-project, is pointer only (licence: NONE) · get_code("82238737d11621e0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from seephys/seephys-project, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

text_normalize_and_tokenize Ran
ran on a synthesized input
SCUT-DLVCLab/OCR-Reasoning/vlmeval/dataset/utils/ccocr_evaluator/ocr_evaluator.py
code served (permissive licence) · get_code("6df2767196f61b82")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def token_normalize(token_text, is_lower=False, is_alphanum_only=False):
    """
    """
    if is_lower:
        token_text = token_text.lower()
    if is_alphanum_only:
        token_text = re.sub('[^A-Za-z0-9]+', '', token_text)
    return token_text

def text_normalize_and_tokenize(text, is_keep_blank=True, is_lower=True, is_alphanum_only=False):
    text = text.replace('\t', ' ').replace('\n', ' ').replace('###', '').replace('***', '')
    text = re.sub('\\s+', ' ', text)
    if not is_keep_blank:
        text = text.replace(' ', '')
    text_tokens = text.split(' ') if is_keep_blank else list(text)
    text_token_normalized = [token_normalize(t, is_lower, is_alphanum_only) for t in text_tokens]
    text_token_normalized = [x for x in text_token_normalized if len(x) > 0]
    return text_token_normalized

ARGS = {
    "text": "Hello   World###test***data\t\nmore",
    "is_keep_blank": True,
    "is_lower": True,
    "is_alphanum_only": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
token_normalize Ran
ran on a synthesized input
SCUT-DLVCLab/OCR-Reasoning/vlmeval/dataset/utils/ccocr_evaluator/ocr_evaluator.py
code served (permissive licence) · get_code("8397ab12bca29684")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
import torch

def token_normalize(token_text, is_lower=False, is_alphanum_only=False):
    """
    """
    if is_lower:
        token_text = token_text.lower()
    if is_alphanum_only:
        token_text = re.sub('[^A-Za-z0-9]+', '', token_text)
    return token_text

ARGS = {
    "token_text": "Hello_World!123",
    "is_lower": False,
    "is_alphanum_only": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
completed Not yet run
unverified (harvested, no recorded run)
SCUT-DLVCLab/OCR-Reasoning/vlmeval/tools.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ylhz/FlexAC, is pointer only (licence: NONE) · get_code("949f0167dd9b6572")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ylhz/FlexAC, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

multimodal Not yet run
unverified (harvested, no recorded run)
SCUT-DLVCLab/OCR-Reasoning/vlmeval/api/bluelm_v_api.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ylhz/FlexAC, is pointer only (licence: NONE) · get_code("9b37005bea69ebe8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ylhz/FlexAC, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

post_check Not yet run
unverified (harvested, no recorded run)
SCUT-DLVCLab/OCR-Reasoning/vlmeval/dataset/utils/ocr_reasoning.py
code served (permissive licence) · get_code("239c898c430e73fe")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 4 the same month, 5 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
chat_mt 4 other papers
1 the same month, 3 later
2505.15929 (2025-05)
PhyX: Does Your Model Have the "Wits" for Physical Reasoning?
2507.01949 (2025-07)
Kwai Keye-VL Technical Report
2507.06167 (2025-07)
Skywork-R1V3 Technical Report
and 1 more not named here
get_gpu_num 4 other papers
1 the same month, 3 later
2505.15929 (2025-05)
PhyX: Does Your Model Have the "Wits" for Physical Reasoning?
2507.01949 (2025-07)
Kwai Keye-VL Technical Report
2507.06167 (2025-07)
Skywork-R1V3 Technical Report
and 1 more not named here
completed 3 other papers
1 the same month, 2 later
2505.15929 (2025-05)
PhyX: Does Your Model Have the "Wits" for Physical Reasoning?
2507.06167 (2025-07)
Skywork-R1V3 Technical Report
2510.11190 (2025-10)
FlexAC : Towards Flexible Control of Associative Reasoning in Multimodal Large Language Models
list_to_dict 2 other papers
1 later, 1 same year, order not determinable
2025.findings-acl.964 (2025 (year only))
Multimodal Inconsistency Reasoning (MMIR): A New Benchmark for Multimodal Reasoning Models
2507.06167 (2025-07)
Skywork-R1V3 Technical Report
multimodal 2 other papers
1 the same month, 1 later
2505.15929 (2025-05)
PhyX: Does Your Model Have the "Wits" for Physical Reasoning?
2510.11190 (2025-10)
FlexAC : Towards Flexible Control of Associative Reasoning in Multimodal Large Language Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent advancements in multimodal slow-thinking systems have demonstrated remarkable performance across various visual reasoning tasks. However, their capabilities in text-rich image reasoning tasks remain understudied due to the absence of a dedicated and systematic benchmark. To address this gap, we propose OCR-Reasoning, a novel benchmark designed to systematically assess Multimodal Large Language Models on text-rich image reasoning tasks. Specifically, OCR-Reasoning comprises 1,069 human-annotated examples spanning 6 core reasoning abilities and 18 practical reasoning tasks in text-rich visual scenarios. Unlike existing text-rich image understanding benchmarks that only provide a final answer, this benchmark additionally provides a detailed step-by-step reasoning process. This dual annotation enables the evaluation of both the models' final answers and their reasoning processes, thereby offering a holistic assessment of text-rich reasoning capabilities. By leveraging this benchmark, we conducted a comprehensive evaluation of the latest MLLMs. Our results demonstrate that even the most advanced MLLMs exhibit substantial difficulties in text-rich image reasoning tasks, with none achieving an accuracy above 50% on our benchmark, indicating that the challenges of text-rich image reasoning are an urgent issue to be addressed. The benchmark and evaluation scripts are available at https://github.com/SCUT-DLVCLab/OCR-Reasoning.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.17163")
get_code_for_paper("2505.17163")
have("2505.17163")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.17163.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.17163.svg)](https://syntology.ai/paper/2505.17163)

Connect an agent — have() is free.