Abstract
Achieving high-quality, diverse, and responsive character animation in real-time remains a significant challenge in computer graphics. While Diffusion Probabilistic Models (DPMs) have set new benchmarks for offline motion generation, their application to interactive control has been hindered by computational latency and difficulties in managing conflicting control signals. This paper presents CAMDM (Conditional Autoregressive Motion Diffusion Model), a transformer-based framework that enables real-time, high-fidelity character control. By introducing Separate Condition Tokenization (SCT) and Classifier-Free Guidance on Past Motion (CFG-PM), CAMDM achieves seamless style transitions and realistic locomotion, outperforming traditional deterministic models and existing neural controllers.
Introduction
The "holy grail" of character animation is a controller that is simultaneously realistic, diverse, and responsive. Traditional deterministic models, such as Phase-Functioned Neural Networks (PFNN) or Mode-Adaptive Neural Networks (MANN), often suffer from "regression to the mean." Because these models attempt to predict a single optimal next pose, they frequently produce averaged-out motions that result in artifacts like foot sliding or a lack of stylistic nuance.
In contrast, Diffusion Probabilistic Models (DPMs) capture complex data distributions, allowing for much higher diversity. However, DPMs are typically too slow for interactive use and struggle to maintain stability when multiple inputs—such as a desired trajectory and a specific movement style—conflict. CAMDM addresses these limitations by "taming" the diffusion process for the demands of real-time environments.
Methodology
CAMDM is built upon a transformer-based autoregressive architecture. To make diffusion viable for real-time interaction, the framework introduces three primary algorithmic innovations:
1. Separate Condition Tokenization (SCT)
Standard models often aggregate user inputs (style, trajectory, orientation) into a single feature vector. This can lead to "signal dominance," where one input overrides others. SCT learns a separate token for each constraint, allowing the transformer’s attention mechanism to balance these signals dynamically. This ensures the character adheres to the desired path without losing its stylistic expression.
2. Classifier-Free Guidance on Past Motion (CFG-PM)
A major hurdle in character control is the "transition problem"—switching naturally between distinct styles (e.g., from "walking" to "hopping"). CAMDM applies guidance to the history of the motion rather than just the style label. By selectively "un-conditioning" on past motion during transitions, the model can effectively filter its short-term memory, allowing the character to pivot to a new style more fluidly.
3. Heuristic Future Trajectory Extension (HFTE)
To preserve the natural variance of human movement, the model uses a "lazy" trigger mechanism. It generates a long sequence of motion and plays it back as long as user input remains consistent. When the user changes direction or style, HFTE heuristically extends the predicted trajectory to match the new input, preventing jitter and ensuring responsiveness.
4. Real-Time Efficiency
While standard diffusion models may require 1,000 denoising steps, CAMDM is trained to operate with only 8 steps. This optimization allows the system to run at over 60 FPS on consumer-grade hardware (e.g., an RTX 3060), with a compact model size of only 20MB.
Experimental Evaluation
The authors evaluated CAMDM using the 100STYLE dataset, a comprehensive motion capture library containing over 4 million frames and 100 distinct locomotion styles, ranging from "depressed" to "zombie."
Key Results
- Statistical Realism: CAMDM achieved a Fréchet Inception Distance (FID) of 0.913, significantly lower than the next best baseline (1.255), indicating that its generated motions are the most statistically similar to real human data.
- Style Accuracy: The model maintained a style accuracy of 89.5%, nearly doubling the performance of several baseline neural controllers.
- Transition Success: In multi-style tests, CAMDM demonstrated a 94.2% transition success rate, successfully navigating style switches even when specific transition data was absent from the training set.
- Physical Integrity: Foot sliding was kept to a minimum (0.685m), a common metric for evaluating the groundedness of character animation.
Discussion and Limitations
CAMDM represents a significant step forward in bringing the generative power of diffusion models to interactive applications. The use of CFG as a "memory filter" and the efficiency of the 8-step denoising process provide a blueprint for future real-time generative systems.
However, limitations remain. The current model is trained on flat-ground data and does not yet account for complex environmental interactions like climbing stairs or navigating obstacles. Additionally, while efficient on desktop GPUs, the computational requirements may still be prohibitive for mobile platforms. Future research could explore integrating more complex control signals, such as text-to-motion prompts or audio-driven performances, to further expand the expressive capabilities of the system.
Conclusion
By taming the diffusion process through clever tokenization and guidance strategies, CAMDM provides a robust framework for high-quality character control. It bridges the gap between the high-fidelity generation of offline DPMs and the strict latency requirements of interactive media, offering a more expressive and realistic alternative to traditional animation techniques.
Summary updated