Introduction
Deep learning models for Human Activity Recognition (HAR) have become increasingly sophisticated, utilizing 3D skeletal data to identify complex actions like walking, punching, or sitting. However, these models remain surprisingly fragile to adversarial attacks—small, calculated perturbations that can deceive a classifier without being perceptible to humans. While adversarial defenses are well-studied in the image domain, skeleton-based data presents unique geometric and physical constraints that traditional methods fail to address.
Researchers have introduced BEAT (Bayesian Energy-based Adversarial Training), a novel black-box defense framework designed specifically for skeleton-based HAR. BEAT effectively bridges the gap between robustness and accuracy, providing a "shield" for pre-trained models without requiring full retraining.
The Challenge of Skeleton Data
Defending skeleton-based classifiers is difficult for two primary reasons. First, skeletal motion is governed by physical laws; bone lengths must remain constant, and joint movements must follow natural dynamics. Standard image-based defenses often produce "adversarial noise" that violates these laws, making them less effective or unrealistic for HAR. Second, most existing defenses require "white-box" access, necessitating the retraining of massive architectures. This is often impractical for end-users or developers working with proprietary or pre-trained models.
The BEAT Framework
BEAT addresses these challenges through a three-pillared approach:
- Bayesian Energy-based Formulation: The framework treats the classifier as an Energy-Based Model (EBM). By learning the joint probability of clean data and adversarial samples, the model assigns low "energy" to natural human motion and high energy to unnatural adversarial noise.
- Natural Motion Manifold Sampling: Instead of adding generic noise, BEAT samples adversaries along a "natural motion manifold." It employs a custom distance function that penalizes deviations in bone length and sudden spikes in velocity or acceleration, ensuring the training data reflects realistic human movement.
- Post-train Bayesian Strategy: To enable black-box defense, BEAT keeps the original classifier frozen. It appends a small secondary model via a skip connection and uses Bayesian Model Averaging. This ensemble of "tiny models" smooths decision boundaries, making it significantly harder for attackers to find successful adversarial directions.
As shown in the figure above, adversarial examples generated against BEAT are forced to be much more "jittery" and distinct from the original motion compared to standard defenses like ST. This makes the attacks easier to detect visually and harder for the model to misclassify.
Experimental Evaluation
The researchers evaluated BEAT across three benchmark datasets: HDM05, NTU60, and NTU120. They tested the defense against four state-of-the-art skeleton classifiers: ST-GCN, CTR-GCN, SGN, and MS-G3D. Across 144 different experimental scenarios, BEAT consistently demonstrated superior robustness.
Key Results and Insights
One of the most significant achievements of BEAT is the elimination of the typical "accuracy-robustness trade-off." In standard adversarial training, increasing a model's robustness usually results in a 2-5% drop in accuracy on clean data. BEAT maintains standard accuracy within a negligible margin (+0.6% to -0.9%).
The quantitative results highlight BEAT's effectiveness. As seen in the figure above, while baselines like TRADES suffer significant accuracy drops as the perturbation magnitude ($\epsilon$) increases, BEAT maintains high standard accuracy. Simultaneously, BEAT keeps the attack success rate significantly lower than competing methods, even as the number of attack iterations increases.
Furthermore, the "tiny model" approach makes BEAT highly efficient. By only training the appended network, the authors reduced training time by up to 70% compared to full-model retraining. The Bayesian approach also induces "gradient vanishing" for attackers; by averaging gradients across multiple tiny models, the expected loss gradient approaches zero, leaving attackers with no clear direction to push the model toward a wrong answer.
Conclusion
BEAT represents a significant step forward in securing skeleton-based activity recognition systems. By incorporating physical constraints and a clever Bayesian post-training strategy, it provides a robust, efficient, and black-box-friendly defense. While currently reliant on predefined physical constraints like bone lengths, future iterations may utilize representation learning to automatically discover these manifolds, expanding BEAT's utility to a broader range of time-series classification tasks.
Summary updated