AM-DIMPO: Action-Masked Diffusion-Implicit Policy Optimization for On-Ramp Merging Under Dense Traffic
Source abstract
Abstract
Highway ramp merging requires autonomous vehicles to make safe and efficient decisions in dense mixed traffic, where strong vehicle interactions and rapidly changing acceptable gaps make the task particularly challenging. Existing reinforcement learning methods are often unimodal and overly conservative, while diffusion-based policies, despite their ability to generate multimodal actions, usually suffer from high inference latency and safety risks caused by unconstrained sampling. To address these issues, this paper proposes AM-DIMPO, an action-mask-guided safe diffusion-implicit policy optimization framework for ramp-merging tasks. The proposed method combines DDIM-based implicit sampling with a state-dependent continuous action mask to improve multimodal action generation efficiency while enhancing action feasibility. In addition, the mask correction signal is incorporated into policy learning to encourage the policy to generate actions closer to the safe feasible region. Experiments are conducted in a Gym-based ramp-merging simulator under both light-traffic and dense-traffic scenarios, where the proposed method is compared with classical reinforcement learning baselines, diffusion reinforcement learning baselines, and a safety-aware PPO baseline. The results show that, in dense traffic, AM-DIMPO achieves a merging success rate of 97.3%, an average speed of 16.27 m/s, and an inference latency of 68 ms; in light traffic, the success rate reaches 98.1%. Moreover, the proposed method maintains robust performance under the tested noisy-observation and reduced-visibility settings. Overall, AM-DIMPO achieves a favorable balance among empirical safety, traffic efficiency, robustness, and real-time inference performance in dense highway ramp-merging tasks.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Traffic control and management · Autonomous Vehicle Technology and Safety · Vehicular Ad Hoc Networks (VANETs)
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Beijing Key Laboratory of Information Service Engineering, Beijing Union University, Beijing 100101, China
School of Robotics, Beijing Union University, Beijing 100101, China
Funding
Beijing Municipal Education Commission · Beijing Union University · National Natural Science Foundation of China
References (40)
Show source-provided references
1. Sen, B., Smith, J.D., and Najm, W.G. (2026, March 01). Analysis of Lane Change Crashes, Available online: https://www.nhtsa.gov/document/analysis-lane-change-crashes.
2. Characteristics and Temporal Stability of Recurring Bottlenecks10.1177/0361198118798991 ↗
3. Ray, B. (2011). Guidelines for Ramp and Interchange Spacing, Transportation Research Board.
4. Increasing the Capacity of an Isolated Merge by Metering Its On-Ramp10.1016/j.trb.2004.12.001 ↗
5. Safety Impacts of Geometric Design on Freeway Segments with Closely Spaced Entrance and Exit Ramps10.1016/j.aap.2021.106461 ↗
6. Review of Driver Behaviour Modelling for Highway On-Ramp Merging10.1049/itr2.12572 ↗
7. Wang, Y., Li, Y., Li, R., Wu, S., and Li, L. (2024). Unraveling Spatial–Temporal Patterns and Heterogeneity of On-Ramp Vehicle Merging Behavior: Evidence from the exiD Dataset. Appl. Sci., 14.10.20944/preprints202401.0737.v1 ↗
8. Freeway Merging Trajectory Prediction for Automated Vehicles Using Naturalistic Driving Data10.1016/j.ijtst.2024.07.004 ↗
9. Mozaffari, S., Sormoli, M.A., Koufos, K., Lee, G., and Dianati, M. (2023). Trajectory Prediction with Observations of Variable-Length for Motion Planning in Highway Merging Scenarios. 2023 IEEE 26th International Conference on Intelligent Transportation Systems (ITSC), IEEE. Available online: https://arxiv.org/pdf/2306.05478.10.1109/ITSC57777.2023.10422360 ↗
10. Aggressive Driving in Ride-Hailing: Work Hours and Road Conditions
11. What Drives Road Rage? A Systematic Review on the Psychological Correlates of Aggressive Driving Behavior10.1016/j.jsr.2025.06.014 ↗
12. Socially Game-Theoretic Lane-Change for Autonomous Heavy Vehicle Based on Asymmetric Driving Aggressiveness10.1109/TVT.2025.3579331 ↗
13. A Rule-Based Cooperative Merging Strategy for Connected and Automated Vehicles10.1109/TITS.2019.2928969 ↗
14. A Survey on the Coordination of Connected and Automated Vehicles at Intersections and Merging at Highway On-Ramps
15. Nishi, T., Doshi, P., and Prokhorov, D. (2017). Freeway Merging in Congested Traffic Based on Multipolicy Decision Making with Passive Actor Critic. arXiv.
16. Udatha, S., Lyu, Y., and Dolan, J. (2023). Safe reinforcement learning with probabilistic control barrier functions for ramp merging. arXiv.10.1109/ICRA48891.2023.10161418 ↗
17. Dalal, G., Dvijotham, K., Vecerik, M., Hester, T., Paduraru, C., and Tassa, Y. (2018). Safe Exploration in Continuous Action Spaces. arXiv.
18. Achiam, J., Held, D., Tamar, A., and Abbeel, P. (2017). Constrained Policy Optimization. International Conference on Machine Learning, PMLR.
19. Li, Y., Yuan, S., Chang, Y., Chen, X., Yang, Q., Yang, Z., and Qin, H. (2025). Human-Aligned Safe Reinforcement Learning for Highway On-Ramp Merging in Dense Traffic. arXiv.10.2139/ssrn.5212417 ↗
20. The Unmanned Vehicle On-Ramp Merging Model Based on AM-MAPPO Algorithm10.1038/s41598-024-70509-0 ↗
21. Zhuang, H., Lei, C., Chen, Y., and Tan, X. (2023). Cooperative Decision-Making for Mixed Traffic at an Unsignalized Intersection Based on Multi-Agent Reinforcement Learning. Appl. Sci., 13.10.3390/app13085018 ↗
22. Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. (2017). Proximal Policy Optimization Algorithms. arXiv.
23. Zhu, Z., Zhao, H., He, H., Zhong, Y., Zhang, S., Guo, H., Chen, T., and Zhang, W. (2023). Diffusion Models for Reinforcement Learning: A Survey. arXiv.
24. Diffusion Actor-Critic with Entropy Regulator
25. Zheng, Q., Zhang, A., and Grover, A. (2022). Online Decision Transformer. International Conference on Machine Learning, PMLR.
26. Yang, L., Huang, Z., Lei, F., Zhong, Y., Yang, Y., Fang, C., Wen, S., Zhou, B., and Lin, Z. (2023). Policy Representation via Diffusion Probability Model for Reinforcement Learning. arXiv.
27. Denoising Diffusion Probabilistic Models
28. Diffusion Models Beat GANs on Image Synthesis
29. Efficient Diffusion Policies for Offline Reinforcement Learning
30. Pang, B., Zhao, T., Xie, X., and Wu, Y.N. (2021, January 20–25). Trajectory Prediction with Latent Belief Energy-Based Model. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.01164 ↗
31. Mastering Atari Games with Limited Data
32. Liao, B., Chen, S., Yin, H., Jiang, B., Wang, C., Yan, S., Zhang, X., Li, X., Zhang, Y., and Zhang, Q. (2025, January 11–15). DiffusionDrive: Truncated Diffusion Model for End-to-End Autonomous Driving. Proceedings of the Computer Vision and Pattern Recognition Conference, Nashville, TN, USA.10.1109/CVPR52734.2025.01124 ↗
33. Song, J., Meng, C., and Ermon, S. (2020). Denoising Diffusion Implicit Models. arXiv.
34. Tessler, C., Mankowitz, D.J., and Mannor, S. (2018). Reward Constrained Policy Optimization. arXiv.
35. A Lyapunov-Based Approach to Safe Reinforcement Learning
36. A Comprehensive Survey on Safe Reinforcement Learning
37. Jansen, N., Könighofer, B., Junges, S., Serban, A., and Bloem, R. (2020). Safe Reinforcement Learning Using Probabilistic Shields. 31st International Conference on Concurrency Theory (CONCUR 2020), Schloss Dagstuhl–Leibniz-Zentrum für Informatik.
38. Srinivasan, K., Eysenbach, B., Ha, S., Tan, J., and Finn, C. (2020). Learning to Be Safe: Deep RL with a Safety Critic. arXiv.
39. Leurent, E. (2026, March 01). An Environment for Autonomous Driving Decision-Making. GitHub Repository. Available online: https://github.com/Farama-Foundation/HighwayEnv.
40. Safe-Control-Gym: A Unified Benchmark Suite for Safe Learning-Based Control and Reinforcement Learning in Robotics10.1109/LRA.2022.3196132 ↗