MacDiff: Unified Skeleton Modeling with Masked Conditional Diffusion

Lehong Wu, Lilang Lin, Jiahang Zhang, Yiyang Ma, Jiaying Liu

Abstract

MacDiff is a unified framework for human skeleton modeling that integrates masked autoencoding with conditional diffusion. By employing a high masking ratio (90%) in a semantic encoder to condition a diffusion decoder, MacDiff learns robust representations for action recognition while enabling high-quality motion generation. It achieves state-of-the-art performance on major benchmarks like NTU RGB+D and demonstrates significant gains in semi-supervised settings through diffusion-based data augmentation.

Introduction

Understanding human actions through 3D skeletons is a foundational task in computer vision, yet training effective models typically demands extensive labeled datasets. Self-Supervised Learning (SSL) has emerged as a solution, primarily through two paradigms: Contrastive Learning (CL) and Reconstruction-based methods. While CL excels at discrimination, it often neglects fine-grained details and is sensitive to augmentation strategies. Conversely, reconstruction methods like Masked Autoencoders (MAE) can become preoccupied with low-level noise rather than high-level semantics.

MacDiff bridges this gap by leveraging the generative power of diffusion models for representation learning. By treating diffusion as a unified pretext task, MacDiff masters both skeleton representation and motion generation, overcoming the spatial sparsity and temporal redundancy inherent in skeleton data.

Methodology

The MacDiff framework utilizes an encoder-decoder architecture designed to create a tight information bottleneck, forcing the model to learn essential semantic features.

The MacDiff architecture, featuring a Semantic Encoder for representation extraction and a Diffusion Decoder for conditional training.

The process consists of two parallel streams:

  1. Semantic Encoder ($\mathcal{E}$): The input skeleton is divided into spatio-temporal patches. A random masking operation $\mathcal{M}$ is applied with an extremely high ratio (90%). This forces the encoder to extract a compact, high-level representation $z$ from minimal information.
  2. Diffusion Decoder ($\mathcal{D}$): This component is a conditional diffusion model. It receives a noisy version of the skeleton $x_t$ (generated via a sampling process $q(x_t|x_0)$) and aims to predict the added noise $\epsilon_\theta(x_t, t, z)$. Crucially, the denoising process is conditioned on the representation $z$ from the encoder.
  3. Conditioning via AdaLN: The representation $z$ is injected into the decoder blocks using Adaptive Layer Normalization (AdaLN). This mechanism scales and shifts hidden layers, effectively guiding the denoising process with semantic information.

This architecture enables Diffusion-Based Augmentation. Once trained, the decoder can perform "one-step denoising." By adding controlled noise to a labeled skeleton and denoising it conditioned on its own representation, the model generates new, label-consistent training samples that enhance downstream performance.

Experiments and Results

MacDiff was evaluated on three major benchmarks for human action recognition: NTU RGB+D 60, NTU RGB+D 120, and PKUMMD.

  • Action Recognition SOTA: In linear evaluation on the NTU 60 (cross-subject) benchmark, MacDiff achieved 86.4% accuracy, significantly outperforming previous state-of-the-art models like MAMP (84.9%) and SkeletonMAE (74.8%).
  • Data Efficiency: In semi-supervised scenarios using only 1% of labeled data, MacDiff’s diffusion-based augmentation improved performance from 65.6% to 72.0%, demonstrating its utility in label-scarce environments.
  • Generative Performance: MacDiff also excelled in motion reconstruction tasks. It achieved a Mean Per Joint Position Error (MPJPE) of 0.033 on 10-frame occlusion tasks, surpassing standard DDIM (0.041).

Discussion and Insights

A key theoretical insight is that the MacDiff objective encompasses the contrastive learning objective. By aligning masked and noisy views while incorporating a reconstruction component, MacDiff prevents the feature collapse often seen in pure contrastive methods.

The choice of a 90% masking ratio is critical. Skeletons are highly redundant; knowing joint positions in adjacent frames often allows for easy interpolation. The extreme masking forces the model to learn underlying motion semantics rather than simple coordinate memorization. Furthermore, the encoder-decoder split effectively disentangles high-level semantic learning from low-level signal generation.

Conclusion

MacDiff presents a powerful, unified approach to skeleton modeling. While the authors noted a trade-off between decoder depth and generative quality—settling on a depth of 5 to maintain performance—and acknowledged the computational intensity of full diffusion sampling, the results are compelling. Future work may extend this framework to complex human-object interactions or larger-scale multi-modal pre-training, further solidifying diffusion models as a cornerstone for skeleton-based action understanding.

Summary updated

BibTeX
@inproceedings{wu2024macdiff,
  author = {Lehong Wu and Lilang Lin and Jiahang Zhang and Yiyang Ma and Jiaying Liu},
  title = {{MacDiff: Unified Skeleton Modeling with Masked Conditional Diffusion}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73347-5\_7},
}
Figure