Predicting how humans and vehicles move is a cornerstone of autonomous driving and robotics. While deep learning has moved us from deterministic "best guess" paths to "multimodal" predictions (showing several possible futures), a key piece has been missing: control.
In a new paper titled "Conditional Generative Adversarial Networks for Speed Control in Trajectory Simulation," researchers from the University of Passau and Duisburg-Essen introduce Conditional Speed GAN (CSG). This model doesn't just predict where an agent might go; it allows users to explicitly dictate how fast they get there, making it a powerful tool for realistic urban simulations.
TL;DR
The authors present Conditional Speed GAN (CSG), a trajectory prediction framework that allows users to explicitly control the speed and agent type (e.g., car vs. pedestrian) of generated paths. By conditioning a GAN on speed, the model can simulate realistic, socially aware movements even in "unseen" contexts, such as forcing a normally fast agent to move slowly through a crowded space.
What Problem Does This Paper Address?
Most state-of-the-art trajectory predictors are "black boxes" when it comes to specific attributes. They can generate a variety of paths, but you can't easily tell the model, "Show me what happens if this pedestrian suddenly starts running."
For simulation and data augmentation, this lack of control is a dealbreaker. We need simulators that can adapt to different environments—like a quiet mall versus a frantic city street. Furthermore, many existing models rely on complex "attention" or "pooling" mechanisms to understand how agents interact. The authors set out to see if a simpler approach could provide better control without sacrificing accuracy.
Methods
The Conditional Speed GAN (CSG) architecture consists of two main blocks: a Generator (G) and a Discriminator (D).
- Feature Extraction: The model uses LSTMs to encode the past trajectories, relative positions, and speeds of all agents in a scene.
- The Speed Forecasting Module: This is the "secret sauce." In prediction mode, this module forecasts the next-step speed from the latent space. In simulation mode, a user can override this to set a specific speed.
- Aggregation: To handle interactions between multiple agents, the authors compared three methods:
- Social Pooling: A standard symmetric function to aggregate neighbor info.
- Soft Attention: Weighting neighbors based on importance.
- Concatenation: Simply "stacking" the hidden states of the $N$ nearest neighbors.
- The Decoder: This generates the future coordinates, conditioned on the latent trajectory embedding, the agent's semantic label (type), and the target speed.
The Discriminator's job is to ensure the generated paths are not only realistic but also "conform" to the specified speed and agent type.
Datasets
The researchers evaluated CSG on three major benchmarks:
- ETH & UCY: The gold standard for pedestrian trajectory prediction, containing complex social interactions like group walking and collision avoidance.
- Argoverse: A large-scale dataset used to test the model on heterogeneous agents, including autonomous vehicles and other road users in urban environments.
Key Insights and Ideas
- Speed as a Control Knob: By treating speed as a conditional variable rather than just an output, the model gains the ability to extrapolate. For example, the model can be trained on slow and medium-speed data but still generate a physically plausible "fast" trajectory when prompted.
- Simplicity Wins: One of the most surprising findings was that naive concatenation of neighbor states performed as well as (and sometimes better than) complex attention or pooling mechanisms. This suggests that for mid-range forecasting, the raw state of nearby agents provides enough context for the model to learn social norms.
- Social Awareness via Speed: The model naturally learns that speed and social interaction are linked. When simulated at different speeds, agents in the CSG model still "circumvent" stationary people and maintain group walking behaviors.
Key Results
- Competitive Accuracy: On the ETH/UCY benchmarks, CSG achieved an Average Displacement Error (ADE) and Final Displacement Error (FDE) comparable to state-of-the-art models like GoalGAN and S-Ways. For instance, on the ZARA2 dataset, CSG achieved the best-in-class ADE/FDE of 0.28 / 0.57.
- Argoverse Performance: In multi-agent vehicle scenarios, CSG outperformed the standard Social GAN (SGAN) by a large margin, though it trailed slightly behind Graph-LSTM in displacement metrics.
- Collision Avoidance: CSG-C (the concatenation variant) showed a superior ability to preserve social dynamics, resulting in fewer "avoidable collisions" compared to pooling or attention variants when visualizing complex scenarios (see Figure 4 in the paper).
Limitations and Future Work
While CSG is excellent at handling agent-to-agent interactions, the authors note a few areas for improvement:
- Static Scene Context: The current model focuses on agents but doesn't explicitly "see" static obstacles like buildings or curbs. Integrating semantic maps would prevent agents from walking through walls.
- Automated Context Discovery: Future versions could benefit from automatically learning "context vectors" of variation, allowing the model to interpret subtle behavioral changes without manual labeling.
- Long-range Planning: While great for 5-second windows, the model's performance over very long time horizons remains a challenge common to most GAN-based predictors.
Summary updated