Papers › Rethinking the Two-Stage Framework for Grounded Situation Recognition

Rethinking the Two-Stage Framework for Grounded Situation Recognition

10 Dec 2021arXiv:2112.05375archive 2025-07-28

Meng Wei, Long Chen, Wei Ji, Xiaoyu Yue, Tat-Seng Chua

Grounded Situation Recognition (GSR), i.e., recognizing the salient activity (or verb) category in an image (e.g., buying) and detecting all corresponding semantic roles (e.g., agent and goods), is an essential step towards "human-like" event understanding. Since each verb is associated with a specific set of semantic roles, all existing GSR methods resort to a two-stage framework: predicting the verb in the first stage and detecting the semantic roles in the second stage. However, there are obvious drawbacks in both stages: 1) The widely-used cross-entropy (XE) loss for object recognition is insufficient in verb classification due to the large intra-class variation and high inter-class similarity among daily activities. 2) All semantic roles are detected in an autoregressive manner, which fails to model the complex semantic relations between different roles. To this end, we propose a novel SituFormer for GSR which consists of a Coarse-to-Fine Verb Model (CFVM) and a Transformer-based Noun Model (TNM). CFVM is a two-step verb prediction model: a coarse-grained model trained with XE loss first proposes a set of verb candidates, and then a fine-grained model trained with triplet loss re-ranks these candidates with enhanced verb features (not only separable but also discriminative). TNM is a transformer-based semantic role detection model, which detects all roles parallelly. Owing to the global relation modeling ability and flexibility of the transformer decoder, TNM can fully explore the statistical dependency of the roles. Extensive validations on the challenging SWiG benchmark show that SituFormer achieves a new state-of-the-art performance with significant gains under various metrics. Code is available at https://github.com/kellyiss/SituFormer.

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

Code

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

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

kellyiss/situformer officialmentioned in paperpytorch 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

12 samples harvested; 9 ran; 3 honoured the contract we drafted; 3 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.

3ran · honoured contract
6ran
3unverified

Licence: 12 of the 12 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 kellyiss/situformer. “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 kellyiss/situformer/util/misc.py official repository ran no licence file found · pointer only · aa6da43d05cfaf65 · report
box_cxcywh_to_xyxy kellyiss/situformer/util/box_ops.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · e0a06ded5d4f6c3c · report
box_iou kellyiss/situformer/util/box_ops.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · ce749f837424dd8c · report
box_xyxy_to_cxcywh kellyiss/situformer/util/box_ops.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 031b02fb990284ba · report
crop kellyiss/situformer/datasets/transforms.py official repository ran no licence file found · pointer only · 74f3f5c1bab38c14 · report
hflip kellyiss/situformer/datasets/transforms.py official repository ran no licence file found · pointer only · 9be9e658b5bd688a · report
make_sr_transforms kellyiss/situformer/datasets/swig.py official repository ran no licence file found · pointer only · d5c2ac8ea46e788e · report
parse_with_config kellyiss/situformer/util/misc.py official repository ran no licence file found · pointer only · f46bad6811c75514 · report
reduce_dict kellyiss/situformer/util/misc.py official repository ran no licence file found · pointer only · 05992505df9ef0cd · report
all_reduce_sum kellyiss/situformer/util/metrics.py official repository unverified no licence file found · pointer only · 569e2388775fa1b7 · report
build_transformer kellyiss/situformer/models/transformer.py official repository unverified no licence file found · pointer only · da89ce279ae764b6 · report
plot_precision_recall kellyiss/situformer/util/plot_utils.py official repository unverified no licence file found · pointer only · fe699ae8220daf07 · report

Tasks

Grounded Situation RecognitionObject RecognitionSituation RecognitionVocal Bursts Valence Prediction

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Grounded Situation Recognition SWiG SituFormer Top-1 Verb 44.2 #4 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG SituFormer Top-1 Verb & Grounded-Value 29.22 #4 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG SituFormer Top-1 Verb & Value 35.24 #4 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG SituFormer Top-5 Verbs 71.21 #4 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG SituFormer Top-5 Verbs & Grounded-Value 46 #4 of 13 Archive leaderboard report
Grounded Situation Recognition SWiG SituFormer Top-5 Verbs & Value 55.75 #4 of 13 Archive leaderboard report
Situation Recognition imSitu SituFormer Top-1 Verb 44.2 #4 of 13 Archive leaderboard report
Situation Recognition imSitu SituFormer Top-1 Verb & Value 35.24 #4 of 13 Archive leaderboard report
Situation Recognition imSitu SituFormer Top-5 Verbs 71.21 #4 of 13 Archive leaderboard report
Situation Recognition imSitu SituFormer Top-5 Verbs & Value 55.75 #4 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

Triplet Loss

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