Papers › Grounded Situation Recognition with Transformers

Grounded Situation Recognition with Transformers

19 Nov 2021arXiv:2111.10135archive 2025-07-28

Junhyeong Cho, Youngseok Yoon, Hyeonjun Lee, Suha Kwak

Grounded Situation Recognition (GSR) is the task that not only classifies a salient action (verb), but also predicts entities (nouns) associated with semantic roles and their locations in the given image. Inspired by the remarkable success of Transformers in vision tasks, we propose a GSR model based on a Transformer encoder-decoder architecture. The attention mechanism of our model enables accurate verb classification by capturing high-level semantic feature of an image effectively, and allows the model to flexibly deal with the complicated and image-dependent relations between entities for improved noun classification and localization. Our model is the first Transformer architecture for GSR, and achieves the state of the art in every evaluation metric on the SWiG benchmark. Our code is available at https://github.com/jhcho99/gsrtr .

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="2111.10135")

Code

Syntology Ran 4 of 9 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran with no contract checked.

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

jhcho99/gsrtr officialmentioned in papermentioned 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

9 samples harvested; 4 ran; 2 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.

2ran · honoured contract
2ran
5unverified

Licence: 9 of the 9 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 jhcho99/gsrtr. “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.

all_gather jhcho99/gsrtr/util/misc.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · aa6da43d05cfaf65 · report
box_cxcywh_to_xyxy jhcho99/gsrtr/util/box_ops.py official repository ran · honoured contract fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · e0a06ded5d4f6c3c · report
box_xyxy_to_cxcywh jhcho99/gsrtr/util/box_ops.py official repository ran · honoured contract fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · 031b02fb990284ba · report
reduce_dict jhcho99/gsrtr/util/misc.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · 05992505df9ef0cd · report
build jhcho99/gsrtr/datasets/swig.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · edfd696fbd294e13 · report
build_transformer jhcho99/gsrtr/models/transformer.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 9888762109072b2a · report
collate_fn jhcho99/gsrtr/util/misc.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 458a46394aa87a2f · report
noun2synset jhcho99/gsrtr/inference.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 7f06889563fd00ce · report
swig_box_xyxy_to_cxcywh jhcho99/gsrtr/util/box_ops.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · fdd34e83fa6d7086 · report

Tasks

DecoderGrounded Situation RecognitionImage ClassificationObject DetectionScene UnderstandingSituation RecognitionVisual GroundingVisual Reasoning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Grounded Situation Recognition SWiG GSRTR Top-1 Verb 40.63 #6 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG GSRTR Top-1 Verb & Grounded-Value 25.49 #6 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG GSRTR Top-1 Verb & Value 32.15 #6 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG GSRTR Top-5 Verbs 69.81 #6 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG GSRTR Top-5 Verbs & Grounded-Value 42.5 #6 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG GSRTR Top-5 Verbs & Value 54.13 #6 of 13 Archive leaderboard report
Situation Recognition imSitu GSRTR Top-1 Verb 40.63 #6 of 13 Archive leaderboard report
Situation Recognition imSitu GSRTR Top-1 Verb & Value 32.15 #6 of 13 Archive leaderboard report
Situation Recognition imSitu GSRTR Top-5 Verbs 69.81 #6 of 13 Archive leaderboard report
Situation Recognition imSitu GSRTR Top-5 Verbs & Value 54.13 #6 of 13 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

AdamAttentionDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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