SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.17609 · 2025

Integrating Visual Interpretation and Linguistic Reasoning for Math Problem Solving

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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.17609.json · badge: /api/ran/2505.17609.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
guozix/dvlr canonical (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
create_one_query Ran
ran; our contract draft was wrong, not the code
guozix/dvlr/eval/MathVerse/evaluation/build_query.py
code served (permissive licence) · get_code("9c139a95c7324740")
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 torch
import numpy as np

# Construct valid arguments for create_one_query

# problem: a dict with keys 'query_format', 'caption', 'ocr', 'question_type'
problem = {
    'query_format': 'question',
    'question': 'What is 2 + 2?',
    'caption': 'A mathematical problem',
    'ocr': 'OCR text extracted from image',
    'question_type': 'multi_choice'
}

# examples: a list of dicts, each with 'as_example' key
examples = [
    {
        'as_example': 'Example 1: Question about math\nAnswer: 4'
    },
    {
        'as_example': 'Example 2: Another question\nAnswer: 5'
    },
    {
        'as_example': 'Example 3: Third example\nAnswer: 6'
    }
]

# shot_num: number of examples to use (0 or positive integer)
shot_num = 2

# shot_type: either 'solution' or 'code'
shot_type = 'solution'

# use_caption: boolean flag (not used in function body but required parameter)
use_caption = True

# use_ocr: boolean flag (not used in function body but required parameter)
use_ocr = True

# query_format: string key to access question from problem dict
query_format = 'question'

ARGS = {
    'problem': problem,
    'examples': examples,
    'shot_num': shot_num,
    'shot_type': shot_type,
    'use_caption': use_caption,
    'use_ocr': use_ocr,
    'query_format': query_format
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
dynamic_preprocess Ran
ran; our contract draft was wrong, not the code
guozix/dvlr/eval/MathVerse/evaluation/generate_response_geo_text_qwen_2.py
code served (permissive licence) · get_code("93f012e28ba3ca67")
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 tuple. 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.

from PIL import Image
import io

# Create a small test image
# The function expects image.size (width, height) and image.resize() and image.crop() methods
# This is a PIL Image
test_image = Image.new('RGB', (224, 168))  # width=224, height=168, aspect ratio ~1.33

ARGS = {
    'image': test_image,
    'min_num': 1,
    'max_num': 12,
    'image_size': 448,
    'use_thumbnail': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
find_closest_aspect_ratio Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from OpenGVLab/MM-NIAH
pointer only; the stored copy get_code serves, from OpenGVLab/MM-NIAH, is pointer only (licence: NONE) · get_code("bd77f5f8067f18e9")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

refine_caption Ran
ran; our contract draft was wrong, not the code
guozix/dvlr/eval/MathVerse/evaluation/build_query.py
code served (permissive licence) · get_code("d027e6e473c9fcd4")
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 torch

# Analyze the function: refine_caption takes a single parameter 'caption'
# The function checks if caption is a string, and if so, removes various nonsense phrases
# If caption is not a string, it returns an empty string

# Test case 1: caption is a string with nonsense phrases
caption_with_nonsense = "Sure. This is a great image. I hope this helps!"

ARGS = {
    "caption": caption_with_nonsense
}
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
refine_ocr Ran
ran; our contract draft was wrong, not the code
guozix/dvlr/eval/MathVerse/evaluation/build_query.py
code served (permissive licence) · get_code("bfd184123c9012c3")
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) 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 torch

# Construct valid OCR data as a string representation
# The function expects a string that can be eval'd into a list of tuples
# Each tuple contains: (bounding_box, text, confidence_score)
ocr_data = str([
    (
        [[161, 39], [766, 39], [766, 120], [161, 120]], 
        'The spring force does', 
        0.912845069753024
    ),
    (
        [[200, 150], [500, 150], [500, 200], [200, 200]], 
        'Another text line', 
        0.95
    )
])

ARGS = {
    'ocr': ocr_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 1 later) and 0 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
find_closest_aspect_ratio 43 other papers
30 dated earlier, 2 the same month, 7 later, 4 same year, order not determinable
1910.01108 (2019-10)
DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
2312.13271 (2023-12)
Repaint123: Fast and High-quality One Image to 3D Generation with Progressive Controllable 2D Repainting
2403.15952 (2024-03)
IllusionVQA: A Challenging Optical Illusion Dataset for Vision Language Models
and 40 more not named here
refine_caption 4 other papers
3 dated earlier, 1 same year, order not determinable
2310.02255 (2023-10)
MathVista: Evaluating Mathematical Reasoning of Foundation Models in Visual Contexts
2409.00147 (2024-09)
MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models
2410.17885 (2024-10)
Theorem-Validated Reverse Chain-of-Thought Problem Generation for Geometric Reasoning
and 1 more not named here
refine_ocr 4 other papers
3 dated earlier, 1 same year, order not determinable
2310.02255 (2023-10)
MathVista: Evaluating Mathematical Reasoning of Foundation Models in Visual Contexts
2409.00147 (2024-09)
MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models
2410.17885 (2024-10)
Theorem-Validated Reverse Chain-of-Thought Problem Generation for Geometric Reasoning
and 1 more not named here
dynamic_preprocess 2 other papers
1 dated earlier, 1 same year, order not determinable
2410.17885 (2024-10)
Theorem-Validated Reverse Chain-of-Thought Problem Generation for Geometric Reasoning
Guo_Integrating_Visual_Interpretation_and_Linguistic_Reasoning_for_Geometric_Problem_Solving_ICCV_2025_paper (2025 (year only))
Integrating Visual Interpretation and Linguistic Reasoning for Geometric Problem Solving
create_one_query 1 other paper
1 same year, order not determinable
Guo_Integrating_Visual_Interpretation_and_Linguistic_Reasoning_for_Geometric_Problem_Solving_ICCV_2025_paper (2025 (year only))
Integrating Visual Interpretation and Linguistic Reasoning for Geometric Problem Solving

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

Current large vision-language models (LVLMs) typically employ a connector module to link visual features with text embeddings of large language models (LLMs) and use end-to-end training to achieve multi-modal understanding in a unified process. Effective alignment needs high-quality pre-training data and a carefully designed training process. Current LVLMs face challenges when addressing complex vision-language reasoning tasks, with their reasoning capabilities notably lagging behind those of LLMs. This paper proposes a paradigm shift: instead of training end-to-end vision-language reasoning models, we advocate for developing a decoupled reasoning framework based on existing visual interpretation specialists and text-based reasoning LLMs. Our approach leverages (1) a dedicated vision-language model to transform the visual content of images into textual descriptions and (2) an LLM to perform reasoning according to the visual-derived text and the original question. This method presents a cost-efficient solution for multi-modal model development by optimizing existing models to work collaboratively, avoiding end-to-end development of vision-language models from scratch. By transforming images into language model-compatible text representations, it facilitates future low-cost and flexible upgrades to upcoming powerful LLMs. We introduce an outcome-rewarded joint-tuning strategy to optimize the cooperation between the visual interpretation and linguistic reasoning model. Evaluation results on vision-language benchmarks demonstrate that the decoupled reasoning framework outperforms recent LVLMs. Our approach yields particularly significant performance gains on visually intensive geometric mathematics problems. The code is available: https://github.com/guozix/DVLR.

For agents

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

get_harvested_code_for_paper("2505.17609")
get_code_for_paper("2505.17609")
have("2505.17609")

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

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

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

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

Connect an agent — have() is free.