SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.05375 · 2021

Rethinking the Two-Stage Framework for Grounded Situation Recognition

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2112.05375.json · badge: /api/ran/2112.05375.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
kellyiss/situformer canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
all_gather Ran
ran; our contract draft was wrong, not the code
kellyiss/situformer/util/misc.py
pointer only (licence: NONE) · get_code("aa6da43d05cfaf65")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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
kellyiss/situformer/util/box_ops.py
pointer only (licence: NONE) · get_code("e0a06ded5d4f6c3c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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_iou Ran
ran, honoured the contract we drafted
kellyiss/situformer/util/box_ops.py
pointer only (licence: NONE) · get_code("ce749f837424dd8c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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
kellyiss/situformer/util/box_ops.py
pointer only (licence: NONE) · get_code("031b02fb990284ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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.

crop Ran
ran; our contract draft was wrong, not the code
kellyiss/situformer/datasets/transforms.py
pointer only (licence: NONE) · get_code("74f3f5c1bab38c14")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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.

hflip Ran
ran; our contract draft was wrong, not the code
kellyiss/situformer/datasets/transforms.py
pointer only (licence: NONE) · get_code("9be9e658b5bd688a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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.

make_sr_transforms Ran
ran; our contract draft was wrong, not the code
kellyiss/situformer/datasets/swig.py
pointer only (licence: NONE) · get_code("d5c2ac8ea46e788e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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.

parse_with_config Ran
ran; our contract draft was wrong, not the code
kellyiss/situformer/util/misc.py
pointer only (licence: NONE) · get_code("f46bad6811c75514")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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
kellyiss/situformer/util/misc.py
pointer only (licence: NONE) · get_code("05992505df9ef0cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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.

all_reduce_sum Not yet run
unverified (harvested, no recorded run)
kellyiss/situformer/util/metrics.py
pointer only (licence: NONE) · get_code("569e2388775fa1b7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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_transformer Not yet run
unverified (harvested, no recorded run)
kellyiss/situformer/models/transformer.py
pointer only (licence: NONE) · get_code("da89ce279ae764b6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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.

plot_precision_recall Not yet run
unverified (harvested, no recorded run)
kellyiss/situformer/util/plot_utils.py
pointer only (licence: NONE) · get_code("fe699ae8220daf07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kellyiss/situformer when it was checked. 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 10 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 4 the same month, 10 later) and 2 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
8 dated earlier, 1 the same month, 40 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
6 dated earlier, 1 the same month, 38 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
7 dated earlier, 26 later
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
build_transformer 32 other papers
11 dated earlier, 21 later
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
2104.04369 (2021-04)
Video-aided Unsupervised Grammar Induction
and 29 more not named here
all_gather 30 other papers
7 dated earlier, 23 later
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
box_iou 24 other papers
2 dated earlier, 21 later, 1 undated · 5 only as an assembly brick
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
2104.00969 (2021-04)
TubeR: Tubelet Transformer for Video Action Detection
2203.01666 (2022-03)
Correlation-Aware Deep Tracking
and 21 more not named here
hflip 10 other papers
1 dated earlier, 1 the same month, 8 later
2106.00666 (2021-06)
You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection
2112.08647 (2021-12)
QAHOI: Query-Based Anchors for Human-Object Interaction Detection
2203.13954 (2022-03)
GEN-VLKT: Simplify Association and Enhance Interaction Understanding for HOI Detection
and 7 more not named here
crop 5 other papers
1 dated earlier, 1 the same month, 3 later
2106.00666 (2021-06)
You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection
2112.08647 (2021-12)
QAHOI: Query-Based Anchors for Human-Object Interaction Detection
2203.13954 (2022-03)
GEN-VLKT: Simplify Association and Enhance Interaction Understanding for HOI Detection
and 2 more not named here
parse_with_config 2 other papers
2 later
2307.12907 (2023-07)
GridMM: Grid Memory Map for Vision-and-Language Navigation
2404.10241 (2024-04)
Vision-and-Language Navigation via Causal Learning
plot_precision_recall 2 other papers
1 dated earlier, 1 later
2104.00969 (2021-04)
TubeR: Tubelet Transformer for Video Action Detection
2212.02773 (2022-12)
DiffusionInst: Diffusion Model for Instance Segmentation

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-22.

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), 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.

For agents

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

get_harvested_code_for_paper("2112.05375")
get_code_for_paper("2112.05375")
have("2112.05375")

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

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

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

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

Connect an agent — have() is free.