Unified motion generation + editing

UniMoFlow: Grounding Instruction-Driven 3D Human Motion Editing in Generation

Generate once. Edit composably. One shared flow model learns broad motion priors and precise, source-aware instruction following.

55,641edit pairs
5edit dimensions
1shared flow model
One sourceCompositional edits
The UniMoFlow paper teaser showing unified motion generation and editing from a generated or user-provided source motion.
We propose UniMoFlow, a unified method for high-quality motion generation and editing. Given a generated or user-provided source motion sequence, UniMoFlow adjusts body-part movements, action types, timing, amplitude, style, and compound edits while faithfully following textual instructions.

Project talk

See the full method in 3:42.

A concise walkthrough of the motivation, Omni-MoEdit data pipeline, unified flow-matching model, SAFE refinement, and qualitative results.

UniMoFlow paper explainer - AAAI 2027 submission overview
01

Abstract

Editing grounded in generation.

Instruction-driven editing of 3D human motion requires precise spatiotemporal localization, rich semantic grounding, and strict preservation of unmodified content. Existing methods either resort to training-free adaptation of generative models or rely solely on triplet supervision; however, adaptation often yields suboptimal control, and manually curated triplet datasets remain severely limited in scale and semantic diversity. To overcome this bottleneck, we ground motion editing directly within text-to-motion generation across data, architecture, and inference. At the data level, we develop a closed-loop synthesis-and-verification pipeline that produces Omni-MoEdit, a large-scale dataset spanning body-part, amplitude, temporal, action, and style edits. At the architectural level, we introduce UniMoFlow, a unified latent flow-matching model that shares broad semantic and kinematic knowledge between generation and editing. At the inference level, SAFE (Source-Anchored Flow Editing) complements UniMoFlow with controllable, source-anchored refinement. Furthermore, we augment standard evaluations with semantics-aware metrics to account for valid edits that inherently deviate from a single ground-truth reference. Extensive experiments demonstrate improved target-text alignment, edit effectiveness, and cycle consistency, while maintaining competitive source fidelity and text-to-motion generation quality.

01

Omni-MoEdit

A closed-loop synthesis and verification pipeline creates 55,641 instruction-driven edit pairs across five overlapping edit dimensions.

02

UniMoFlow

A unified latent flow-matching model shares semantic and kinematic knowledge between text-to-motion generation and source-conditioned editing.

03

SAFE

Source-Anchored Flow Editing adds controllable refinement by isolating the velocity contribution of the edit instruction while remaining anchored to the source.

02

Unified model

One context, two native modes.

Text, noisy target tokens, and full source-motion tokens enter one shared sequence. A task-aware attention mask switches the same backbone between generation and editing, while lightweight heads specialize the final flow prediction.

The UniMoFlow architecture with text, noisy target-motion, optional source-motion tokens, mode-specific attention masks, and generation and editing heads.
Architecture of UniMoFlow. Text, noisy target-motion, and optional full source-motion tokens form a unified context sequence. Mode-specific global self-attention masks switch the shared flow-matching Transformer between generation and native editing, while lightweight task heads predict the target velocity.
Shared context

Tokens meet in one sequence

The source motion is not compressed into a single condition vector. Its complete latent token sequence can interact directly with text and target tokens through global self-attention.

Mask-controlled modes

Generate or edit natively

A mode-specific attention pattern lets one Transformer absorb clean text-to-motion supervision and instruction-driven edit triplets without separating their knowledge.

Anchored refinement

Control the edit strength

SAFE uses the residual between instruction-conditioned and source-only velocity fields to trade off source fidelity and semantic edit strength at inference time.

SAFE inference using source-only and source-plus-edit-text velocity fields to control source-anchored motion refinement.
SAFE inference. Starting from the source latent, UniMoFlow evaluates source-conditioned velocity fields with and without the edit instruction. Their gated difference updates the trajectory, while drift strength controls the trade-off between source fidelity and edit magnitude.
03

Omni-MoEdit dataset

Scale without giving up structure.

Qwen3-7B proposes forward and reverse instructions, a pretrained motion DiT synthesizes target motions, and automatic verification retains pairs that align with the target text and preserve usable source structure.

Omni-MoEdit data pipeline using a language model, pretrained motion DiT, FlowEdit synthesis, and automatic filtering.
Omni-MoEdit data synthesis pipeline. The upper part gives a simplified workflow of edit-data synthesis, while the lower part shows how pretrained Qwen is prompted to generate task-relevant auxiliary information.

Every accepted record contains source and target motions, source and target captions, a forward instruction, and a reverse instruction. Split-isolated synthesis prevents source-motion leakage across training, validation, and test sets.

  1. 01
    Instruction synthesis

    Qwen3-7B derives a target description, forward edit command, and reverse command from each source caption.

  2. 02
    Motion synthesis

    A pretrained motion DiT applies FlowEdit to synthesize the target motion from the source and target description.

  3. 03
    Automatic verification

    Target-text match, retrieval, semantic improvement, and structure thresholds retain reliable edit triplets.

46,911
training pairs
2,895
validation pairs
5,835
test pairs
83.6%
combine multiple edit types
Action typeBody partAmplitudeTimingStyle
Statistics for Omni-MoEdit showing edit-type frequencies, the number of edit types per pair, motion-content categories, and common edit-type combinations.
Composition of Omni-MoEdit: overlapping edit-type frequencies, multi-type composition, motion-content categories, and the most frequent exact edit-type combinations.
04

