All models

GroupFormer

Video model that labels a group's activity and each person's action with a clustered spatial-temporal transformer.

Video · 3,927 operations Structure only

Structure-only capture: TorchLens recorded this graph without running real numbers through the model, so shapes and data types on the diagram are hypotheses, not measurements.

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 3,927 operations (271 KB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Task
Video
Parameters
133.1M
Operations
3,927
Framework
PyTorch
Recurrent
No
Published
ICCV 2021
Cited by
162 (as of 28 October 2026)
Authors
Shuaicheng Li, Qianggang Cao, Lingbo Liu and others
License
Apache-2.0
Checked
Structure only: shapes and data types are hypotheses, not measurements.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17186
Graph hash
e43297dba7c5423323dc779f78f2e764648a867fc860ae9b2576f9437abc0b91
Skeleton hash
b64087244dca4da2ee6605984a377602517f61b00bd954b5778f4eb40545bd6e
Architecture hash
44ab25faa7ee85c88498a30afc763e7219a372e4de55adbd20064583063e9267
Diagram SHA-256
8a71ba9a9e05a7b48e4a3b4463b62479049c394544ce859621196a21cf0a9471
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3

What it is

GroupFormer is a group activity recognition network, built to label what a whole scene of people is doing rather than a single person's action. RoIAlign extracts a feature for each person from their bounding box in every frame, and pose information from AlphaPose is concatenated onto those person features. A Group Representation Generator then builds an initial group representation by merging this individual context with scene-wide context.

The core is a stack of Clustered Spatial-Temporal Transformers, which embed spatial and temporal features with encoders and apply decoders in a cross manner to link the two. Instead of full attention between everyone, individuals are grouped into C clusters with mini-batch k-means clustering. Attention within a cluster refines each person's action features, and inter-group attention models the relations among clusters. The paper uses C = 4 clusters and stacks the transformer for 3 blocks.

On the Volleyball dataset the model predicts one of 8 group activity categories, such as right spike or left pass. The paper reports 95.7% group activity accuracy on Volleyball when pose information is taken as an additional input.

Key idea. GroupFormer built a clustered spatial-temporal transformer that models spatial and temporal dependencies jointly and groups individuals into clusters for group activity recognition.

  • GroupFormer
  • group activity recognition
  • clustered spatial-temporal transformer
  • CSTT
  • volleyball dataset
  • collective activity
  • multi-person action recognition
  • video transformer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{li2021groupformergroupactivityrecognition,
      title={GroupFormer: Group Activity Recognition with Clustered Spatial-Temporal Transformer}, 
      author={Shuaicheng Li and Qianggang Cao and Lingbo Liu and Kunlin Yang and Shinan Liu and Jun Hou and Shuai Yi},
      year={2021},
      eprint={2108.12630},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2108.12630}, 
}