Papers › GSRFormer: Grounded Situation Recognition Transformer with Alternate Semantic...

GSRFormer: Grounded Situation Recognition Transformer with Alternate Semantic Attention Refinement

18 Aug 2022arXiv:2208.08965archive 2025-07-28

Zhi-Qi Cheng, Qi Dai, SiYao Li, Teruko Mitamura, Alexander G. Hauptmann

Grounded Situation Recognition (GSR) aims to generate structured semantic summaries of images for "human-like" event understanding. Specifically, GSR task not only detects the salient activity verb (e.g. buying), but also predicts all corresponding semantic roles (e.g. agent and goods). Inspired by object detection and image captioning tasks, existing methods typically employ a two-stage framework: 1) detect the activity verb, and then 2) predict semantic roles based on the detected verb. Obviously, this illogical framework constitutes a huge obstacle to semantic understanding. First, pre-detecting verbs solely without semantic roles inevitably fails to distinguish many similar daily activities (e.g., offering and giving, buying and selling). Second, predicting semantic roles in a closed auto-regressive manner can hardly exploit the semantic relations among the verb and roles. To this end, in this paper we propose a novel two-stage framework that focuses on utilizing such bidirectional relations within verbs and roles. In the first stage, instead of pre-detecting the verb, we postpone the detection step and assume a pseudo label, where an intermediate representation for each corresponding semantic role is learned from images. In the second stage, we exploit transformer layers to unearth the potential semantic relations within both verbs and semantic roles. With the help of a set of support images, an alternate learning scheme is designed to simultaneously optimize the results: update the verb using nouns corresponding to the image, and update nouns using verbs from support images. Extensive experimental results on challenging SWiG benchmarks show that our renovated framework outperforms other state-of-the-art methods under various metrics.

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

Code

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

By repository: official repository: 11 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.

zhiqic/gsrformer 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

11 samples harvested; 4 ran; 2 honoured the contract we drafted; 7 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
7unverified

Licence: 11 of the 11 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 zhiqic/gsrformer. “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 zhiqic/gsrformer/util/misc.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · aa6da43d05cfaf65 · report
box_cxcywh_to_xyxy zhiqic/gsrformer/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 zhiqic/gsrformer/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 zhiqic/gsrformer/util/misc.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · 05992505df9ef0cd · report
build zhiqic/gsrformer/datasets/swig.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · e335e7e2c2f17628 · report
build_decoder_transformer zhiqic/gsrformer/models/transformer.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 5acac9cbe77725d2 · report
build_encoder_decoder zhiqic/gsrformer/models/transformer.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · c45c284723243254 · report
build_encoder_encoder zhiqic/gsrformer/models/transformer.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · bb3aeef20beceb00 · report
collate_fn zhiqic/gsrformer/util/misc.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 458a46394aa87a2f · report
noun2synset zhiqic/gsrformer/inference.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 7f06889563fd00ce · report
swig_box_xyxy_to_cxcywh zhiqic/gsrformer/util/box_ops.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · fdd34e83fa6d7086 · report

Tasks

Grounded Situation RecognitionImage CaptioningObject DetectionPseudo Labelobject-detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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