3D pose estimationPattern Recognition

STGFormer: Spatio-Temporal GraphFormer for 3D Human Pose Estimation in Video

STGFormer uses the skeleton graph to guide attention across joints and frames

Yang Liu, Zhiyong Zhang

One-minute overview

The network embeds the 2D coordinates of each joint. Each block combines graph-biased attention across joints or time with two graph convolution streams that exchange information over multiple hops. A linear head predicts a 3D coordinate for every input joint and frame.

Why this paper is included

A 2D joint sequence contains evidence about motion and body structure, yet the same observations can still admit several plausible depths. This study tests how much the lifting stage gains from modeling those two sources of evidence explicitly.

Problem, inputs and outputs

A monocular detection does not directly reveal depth, and an occlusion can distort several keypoints at once. A sequence provides more observations, but treating every joint in every frame as an unrestricted interaction is costly and omits the skeleton as an explicit prior.

Inputs

  • Ordered 2D joints for one person, obtained from monocular RGB video in the detector-based setup
  • Reference 2D joints in the Human3.6M oracle comparison

Outputs

  • A sequence of 3D joint coordinates with one skeleton per input frame

Author figure

Three panels show the 2D-to-3D pose sequence pipeline, graph biases in attention, and parallel spatial and temporal graph convolutions.

Figure 1 · The authors’ Figure 1 shows joint embeddings and a stack of STGFormer blocks, with detail panels for criss-cross graph attention and the parallel graph convolution module.

Figure credit · Yang Liu, Zhiyong Zhang

Method pipeline

  1. Build a 2D joint sequence

    Collect one person’s 2D joints over successive frames. The real-video example uses YOLOv3 for person detection and HRNet for keypoints, then applies the model trained on Human3.6M.

  2. Embed joints and attend along two axes

    Project each joint to a feature vector. Split attention channels between joints in a frame and observations of the same joint over time, add learned connectivity biases to their attention scores, then concatenate both outputs.

  3. Aggregate neighboring features

    Run spatial and temporal graph convolutions in parallel. Modulate how each neighbor contributes and combine information across several hop distances, with skips from the original features.

  4. Regress each 3D skeleton

    Apply the linear head to the final joint features to produce three coordinates per joint and frame. Training minimizes squared coordinate error against reference 3D joints.

Key design choices

  • Put connectivity inside attention

    A pair’s relationship in the skeleton graph or temporal graph selects a learned bias before softmax. Successive blocks let feature interactions travel between the two axes.

  • Keep graph convolution streams parallel

    The spatial stream sees body structure within each frame and the temporal stream sees how a joint changes. In the 27-frame CPN ablation, the complete graph module reaches 43.7 mm, versus 45.0 mm with temporal graph convolution alone and 46.9 mm with spatial graph convolution alone.

Reading the experiments

Datasets and splits
Human3.6M uses its standard five-subject training and two-subject test split, with CPN and Stacked Hourglass detections evaluated separately from reference 2D joints. The paper also evaluates MPI-INF-3DHP and illustrates in-the-wild video results.
Baselines
At 243 frames, MixSTE supplies a same-detector CPN comparison and MotionAGFormer supplies the Stacked Hourglass comparison. Table 4 compares 81-frame STGFormer with a 27-frame MotionAGFormer and an 81-frame STCFormer.
Metrics and units
Human3.6M reports root-aligned MPJPE and Procrustes-aligned MPJPE in millimeters under Protocols 1 and 2. MPI-INF-3DHP reports MPJPE, the percentage of correct keypoints at a 150 mm threshold and area under the PCK curve.
Key results
At 243 frames on Human3.6M, STGFormer reports 40.3 and 31.7 mm with CPN, versus 40.9 and 32.6 mm for MixSTE. With Stacked Hourglass, it reports 38.0 and 30.8 mm, versus 38.4 and 32.6 mm for MotionAGFormer. The reference-2D model reaches 21.4 mm Protocol 1 MPJPE. On MPI-INF-3DHP, the 81-frame model reports 98.8% PCK, 84.1 AUC and 19.2 mm MPJPE. The listed 27-frame MotionAGFormer also scores 19.2 mm.
Trade-offs
With CPN, increasing STGFormer’s input from 27 to 243 frames reduces MPJPE from 43.7 to 40.3 mm and raises compute from 3,104 to 28,871 million FLOPs. At 243 frames, MixSTE uses 138,623 million FLOPs and STCFormer uses 19,561 million.

Limitations and applicability

  • Author-reported limitation

    The authors flag overlapping people and occluded joints. The lifting model assumes one person, and its attention can become unreliable when different people overlap or evidence for a joint disappears.

  • Editorial assessment

    The in-the-wild examples establish qualitative RGB video inference. The pose error and compute results do not measure multi-person identity consistency, world-space motion or end-to-end video latency.

Sources and reading guide

The experiments are author-reported. The analysis labels editorial observations separately.