SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.14374 · ICCV · 2025

Spatial Preference Rewarding for MLLMs Spatial Understanding

Ling Shao, Lewei Lu, Peng Gao, Shijian Lu, Xiaoqin Zhang, Han Qiu

arXiv · PDF · Open in the Atlas

Code that ran

17 of 17 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, 2 violated it and 0 have no contract verdict; 15 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2510.14374.json · badge: /api/ran/2510.14374.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
hanqiu-hq/SPR canonical (classifier label)
classifier basis: census
17 ran · 0 no recorded run
FunctionStatusWhere it lives
are_phrases_similar Ran
ran, violated the contract we drafted
hanqiu-hq/SPR/eval/ferret/eval_flickr_entities.py
pointer only (licence: NONE); the stored copy get_code serves, from apple/ml-ferret, is pointer only (licence: NOASSERTION) · get_code("d515c6ab54f0598c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

crop_local_region Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/construct_data/utils/image_process.py
pointer only (licence: NONE) · get_code("9b249cdc1ef5003c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

crop_square_image Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/construct_data/utils/image_process.py
pointer only (licence: NONE) · get_code("693a88c32834ebef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

decode_bbox_from_caption Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/eval/ferret/eval_flickr_entities.py
pointer only (licence: NONE) · get_code("630a78a1ce5d571d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

decode_bbox_from_caption Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/eval/ferret/eval_refexp.py
pointer only (licence: NONE) · get_code("b8c3dbc07ce34196")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

extract_boxes_from_text Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/construct_data/utils/ground_utils.py
pointer only (licence: NONE) · get_code("d036330f8a6a9a72")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

get_bbox_coor Ran
ran, violated the contract we drafted
hanqiu-hq/SPR/inference/ferret/generate_region_descriptions.py
pointer only (licence: NONE) · get_code("279b92344bb2cac9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

get_chunk Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/construct_data/ferret_score_siglip.py
pointer only (licence: NONE) · get_code("42a46570620cd9fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

map_box_to_origin_text Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/construct_data/utils/process_text.py
pointer only (licence: NONE) · get_code("b49928f7e85dc0c6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

map_crop_coord_to_origin Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hanqiu-hq/SPR/construct_data/utils/process_text.py
pointer only (licence: NONE) · get_code("d26545e5ad9c6fcf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

plot_refexp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hanqiu-hq/SPR/eval/ferret/model_refcoco.py
pointer only (licence: NONE) · get_code("cc4da8158a810e05")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

remove_grounding_text Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/construct_data/utils/process_text.py
pointer only (licence: NONE) · get_code("4e4baed5bbbfba25")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

remove_punctuation Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/eval/ferret/model_flickr.py
pointer only (licence: NONE) · get_code("f65f7ca4ffcd4fa6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

resize_bbox Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/eval/ferret/eval_flickr_entities.py
pointer only (licence: NONE); the stored copy get_code serves, from apple/ml-ferret, is pointer only (licence: NOASSERTION) · get_code("5a8ea802e3fdbf73")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

split_into_chunks Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/construct_data/ferret_score_siglip.py
pointer only (licence: NONE) · get_code("5c4c913b24137e65")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

split_list Ran
ran; our contract draft was wrong, not the code
hanqiu-hq/SPR/construct_data/ferret_score_siglip.py
pointer only (licence: NONE) · get_code("076c252c52cbb161")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

vision_model_head_forward Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hanqiu-hq/SPR/construct_data/utils/region_siglip.py
pointer only (licence: NONE) · get_code("c68033b87d69837c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hanqiu-hq/SPR 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.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 2 later) and 13 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
split_list 197 other papers
177 dated earlier, 1 the same month, 11 later, 7 same year, order not determinable, 1 undated
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 194 more not named here
get_chunk 189 other papers
170 dated earlier, 1 the same month, 11 later, 7 same year, order not determinable
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 186 more not named here
resize_bbox 3 other papers
3 dated earlier
2310.07704 (2023-10)
Ferret: Refer and Ground Anything Anywhere at Any Granularity
2409.06277 (2024-09)
Ferret: Federated Full-Parameter Tuning at Scale for Large Language Models
2409.14750 (2024-09)
FineCops-Ref: A new Dataset and Task for Fine-Grained Compositional Referring Expression Comprehension
are_phrases_similar 2 other papers
2 dated earlier
2310.07704 (2023-10)
Ferret: Refer and Ground Anything Anywhere at Any Granularity
2409.06277 (2024-09)
Ferret: Federated Full-Parameter Tuning at Scale for 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-23.

Repositories linked to this paper

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

Abstract

Multimodal large language models (MLLMs) have demonstrated promising spatial understanding capabilities, such as referencing and grounding object descriptions. Despite their successes, MLLMs still fall short in fine-grained spatial perception abilities, such as generating detailed region descriptions or accurately localizing objects. Additionally, they often fail to respond to the user's requirements for desired fine-grained spatial understanding. This issue might arise because existing approaches primarily focus on tuning MLLMs to model pre-annotated instruction data to inject spatial knowledge, without direct supervision of MLLMs' actual responses. We address this issue by SPR, a Spatial Preference Rewarding (SPR) approach that enhances MLLMs' spatial capabilities by rewarding MLLMs' detailed responses with precise object localization over vague or inaccurate responses. With randomly selected image regions and region descriptions from MLLMs, SPR introduces semantic and localization scores to comprehensively evaluate the text quality and localization quality in MLLM-generated descriptions. We also refine the MLLM descriptions with better localization accuracy and pair the best-scored refinement with the initial descriptions of the lowest score for direct preference optimization, thereby enhancing fine-grained alignment with visual input. Extensive experiments over standard referring and grounding benchmarks show that SPR improves MLLM spatial understanding capabilities effectively with minimal overhead in training. Data and code will be released at https://github.com/hanqiu-hq/SPR.

For agents

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

get_harvested_code_for_paper("2510.14374")
get_code_for_paper("2510.14374")
have("2510.14374")

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

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

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

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

Connect an agent — have() is free.