Papers › Context-Guided Spatio-Temporal Video Grounding

Context-Guided Spatio-Temporal Video Grounding

3 Jan 2024CVPR 2024 1arXiv:2401.01578archive 2025-07-28

Xin Gu, Heng Fan, Yan Huang, Tiejian Luo, Libo Zhang

Spatio-temporal video grounding (or STVG) task aims at locating a spatio-temporal tube for a specific instance given a text query. Despite advancements, current methods easily suffer the distractors or heavy object appearance variations in videos due to insufficient object information from the text, leading to degradation. Addressing this, we propose a novel framework, context-guided STVG (CG-STVG), which mines discriminative instance context for object in videos and applies it as a supplementary guidance for target localization. The key of CG-STVG lies in two specially designed modules, including instance context generation (ICG), which focuses on discovering visual context information (in both appearance and motion) of the instance, and instance context refinement (ICR), which aims to improve the instance context from ICG by eliminating irrelevant or even harmful information from the context. During grounding, ICG, together with ICR, are deployed at each decoding stage of a Transformer architecture for instance context learning. Particularly, instance context learned from one decoding stage is fed to the next stage, and leveraged as a guidance containing rich and discriminative object feature to enhance the target-awareness in decoding feature, which conversely benefits generating better new instance context for improving localization finally. Compared to existing methods, CG-STVG enjoys object information in text query and guidance from mined instance visual context for more accurate target localization. In our experiments on three benchmarks, including HCSTVG-v1/-v2 and VidSTG, CG-STVG sets new state-of-the-arts in m_tIoU and m_vIoU on all of them, showing its efficacy. The code will be released at https://github.com/HengLan/CGSTVG.

