Reward Design for Vision-Assisted Autonomous Driving in MetaDrive: From Scalar Rewards to Event-Triggered Visual Guidance
Abstract
Visual feedback can characterize traffic interactions, yet a plausible visual score may not promote task completion. This paper examines this mismatch in a MetaDrive intersection task governed by state-based Proximal Policy Optimization (PPO). With matched 1.8-million-step training, a distilled scalar visual reward raises return but reduces success from 0.388 to 0.287. Event-Triggered Visual Guidance (ETVG) instead uses a frozen ResNet18 to process one overlaid top-down RGB frame every five environment steps and determine whether the ego vehicle should yield. At the first qualifying event, ETVG preserves PPO steering and caps only the longitudinal action for five steps. Offline labels derive from path conflicts and relative arrival times; deployment uses only current RGB. The frozen visual layer is attached to three independently trained PPO policies, each evaluated on 300 matched scenarios. Mean success increases from 0.338 to 0.410, with a significant paired gain for every policy seed (p<=0.0201); collision and road-departure rates also decrease. On an episode-disjoint test, the detector reaches 0.9849 ROC AUC and 0.8337 average precision. Exact-reset, state-trigger, raw-image, traffic-density, joint-training, and local-VLM ablations indicate that the gain arises from binding a single visual event to a restricted action rather than accumulating a general visual score.
References
- Li, Q., Peng, Z., Feng, L., Zhang, Q., Xue, Z., & Zhou, B. (2023). MetaDrive: Composing diverse driving scenarios for generalizable reinforcement learning.IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(3), 3461–3475. https://doi.org/10.1109/TPAMI.2022.3190471
- Dosovitskiy, A., Ros, G., Codevilla, F., Lopez, A., & Koltun, V. (2017). CARLA: An open urban driving simulator.Proceedings of the 1st Annual Conference on Robot Learning, PMLR 78, 1–16.
- Shah, S., Dey, D., Lovett, C., & Kapoor, A. (2018). AirSim: High-fidelity visual and physical simulation for autonomous vehicles. In Hutter, M., & Siegwart, R. (Eds.),Field and Service Robotics, 621–635. https://doi.org/10.1007/978-3-319-67361-5_40
- Kiran, B. R., Sobh, I., Talpaert, V., et al. (2022). Deep reinforcement learning for autonomous driving: A survey.IEEE Transactions on Intelligent Transportation Systems, 23(6), 4909–4926. https://doi.org/10.1109/TITS.2021.3054625
- Codevilla, F., Muller, M., Lopez, A., Koltun, V., & Dosovitskiy, A. (2018). End-to-end driving via conditional imitation learning.Proceedings of the IEEE International Conference on Robotics and Automation, 4693–4700. https://doi.org/10.1109/ICRA.2018.8460487
- Chen, Y., Chen, M., Zhang, Q., et al. (2026). ROAD: Responsibility-oriented reward design for reinforcement learning in autonomous driving.IEEE Robotics and Automation Letters, 11(6), 6552–6559. https://doi.org/10.1109/LRA.2026.3678458
- Schulman, J., Wolski, F., Dhariwal, P., Radford, A., & Klimov, O. (2017). Proximal policy optimization algorithms. arXiv:1707.06347.
- Haarnoja, T., Zhou, A., Abbeel, P., & Levine, S. (2018). Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor.Proceedings of the International Conference on Machine Learning, 1861–1870.
- Ng, A. Y., Harada, D., & Russell, S. (1999). Policy invariance under reward transformations: Theory and application to reward shaping.Proceedings of the International Conference on Machine Learning, 278–287.
- Baumli, K., Baveja, S., Behbahani, F. M. P., et al. (2023). Vision-language models as a source of rewards. arXiv:2312.09187.
- Wang, Y., Sun, Z., Zhang, J., et al. (2024). RL-VLM-F: Reinforcement learning from vision language foundation model feedback.Proceedings of the International Conference on Machine Learning, PMLR 235, 51484–51501.
- Bai, S., Chen, K., Liu, X., et al. (2025). Qwen2.5-VL technical report. arXiv:2502.13923.
- He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition.Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 770-778. https://doi.org/10.1109/CVPR.2016.90
- Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Fei-Fei, L. (2009). ImageNet: A large-scale hierarchical image database.Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 248-255. https://doi.org/10.1109/CVPR.2009.5206848
- Alshiekh, M., Bloem, R., Ehlers, R., Könighofer, B., Niekum, S., & Topcu, U. (2018). Safe reinforcement learning via shielding.Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), 2669-2678. https://doi.org/10.1609/aaai.v32i1.11797
- Huang, S., & Ontañón, S. (2020). A closer look at invalid action masking in policy gradient algorithms. arXiv:2006.14171.
- Raffin, A., Hill, A., Gleave, A., Kanervisto, A., Ernestus, M., & Dormann, N. (2021). Stable-Baselines3: Reliable reinforcement learning implementations.Journal of Machine Learning Research, 22(268), 1-8.
- Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., & Batra, D. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization.Proceedings of the IEEE International Conference on Computer Vision, 618-626. https://doi.org/10.1109/ICCV.2017.74