SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.23881 · 2026

Ground Then Rank: Revisiting Knowledge-Based VQA with Training-Free Entity Identification

Yao Ma, Qian Ma, Qiong Wu, Zhengyi Zhou

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 4 failures of our instrument; 2 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/2606.23881.json · badge: /api/ran/2606.23881.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
VAN-QIAN/ACL26-IBA canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
Go2Heart/EchoSight community
Papers with Code archive
4 ran · 1 no recorded run
FunctionStatusWhere it lives
KnowledgeBase Ran
ran on a synthesized input · constructed an object; no result was computed
Go2Heart/EchoSight/model/retriever.py
code served (permissive licence) · get_code("ef0589cda32db5be")
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 an instance of its own class, KnowledgeBase: the run constructed the object and did not call it, so no result was computed. 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 tempfile
import os

# Create a minimal KnowledgeBase entry class
class KnowledgeBaseEntry:
    def __init__(self, content):
        self.content = content

# Create a temporary directory for the knowledge base path
temp_dir = tempfile.mkdtemp()
knowledge_base_path = os.path.join(temp_dir, "kb.txt")

# Write a minimal knowledge base file
with open(knowledge_base_path, 'w') as f:
    f.write("sample knowledge base entry")

ARGS = {
    "knowledge_base_path": knowledge_base_path
}
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 KnowledgeBase — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a KnowledgeBase 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
Retriever Ran
ran on a synthesized input · constructed an object; no result was computed
Go2Heart/EchoSight/model/retriever.py
code served (permissive licence) · get_code("128dc22d75efa617")
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 an instance of its own class, Retriever: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    """Minimal model for retrieval."""
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 8)
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()

ARGS = {
    "model": model
}
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 Retriever — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Retriever 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
WikipediaKnowledgeBase Ran
ran on a synthesized input · constructed an object; no result was computed
Go2Heart/EchoSight/model/retriever.py
code served (permissive licence) · get_code("583a95121563c899")
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 an instance of its own class, WikipediaKnowledgeBase: the run constructed the object and did not call it, so no result was computed. 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 json
import tempfile
import os

# Create a minimal knowledge base JSON file
knowledge_base_data = {
    "wiki_entry_1": {
        "title": "Test Article 1",
        "url": "https://en.wikipedia.org/wiki/Test1",
        "image_urls": ["https://example.com/image1.jpg", "https://example.com/image2.jpg"],
        "image_reference_descriptions": ["Description 1", "Description 2"],
        "image_section_indices": [0, 1],
        "section_titles": ["Introduction", "History"],
        "section_texts": ["This is the introduction.", "This is the history section."]
    },
    "wiki_entry_2": {
        "title": "Test Article 2",
        "url": "https://en.wikipedia.org/wiki/Test2",
        "image_urls": ["https://example.com/image3.jpg"],
        "image_reference_descriptions": ["Description 3"],
        "image_section_indices": [0],
        "section_titles": ["Overview"],
        "section_texts": ["This is an overview."]
    }
}

# Create a temporary file for the knowledge base
with tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False) as f:
    json.dump(knowledge_base_data, f)
    knowledge_base_path = f.name

