LSTM vs. Transformer: A Comparative Study in Reinforcement Learning for Traffic Signal Control
Abstract
Addressing urban traffic congestion, this paper presents a reinforcement learning (RL)-based traffic signal control (TSC) framework, comparing the effectiveness of Long Short-Term Memory (LSTM) and Transformer architectures for temporal feature extraction. A four-way intersection model is developed, where a Proximal Policy Optimization (PPO) framework is employed with vehicle occupancy ratio as the state, phase switching as the action, and average waiting time as the reward. The proposed models are evaluated through simulations on the SUMO platform. Experimental results indicate that in simple traffic scenarios, the LSTM-based model achieves a significantly lower average waiting time (6.97s) compared to the Transformer-based approach (10.54s) and traditional fixed-phase control (83.13s). These findings highlight the superiority of sequential models in environments dominated by short-term dependencies. Furthermore, this study provides novel insights into the applicability of attention mechanisms versus recurrent neural networks, offering valuable guidance for intelligent traffic systems.
References
- Pengjun Zhao and Haoyu Hu. Geographical patterns of traffic congestion in growing megacities: Big data analytics from beijing. Cities, 92:164–174, 2019.
- Zhao H, Dong C, Cao J, et al. A survey on deep reinforcement learning approaches for traffic signal control[J]. Engineering Applications of Artificial Intelligence, 2024, 133: 108100.
- Rasheed F, Yau K L A, Noor R M, et al. Deep reinforcement learning for traffic signal control: A review[J]. IEEE Access, 2020, 8: 208016-208044.
- Noaeen M, Naik A, Goodman L, et al. Reinforcement learning in urban network traffic signal control: A systematic literature review[J]. Expert Systems with Applications, 2022, 199: 116830.
- Yu Du, Wei ShangGuan, Dingchao Rong, and Linguo Chai. Ra-tsc: Learning adaptive traffic signal control strategy via deep reinforcement learning. In 2019 ieee intelligent transportation systems conference (itsc), pages 3275–3280. IEEE, 2019.
- Aoyu Pang, Zixiao Xu, Maonan Wang, Man-On Pun, and Yuheng Kan. Reinforcement learning-based traffic signal control using delayed observations for v2x. In ICC 2023-IEEE International Conference on Communications, pages 4020–4025. IEEE, 2023.
- Du Y, ShangGuan W, Rong D, et al. RA-TSC: Learning adaptive traffic signal control strategy via deep reinforcement learning[C]//2019 ieee intelligent transportation systems conference (itsc). IEEE, 2019: 3275-3280.
- Mannion P, Duggan J, Howley E. An experimental review of reinforcement learning algorithms for adaptive traffic signal control[J]. Autonomic road transport support systems, 2016: 47-66.
- Prabuchandran K J, AN H K, Bhatnagar S. Multi-agent reinforcement learning for traffic signal control[C]//17th International IEEE Conference on Intelligent Transportation Systems (ITSC). IEEE, 2014: 2529-2534.
- Chu K F, Lam A Y S, Li V O K. Traffic signal control using end-to-end off-policy deep reinforcement learning[J]. IEEE Transactions on Intelligent Transportation Systems, 2021, 23(7): 7184-7195.
- Aoyu Pang, Maonan Wang, Yirong Chen, Man-On Pun, and Michael Lepech. Scalable reinforcement learning framework for traffic signal control under communication delays. IEEE Open Journal of Vehicular Technology, 2024.
- John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
- Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 9(8):1735– 1780, 11 1997
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need, 2023.
- Karimzadeh M, Aebi R, de Souza A M, et al. Reinforcement learning-designed LSTM for trajectory and traffic flow prediction[C]//2021 IEEE wireless communications and networking conference (WCNC). IEEE, 2021: 1-6.