Manuscript Offprint

arXiv:2610.09438

Controllable Crowd Generation through World-Model Planning

JunGyu Lee, Jisu Shin, Seunghyun Shin, Hae-Gon Jeon

ABSTRACT

Crowd simulation plays a central role in robot navigation, autonomous driving, and urban planning. For these applications, realistic simulation requires crowds to adapt their behavior to environmental changes and user objectives. However, existing methods that rely on predefined control settings have limited flexibility in accommodating new user-specified objectives. To address this limitation, we propose Ctrl-CWM, a multi-agent Controllable Crowd World Model that integrates crowd generation and run-time control. Our key idea is to adapt the world-model principle of planning using imagined futures to crowd simulation. To this end, Ctrl-CWM consists of an encoder that learns a representation of human motion dynamics, an actor that proposes pedestrian displacements, a critic that evaluates imagined crowd trajectories, and a planner that selects actions. We first learn human motion dynamics through trajectory prediction on real-world pedestrian videos and then freeze the encoder to preserve them. Using this representation, the actor generates imagined crowd trajectories through repeated state updates, and the planner combines the critic's scores with user costs to select actions. Repeated planning advances the simulated crowd, while additional user costs introduce new control objectives without retraining. We extensively evaluate crowd generation under varied agent arrival conditions and run-time control across avoidance and attraction scenarios. Ctrl-CWM outperforms the state-of-the-art method on most crowd realism and collision metrics, and adapts crowd behaviors to user-specified objectives introduced during simulation. The project page is available at https://jungyu0413.github.io/Ctrl-CWM

1 INTRODUCTION

Crowd simulation is important for urban planning as well as for developing autonomous vehicles and social robots. Training robots to navigate reliably and evaluating urban designs require simulations

∗^{*}Corresponding author.

that reproduce human crowd behaviors, not just scenes populated with moving pedestrians. In the real world, the environment changes over time and people adjust their motions in response. For example, when a construction site blocks a walkway, pedestrians take another route rather than continue along their original paths. Therefore, a realistic crowd simulator should capture not only how people move but also how they adjust their motion when conditions change. To this end, we aim to generate run-time controllable crowd motion that responds to user-specified objectives while preserving human motion dynamics.

Traditional crowd simulators use hand-designed rules for navigation and interactions (Reynolds, 1987; Helbing & Molnar, 1995; Van Den Berg et al., 2010). These rules make control straightforward, but they do not directly learn human motion dynamics from real-world pedestrian videos. Learning-based approaches capture human motion dynamics from pedestrian data (Charalambous et al., 2023; Rempe et al., 2023; Bae et al., 2025) and support control over generated crowd motion (Rempe et al., 2023; Bae et al., 2025). However, their control is limited to a predefined population and agent parameters (Bae et al., 2025) or to gradient guidance and sample filtering (Rempe et al., 2023). TRACE (Rempe et al., 2023) also reports trajectory sampling times of 1 ~ 3 seconds for a single pedestrian, which can delay responses to control during simulation. We aim to develop a crowd model that retains learned human motion dynamics while supporting run-time control.

Recent advances in world models (Hafner et al., 2025; Hansen et al., 2024) have shown promise for learning and controlling behavior across different tasks. In approaches such as Dreamer (Hafner et al., 2019a), an encoder maps observations to latent states and an actor proposes actions. A dynamics model predicts the next state and reward from the current state and action, producing imagined futures through repeated prediction. A critic estimates the expected return, and both the actor and critic can learn from imagined experience. For planning, a planner can evaluate candidate action sequences using predicted rewards and a terminal value from the critic (Hansen et al., 2022; 2024). The planner iteratively refines the sampling distribution toward higher-scoring candidates, executes only the first action, and replans from the updated state. These ideas motivate our use of learned pedestrian dynamics to imagine and evaluate crowd futures for generation and run-time control.