ARGS = {
    "knowledge_base_path": knowledge_base_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WikipediaKnowledgeBase — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a WikipediaKnowledgeBase output the recorded ndim 1 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
WikipediaKnowledgeBaseEntry Ran
ran on a synthesized input · constructed an object; no result was computed
Go2Heart/EchoSight/model/retriever.py
code served (permissive licence) · get_code("a19c6df8e772d6b0")
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 an instance of its own class, WikipediaKnowledgeBaseEntry: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

# Create a minimal entry_dict with all required keys
entry_dict = {
    'title': 'Example Wikipedia Article',
    'url': 'https://en.wikipedia.org/wiki/Example',
    'image_urls': [
        'https://example.com/image1.jpg',
        'https://example.com/image2.jpg'
    ],
    'image_reference_descriptions': [
        'First image description',
        'Second image description'
    ],
    'image_section_indices': [0, 1],
    'section_titles': [
        'Introduction',
        'History',
        'See Also'
    ],
    'section_texts': [
        'This is the introduction section.',
        'This is the history section.',
        'See also section text.'
    ]
}

visual_attr = None

ARGS = {
    'entry_dict': entry_dict,
    'visual_attr': visual_attr
}
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 WikipediaKnowledgeBaseEntry — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a WikipediaKnowledgeBaseEntry 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
get_all_sections Ran
ran; our contract draft was wrong, not the code
VAN-QIAN/ACL26-IBA/model/answer_generator.py
pointer only (licence: NONE) · get_code("bd6639d5dcf96a75")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, VAN-QIAN/ACL26-IBA 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_metadata Ran
ran; our contract draft was wrong, not the code
VAN-QIAN/ACL26-IBA/src/io.py
pointer only (licence: NONE) · get_code("010caf3fb5a3f3d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, VAN-QIAN/ACL26-IBA 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_retrieval_results Ran
ran; our contract draft was wrong, not the code
VAN-QIAN/ACL26-IBA/src/io.py
pointer only (licence: NONE) · get_code("6ffda17dabcb5235")
How it ran

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

reconstruct_wiki_sections Ran
ran; our contract draft was wrong, not the code
VAN-QIAN/ACL26-IBA/model/answer_generator.py
pointer only (licence: NONE) · get_code("1d93a3fa840e2902")
How it ran

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

ClipRetriever Not yet run
unverified (harvested, no recorded run)
Go2Heart/EchoSight/model/retriever.py
code served (permissive licence) · get_code("fd38886c4624b749")
How it ran

no invocation recorded.

extract_title_from_section Not yet run
unverified (harvested, no recorded run)
VAN-QIAN/ACL26-IBA/src/context.py
pointer only (licence: NONE) · get_code("69ce67508718d107")
How it ran

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

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, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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
KnowledgeBase
brick of this paper's assembly: data_transform
1 other paper
1 dated earlier
2505.07879 (2025-05)
OMGM: Orchestrate Multiple Granularities and Modalities for Efficient Multimodal Retrieval
Retriever
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2505.07879 (2025-05)
OMGM: Orchestrate Multiple Granularities and Modalities for Efficient Multimodal Retrieval
WikipediaKnowledgeBaseEntry
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2505.07879 (2025-05)
OMGM: Orchestrate Multiple Granularities and Modalities for Efficient Multimodal Retrieval

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

Knowledge-Based Visual Question Answering (KB-VQA) requires grounding visual queries to external knowledge beyond directly observable content in images. While recent multi modal large language models (MLLMs) show strong perceptual abilities, they struggle on KB-VQA tasks requiring groundings from both finegrained entity and evidence levels. Most existing multi-modal retrieval augmented generation (MM-RAG) methods tightly couple entity discrimination and section-level evidence ranking into a single re-ranking stage, leading to high cost and limited generalization. In this work, we revisit existing MM-RAG solutions from a workflow perspective and argue both entity-level and fact-level groundings are key bottlenecks. We observe that although MLLMs often fail under open-ended entity naming, they can better identify the correct entity when selecting from a small set of candidate names. Based on this insight, we propose a simple and training-free identify-before-answer IBA framework that decouples entity identification from section-level re-ranking. Our approach prompts an MLLM to select high-confidence entities using only candidate names, followed by an off-the-shelf textual re-ranker for evidence selection. Experiments on Encyclopedic-VQA and InfoSeek show that our method consistently outperforms fine-tuned multi-modal re-ranking baselines while reducing training and inference complexity. Additional analyses reveal that the improvements arise not only from better entity identification, but also from selecting more informative evidence once correct entity is fixed. Our implementation is made public to ease reproducibility https: //github.com/VAN-QIAN/ACL26-IBA/.

For agents

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

get_harvested_code_for_paper("2606.23881")
get_code_for_paper("2606.23881")
have("2606.23881")

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

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

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

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

Connect an agent — have() is free.