arXiv:2610.05411cs.CVOct 2026

Manuscript Offprint

arXiv:2610.05411

CleanMDM: Clean Motion Diffusion Model for Multimodal Motion Cleanup

Zhe Li, Shicheng Wang, Bowen Cai, Huan Fu

Zhe Li 1,∗^{1,*} Shicheng Wang 2,∗^{2,*} Bowen Cai 3^{3} Huan Fu 3,†^{3,\dagger}

1^{1}Peking University 2^{2}Light Origins 3^{3}Alibaba

∗^{*}Equal contribution. †^{\dagger}Corresponding author.

Figure

A person walks forward, swings downward forcefully, then returns to a standing pose.

Figure 1: Overview of motion cleanup. Top: the input motion with a localized corrupted interval, represented as masked noisy motion. Middle: the same clip augmented with optional, plug-and-play conditions: corrupted frames are highlighted in red for visualization, a reference image provides sparse 2D keyframes, white silhouettes indicate sparse 3D keyframes, and a text prompt specifies high-level intent. Bottom: CleanMDM generates a clean and temporally consistent motion sequence.

Abstract

Motion capture data is rarely directly usable, as they typically exhibit missing segments, jitter, drift and contact artifacts. Traditionally, corrupted motions are cleaned by animators through the manual identification of keyframes from noisy motion, subsequent keyframe correction, and interpolation between corrected keyframes to reconstruct coherent motion. While the rise of generative motion models has made automatic cleanup feasible, most approaches operate as black box denoisers with limited controllability, making it difficult to preserve reliable segments or enforce specific user intents. Inspired by animation workflows, we present CleanMDM, a unified multimodal motion cleanup framework that formulates cleanup as masked conditional generation with plug-and-play conditions. This single model supports arbitrary combinations of noisy 3D motion, sparse 2D keyframes, sparse 3D keyframes, and text. This design enables both automatic cleanup without additional

Preprint.

user annotation and controllable cleanup under multimodal guidance. To further improve motion realism, we incorporate the Latent Motion Quality Discriminator (LMQD) to better match kinematic distributions and reduce skating, jitter, and interpenetration artifacts, and we apply Mesh-Aware Contact Projection as a test-time optimization step to enhance contact and physical consistency. Experiments across multiple datasets demonstrate that CleanMDM consistently outperforms prior cleanup and generation baselines, and that low cost conditions (text and 2D keyframes) provide reliable controllability gains in multimodal cleanup scenarios.

1 Introduction

Motion data in modern animation pipelines is increasingly acquired from video-based motion capture Shen et al. [2024], Goel et al. [2023] and generative motion models Tevet et al. [2023], Chen et al. [2023], which are more accessible and scalable than traditional studio capture but frequently introduce missing observations, temporal jitter, drift, and contact artifacts such as foot sliding, floating, and ground penetration. Because these artifacts are visually amplified after skinning and rendering, animators still spend substantial time on manual cleanup and inbetweening, making motion repair a persistent production bottleneck Williams [2012], Holden [2018], Kovar et al. [2002].

A key characteristic of real-world motion corruption, largely overlooked by existing methods, is that degradation is almost always localized: only certain temporal intervals or body parts are affected, while the remaining motion stays reliable. For example, video-based estimates may exhibit lower-body drift while the upper body is essentially correct, or jitter may appear in only a handful of joints over a short window. This partial reliability has a direct consequence for method design: an ideal cleanup system should identify and preserve the trustworthy portions of a motion while selectively regenerating only the corrupted regions, and it must accept diverse forms of guidance depending on what information is available for a given shot.