We propose Ctrl-CWM, a multi-agent Controllable Crowd World Model for crowd generation and run-time control (Fig. 1). Tasks where world models have been applied, such as video games and robot control, specify the observations and the available actions, and use rewards or goals to evaluate outcomes. Pedestrian videos instead record how people moved but do not define actions or specify which actions meet new user objectives. Therefore, we must define the crowd state and pedestrian actions and train a critic that evaluates the resulting motion for planning. In this paper, we define the state as the scene and each pedestrian's position, recent motion, and local goal, and an action as a pedestrian's next-step displacement. Human trajectory prediction provides a basis for learning how pedestrians move and interact with their surroundings (Alahi et al., 2016; Gupta et al., 2018; Sadeghian et al., 2019). We learn a shared representation through trajectory prediction and then freeze the encoder to preserve the learned human motion dynamics. A single actor shared across all pedestrians learns to propose each pedestrian's next action from this representation.

Applying these actions updates the explicit crowd state, and repeating these updates generates imagined crowd trajectories. Our critic learns to rank these imagined crowd trajectories using supervision derived from ground-truth trajectories.

At run time, the actor proposes displacements as during training. For a controlled pedestrian, the model imagines the crowd trajectories that follow several candidate displacements, while the actor generates the actions of all other pedestrians. The critic ranks these trajectories by their quality, and a user cost measures how well they satisfy the current user-specified objective, such as avoiding or approaching a specified region. A planner combines the critic's ranking with the user cost and selects the displacement to execute. Repeating this process advances the crowd, and the critic keeps the motion realistic while the user cost steers it toward the objective. By planning with the critic in imagination, Ctrl-CWM performs crowd generation and run-time control with a single model.

To demonstrate the effectiveness of Ctrl-CWM, we construct run-time control scenarios with objectives introduced during simulation. Generated crowds are directed away from an avoidance area such as construction or toward an attraction such as a fountain. As a crowd generator, Ctrl-CWM outperforms the state-of-the-art method on most crowd realism and collision metrics. For avoidance objectives, it achieves the highest average compliance among the related methods across the tested region configurations. Additionally, qualitative results demonstrate run-time control in reconstructed real-world scenes beyond the benchmark. Finally, competitive trajectory prediction results indicate that the shared representation preserves human motion dynamics.

