Looped transformers cut model size and cost in autonomous driving

LoopDrive: Compact End-to-End Autonomous Driving with Selectively Looped Transformers

Computer Vision and Pattern RecognitionRobotics

Summary

Autonomous driving systems often use big models that are slow and expensive to run in real time. The authors explored a technique called looping, where the same small part of the model is reused multiple times, to make these systems smaller and faster. They found looping worked well for the parts that understand the environment and plan where to go, but not as well for judging the quality of those plans. Their two-step training method helped keep good performance while making the model more compact. This approach helps build smaller, more efficient self-driving car software without losing accuracy.

What this means in practice

  • For autonomous vehicle engineers: Build smaller and faster driving models by selectively reusing parts of Transformer networks to meet real-time processing constraints.
  • For robotics developers: Create compact perception and planning modules for robots that must operate with limited computing resources using the looping strategy.

Authors

Haodi Weng, Bohan Li, Tong Zhao, Dongcheng Luo, Zhenxin Diao, Xiwu Chen, Feiyang Tan, Hangning Zhou, Hao Zhao

Abstract

End-to-end autonomous driving increasingly relies on Transformer architectures, yet their growing parameter count and inference cost remain major obstacles to real-time deployment. We investigate whether looped Transformers, which reuse a small set of blocks across computation steps, can reduce model size and inference cost without sacrificing driving performance. Taking a strong Transformer-based driving architecture as our testbed, we systematically introduce looping into its perception, trajectory generation, and trajectory scoring modules. We find that looping is effective for perception and trajectory generation, reducing model size and computation while retaining competitive driving performance. Surprisingly, the same strategy does not help the trajectory scorer and slightly lowers driving performance. This asymmetry may reflect the nature of the underlying computation: perception and trajectory generation iteratively refine representations, whereas scoring involves several different judgments that a single shared block may not serve equally well. We further find that directly adapting a pretrained vision backbone to a looped architecture yields worse driving performance than distilling it first. We therefore adopt a two-stage training strategy: first distilling pretrained DINOv2 features into the looped encoder, then adapting it to driving with lightweight LoRA parameters while keeping the distilled backbone frozen. Together, these findings lead to LoopDrive, a compact end-to-end driving architecture with selectively looped Transformers that achieves a better model-size-compute-performance trade-off. Beyond model compression, our study reveals that the benefit of looping depends on each module's computational role, providing a practical principle for designing compact autonomous driving models.