Generative AI has made leaps in creating realistic 3D human motion, but there’s a dark side to the data. Popular datasets like HumanML3D and Motion-X are peppered with violent actions—punches, kicks, and stabbings. When we use this data to train models for VR or robotics, we risk creating agents that can reproduce these harmful behaviors on demand.
In their paper "Human Motion Unlearning," Edoardo De Matteis and colleagues from Sapienza University of Rome and ItalAI tackle this head-on. They propose a way to surgically "erase" violent concepts from pre-trained models without breaking their ability to generate safe, high-quality movement.
TL;DR
The researchers introduce the first benchmark for Human Motion Unlearning (HMU), focusing on removing violent actions from text-to-motion models. They propose Latent Code Replacement (LCR), a novel, training-free method that identifies and replaces "violent" tokens in a model's discrete latent space, effectively suppressing harmful outputs while preserving the realism of safe motions.
What Problem Does This Paper Address?
As text-to-motion (T2M) models become more sophisticated, they are increasingly used to train "embodied agents"—robots or virtual characters that interact with the world. However, the datasets used to train these models contain significant amounts of violent content (up to 15% in Motion-X).
The challenge is twofold:
- Safety: We don't want a household robot or a social VR avatar to have "punching" or "stomping" in its repertoire.
- Robustness: Simple keyword filters are easily bypassed. An attacker might not say "punch," but they could describe the motion: "pull the arm back and swing it forward rapidly." This is known as implicit prompting.
Retraining these massive models from scratch on "clean" data is computationally expensive and often impractical. We need a way to make existing models "unlearn" specific concepts at the parameter level.
Methods
The authors explore several unlearning strategies, adapting state-of-the-art techniques from the image generation world (like UCE and RECE) to the sequential nature of 3D motion. Their standout contribution, however, is Latent Code Replacement (LCR).
Modern T2M models (like MoMask and BAMM) often use a VQ-VAE (Vector Quantized Variational Autoencoder). This architecture turns complex 3D motion into a sequence of discrete "codes" from a learned codebook—essentially a vocabulary of movement.
How LCR works: * Identification: The researchers analyze which codes in the codebook are most frequently triggered by violent motions but rarely by safe ones. * Redirection: Once these "violent codes" are identified, LCR replaces them with safe alternatives (plus a bit of noise for uniqueness). * Inference-time Intervention: This happens without any additional training. When the model tries to generate a violent sequence, it is forced to use "safe" building blocks instead.
Datasets
To test their ideas, the authors established the first motion unlearning benchmark:
- HumanML3D & Motion-X: They automatically filtered these popular datasets to create distinct "Forget Sets" (violent motions) and "Retain Sets" (safe motions).
- MM-Safe Metric: They introduced a new evaluation metric. Standard metrics often penalize a model for not matching a violent prompt. MM-Safe masks out the violent keywords in the prompt to see if the model can still generate a coherent, safe motion that fits the remaining context.
Key Insights and Ideas
- Disentanglement is Key: The success of LCR suggests that motion "vocabularies" in VQ-VAEs are surprisingly disentangled. Violent actions aren't inextricably woven into the entire model; they live in specific, identifiable codes.
- The "Implicit" Attack: The paper highlights that unlearning must happen at the conceptual level, not just the word level. By targeting the latent space, LCR remains effective even when the prompt is rephrased to avoid "banned" words.
- The Quality Trade-off: Unlearning is a balancing act. If you push the model too hard to forget, you might degrade its ability to walk, run, or dance. LCR strikes a superior balance compared to attention-based methods, which often "over-erase" and make the model's overall output jittery or static.
Key Results
The experiments compared LCR against fine-tuning and attention-driven methods (UCE, RECE, ESD) across two major architectures (MoMask and BAMM).
- Superior Suppression: LCR achieved the best trade-off between suppressing violence and maintaining motion quality.
- Gold Standard Comparison: On the HumanML3D dataset, MoMask equipped with LCR produced "Forget Set" results that closely mimicked a model trained exclusively on safe data (the "gold standard"), effectively "forgetting" the violent training samples it had seen.
- Efficiency: Because LCR is training-free, it can be applied to existing models instantly, making it a highly practical tool for developers releasing "safe" versions of their models to the public.
Limitations and Future Work
The authors are transparent about the ethical and technical hurdles:
- Subjectivity: What counts as "violent" is culturally and contextually dependent. A "kick" is violence in a street scene but a legitimate skill in a Taekwondo simulation.
- No Perfect Shield: While LCR is robust, it doesn't provide a 100% safety guarantee. Determined adversarial attacks might still find ways to trigger unwanted behaviors.
- Broadening the Scope: Future work will likely look beyond violence to other "unlearnable" concepts, such as biased gestures or copyrighted dance moves.
This research marks a significant step toward "safe-by-design" motion synthesis, ensuring that as our virtual and robotic agents become more lifelike, they also remain aligned with human values.
Summary updated