Introduction
Deep Reinforcement Learning (DRL) has demonstrated significant potential in autonomous driving tasks. However, a persistent challenge in deploying these agents is the "jerky behavior" problem. Because RL agents are typically trained to maximize immediate rewards—such as speed or staying on a center line—they often oscillate rapidly between steering angles or throttle positions. This instability leads to mechanical wear, energy inefficiency, and increased safety risks. Furthermore, the "sim-to-real gap" makes it difficult to transfer policies trained in safe simulations to physical hardware. This paper presents an image-based extension of Conditioning for Action Policy Smoothness (CAPS) to address these issues in miniature car racing.
Methodology: Image-Based CAPS
The researchers adapted the CAPS framework, originally developed for vector-based sensor data in drones, to handle high-dimensional image inputs. The method integrates with the Soft Actor-Critic (SAC) algorithm by adding two regularization terms to the objective function designed to smooth the policy output.
- Temporal Smoothness ($L_T$): This term penalizes the difference between actions at time $t$ and $t+1$. By minimizing this loss, the agent is forced to produce a continuous "flow" of actions rather than erratic jumps.
- Spatial Smoothness ($L_S$): This term ensures that "similar" states result in similar actions. For image-based inputs, the authors define similarity through domain randomization.
To apply spatial smoothness to visual data, the authors employed six specific techniques to generate spatial neighbors for the current state: Random Rotation, Salt and Pepper noise, Random Cutoff, Random Brightness, Random Contrast, and Gaussian Blur.
To further bridge the sim-to-real gap, CycleGAN was utilized to translate simulated images into realistic training data. This allowed the agent to learn features relevant to the physical track's lighting and textures while training in a safe, virtual environment.
Experimental Setup
The system was tested on a custom autonomous miniature car racing setup. The physical track featured straightaways, square corners, hairpin turns, and an s-curve. The car was equipped with an NVIDIA Jetson Xavier NX for on-board processing of 120x160 resolution camera feeds at 30fps. Performance was evaluated across three speed configurations ($c1, c2, c3$) to assess how stability held up as velocity increased.
Key Results and Discussion
The combination of CycleGAN and CAPS yielded substantial improvements over baseline RL models:
- Efficiency: The agent with CAPS and CycleGAN reduced average finishing lap times by 21.80%.
- Stability: Fast Fourier Transform (FFT) analysis showed a dramatic reduction in high-frequency steering noise. The steering angle smoothness value dropped from 93.47 (baseline) to 20.39 (with CAPS).
- Robustness: In the most difficult high-speed configuration ($c3$), baseline models failed completely (0% completion). In contrast, the CycleGAN + CAPS model maintained a 20% completion rate, demonstrating superior stability at the limit.
Ablation studies highlighted that Gaussian Blur and Salt and Pepper noise were the most critical augmentations for spatial smoothness. The authors hypothesize this is because real-world cameras often produce blurry or noisy images at high speeds; training the agent to remain stable under these simulated conditions is vital for real-world deployment. Additionally, while both terms are necessary, the Temporal Smoothness term was found to have a more significant impact on reducing lap times than the Spatial term alone.
Conclusion and Future Work
By extending CAPS to image-based inputs and combining it with sim-to-real transfer techniques, this work provides a path toward smoother, more efficient autonomous racing. While challenges remain—such as the relatively low success rate at extreme speeds—the reduction in "jerky" behavior marks a significant step toward practical, real-world RL deployment in robotics. Future research may explore how these smoothness constraints hold up in more complex, multi-agent racing scenarios or environments with dynamic obstacles.
Summary updated