CarFormer: Self-Driving with Learned Object-Centric Representations
Shadi Hamdan, Fatma Güney
TL;DR
CarFormer introduces learned object-centric slot representations for self-driving, extracting slots from BEV sequences via slot attention and using a GPT-2–style autoregressive transformer with block attention to drive and forecast scene dynamics. The method jointly learns driving policies and future slot predictions, enabling both action prediction and world-model capabilities. Empirical results on CARLA Longest6 show that slot-based representations outperform scene-level approaches and can match or exceed exact-attribute object models, with superior robustness and forecasting performance. The work demonstrates that object-centric slots capture essential vehicle dynamics (position, heading, speed) through spatio-temporal context without explicit attributes, offering a scalable and generalizable pathway for object-aware autonomous driving with strong potential for end-to-end BEV-slot extraction and multi-step planning.
Abstract
The choice of representation plays a key role in self-driving. Bird's eye view (BEV) representations have shown remarkable performance in recent years. In this paper, we propose to learn object-centric representations in BEV to distill a complex scene into more actionable information for self-driving. We first learn to place objects into slots with a slot attention model on BEV sequences. Based on these object-centric representations, we then train a transformer to learn to drive as well as reason about the future of other vehicles. We found that object-centric slot representations outperform both scene-level and object-level approaches that use the exact attributes of objects. Slot representations naturally incorporate information about objects from their spatial and temporal context such as position, heading, and speed without explicitly providing it. Our model with slots achieves an increased completion rate of the provided routes and, consequently, a higher driving score, with a lower variance across multiple runs, affirming slots as a reliable alternative in object-centric approaches. Additionally, we validate our model's performance as a world model through forecasting experiments, demonstrating its capability to predict future slot representations accurately. The code and the pre-trained models can be found at https://kuis-ai.github.io/CarFormer/.
