Categorical Traffic Transformer: Interpretable and Diverse Behavior Prediction with Tokenized Latent
Yuxiao Chen, Sander Tonkens, Marco Pavone
TL;DR
CTT introduces an interpretable, tokenized latent framework for traffic prediction that jointly models accurate trajectories and semantically meaningful scene modes (a2l and a2a). By supervising the ground-truth scene modes from logs and using consistency losses for non-GT modes, it avoids mode collapse and enables diverse, controllable predictions while remaining compatible with LLMs through tokenized scene representations. The architecture fuses Transformer encoders with GNNs via Custom Edge Embedding to achieve equivariance and handle tokenized edges, and employs an energy-based, importance-sampled joint scene-mode predictor to maintain tractable yet expressive multimodal outputs. Empirical results on nuScenes, nuPlan, and Waymo Open Dataset show state-of-the-art accuracy, strong scene consistency, and robust cross-dataset generalization, with practical benefits for language-guided simulation and planning in autonomous driving.
Abstract
Adept traffic models are critical to both planning and closed-loop simulation for autonomous vehicles (AV), and key design objectives include accuracy, diverse multimodal behaviors, interpretability, and downstream compatibility. Recently, with the advent of large language models (LLMs), an additional desirable feature for traffic models is LLM compatibility. We present Categorical Traffic Transformer (CTT), a traffic model that outputs both continuous trajectory predictions and tokenized categorical predictions (lane modes, homotopies, etc.). The most outstanding feature of CTT is its fully interpretable latent space, which enables direct supervision of the latent variable from the ground truth during training and avoids mode collapse completely. As a result, CTT can generate diverse behaviors conditioned on different latent modes with semantic meanings while beating SOTA on prediction accuracy. In addition, CTT's ability to input and output tokens enables integration with LLMs for common-sense reasoning and zero-shot generalization.
