SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.18695 · ECCV · 2024

Grounding Language Models for Visual Entity Recognition

Jie Wu, Ming Gong, Zilin Xiao, Vicente Ordonez, Xingyao Zhang, Paola Cascante-Bonilla

arXiv · PDF · Open in the Atlas

Code that ran

12 of 26 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 10 failures of our instrument; 14 no recorded run), measured 2026-11-23; 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/2402.18695.json · badge: /api/ran/2402.18695.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
mrzilinxiao/autover canonical (classifier label)
classifier basis: census
7 ran · 7 no recorded run
MrZilinXiao/AutoVER community
Papers with Code archive
5 ran · 7 no recorded run
FunctionStatusWhere it lives
CLIPVisionTower Ran
ran on a synthesized input · constructed an object; no result was computed
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("c41616ca93fd79a8")
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, CLIPVisionTower: 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
from transformers.models.clip.modeling_clip import CLIPVisionModel
from transformers import CLIPImageProcessor, CLIPVisionConfig

torch.manual_seed(0)

# Create a minimal args object with required attributes
class Args:
    def __init__(self):
        self.mm_vision_select_layer = 10
        self.mm_vision_select_feature = 'patch'

# Create a minimal vision tower config and model
class MinimalCLIPConfig:
    def __init__(self):
        self.hidden_size = 768
        self.image_size = 224
        self.patch_size = 16
        self.num_hidden_layers = 12

class MinimalCLIPVisionModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.config = MinimalCLIPConfig()
        self._dtype = torch.float32
        
    def forward(self, images, output_hidden_states=False):
        # Return a mock output object with hidden_states
        batch_size = images.shape[0] if len(images.shape) > 0 else 1
        num_patches = (self.config.image_size // self.config.patch_size) ** 2
        
        class Output:
            def __init__(self, batch_size, num_patches, num_layers):
                # hidden_states is a tuple/list of tensors, one per layer
                self.hidden_states = [
                    torch.randn(batch_size, num_patches + 1, self.config.hidden_size)
                    for _ in range(num_layers + 1)
                ]
                self.config = MinimalCLIPConfig()
        
        output = Output(batch_size, num_patches, self.config.num_hidden_layers)
        output.config = self.config
        return output
    
    def requires_grad_(self, requires_grad):
        return self
    
    @property
    def dtype(self):
        return self._dtype
    
    @property
    def device(self):
        return torch.device('cpu')

class MinimalCLIPImageProcessor:
    def __call__(self, images):
        return images

# Create mock CLIPVisionConfig
CLIPVisionConfig.from_pretrained = classmethod(lambda cls, name: MinimalCLIPConfig())

# Create mock CLIPImageProcessor
CLIPImageProcessor.from_pretrained = classmethod(lambda cls, name: MinimalCLIPImageProcessor())

# Create mock CLIPVisionModel
CLIPVisionModel.from_pretrained = classmethod(lambda cls, name: MinimalCLIPVisionModel())

ARGS = {
    'vision_tower': 'openai/clip-vit-base-patch32',
    'args': Args(),
    'delay_load': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CLIPVisionTower — 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 CLIPVisionTower 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
CausalLMOutputWithPastWithRet Ran
ran on a synthesized input · constructed an object; no result was computed
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("d3336c4c93426ff0")
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, CausalLMOutputWithPastWithRet: 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
from transformers.modeling_outputs import CausalLMOutputWithPast

torch.manual_seed(0)

ARGS = {
    "loss": torch.tensor(0.5),
    "logits": torch.randn(2, 4, 100),
    "past_key_values": [(torch.randn(2, 8, 4, 16), torch.randn(2, 8, 4, 16)) for _ in range(3)],
    "hidden_states": (torch.randn(2, 4, 64),),
    "attentions": (torch.randn(2, 8, 4, 4),),
    "ce_loss": torch.tensor(0.3),
    "ret_loss": torch.tensor(0.2),
    "ent_loss": torch.tensor(0.1),
    "retrieval_loss": torch.tensor(0.15),
    "ret_1_acc": 0.85,
    "ret_10_acc": 0.95,
    "ret_100_acc": 0.98,
    "ent_1_acc": 0.80,
    "ent_10_acc": 0.92,
    "ent_100_acc": 0.96,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CausalLMOutputWithPastWithRet — 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 CausalLMOutputWithPastWithRet 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
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("ed5ed903e9e24d08")
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 2, 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 torch

torch.manual_seed(0)

# Construct valid arguments for the accuracy function
# output: tensor of shape (batch_size, num_classes) with prediction logits/scores
# target: tensor of shape (batch_size,) with class indices
# padding: integer value used to mask certain positions
# topk: tuple of integers specifying which top-k accuracies to compute

batch_size = 2
num_classes = 4
num_elements = 3

# output: prediction scores/logits, shape (batch_size, num_classes)
output = torch.randn(batch_size, num_classes)

# target: ground truth class indices, shape (batch_size,)
# Use values in range [0, num_classes) with some padding values
target = torch.tensor([0, 2], dtype=torch.long)

# padding: special value indicating positions to ignore
padding = -1

# topk: tuple of k values to compute accuracy for
topk = (1, 2)

ARGS = {
    "output": output,
    "target": target,
    "padding": padding,
    "topk": topk
}
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 list, ndim 2, 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
contrastive_acc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("0b76a505072cf34e")
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 2, 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 torch

torch.manual_seed(0)

# Test case 1: with target=None
logits_1 = torch.randn(2, 4)
target_1 = None
topk_1 = (1,)

# Test case 2: with target provided
logits_2 = torch.randn(2, 4)
target_2 = torch.tensor([[0, 1], [1, 2]])
topk_2 = (1, 2)

ARGS = {
    "logits": logits_2,
    "target": target_2,
    "topk": topk_2
}
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 list, ndim 2, 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
contrastive_loss Ran
ran; our contract draft was wrong, not the code
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("83ada93fd84968cc")
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 Tensor, ndim 0, dtype family float, 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.

import torch

torch.manual_seed(0)

# The function expects:
# - logits: torch.Tensor
# cross_entropy expects logits of shape (batch_size, num_classes)
# and targets of shape (batch_size,) with class indices
# The targets are torch.arange(len(logits)) so len(logits) is the batch size
# and the number of classes must match the second dimension

batch_size = 2
num_classes = 4

logits = torch.randn(batch_size, num_classes)

ARGS = {
    "logits": logits,
}
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 Tensor, ndim 0, dtype family float, 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
contrastive_loss_with_target Ran
ran; our contract draft was wrong, not the code
mrzilinxiao/autover/common_utils/loss_utils.py
code served (permissive licence) · get_code("418757e4ade61509")
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 Tensor, ndim 0, dtype family float, 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.

import torch

torch.manual_seed(0)

# Create small tensors for the contrastive_loss_with_target function
# logits: shape (batch_size, num_classes) - model output logits
# target: shape (batch_size,) - class indices

batch_size = 2
num_classes = 4

logits = torch.randn(batch_size, num_classes)
target = torch.randint(0, num_classes, (batch_size,))

ARGS = {
    "logits": logits,
    "target": target,
}
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 Tensor, ndim 0, dtype family float, 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
encode_image Ran
ran; our contract draft was wrong, not the code
mrzilinxiao/autover/baselines/submit_gpt4v.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from jongwoopark7978/LVNet, is pointer only (licence: NONE) · get_code("f41cb1a19b154297")
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 jongwoopark7978/LVNet, 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_oven Ran
ran; our contract draft was wrong, not the code
mrzilinxiao/autover/bm25_toolkit/official_oven_eval_toolkit.py
code served (permissive licence) · get_code("249898a5ceca22bd")
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 dict. 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
from typing import Any, Dict, List

# Construct reference list with required fields
reference = [
    {
        'data_id': 'q1',
        'entity_id': 'ent_a',
        'data_split': 'train_seen'
    },
    {
        'data_id': 'q2',
        'entity_id': 'ent_b',
        'data_split': 'test_unseen'
    },
    {
        'data_id': 'q3',
        'entity_id': 'ent_c',
        'data_split': 'val_seen'
    },
    {
        'data_id': 'q4',
        'entity_id': 'ent_d',
        'data_split': 'test_unseen'
    }
]

# Construct predictions list with required fields
predictions = [
    {
        'data_id': 'q1',
        'pred_entity_id': 'ent_a'
    },
    {
        'data_id': 'q2',
        'pred_entity_id': 'ent_b'
    },
    {
        'data_id': 'q3',
        'pred_entity_id': 'ent_c'
    },
    {
        'data_id': 'q4',
        'pred_entity_id': 'ent_wrong'
    }
]

ARGS = {
    'ref': reference,
    'pred': predictions
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_json Ran
ran; our contract draft was wrong, not the code
mrzilinxiao/autover/bm25_toolkit/bm25_index.py
code served (permissive licence) · get_code("e18691c020115ad3")
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 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 json
import tempfile
import os

# Create a temporary JSON lines file
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.jsonl")

# Write some test data to the file
test_data = [
    {"id": 1, "text": "hello world"},
    {"id": 2, "text": "foo bar"},
    {"id": 3, "text": "test data"}
]

with open(temp_file, 'w', encoding='utf-8') as f:
    for item in test_data:
        f.write(json.dumps(item) + '\n')

ARGS = {
    "path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
load_jsonl Ran
ran; our contract draft was wrong, not the code
mrzilinxiao/autover/bm25_toolkit/official_oven_eval_toolkit.py
code served (permissive licence) · get_code("0dc083025b2aad97")
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 tempfile
import json
import os

# Create a temporary JSONL file for testing
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.jsonl', delete=False, encoding='utf-8')
temp_file_path = temp_file.name

# Write some sample JSONL data
sample_data = [
    {"id": 1, "text": "hello world", "value": 42},
    {"id": 2, "text": "foo bar", "value": 3.14},
    {"id": 3, "text": "test data", "nested": {"key": "value"}}
]

for record in sample_data:
    temp_file.write(json.dumps(record) + '\n')

temp_file.close()

ARGS = {
    "path": temp_file_path
}
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
prepare_qid2example Ran
ran; our contract draft was wrong, not the code
mrzilinxiao/autover/bm25_toolkit/official_oven_eval_toolkit.py
code served (permissive licence) · get_code("cb38c498b185418c")
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 dict. 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
from typing import Any, Dict, List

# Construct reference data
reference = [
    {
        'data_id': 'q1',
        'text': 'example question 1',
        'answer': 'answer 1',
        'metadata': {'source': 'wiki'}
    },
    {
        'data_id': 'q2',
        'text': 'example question 2',
        'answer': 'answer 2',
        'metadata': {'source': 'other'}
    },
    {
        'data_id': 'q3',
        'text': 'example question 3',
        'answer': 'answer 3',
        'metadata': {'source': 'wiki'}
    }
]

ARGS = {
    'reference': reference
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
run_exactmatch_query Ran
ran; our contract draft was wrong, not the code
mrzilinxiao/autover/bm25_toolkit/exactmatch_query.py
code served (permissive licence) · get_code("0ac33fc045371be4")
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 dict. 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

torch.manual_seed(0)

# Construct a valid query dict for run_exactmatch_query
query = {
    'data_id': 'sample_001',
    'entity_text': 'Paris',
    'data_split': 'test',
    'gpt4v_response': {
        'choices': [
            {
                'message': {
                    'content': 'The capital of France is Paris.'
                }
            }
        ]
    }
}

ARGS = {
    'query': query
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
LlavaLlamaForCausalLMWithRet Not yet run
unverified (harvested, no recorded run)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("8db3d394148aae40")
How it ran

no invocation recorded.

LlavaLlamaModelWithRet Not yet run
unverified (harvested, no recorded run)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("bd94789c33b6b3ce")
How it ran

no invocation recorded.

LlavaMetaForCausalLMWithRet Not yet run
unverified (harvested, no recorded run)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("3653c732c4369b00")
How it ran

no invocation recorded.

LlavaMetaModel Not yet run
unverified (harvested, no recorded run)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("ee2ab77aead57d40")
How it ran

no invocation recorded.

RetrieverMetaModel Not yet run
unverified (harvested, no recorded run)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("31d0e17da04e4bfe")
How it ran

no invocation recorded.

all_gather_with_grad Not yet run
unverified (harvested, no recorded run)
mrzilinxiao/autover/common_utils/dist_utils.py
code served (permissive licence) · get_code("0ec9fc2025c16f65")
How it ran

no invocation recorded.

all_gather_with_grad_torch Not yet run
unverified (harvested, no recorded run)
mrzilinxiao/autover/common_utils/dist_utils.py
code served (permissive licence) · get_code("f1a8171c466e7574")
How it ran

no invocation recorded.

build_entity_encoder Not yet run
unverified (harvested, no recorded run)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("e374a58821b3513a")
How it ran

no invocation recorded.

build_vision_tower Not yet run
unverified (harvested, no recorded run)
MrZilinXiao/AutoVER/LLaVA/llava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("01a59cbdcf1329ec")
How it ran

no invocation recorded.

find_img_path Not yet run
unverified (harvested, no recorded run)
mrzilinxiao/autover/baselines/submit_gpt4v.py
code served (permissive licence) · get_code("e8003b1ffefe6856")
How it ran

no invocation recorded.

get_peft_state_maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
mrzilinxiao/autover/train_oven.py
code served (permissive licence) · get_code("fa1225dfac92bc0d")
How it ran

no invocation recorded.

get_peft_state_non_lora_maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
mrzilinxiao/autover/train_oven.py
code served (permissive licence) · get_code("1c53657305b66e9f")
How it ran

no invocation recorded.

maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
mrzilinxiao/autover/train_oven.py
code served (permissive licence) · get_code("616ffbdc154ed2d8")
How it ran

no invocation recorded.

run_gpt_query Not yet run
unverified (harvested, no recorded run)
mrzilinxiao/autover/bm25_toolkit/bm25_query.py
code served (permissive licence) · get_code("a5be46c82b7c5a66")
How it ran

no invocation recorded.

Also present in other papers' code

Of 26 samples lifted from this paper's linked repositories, 26 carry a function identity and 0 do not. Of the 26 distinct functions with an identity, 10 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 6 the same month, 9 later) and 16 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
all_gather_with_grad 91 other papers
44 dated earlier, 3 the same month, 40 later, 4 same year, order not determinable · 2 only as an assembly brick
2206.02967 (2022-06)
Masked Unsupervised Self-training for Label-free Image Classification
2210.08773 (2022-10)
Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training
2302.06605 (2023-02)
UniAdapter: Unified Parameter-Efficient Transfer Learning for Cross-modal Modeling
and 88 more not named here
encode_image 76 other papers
6 dated earlier, 4 the same month, 65 later, 1 same year, order not determinable
2309.05950 (2023-09)
Language Models as Black-Box Optimizers for Vision-Language Models
2311.15732 (2023-11)
GPT4Vis: What Can GPT-4 Do for Zero-shot Visual Recognition?
2312.14867 (2023-12)
VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluation
and 73 more not named here
maybe_zero_3 37 other papers
4 dated earlier, 2 the same month, 31 later
2310.01779 (2023-10)
HallE-Control: Controlling Object Hallucination in Large Multimodal Models
2311.16839 (2023-11)
Beyond Hallucinations: Enhancing LVLMs through Hallucination-Aware Direct Preference Optimization
2312.02949 (2023-12)
LLaVA-Grounding: Grounded Visual Chat with Large Multimodal Models
and 34 more not named here
get_peft_state_maybe_zero_3 23 other papers
2 dated earlier, 1 the same month, 20 later
2310.01779 (2023-10)
HallE-Control: Controlling Object Hallucination in Large Multimodal Models
2401.02330 (2024-01)
LLaVA-Phi: Efficient Multi-Modal Assistant with Small Language Model
2402.12501 (2024-02)
Your Vision-Language Model Itself Is a Strong Filter: Towards High-Quality Instruction Tuning with Data Selection
and 20 more not named here
get_peft_state_non_lora_maybe_zero_3 23 other papers
3 dated earlier, 1 the same month, 19 later
2310.01779 (2023-10)
HallE-Control: Controlling Object Hallucination in Large Multimodal Models
2312.02949 (2023-12)
LLaVA-Grounding: Grounded Visual Chat with Large Multimodal Models
2401.02330 (2024-01)
LLaVA-Phi: Efficient Multi-Modal Assistant with Small Language Model
and 20 more not named here
CLIPVisionTower
brick of this paper's assembly: helper
9 other papers
2 dated earlier, 7 later · 7 only as an assembly brick
2301.12597 (2023-01)
BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
2304.08485 (2023-04)
Visual Instruction Tuning
2405.14974 (2024-05)
LOVA 3 : Learning to Visual Question Answering, Asking and Assessment
and 6 more not named here
build_vision_tower
brick of this paper's assembly: helper
9 other papers
2 dated earlier, 1 the same month, 6 later · 4 only as an assembly brick
2301.12597 (2023-01)
BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
2304.08485 (2023-04)
Visual Instruction Tuning
2402.11684 (2024-02)
ALLaVA: Harnessing GPT4V-Synthesized Data for Lite Vision-Language Models
and 6 more not named here
contrastive_loss
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 later
2301.13823 (2023-01)
Grounding Language Models to Images for Multimodal Inputs and Outputs
2312.02252 (2023-12)
StoryGPT-V: Large Language Models as Consistent Story Visualizers
2602.19146 (2026-02)
VIGiA: Instructional Video Guidance via Dialogue Reasoning and Retrieval
accuracy
brick of this paper's assembly: helper
1 other paper
1 later
2502.18364 (2025-02)
ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generation
load_json 1 other paper
1 dated earlier
2302.11154 (2023-02)
Open-domain Visual Entity Recognition: Towards Recognizing Millions of Wikipedia Entities

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

We introduce AutoVER, an Autoregressive model for Visual Entity Recognition. Our model extends an autoregressive Multimodal Large Language Model by employing retrieval augmented constrained generation. It mitigates low performance on out-of-domain entities while excelling in queries that require visual reasoning. Our method learns to distinguish similar entities within a vast label space by contrastively training on hard negative pairs in parallel with a sequenceto-sequence objective without an external retriever. During inference, a list of retrieved candidate answers explicitly guides language generation by removing invalid decoding paths. The proposed method achieves significant improvements across different dataset splits in the recently proposed Oven-Wiki benchmark with accuracy on the Entity seen split rising from 32.7% to 61.5%. It demonstrates superior performance on the unseen and query splits by a substantial double-digit margin, while also preserving the ability to effectively transfer to other generic visual question answering benchmarks without further training.

For agents

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

get_harvested_code_for_paper("2402.18695")
get_code_for_paper("2402.18695")
have("2402.18695")

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

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

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

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

Connect an agent — have() is free.