SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.14083 · EMNLP · 2024

SURf: Teaching Large Vision-Language Models to Selectively Utilize Retrieved Information

Yu Cheng, Jiashuo Sun, Xiaoye Qu, Zhaochen Su, Yucheng Zhou, Jihai Zhang

arXiv · PDF · Open in the Atlas

Code that ran

18 of 18 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 14 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2409.14083.json · badge: /api/ran/2409.14083.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
GasolSun36/SURf canonical (classifier label)
classifier basis: census
16 ran · 0 no recorded run
gasolsun36/surf canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
FunctionStatusWhere it lives
build_prompt Ran
ran; our contract draft was wrong, not the code
GasolSun36/SURf/eval/pope.py
pointer only (licence: NONE) · get_code("c8c51dd88ad58cb1")
How it ran

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

build_prompt Ran
ran; our contract draft was wrong, not the code
GasolSun36/SURf/initial/data_filter.py
pointer only (licence: NONE) · get_code("48f2a9620f2ac197")
How it ran

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

calculate_metrics Ran
ran, honoured the contract we drafted
GasolSun36/SURf/eval/eval_pope.py
pointer only (licence: NONE) · get_code("31fd3eb13a63be04")
How it ran

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

compute_statistics Ran
ran, honoured the contract we drafted
GasolSun36/SURf/eval/eval_pope.py
pointer only (licence: NONE) · get_code("f63fb039437be784")
How it ran

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

create_faiss_index Ran
ran; our contract draft was wrong, not the code
GasolSun36/SURf/database/create_index.py
pointer only (licence: NONE) · get_code("4267a0b07402b7e7")
How it ran

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

divide_to_patches Ran
ran; our contract draft was wrong, not the code
GasolSun36/SURf/llava/mm_utils.py
pointer only (licence: NONE) · get_code("7e03b180fa317c9a")
How it ran

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

exact_match Ran
ran, violated the contract we drafted
GasolSun36/SURf/initial/tool_evaluate.py
pointer only (licence: NONE) · get_code("442f044af42b5b3f")
How it ran

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

generate_clip_vectors Ran
ran, honoured the contract we drafted
GasolSun36/SURf/database/create_index.py
pointer only (licence: NONE) · get_code("94855420b055f5cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/SURf 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
GasolSun36/SURf/initial/generate_initial_data.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, GasolSun36/SURf 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
GasolSun36/SURf/eval/pope.py
pointer only (licence: NONE) · get_code("06d40f4711e62357")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/SURf 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
gasolsun36/surf/initial/tool_evaluate.py
pointer only (licence: NONE) · get_code("8a203abf91abfcad")
How it ran

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

load_faiss_index Ran
ran; our contract draft was wrong, not the code
GasolSun36/SURf/eval/pope.py
pointer only (licence: NONE) · get_code("c440a6c78fc9fc04")
How it ran

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

load_files Ran
ran; our contract draft was wrong, not the code
GasolSun36/SURf/eval/eval_pope.py
pointer only (licence: NONE) · get_code("1bdb9a6725f61c1d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/SURf 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_and_pad_image Ran
ran; our contract draft was wrong, not the code
GasolSun36/SURf/llava/mm_utils.py
pointer only (licence: NONE) · get_code("468eedeba67f1b00")
How it ran

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

retrieve_base_filenames Ran
ran; our contract draft was wrong, not the code
GasolSun36/SURf/initial/data_filter.py
pointer only (licence: NONE) · get_code("e6cc6a9ac7adfd83")
How it ran

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

select_best_resolution Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GasolSun36/SURf/llava/mm_utils.py
pointer only (licence: NONE) · get_code("3999ff487573f32c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/SURf 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
GasolSun36/SURf/initial/generate_initial_data.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, GasolSun36/SURf 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
gasolsun36/surf/initial/tool_evaluate.py
pointer only (licence: NONE) · get_code("abe4f5d245fa207a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gasolsun36/surf 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 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 5 the same month, 5 later) and 11 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
92 dated earlier, 16 the same month, 82 later, 6 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
88 dated earlier, 15 the same month, 80 later, 6 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
select_best_resolution 73 other papers
28 dated earlier, 5 the same month, 40 later · 7 only as an assembly brick
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2304.08485 (2023-04)
Visual Instruction Tuning
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
and 70 more not named here
resize_and_pad_image 65 other papers
23 dated earlier, 5 the same month, 37 later
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
2310.08588 (2023-10)
Octopus: Embodied Vision-Language Programmer from Environmental Feedback
and 62 more not named here
divide_to_patches 64 other papers
23 dated earlier, 4 the same month, 37 later
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
2310.08588 (2023-10)
Octopus: Embodied Vision-Language Programmer from Environmental Feedback
and 61 more not named here

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-22.

Repositories linked to this paper

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

Abstract

Large Vision-Language Models (LVLMs) have become pivotal at the intersection of computer vision and natural language processing. However, the full potential of LVLMs' Retrieval-Augmented Generation (RAG) capabilities remains underutilized. Existing works either focus solely on the text modality or are limited to specific tasks. Moreover, most LVLMs struggle to selectively utilize retrieved information and are sensitive to irrelevant or misleading references. To address these challenges, we propose a self-refinement framework designed to teach LVLMs to Selectively Utilize Retrieved Information (SURf). Specifically, when given questions that are incorrectly answered by the LVLM backbone, we obtain references that help correct the answers (positive references) and those that do not (negative references). We then fine-tune the LVLM backbone using a combination of these positive and negative references. Our experiments across three tasks and seven datasets demonstrate that our framework significantly enhances LVLMs' ability to effectively utilize retrieved multimodal references and improves their robustness against irrelevant or misleading information. The source code is available at https://github.com/GasolSun36/SURf.

For agents

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

get_harvested_code_for_paper("2409.14083")
get_code_for_paper("2409.14083")
have("2409.14083")

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

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

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

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

Connect an agent — have() is free.