Graph Contrastive Learning for Skeleton-based Action Recognition

Xiaohu Huang, Hao Zhou, Jian Wang, Haocheng Feng, Junyu Han, Errui Ding, Jingdong Wang, Xinggang Wang, Wenyu Liu, Bin Feng

SkeletonGCL is a novel contrastive learning framework that improves how Graph Convolutional Networks (GCNs) interpret human actions. By forcing the model to learn graphs that are consistent for the same action across different people and sequences (cross-sequence context), it significantly reduces confusion between similar-looking movements without adding any computational cost during inference.

The Challenge of "Class-Ambiguous" Graphs

In skeleton-based action recognition, the human body is represented as a graph where joints are nodes and bones are edges. Modern GCNs use "adaptive graphs," meaning the model dynamically learns which joint connections are most important for a specific video clip.

However, a major flaw in current approaches is that these models only look at the "local" context of a single video sequence. Because they don't analyze how other people perform the same action across the dataset, the learned graphs often become "class-ambiguous."

Examples of class-ambiguous graphs where "Point to something" is easily confused with "Take a selfie" due to similar local graph structures.

For example, a model might generate an adaptive graph for "pointing at something" that looks almost identical to "taking a selfie." This lack of global, cross-sequence perspective limits the model's ability to distinguish between subtle, easily confused actions.

The SkeletonGCL Framework

To address this, the authors introduce SkeletonGCL, a framework designed to explore global context across the entire dataset.

The SkeletonGCL architecture featuring the Graph Projection Head and Dual Memory Banks for contrastive learning.

Its core components include:

  • Graph Contrastive Learning: Unlike standard contrastive learning that compares final feature vectors, SkeletonGCL compares the learned graph structures themselves. It pulls graphs of the same action class together (intra-class compact) and pushes graphs of different classes apart (inter-class dispersed).
  • Graph Projection Head: To make graphs comparable, the 3D/4D graph tensors are squeezed, flattened, and projected into a common vector space using a vertex-aware fully connected layer.
  • Dual Memory Banks: To provide a rich set of comparisons without requiring massive batch sizes, the system maintains two banks:
  • Instance-level: A FIFO queue storing individual sequence graphs to capture variety.
  • Semantic-level: A momentum-updated bank storing the "average" or prototypical graph for each class.
  • Hard Sampling: To keep training efficient, the model specifically mines "hard positives" (sequences of the same action that look different) and "hard negatives" (different actions that look similar) to calculate the loss.

Crucially, this entire contrastive branch is only used during training. Once the model is trained, the contrastive heads and memory banks are discarded, leaving a standard GCN that is simply better at its job.

Key Insights and Results

The researchers evaluated SkeletonGCL on three major industry-standard benchmarks: NTU RGB+D (NTU60), NTU RGB+D 120, and Northwestern-UCLA (NW-UCLA).

  • Structure as a Feature: The most profound insight is treating the topology of the graph as a discriminative feature. By regularizing the graph structure directly, the model learns a more robust "internal logic" for what an action looks like.
  • Cross-Sequence Synergy: The paper proves that "local" (intra-sequence) information isn't enough. By looking at the "global" context, the model learns that while two people might have different body types or move at different speeds, the essential joint connections for a specific action remain the same.
  • Performance Boosts: On the NTU60 Cross-Subject benchmark, SkeletonGCL improved the baseline CTR-GCN from 89.8% to 90.8%. While 1% might seem small, it is a significant jump on such a mature and competitive benchmark. Furthermore, t-SNE visualizations show that with SkeletonGCL, the clusters for different actions become much tighter and more distinct compared to the baseline.
  • Efficiency: The training time only increases by about 2.6% to 7.0%, which is a negligible trade-off for the accuracy gains, especially since inference speed remains completely unchanged.

Limitations and Future Work

The authors acknowledge one primary limitation: their current "negative sampling" strategy treats all "other" classes as equally negative. In reality, some actions are naturally related (e.g., "running" and "walking"). Future work will likely focus on developing a more delicate contrasting method that accounts for these intrinsic cross-class relationships, perhaps by not pushing "related" negatives as far away as "unrelated" ones.

Summary updated

BibTeX
@inproceedings{huang2023graph,
  author = {Xiaohu Huang and Hao Zhou and Jian Wang and Haocheng Feng and Junyu Han and Errui Ding and Jingdong Wang and Xinggang Wang and Wenyu Liu and Bin Feng},
  title = {{Graph Contrastive Learning for Skeleton-based Action Recognition}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=PLUXnnxUdr4},
}
Figure