References (90)

  • Social lstm: Human trajectory prediction in crowded spaces
  • V-JEPA 2: Self-Supervised Video Models Enable Understanding, Prediction and Planning
  • Can language beat numerical regression? language-based multimodal trajectory prediction
  • Continuous and locomotive crowd behavior generation
  • Greil-crowds: Crowd simulation with deep reinforcement learning and examples
  • Social physics informed diffusion model for crowd simulation
  • Learning phrase representations using rnn encoder–decoder for statistical machine translation
  • Deep reinforcement learning in a handful of trials using probabilistic dynamics models
  • Soft-dtw: a differentiable loss function for time-series
  • Scalable multi-agent model-based reinforcement learning (opens arXiv in a new tab)
  • Moflow: One-step flow matching for human trajectory forecasting via implicit maximum likelihood estimation based distillation
  • Stochastic trajectory prediction via motion indeterminacy diffusion
  • Social gan: Socially acceptable trajectories with generative adversarial networks
  • World Models
  • Dream to control: Learning behaviors by latent imagination (opens arXiv in a new tab)
  • Learning latent dynamics for planning from pixels
  • Mastering diverse control tasks through world models
  • Td-mpc2: Scalable, robust world models for continuous control
  • Temporal difference learning for model predictive control (opens arXiv in a new tab)
  • Social force model for pedestrian dynamics
  • When to trust your model: Model-based policy optimization
  • Text-guided synthesis of crowd animation
  • Morphable crowds
  • Interactive manipulation of large-scale crowd animation
  • Guide-cot: Goal-driven and user-informed dynamic estimation for pedestrian trajectory using chain-of-thought
  • Crowd simulation by deep reinforcement learning
  • Group behavior from video: a data-driven approach to crowd simulation
  • Mart: Multiscale relational transformer networks for multi-agent trajectory prediction
  • Crowds by example
  • Bcdiff: Bidirectional consistent diffusion for instantaneous trajectory prediction
  • Vite: Virtual graph trajectory expert router for pedestrian trajectory prediction
  • Fast inference and update of probabilistic density estimation on trajectory prediction
  • It is not the journey but the destination: Endpoint conditioned trajectory prediction
  • From goals, waypoints & paths to long term human trajectory forecasting
  • Leapfrog diffusion model for stochastic trajectory prediction
  • Least squares generative adversarial networks
  • Social-stgcnn: A social spatio-temporal graph convolutional neural network for human trajectory prediction
  • Cedrl: Simulating diverse crowds with example-driven deep reinforcement learning
  • You’ll never walk alone: Modeling social behavior for multi-target tracking
  • Film: Visual reasoning with a general conditioning layer
  • Trace and pace: Controllable pedestrian animation via guided trajectory diffusion
  • Learning social etiquette: Human trajectory understanding in crowded scenes
  • Sophie: An attentive gan for predicting paths compliant to social and physical constraints
  • Trajectron++: Dynamically-feasible trajectory forecasting with heterogeneous data
  • Sgcn: Sparse graph convolution network for pedestrian trajectory prediction
  • Trajectory unified transformer for pedestrian trajectory prediction
  • Recursive social behavior graph for trajectory prediction
  • Continuum crowds
  • Optimal reciprocal collision avoidance for multi-agent navigation
  • Groupnet: Multiscale hypergraph neural networks for trajectory prediction with relational reasoning
  • Eqmotion: Equivariant multi-agent motion prediction with invariant interaction reasoning
  • W2w: Language-model-based trajectory prediction with reinforcement learning
  • Understanding pedestrian behaviors from stationary crowd groups
  • Agentformer: Agent-aware transformers for socio-temporal multi-agent forecasting
  • Human trajectory prediction via neural social physics
  • Where are you heading? dynamic trajectory prediction with expert goal examples
  • Dino-wm: World models on pre-trained visual features enable zero-shot planning (opens arXiv in a new tab)
  • Grouptron: Dynamic multi-scale graph convolutional networks for group-aware dense crowd trajectory forecasting
  • Appendix B separates the evaluation protocols and metrics
  • At width multiplier $w = 0.25$, the U-Net has four skip levels with 8/16/32/64 channels
  • Two 128-unit hidden layers with ReLU activations precede a two-dimensional displacement output
  • For each imagined step, the critic processes six geometric features
  • A $6 \rightarrow 128$ GRU followed by a $128 \rightarrow 128 \rightarrow 1$ MLP produces a scalar score from the final hidden state
  • Spatial dimensions are per focal agent, with batch axes omitted
  • Behavior learning uses four trajectory windows per batch, 40 epochs, and L = 12 rollout steps
  • Repeated proximity at multiple steps contributes multiple times before temporal averaging
  • An extracted coordinate defines $g_i^t$ and remains fixed within that window
  • Each iteration draws K candidates, scores their imagined rollouts, and refits the mean and standard deviation to the highest-scoring quarter
  • The three calibrated weights are not fixed to the calibration ratio
  • This is an approximation to joint multi-agent planning, not a jointly optimized action sequence
  • The maps remain fixed for $H$ steps, while interaction embeddings and local sampling locations are updated at every step
  • Actor quality is measured by full-rollout position error
  • A shared model configuration does not imply an identical evaluation window or aggregation rule
  • Mean of five ETH-UCY folds, SDD, and GCS.</td><td>Full episodes.</td></tr><tr><td>Avoidance, Table 2</td><td>Disc, rectangle, multiple zones
  • Distributional metrics compare generated and ground-truth statistics using Earth Mover's Distance (EMD)
  • DTW averages the minimum pairwise Dynamic Time Warping distance between generated and ground-truth trajectories under the benchmark's coordinate conversion
  • The no-pretraining variant starts from a randomly initialized encoder, rather than the prediction-pretrained initialization
  • Its comparison with the full model uses the same avoidance protocol and post-activation evaluation window
  • Collision supervision refers to the collision term in the critic target, not a direct actor collision loss
  • Each disc covers 7.5% of the fold's walkable area, with radii between 18.9 and 28.5 grid pixels
  • Collision effects are not uniform
  • ><tr><td rowspan=
  • The listwise soft targets depend on both the ordering and differences of candidate costs
  • For avoidance, one means zero controlled occupancy and zero means no reduction
  • Their numerical weights should therefore not be compared directly
  • >Fold</td><td colspan=
  • This is a fourfold range of emitter settings, not a measurement of a fourfold change in realized crowd density
  • Eight observed steps are used to predict $L=12$ future steps, with best-of-20 ADE/FDE
  • Bold/underline: best/second-best
  • Shared arrivals control the emission process, while the measured outcomes still depend on the generated motion