atlas

Research map / Architectures and efficiency / Attention and transformers

Can Transformers Capture Spatial Relations between Objects?

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Token merging and masked pretraining · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes precise physically grounded definitions for spatial relations, relabels SpatialSense into SpatialSense+, and introduces RelatiViT, an end-to-end ViT that masks subject/object regions and jointly models context and pair interaction, outperforming prior methods and bbox-only baselines.

Problem

Spatial relation prediction from images requires physically grounded relation labels; existing benchmarks (Rel3D synthetic, SpatialSense) have annotation inconsistencies, and prior vision methods fail to beat bbox-only baselines.

Approach

An end-to-end ViT that concatenates full-image patch tokens with masked subject and object image tokens into one sequence, so self-attention handles query localization, context aggregation and pair interaction together, rather than cascading a CNN or ViT with a separate relation head.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use RelatiViT’s unified-sequence end-to-end design instead of RegionViTViT-based SRP · Rel3D%Avg. Acc.: 72.43±0.55 -> 80.09±0.33Helped
use RelatiViT’s unified-sequence end-to-end design instead of RegionViTViT-based SRP · SpatialSense+%Avg. Acc.: 76.20±1.04 -> 80.02±0.73Helped
replace bbox-only prediction with RelatiViT visual featuresspatial relation prediction · Rel3D%Avg. Acc.: 74.35±0.77 -> 80.09±0.33Helped
replace bbox-only prediction with RelatiViT visual featuresspatial relation prediction · SpatialSense+%Avg. Acc.: 77.55±0.78 -> 80.02±0.73Helped
add object-category embeddings to bbox-only inputsbbox-only baseline · Rel3D%Avg. Acc.: 74.35±0.77 -> 73.11±0.29Hurt
add object-category embeddings to bbox-only inputsbbox-only baseline · SpatialSense+%Avg. Acc.: 77.55±0.78 -> 73.88±1.39Hurt
replace the CNN feature extractor with ViTCNNTransformer · SpatialSense+%Avg. Acc.: 68.21±0.92 -> 72.42±1.28Helped
replace RoI Align with masked-image query localizationViT + self-attention architecture · SpatialSense+%Avg. Acc.: 72.42±1.28 -> 74.40±2.14No clear effect
replace self-attention with cross-attention in the decoderViT + MaskImage architecture · SpatialSense+%Avg. Acc.: 74.40±2.14 -> 73.41±2.00No clear effect
remove pair interaction (ablation)RelatiViT · Rel3D%Avg. Acc.: 79.18±0.61 -> 80.09±0.33Hurt
remove pair interaction (ablation)RelatiViT · SpatialSense+%Avg. Acc.: 76.37±0.86 -> 80.02±0.73Hurt
remove context aggregation, in addition to pair interaction (ablation)RelatiViT · Rel3D%Avg. Acc.: 70.08±0.41 -> 80.09±0.33Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Rel3D SpatialSense+ SpatialSense

Benchmarks: Rel3D SpatialSense+ SpatialSense

Metrics: %Avg. Acc. %F1

Baselines: bbox-only bbox-language DRNet VTransE MotifsNet RUNet Vip-CNN PPR-FCN MiniGPT-4 LLaVA Gemini GPT-4V

Builds on: Vision Transformer IBOT DRNet SpatialSense Rel3D

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy