CARNet: A Dynamic Autoencoder for Learning Latent Dynamics in Autonomous Driving Tasks

Andrey Pak, Hemanth Manjunatha, Dimitar P. Filev, Panagiotis TsiotrasarXiv 2022 · DOI

Introduction

Autonomous vehicles must process high-dimensional sensor data—such as camera feeds and LiDAR—which are highly correlated over time. To navigate effectively, these systems need to compress this data into a compact "latent representation," effectively creating an internal model of the environment. Traditional autoencoders often treat video frames as independent snapshots, ignoring temporal continuity. CARNet (Combined dynAmic autoencodeR NETwork) addresses this by integrating an autoencoder with a Gated Recurrent Unit (GRU) to learn and predict the "latent dynamics" of driving environments.

Methods

The primary innovation of CARNet is the joint training and parameter sharing between its convolutional Autoencoder (AE) and a Recurrent Neural Network (RNN).

Architecture and Joint Training

The model utilizes a convolutional encoder to compress input images into a latent vector $\ell_{t-1}$. This vector is processed by a GRU, which maintains a hidden state $\mathbf{h}_t$ representing the world's history and predicts the subsequent latent vector $\ell_{t|t-1}$. Unlike previous architectures like "World Models" (WM), which often train vision and memory components separately, CARNet trains all components simultaneously. This forces the encoder to generate representations that are optimized for both current reconstruction and future prediction.

The CARNet architecture integrates an encoder, GRU, and decoder to predict future states and actions.

Loss Functions and Sensor Fusion

To improve reconstruction quality, CARNet employs the Multi-Scale Structural Similarity Index (MS-SSIM) loss rather than standard Mean Squared Error (MSE). MS-SSIM prioritizes structural features and luminance, which are vital for identifying road boundaries. The model also supports sensor fusion, conditioning predictions on auxiliary data like speed or steering angle via fully connected layers.

Detailed training pipeline (a) showing joint loss optimization and inference flow (b) for reinforcement learning.

Key Insights and Results

CARNet's integrated approach yields significant efficiency gains. By sharing parameters, the model is approximately 2.5 times smaller than the World Models baseline, using only about 40% of the parameters while achieving superior performance.

  • Imitation Learning: In the CARLA simulator, CARNet reached ~77% classification accuracy, outperforming the WM baseline (~71%).
  • Sim-to-Real Transfer: On the real-world Udacity dataset, CARNet maintained an 8% lead over the baseline, reaching ~57% accuracy after fine-tuning.
  • Reinforcement Learning: CARNet achieved a 22% improvement in average reward (3057.88 vs. 2508.77) compared to World Models.

The authors found that a deterministic AE-RNN approach provided more reliable control predictions than probabilistic sampling (VAEs), as "dreaming" non-physical trajectories poses a safety risk in autonomous driving.

Conclusion

CARNet demonstrates that joint training of temporal and spatial components leads to a more continuous latent space and more stable driving policies. While the "sim-to-real" gap remains a challenge due to real-world lighting and texture complexities, CARNet's compact size and high performance make it a strong candidate for edge deployment in autonomous vehicles. Future work will focus on robustness across extreme weather and diverse urban environments.

Summary updated

BibTeX
@misc{pak2022carnet,
  author = {Andrey Pak and Hemanth Manjunatha and Dimitar P. Filev and Panagiotis Tsiotras},
  title = {{CARNet: A Dynamic Autoencoder for Learning Latent Dynamics in Autonomous Driving Tasks}},
  year = {2022},
  eprint = {2205.08712},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.08712},
}
Figure