Quantitative evaluation

Strong editing without giving up generation.

SAFE leads the target-text and ground-truth editing protocols, while joint editing-generation training maintains competitive text-to-motion quality. Bold and underlined values reproduce the emphasis in the reported evaluation tables.

Edit protocol A

Target-text-centered editing metrics

Higher is better for every metric. Self-FlowEdit uses a step-size scaling coefficient of 1.0 for comparison.

Editing performance based on target-text matching.
MethodTR@1TR@2TR@3MatchStructRegionPosRatio
GT0.89730.98060.99530.7696--100%
OmniME0.37510.55020.64790.38550.55950.235524.3%
MotionLab0.48390.66520.75930.50830.70000.274948.4%
SimMotionEdit0.12900.22500.29320.14850.07600.215411.0%
MotionReFit0.15560.26590.34700.14840.25700.10194.7%
MotionFix-TMED0.42620.62430.73620.45520.87590.199027.5%
Edit protocol B

Ground-truth-based editing metrics

Retrieval is measured against both synthesized targets and source motions. Cycle-Con measures reverse-edit consistency; lower FID is better.

Editing performance under the ground-truth protocol.
MethodEdited vs GTEdited vs SourceCycle-ConFID
R@1R@2R@3R@1R@2R@3
OmniME0.38470.56340.66370.48070.70740.82450.0711115.92
MotionLab0.51970.70090.79690.56410.80870.91720.219026.06
SimMotionEdit0.12080.21300.27810.07280.13930.19600.0050173.72
MotionReFit0.11680.20150.26830.17770.28980.37490.0097692.13
MotionFix-TMED0.45790.67350.78350.61660.85800.95470.107186.04
Generation protocol

Text-to-motion generation metrics

R-Precision and CLIP Score are higher-is-better; FID is lower-is-better. Multimodality reports output diversity.

Text-to-motion generation performance.
MethodR-Precision ↑FID ↓CLIP Score ↑MModality ↑
Top 1Top 2Top 3
Real motions0.940 ± 0.0010.976 ± 0.0010.985 ± 0.0010.001 ± 0.0000.837 ± 0.000-
Discrete methods
T2M-GPT0.618 ± 0.0020.773 ± 0.0020.812 ± 0.00232.629 ± 0.0870.573 ± 0.0019.172 ± 0.181
MoMask0.777 ± 0.0020.888 ± 0.0020.927 ± 0.00217.404 ± 0.0510.664 ± 0.0018.183 ± 0.184
MoMask++0.802 ± 0.0010.905 ± 0.0020.938 ± 0.00115.060 ± 0.0650.685 ± 0.0017.259 ± 0.180
Continuous methods
MDM0.503 ± 0.0020.653 ± 0.0020.727 ± 0.00257.783 ± 0.0920.481 ± 0.00113.412 ± 0.231
StableMoFusion0.679 ± 0.0020.823 ± 0.0020.888 ± 0.00227.801 ± 0.0630.605 ± 0.0019.064 ± 0.138
MARDM0.659 ± 0.0020.812 ± 0.0020.860 ± 0.00226.878 ± 0.1310.602 ± 0.0019.812 ± 0.287
Unified Flow0.917 ± 0.0010.973 ± 0.0010.987 ± 0.00116.567 ± 0.0450.663 ± 0.00111.259 ± 0.293
Base DiT0.753 ± 0.0020.876 ± 0.0020.922 ± 0.00215.884 ± 0.0550.705 ± 0.0016.569 ± 0.179
05

Motion showcase

Video gallery, ready for motion.

39 edits - 24 real-source - 22 generations
A

One source, many edits

Three shared source motions anchor synchronized families of distinct editing results, making localization and compositional control easy to compare.

Edit vocabulary represented across the three source families

Action type

Transform the motion category while retaining a coherent source trajectory.

Body part

Localize an instruction to the intended joints and preserve the remaining body.

Amplitude

Increase or reduce motion intensity, stride length, reach, or swing range.

Timing

Insert, delay, or reorder an action within a precise temporal region.

Style

Ground high-level attributes such as cautious, energetic, or exhausted in motion.

B

Editing real test-set sources

Each comparison places a real test-set source beside its UniMoFlow result. Switch between skinned and skeleton views to inspect the same edit at different levels of detail.

C

Generation mode

Text prompts demonstrate the shared model synthesizing complete source motions without an input motion. Switch each result between its skinned and skeleton rendering.

06

Qualitative evidence

See where the instruction lands.

Qualitative comparisons expose whether each semantic clause is realized in the intended temporal and body region while the surrounding source motion remains coherent.

Qualitative comparison of source motions and edited outputs from MotionFix, MotionLab, and UniMoFlow, with semantic regions highlighted.
Qualitative comparison on Omni-MoEdit. Red and orange boxes highlight motion regions that satisfy the edit-command semantics.

One source - five controlled branches

From isolated dimensions to compositional edits.

Action type, body part, amplitude, timing, and style can be examined individually or composed in a single instruction. This paper figure complements the interactive video cases above.

Five UniMoFlow edits from one forward-walking source, covering action type, body part, amplitude, timing, and style.
Five isolated UniMoFlow edits from one forward-walking source, covering action type, body part, amplitude, timing, and style.