SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.11167 · ICLR · 2022

RelViT: Concept-guided Vision Transformer for Visual Relational Reasoning

Anima Anandkumar, Weili Nie, U Austin, Song-Chun Zhu, Yuke Zhu, Zhiding Yu, Caltech, Xiaojian Ma, Chaowei Xiao, Huaizu Jiang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 3 failures of our instrument; 4 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/2204.11167.json · badge: /api/ran/2204.11167.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
NVlabs/RelViT canonical (classifier label)
classifier basis: classifier_2025
6 ran · 4 no recorded run
FunctionStatusWhere it lives
Buffer Ran
ran on a synthesized input · constructed an object; no result was computed
NVlabs/RelViT/utils/relvit.py
pointer only (licence: NOASSERTION) · get_code("4df4c993c5727035")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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.

comp_sample_prob Ran
ran, honoured the contract we drafted
NVlabs/RelViT/utils/relvit.py
pointer only (licence: NOASSERTION) · get_code("0c638badfdf212a4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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_acc_gqa Ran
ran, honoured the contract we drafted
NVlabs/RelViT/train_gqa.py
pointer only (licence: NOASSERTION) · get_code("332c5303b119ea46")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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.

gather_score_label Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
NVlabs/RelViT/train_gqa.py
pointer only (licence: NOASSERTION) · get_code("b6e1619d9365b133")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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.

gather_score_label Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
NVlabs/RelViT/train_hico.py
pointer only (licence: NOASSERTION) · get_code("75e49409a0d5bc35")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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.

token_level_esvit Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
NVlabs/RelViT/utils/relvit.py
pointer only (licence: NOASSERTION) · get_code("0a8ca463ea529cb4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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.

MoCo Not yet run
unverified (harvested, no recorded run)
NVlabs/RelViT/utils/relvit.py
pointer only (licence: NOASSERTION) · get_code("5b8d7f4ee9f98aa7")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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.

RCL Not yet run
unverified (harvested, no recorded run)
NVlabs/RelViT/utils/relvit.py
pointer only (licence: NOASSERTION) · get_code("3a43770048acb61a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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.

dequeue_with_concept Not yet run
unverified (harvested, no recorded run)
NVlabs/RelViT/utils/relvit.py
pointer only (licence: NOASSERTION) · get_code("979ae321e669e678")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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.

enqueue_with_concept Not yet run
unverified (harvested, no recorded run)
NVlabs/RelViT/utils/relvit.py
pointer only (licence: NOASSERTION) · get_code("8aed60786f3eb5e0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, NVlabs/RelViT (NOASSERTION). 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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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.

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

Reasoning about visual relationships is central to how humans interpret the visual world. This task remains challenging for current deep learning algorithms since it requires addressing three key technical problems jointly: 1) identifying object entities and their properties, 2) inferring semantic relations between pairs of entities, and 3) generalizing to novel object-relation combinations, i.e. systematic generalization. In this work, we use vision transformers (ViTs) as our base model for visual reasoning and make better use of concepts defined as object entities and their relations to improve the reasoning ability of ViTs. Specifically, we introduce a novel concept-feature dictionary to allow flexible image feature retrieval at training time with concept keys. This dictionary enables two new conceptguided auxiliary tasks: 1) a global task for promoting relational reasoning, and 2) a local task for facilitating semantic object-centric correspondence learning. To examine the systematic generalization of visual reasoning models, we introduce systematic splits for the standard HICO and GQA benchmarks. We show the resulting model, Concept-guided Vision Transformer (or RelViT for short) significantly outperforms prior approaches on HICO and GQA by 16% and 13% in the original split, and by 43% and 18% in the systematic split. Our ablation analyses also reveal our model's compatibility with multiple ViT variants and robustness to hyper-parameters. Code is available.

For agents

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

get_harvested_code_for_paper("2204.11167")
get_code_for_paper("2204.11167")
have("2204.11167")

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

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

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

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

Connect an agent — have() is free.