Graph Contrastive Learning for Skeleton-based Action Recognition

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

Introduction

Skeleton-based action recognition has seen significant progress with the adoption of Graph Convolutional Networks (GCNs), which treat the human skeleton as a natural graph. While modern adaptive GCNs excel at capturing intra-sequence joint dependencies, they often fail to distinguish between actions with similar local movements, such as "taking a selfie" and "pointing to something." This limitation stems from a focus on "local" context within individual videos, neglecting the "global" semantic relationships across the entire dataset.

The SkeletonGCL Framework

To address this, we introduce SkeletonGCL, a plug-and-play framework designed to enhance the discriminative power of GCNs through graph contrastive learning. Unlike traditional contrastive methods that operate on pooled feature vectors, SkeletonGCL contrasts the learned graph topologies themselves. This approach preserves high-order structural relationships that are often lost during feature pooling.

Key components of the framework include:

  • Graph Projection Head: A vertex-aware module that embeds high-dimensional adjacency matrices into a latent space for comparison.
  • Dual Memory Banks: The system maintains an Instance-level bank for sequence-specific variety and a Semantic-level bank that stores momentum-updated class prototypes (anchors).
  • Graph Contrastive Loss: Utilizing an InfoNCE-based loss, the model pulls a sequence's graph toward its class prototype while pushing it away from dissimilar classes.
  • Hard Sampling: The framework actively mines "hard positives" (different-looking sequences of the same class) and "hard negatives" (similar-looking sequences of different classes) to ensure continuous learning of subtle class boundaries.

Experimental Evaluation

SkeletonGCL was evaluated on three major benchmarks: NTU RGB+D 60, NTU RGB+D 120, and Northwestern-UCLA. When integrated with popular GCNs like 2S-AGCN, CTR-GCN, and InfoGCN, the framework consistently improved accuracy across the board. For instance, on NTU 60 (Cross-Subject), CTR-GCN performance rose from 89.8% to 90.8%.

A critical advantage of SkeletonGCL is its efficiency; the contrastive heads and memory banks are only used during training. At inference, the underlying GCN operates independently, providing enhanced accuracy with zero additional computational cost. Qualitative analysis via t-SNE visualizations further confirms that SkeletonGCL produces tighter, more distinct clusters for action classes compared to baseline models.

Conclusion

SkeletonGCL demonstrates that global, cross-sequence guidance is essential for robust skeleton-based action recognition. By focusing on topological contrast rather than simple feature similarity, the model learns more distinct and representative action prototypes. Future work will explore more nuanced contrasting strategies, such as hierarchical or soft-label approaches, to better handle the intrinsic relationships between closely related action classes like "walking" and "running."

Summary updated

BibTeX
@inproceedings{huang2023graph,
  author = {Xiaohu Huang and Hao Zhou and Bin Feng and Xinggang Wang and Wenyu Liu and Jian Wang and Haocheng Feng and Junyu Han and Errui Ding and Jingdong Wang},
  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