Papers › Visual Spatial Reasoning

Visual Spatial Reasoning

30 Apr 2022arXiv:2205.00363archive 2025-07-28

Fangyu Liu, Guy Emerson, Nigel Collier

Spatial relations are a basic part of human cognition. However, they are expressed in natural language in a variety of ways, and previous work has suggested that current vision-and-language models (VLMs) struggle to capture relational information. In this paper, we present Visual Spatial Reasoning (VSR), a dataset containing more than 10k natural text-image pairs with 66 types of spatial relations in English (such as: under, in front of, and facing). While using a seemingly simple annotation format, we show how the dataset includes challenging linguistic phenomena, such as varying reference frames. We demonstrate a large gap between human and model performance: the human ceiling is above 95%, while state-of-the-art models only achieve around 70%. We observe that VLMs' by-relation performances have little correlation with the number of training examples and the tested models are in general incapable of recognising relations concerning the orientations of objects.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2205.00363")

Code

Syntology Ran 5 of 10 code samples harvested from 2 repositories linked to this paper; 5 have no recorded run. Of those that ran: 5 ran with no contract checked.

By repository: official repository: 10 samples from 2 repositories, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

cambridgeltl/visual-spatial-reasoning officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
sohojoe/clip_visual-spatial-reasoning officialmentioned in paperpytorchApache-2.0 report
ziyan-xiaoyu/spatialmqa mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 5 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran
5unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

do_nms cambridgeltl/visual-spatial-reasoning/feature_extraction/lxmert/modeling_frcnn.py official repository ran Apache-2.0 (permissive) · e21bb85b8e1b4836 · report
is_remote_url cambridgeltl/visual-spatial-reasoning/feature_extraction/lxmert/utils.py official repository ran Apache-2.0 (permissive) · 899d1e2736236351 · report
load_labels cambridgeltl/visual-spatial-reasoning/feature_extraction/lxmert/utils.py official repository ran Apache-2.0 (permissive) · 8a78a755bda274a5 · report
pad_list_tensors cambridgeltl/visual-spatial-reasoning/feature_extraction/lxmert/modeling_frcnn.py official repository ran Apache-2.0 (permissive) · 54a2fff601881b32 · report
tryload cambridgeltl/visual-spatial-reasoning/feature_extraction/lxmert/extracting_data.py official repository ran Apache-2.0 (permissive) · 77586e7080d66922 · report
evaluate sohojoe/clip_visual-spatial-reasoning/src/eval000.py official repository unverified Apache-2.0 (permissive) · eff2ebc2698c82dd · report
evaluate sohojoe/clip_visual-spatial-reasoning/src/eval001.py official repository unverified Apache-2.0 (permissive) · 70d7553e03069ad3 · report
extract_features cambridgeltl/visual-spatial-reasoning/feature_extraction/visualbert/extract_img_features.py official repository unverified Apache-2.0 (permissive) · 7bdaa688884a132e · report
load_checkpoint cambridgeltl/visual-spatial-reasoning/feature_extraction/lxmert/utils.py official repository unverified Apache-2.0 (permissive) · bd3a3f4bd8750da2 · report
norm_box cambridgeltl/visual-spatial-reasoning/feature_extraction/lxmert/modeling_frcnn.py official repository unverified Apache-2.0 (permissive) · ea0acbc5664a2925 · report

Tasks

Spatial ReasoningVisual EntailmentVisual Reasoning

Datasets

Introduced by this paper, per the archive.

VSR

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Visual Reasoning VSR LXMERT accuracy 70.1 #1 of 5 Archive leaderboard report
Visual Reasoning VSR ViLT accuracy 69.3 #2 of 5 Archive leaderboard report
Visual Reasoning VSR CLIP (finetuned) accuracy 65.1 #3 of 5 Archive leaderboard report
Visual Reasoning VSR CLIP (frozen) accuracy 56.0 #4 of 5 Archive leaderboard report
Visual Reasoning VSR VisualBERT accuracy 55.2 #5 of 5 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CLIPLXMERTViLTVisualBERT

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections