SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.08965 · 2022

GSRFormer: Grounded Situation Recognition Transformer with Alternate Semantic Attention Refinement

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 2 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2208.08965.json · badge: /api/ran/2208.08965.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zhiqic/gsrformer canonical (classifier label)
classifier basis not recorded on the link
7 ran · 4 no recorded run
FunctionStatusWhere it lives
all_gather Ran
ran; our contract draft was wrong, not the code
zhiqic/gsrformer/util/misc.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kellyiss/situformer, is pointer only (licence: NONE) · get_code("aa6da43d05cfaf65")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

box_cxcywh_to_xyxy Ran
ran, honoured the contract we drafted
zhiqic/gsrformer/util/box_ops.py
pointer only (licence: Apache-2.0) · get_code("e0a06ded5d4f6c3c")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

box_xyxy_to_cxcywh Ran
ran, honoured the contract we drafted
zhiqic/gsrformer/util/box_ops.py
pointer only (licence: Apache-2.0) · get_code("031b02fb990284ba")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_encoder_decoder Ran
ran on a synthesized input
zhiqic/gsrformer/models/transformer.py
pointer only (licence: Apache-2.0) · get_code("c45c284723243254")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_encoder_encoder Ran
ran on a synthesized input
zhiqic/gsrformer/models/transformer.py
pointer only (licence: Apache-2.0) · get_code("bb3aeef20beceb00")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reduce_dict Ran
ran; our contract draft was wrong, not the code
zhiqic/gsrformer/util/misc.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kellyiss/situformer, is pointer only (licence: NONE) · get_code("05992505df9ef0cd")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

swig_box_xyxy_to_cxcywh Ran
ran on a synthesized input
zhiqic/gsrformer/util/box_ops.py
pointer only (licence: Apache-2.0) · get_code("fdd34e83fa6d7086")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build Not yet run
unverified (harvested, no recorded run)
zhiqic/gsrformer/datasets/swig.py
pointer only (licence: Apache-2.0) · get_code("e335e7e2c2f17628")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

build_decoder_transformer Not yet run
unverified (harvested, no recorded run)
zhiqic/gsrformer/models/transformer.py
pointer only (licence: Apache-2.0) · get_code("5acac9cbe77725d2")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

collate_fn Not yet run
unverified (harvested, no recorded run)
zhiqic/gsrformer/util/misc.py
pointer only (licence: Apache-2.0) · get_code("458a46394aa87a2f")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

noun2synset Not yet run
unverified (harvested, no recorded run)
zhiqic/gsrformer/inference.py
pointer only (licence: Apache-2.0) · get_code("7f06889563fd00ce")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, zhiqic/gsrformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 5 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
box_cxcywh_to_xyxy 49 other papers
16 dated earlier, 33 later · 11 only as an assembly brick
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
2011.10881 (2020-11)
Rethinking Transformer-based Set Prediction for Object Detection
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
and 46 more not named here
box_xyxy_to_cxcywh 45 other papers
14 dated earlier, 31 later · 20 only as an assembly brick
2011.10881 (2020-11)
Rethinking Transformer-based Set Prediction for Object Detection
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
2103.17154 (2021-03)
Learning Spatio-Temporal Transformer for Visual Tracking
and 42 more not named here
reduce_dict 33 other papers
11 dated earlier, 21 later, 1 same year, order not determinable
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
1811.10200 (2018-11)
IDD: A Dataset for Exploring Problems of Autonomous Navigation in Unconstrained Environments
2007.02419 (2020-07)
Attention-based Joint Detection of Object and Semantic Part
and 30 more not named here
all_gather 30 other papers
9 dated earlier, 20 later, 1 same year, order not determinable
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
1811.10200 (2018-11)
IDD: A Dataset for Exploring Problems of Autonomous Navigation in Unconstrained Environments
2007.02419 (2020-07)
Attention-based Joint Detection of Object and Semantic Part
and 27 more not named here
collate_fn 16 other papers
4 dated earlier, 11 later, 1 same year, order not determinable
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
2104.00969 (2021-04)
TubeR: Tubelet Transformer for Video Action Detection
2104.08541 (2021-04)
TransVG: End-to-End Visual Grounding with Transformers
and 13 more not named here
noun2synset 1 other paper
1 dated earlier
2111.10135 (2021-11)
Grounded Situation Recognition with Transformers
swig_box_xyxy_to_cxcywh 1 other paper
1 dated earlier
2111.10135 (2021-11)
Grounded Situation Recognition with Transformers

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2208.08965")
get_code_for_paper("2208.08965")
have("2208.08965")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2208.08965.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2208.08965.svg)](https://syntology.ai/paper/2208.08965)

Connect an agent — have() is free.