CrowdMoGen: Zero-Shot Text-Driven Collective Motion Generation

Xinying Guo, Mingyuan Zhang, Haozhe Xie, Chenyang Gu, Ziwei Liu · DOI

Abstract

CrowdMoGen is a novel zero-shot framework designed to generate realistic, event-driven motion for large crowds from simple natural language prompts. By decoupling high-level scene planning—handled by Large Language Models (LLMs)—from low-level motion generation—managed by a specialized diffusion transformer—the system creates complex, spatially coherent group behaviors without the need for massive, specialized crowd-motion datasets. This approach allows for the generation of sophisticated interactions, such as crowds scattering to avoid a vehicle or gathering around a specific individual, with unprecedented precision.

Introduction

While AI has made significant strides in generating 3D motion for individuals or pairs, scaling these capabilities to large crowds remains a major challenge. The primary hurdles are data scarcity—there are no large-scale 3D datasets annotating crowd reactions to specific events—and the inherent complexity of coordinating multiple groups performing diverse activities simultaneously. Existing methods often treat a crowd as a single unit, losing the nuance of individual and group-level interactions.

CrowdMoGen enables the generation of diverse and complex crowd behaviors, such as greeting, gathering, and avoiding obstacles, through simple text prompts.

Methodology

CrowdMoGen addresses these challenges by splitting the generation task into two distinct modules:

  1. Crowd Scene Planner: Leveraging the "common sense" reasoning of LLMs like GPT-4, this module interprets text prompts to divide individuals into groups and assign high-level motion plans. To bridge the gap between text and 3D space, it integrates an SMPL-based joint prior that converts instructions into 3D trajectory paths and joint-level control signals.
  2. Collective Motion Generator: This transformer-based diffusion model transforms high-level plans into fluid motion. It introduces InputMixing, which injects spatial control signals into the denoising process, and ControlAttention, a joint-wise attention mechanism that allows the model to prioritize "active" joints with specific trajectory requirements while maintaining natural movement in others.
The CrowdMoGen architecture decouples high-level scene planning via an LLM from low-level collective motion generation using a specialized diffusion transformer.

The system is trained on standard benchmarks like HumanML3D and KIT-ML, utilizing new loss functions such as Controlled Keypoint Loss and Foot Skating Loss to ensure spatial accuracy and physical realism.

Key Insights and Innovations

  • Decoupling Logic and Physics: By letting an LLM handle the social logic of the crowd and a diffusion model handle the physical movement, the system generalizes to scenarios it has never seen during training.
  • Joint-Wise Granularity: The ControlAttention mechanism treats joints individually, achieving significantly higher precision in spatial alignment than previous methods that struggled with body part stability.
  • Event-Driven Response Patterns: The framework identifies six primary response modes (Following, Avoiding, Queuing, Encircling, Passing, and Random), allowing the LLM to effectively direct crowd reactions to environmental perturbations.

Results and Evaluation

CrowdMoGen demonstrates state-of-the-art performance across multiple metrics:

  • Precision: In controllable motion tasks, the model achieved near-zero Trajectory and Location Error, outperforming existing models like InterControl and OmniControl.
  • Quality: On the HumanML3D test set, it achieved a Fréchet Inception Distance (FID) of 0.112, indicating superior motion realism.
  • User Preference: In subjective studies, over 65% of participants preferred CrowdMoGen’s spatial alignment, and over 77% preferred its motion quality compared to baseline methods.

Limitations and Future Work

Currently, the system's intelligence is bounded by the reasoning capabilities of the underlying LLM. Furthermore, while it handles human-to-human interactions well, it does not yet fully integrate complex environmental geometry, such as navigating cluttered indoor spaces. Future research will focus on tighter integration with 3D scene environments and improving denoising efficiency for real-time applications in gaming and urban simulation.

Summary updated

BibTeX
@article{guo2026crowdmogen,
  author = {Xinying Guo and Mingyuan Zhang and Haozhe Xie and Chenyang Gu and Ziwei Liu},
  title = {{CrowdMoGen: Zero-Shot Text-Driven Collective Motion Generation}},
  journal = {Int. J. Comput. Vis.},
  year = {2026},
  doi = {10.1007/s11263-025-02677-z},
}
Figure