CigTime: Corrective Instruction Generation Through Inverse Motion Editing

Qihang Fang, Chengcheng Tang, Bugra Tekin, Yanchao Yang

Abstract

Automated motion coaching requires the ability to compare a user's movement against a target and provide precise, actionable feedback. However, the lack of large-scale datasets pairing motion discrepancies with corrective text has hindered progress in this field. This paper introduces CigTime, a novel framework that leverages Inverse Motion Editing to synthesize training data. By fine-tuning a Large Language Model (LLM) on motion-tokenized sequences, CigTime generates high-quality corrective instructions that significantly outperform existing baselines in both linguistic clarity and physical accuracy.

Introduction

Whether mastering a tennis serve, perfecting a yoga pose, or undergoing physical rehabilitation, the presence of a skilled coach is often indispensable. A coach performs a complex cognitive task: observing a trainee's movement, comparing it to an idealized target, and articulating the spatial-temporal differences into natural language instructions like "keep your elbow higher" or "step further to the left."

While recent advancements in AI have yielded impressive results in text-to-motion generation, the inverse problem—generating text from motion differences—remains a significant challenge. The primary bottleneck is the scarcity of annotated data. Manually labeling thousands of pairs of "incorrect" and "correct" motions with descriptive feedback is labor-intensive and difficult to scale. CigTime addresses this gap by using generative models to create its own training data, effectively teaching an AI to become a motion coach.

Methodology

Inverse Motion Editing

The core innovation of CigTime is the concept of Inverse Motion Editing. To bypass the need for manual annotation, the researchers utilized a pre-trained Motion Diffusion Model (MDM). By taking a "source" motion and applying a random "instruction" (e.g., "lift weights with the upper body"), the MDM generates a corresponding "target" motion. This process creates a massive, synthetic dataset of triplets: (Source Motion, Target Motion, Corrective Instruction). This "inverse" approach allows the model to learn the relationship between physical changes and the language used to describe them.

Motion Tokenization and LLM Integration

To enable a Large Language Model to process 3D movement, CigTime employs a VQ-VAE (Vector Quantized Variational Autoencoder). This component converts continuous 3D joint data into discrete "motion tokens," treating movement as a structured sequence similar to words in a sentence.

The framework fine-tunes Llama-3-8B on these sequences. To ensure the model retains its general reasoning capabilities while learning motion-specific tasks, the authors introduced Anchor Loss. This regularization technique prevents the model from "forgetting" its pre-trained semantic knowledge, ensuring the generated instructions remain grammatically correct and contextually relevant.

Inference and Feedback Loop

During inference, the model receives tokens representing a user's current motion and the desired target motion. It then auto-regressively predicts the text instruction required to bridge the gap. This instruction can then be used by the trainee to adjust their form.

Experimental Results

Quantitative Performance

CigTime was evaluated against general-purpose LLMs (Llama-3, Mistral) and specialized motion models (MotionGPT) using the HumanML3D, Fit3D, and KIT Motion-Language datasets.

  • Instruction Quality: On the HumanML3D benchmark, CigTime achieved a BLEU score of 0.24 and a METEOR score of 0.52, nearly doubling the performance of zero-shot Llama-3.
  • Physical Accuracy: To measure the practical utility of the instructions, the researchers used a "Reconstruction Accuracy" metric. When generated instructions were fed back into a motion editor to modify the source motion, the resulting movement achieved a Mean Per Joint Position Error (MPJPE) of 0.13, a significant improvement over the 0.21–1.05 range observed in baseline models.

Real-World Application

The authors demonstrated the pipeline's efficacy on real-world video data by using WHAM for pose estimation. The system successfully provided meaningful feedback to human participants in a simulated coach-trainee environment, proving its potential for practical deployment in fitness and rehabilitation apps.

Discussion and Limitations

While CigTime represents a significant step forward, several challenges remain. The model currently focuses on identifying what changed rather than the subtle nuances of "form" required for elite sports coaching, such as weight distribution or balance. Additionally, the reliance on the underlying MDM limits the system to source and target pairs of the same temporal length.

Future work will focus on incorporating environmental awareness—ensuring instructions do not suggest movements that conflict with physical obstacles—and expanding the model's ability to handle sequences of varying lengths. Furthermore, the authors emphasize the importance of safety constraints to ensure the AI does not generate physically inappropriate or harmful instructions.

Conclusion

CigTime demonstrates that the data bottleneck in motion coaching can be overcome by leveraging the generative power of motion diffusion models. by framing motion correction as a translation task between tokenized poses and natural language, CigTime provides a scalable and accurate framework for automated physical instruction, paving the way for more accessible AI-driven coaching and rehabilitation tools.

Summary updated

BibTeX
@inproceedings{fang2024cigtime,
  author = {Qihang Fang and Chengcheng Tang and Bugra Tekin and Yanchao Yang},
  title = {{CigTime: Corrective Instruction Generation Through Inverse Motion Editing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=gktA1Qycj9},
}
Figure