Existing approaches largely fall into two categories, neither of which is specifically designed to handle partial reliability. Restoration-style denoisers Mu et al. [2025], Zhang et al. [2024b] map an entire noisy sequence to a clean motion in a black-box fashion. They improve average reconstruction error but treat every frame uniformly, providing limited controllability when animators need to lock key poses, preserve trustworthy segments, or repair only a specified interval. Inbetweening and conditional generation Cohan et al. [2024], Zhang et al. [2025a], Meng et al. [2025] take the opposite stance: they regard the corrupted region as entirely unobserved and reconstruct it from sparse constraints (keyframes, text). When applied to cleanup, this discards the partially reliable observations inside the corrupted interval, leading to over-reconstruction, style drift, and unstable contact behavior. Moreover, these two families of methods are typically developed and deployed as separate, modality-specific models, which fragments supervision, limits cross-modal knowledge transfer, and requires maintaining multiple pipelines. It is worth noting that motion cleanup is fundamentally different from motion generation: generation creates motion from scratch given sparse or abstract signals, whereas cleanup starts from an existing clip that is partially reliable and must preserve its trustworthy content. Recent multimodal generation models such as Li et al. [2025] accept heterogeneous inputs (2D/3D keyframes, text) but are designed for the generation task. They do not model per-frame reliability or enforce non-destructive preservation of the input draft, which limits their applicability to production cleanup scenarios requiring fidelity to the original performance.

We present CleanMDM, a unified multimodal motion cleanup framework that directly addresses the partial-reliability challenge. Our key insight is to formulate cleanup as masked conditional generation in a shared latent space. The central mechanism is confidence-aligned multimodal fusion. Heterogeneous conditions, including noisy 3D motion drafts with per-frame confidence masks, sparse 2D keyframes, sparse 3D keyframes, and text prompts, are encoded into a common latent representation and fused via frame-wise confidence weighting (Eq. 2). Unlike raw-space additive fusion used in generation models Li et al. [2025], our confidence-aligned design explicitly encodes the reliability of each frame: high-confidence frames are preserved, low-confidence frames are regenerated, and the boundary between the two is determined by the per-frame weights rather than a hard binary mask. This enables a smooth continuum from fully missing intervals (inbetweening) to partially degraded segments (denoising-style cleanup), all within a single model. Text and sparse 2D keyframes serve as low-cost, plug-and-play conditions that provide semantic and geometric guidance without requiring expensive 3D annotation. By jointly training on all modalities, CleanMDM encourages cross-modal transfer: the richer supervision yields a stronger motion prior that benefits even the simplest auto-cleanup setting where no additional guidance is provided.

Two additional technical contributions improve motion quality beyond standard regression objectives. First, we introduce the Latent Motion Quality Discriminator (LMQD), a lightweight adversarial regularizer that operates on entire sequences in the motion autoencoder's latent space. Unlike prior kinematic-feature discriminators used in physics-based control Peng et al. [2021], Luo et al. [2023], LMQD back-propagates gradients directly through the latent representation, better capturing distributional characteristics of natural motion and more effectively penalizing perceptually salient artifacts (skating, jitter, penetration) that have small ℓ2\ell_{2} magnitude but high visual salience. Second, we propose Mesh-Aware Contact Projection, a test-time optimization step that refines the full sequence with explicit constraints on SMPL mesh foot-sole vertices. Unlike conventional joint-level inverse kinematics Holden [2018], Yao et al. [2024], our formulation reasons about body-surface geometry relative to the ground plane, enforcing hard contact consistency that joint-only approaches structurally cannot achieve.

Our contributions are summarized as follows:

• Confidence-aligned multimodal cleanup framework. We formulate motion cleanup as masked conditional generation in a shared latent space with per-frame confidence weighting, enabling non-destructive repair that preserves reliable motion while regenerating corrupted regions — a capability that neither black-box denoisers nor generation-oriented models provide. A single CleanMDM model covers auto cleanup, inbetweening, and multimodal-guided repair.

• Latent adversarial regularization. We introduce LMQD, a latent-space sequence discriminator that provides distributional supervision beyond regression losses, yielding measurable improvements on contact and temporal-quality metrics.

• Mesh-aware contact projection. We propose a test-time optimization that constrains SMPL mesh vertices to enforce surface-level ground contact (foot sliding, penetration, and floating).

References (55)