PaperPDFConference PDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 34 code samples harvested from 2 repositories linked to this paper: 22 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 1 honoured, 1 violated, 10 with no contract checked; 10 where Syntology's instrument failed) · 12 unverified. Where Syntology's instrument failed: 5 where our contract draft was wrong; 5 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 27 samples from 1 repository, 15 ran (8 with no instrument failure; 7 where Syntology's instrument failed); community (archive-listed): 7 samples from 1 repository, 7 ran (4 with no instrument failure; 3 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

henglan/cgstvg officialmentioned in papermentioned on GitHubpytorchSyntology: 27 samples, 15 ran (7 instrument-failed) · 12 unverified report
shaohuadong2021/dplnet mentioned on GitHubpytorchSyntology: 7 samples, 7 ran (3 instrument-failed) · 0 unverified 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

34 samples harvested: 22 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 1 honoured, 1 violated, 10 with no contract checked; 10 where Syntology's instrument failed) · 12 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
1ran · violated contract
5ran · our draft was wrong
5ran; the contract check could not run
10ran
12unverified

Licence: 34 of the 34 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 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

henglan/cgstvg official repository 27 samples, 15 ran (7 instrument-failed) · 12 unverified
PatchEmbed3D in 7 papers models/pipeline.py ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 98f9b32392664051 · report fixture: signature x:Tensor/5/float · returned Tensor · level recorded 2026-09-22
PatchMerging in 31 papers models/pipeline.py ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 4b91ef1761c7be10 · report fixture: signature x:Tensor/5/float · returned Tensor · level recorded 2026-09-22
WindowAttention3D in 10 papers models/pipeline.py ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 551c9216af378530 · report fixture: signature x:Tensor/3/float, mask:NoneType/0/? · returned Tensor · level recorded 2026-09-22
build_position_encoding in 42 papers models/pipeline.py ran · our draft was wrong no licence file found · pointer only · e936bfbe7328d661 · report fixture: signature cfg:SimpleNamespace/0/? · returned PositionEmbeddingSine · level recorded 2026-09-22
crop_for_2d_map datasets/data_utils.py ran no licence file found · pointer only · 6569506027b47b2e · report fixture: signature cfg:Config/0/?, video_data:dict/0/? · returned dict · level recorded 2026-09-24
draw_umich_gaussian in 6 papers datasets/gaussion_hm.py ran no licence file found · pointer only · fd3666d3bd51e693 · report fixture: signature heatmap:ndarray/2/float, center:tuple/1/int, radius:int/0/int, k:float/0/float · returned ndarray · level recorded 2026-09-24
gaussian2D in 13 papers datasets/gaussion_hm.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · 86282b7f90be63f2 · report fixture: signature shape:tuple/1/int, sigma:float/0/float · returned ndarray · level recorded 2026-09-25
gaussian_radius in 25 papers datasets/gaussion_hm.py ran; the contract check could not run (RAISES) no licence file found · pointer only · f2a33236566ea043 · report fixture: signature det_size:tuple/1/int, min_overlap:float/0/float · returned float64 · level recorded 2026-09-24
gen_sineembed_for_position in 29 papers models/net_utils.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · f8e81a3d4e4e2319 · report fixture: signature pos_tensor:Tensor/3/float · returned Tensor · level recorded 2026-09-24
greater_than_indices models/net_utils.py ran · our draft was wrong no licence file found · pointer only · 4ce8a8fe24e42467 · report fixture: signature tensor:Tensor/2/float, n:int/0/int · returned Tensor · level recorded 2026-09-24
inverse_sigmoid in 80 papers
census: 9 implementations from 14 papers, 5 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 2, kind float, dtype float32
models/net_utils.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 6897880b6ce14c94 · report fixture: signature x:Tensor/2/float, eps:float/0/float · returned Tensor · level recorded 2026-09-22
make_data_sampler in 11 papers datasets/build.py ran no licence file found · pointer only · 2cc9f34255b37484 · report fixture: signature dataset:SimpleDataset/0/?, shuffle:bool/0/bool, distributed:bool/0/bool · returned RandomSampler · level recorded 2026-09-24
make_vidstg_input_clip datasets/data_utils.py ran no licence file found · pointer only · 4bd04ee80277255a · report fixture: signature cfg:MinimalConfig/0/?, split:str/0/str, video_data:dict/0/? · returned dict · level recorded 2026-09-24
mask2weight models/map2d_head.py ran no licence file found · pointer only · 2b8f5bd784309076 · report fixture: signature mask2d:Tensor/2/float, mask_kernel:Tensor/4/float, padding:int/0/int · returned Tensor · level recorded 2026-09-24
strip_prefix_if_present in 16 papers utils/model_serialization.py ran · our draft was wrong no licence file found · pointer only · 5a951495ac113177 · report fixture: signature state_dict:dict/0/?, prefix:str/0/str · returned OrderedDict · level recorded 2026-09-22
BasicLayer in 56 papers models/pipeline.py unverified no licence file found · pointer only · 07beb481a5933f84 · report
CGSTVG models/pipeline.py unverified no licence file found · pointer only · 920e729ec0d06d08 · report
GroupNormBackbone models/pipeline.py unverified no licence file found · pointer only · baeaa2f24f3f1e52 · report
SwinTransformer3D models/pipeline.py unverified no licence file found · pointer only · 14110c8c23703024 · report
SwinTransformerBlock3D in 9 papers models/pipeline.py unverified no licence file found · pointer only · be780796be37f0ec · report
VideoSwinTransformerBackbone models/pipeline.py unverified no licence file found · pointer only · f1e820077ec2e15c · report
build_dataset in 151 papers datasets/build.py unverified no licence file found · pointer only · ea91f100bf0515a9 · report
build_text_encoder in 6 papers models/pipeline.py unverified no licence file found · pointer only · f804bc70b1f80bc9 · report
build_transforms in 10 papers datasets/build.py unverified no licence file found · pointer only · cc80b84c98a69a35 · report
build_vis_encoder models/pipeline.py unverified no licence file found · pointer only · e15f821e89f9771e · report
make_hcstvg_input_clip datasets/data_utils.py unverified no licence file found · pointer only · 13bb00466df8b6d2 · report
vidswin_model models/pipeline.py unverified no licence file found · pointer only · 8f19339192049aaf · report
shaohuadong2021/dplnet community (archive-listed) 7 samples, 7 ran (3 instrument-failed) · 0 unverified
class_to_RGB RGBD/toolbox/utils.py ran no licence file found · pointer only · 078b780969639508 · report fixture: signature label:ndarray/2/int, N:int/0/int, cmap:ndarray/2/int, normalized:bool/0/bool · returned ndarray · level recorded 2026-09-24
color_map in 15 papers RGBD/toolbox/utils.py ran · honoured contract no licence file found · pointer only · 25c8bd3670262bfe · report fixture: signature N:int/0/int, normalized:bool/0/bool · returned ndarray · level recorded 2026-09-24
get_logger in 383 papers RGBD/toolbox/log.py ran · our draft was wrong no licence file found · pointer only · 229c212d6572dfe1 · report fixture: signature logdir:str/0/str · returned Logger · level recorded 2026-09-24
iou in 97 papers
census: 5 implementations from 7 papers, 5 distinct outputs across 5 buckets, one shared input per bucket this sample: bucket 3 of 5, arg 1: rank 2, kind int, dtype int64 · arg 2: rank 2, kind int, dtype int64
RGBD/toolbox/lavaszSoftmax.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · d94639b28b2134ff · report fixture: signature preds:ndarray/2/int, labels:ndarray/2/int, C:int/0/int, EMPTY:float/0/float, ignore:NoneType/0/?, per_image:bool/0/bool · returned ndarray · level recorded 2026-09-22
iou_binary in 27 papers RGBD/toolbox/lavaszSoftmax.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · 1211530cd527bd0b · report fixture: signature preds:ndarray/3/int, labels:ndarray/3/int, EMPTY:float/0/float, ignore:int/0/int, per_image:bool/0/bool · returned float · level recorded 2026-09-22
lovasz_grad in 42 papers RGBD/toolbox/lavaszSoftmax.py ran · violated contract fingerprinted no licence file found · pointer only · e85b5d21dc5b8382 · report fixture: signature gt_sorted:Tensor/1/int · returned Tensor · level recorded 2026-09-22
tensor_classes_to_RGBs RGBD/toolbox/utils.py ran no licence file found · pointer only · c1c90f48975d4b3e · report fixture: signature label:Tensor/3/int, N:int/0/int, cmap:NoneType/0/? · returned Tensor · level recorded 2026-09-24

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for Context-Guided Spatio-Temporal Video Grounding (CG-STVG) (graph method: Context-Guided Spatio-Temporal Video Grounding (CG-STVG)). 30 bricks; individually on a fixture: 18 ran (of which 9 constructed an object rather than computing a result; 13 with no instrument failure: 0 honoured, 0 violated, 13 with no contract checked; 5 where Syntology's instrument failed) · 12 unverified. The assembly has not been run end-to-end.

  1. CGSTVG entry · level 0 · unverified · 920e729ec0d06d08
  2. MLP helper · level 1 · ran · c7728510fb5fa2dd
  3. NestedTensor helper · level 1 · ran · 60a2fb58c9949c1d
  4. build_decoder helper · level 0 · unverified · 554210938d06c170
  5. build_encoder helper · level 0 · unverified · 0a690726c1cb50e7
  6. build_text_encoder helper · level 0 · unverified · f804bc70b1f80bc9
  7. build_vis_encoder helper · level 0 · unverified · e15f821e89f9771e
  8. vidswin_model helper · level 0 · unverified · 8f19339192049aaf
  9. Backbone helper · level 0 · unverified · 8687762072eb9277
  10. GroupNormBackbone helper · level 0 · unverified · baeaa2f24f3f1e52
  11. Joiner helper · level 1 · ran · d79f14a1bc1a6186
  12. build_position_encoding helper · level 1 · ran · our draft was wrong · e936bfbe7328d661
  13. VideoSwinTransformerBackbone helper · level 0 · unverified · f1e820077ec2e15c
  14. BackboneBase helper · level 1 · ran · 61a5ef5ec49e4ea8
  15. FrozenBatchNorm2d helper · level 1 · ran · edab1f7b54761edc
  16. GroupNorm32 helper · level 1 · ran · 6a44d56c318a9f2b
  17. PositionEmbeddingLearned helper · level 1 · ran · fa04a0c6d2415dac
  18. PositionEmbeddingSine helper · level 1 · ran · f52bb0cf00c7d60c
  19. PositionEmbeddingSineHW helper · level 1 · ran · 7b9116f0334dab6b
  20. SwinTransformer3D helper · level 0 · unverified · 14110c8c23703024
  21. BasicLayer helper · level 0 · unverified · 07beb481a5933f84
  22. PatchEmbed3D helper · level 1 · ran · 98f9b32392664051
  23. PatchMerging helper · level 1 · ran · 4b91ef1761c7be10
  24. SwinTransformerBlock3D helper · level 0 · unverified · be780796be37f0ec
  25. compute_mask helper · level 1 · ran · our draft was wrong · 16139a51bd773319
  26. get_window_size helper · level 1 · ran; the contract check could not run · aad0ea11cb13d353
  27. Mlp helper · level 1 · ran · 3d4489efff0d96f9
  28. WindowAttention3D helper · level 1 · ran · 551c9216af378530
  29. window_partition helper · level 1 · ran; the contract check could not run · 4876d8faacbd6927
  30. window_reverse helper · level 1 · ran · our draft was wrong · 75fd6fbfca7a246c

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2401.01578") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

ObjectSpatio-Temporal Video GroundingVideo Grounding

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Spatio-Temporal Video Grounding HC-STVG1 CG-STVG m_vIoU 38.4 #2 of 3 Archive leaderboard report
Spatio-Temporal Video Grounding HC-STVG1 CG-STVG vIoU@0.3 61.5 #2 of 3 Archive leaderboard report
Spatio-Temporal Video Grounding HC-STVG1 CG-STVG vIoU@0.5 36.3 #2 of 3 Archive leaderboard report
Spatio-Temporal Video Grounding HC-STVG2 CG-STVG Val m_vIoU 39.5 #2 of 4 Archive leaderboard report
Spatio-Temporal Video Grounding HC-STVG2 CG-STVG Val vIoU@0.3 64.5 #2 of 4 Archive leaderboard report
Spatio-Temporal Video Grounding HC-STVG2 CG-STVG Val vIoU@0.5 36.3 #2 of 4 Archive leaderboard report
Spatio-Temporal Video Grounding VidSTG CG-STVG Declarative m_vIoU 34.0 #2 of 3 Archive leaderboard report
Spatio-Temporal Video Grounding VidSTG CG-STVG Declarative vIoU@0.3 47.7 #2 of 3 Archive leaderboard report
Spatio-Temporal Video Grounding VidSTG CG-STVG Declarative vIoU@0.5 33.1 #2 of 3 Archive leaderboard report
Spatio-Temporal Video Grounding VidSTG CG-STVG Interrogative m_vIoU 29.0 #2 of 3 Archive leaderboard report
Spatio-Temporal Video Grounding VidSTG CG-STVG Interrogative vIoU@0.3 40.5 #2 of 3 Archive leaderboard report
Spatio-Temporal Video Grounding VidSTG CG-STVG Interrogative vIoU@0.5 27.5 #2 of 3 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

Absolute Position EncodingsAdamAttentionBPEDense 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