[Paper Review] Prompt to Transfer: Sim-to-Real Transfer for Traffic Signal Control with Prompt Learning
This paper proposes PromptGAT, a novel sim-to-real transfer method for traffic signal control that leverages large language models (LLMs) via prompt-based reasoning to improve forward model accuracy by incorporating human knowledge of real-world dynamics. By grounding actions using LLM-inferred system behavior under varying conditions like weather and traffic states, PromptGAT reduces the performance gap between simulation and reality, outperforming baseline methods in multiple metrics with statistically significant improvements.
Numerous solutions are proposed for the Traffic Signal Control (TSC) tasks aiming to provide efficient transportation and mitigate congestion waste. In recent, promising results have been attained by Reinforcement Learning (RL) methods through trial and error in simulators, bringing confidence in solving cities' congestion headaches. However, there still exist performance gaps when simulator-trained policies are deployed to the real world. This issue is mainly introduced by the system dynamic difference between the training simulator and the real-world environments. The Large Language Models (LLMs) are trained on mass knowledge and proved to be equipped with astonishing inference abilities. In this work, we leverage LLMs to understand and profile the system dynamics by a prompt-based grounded action transformation. Accepting the cloze prompt template, and then filling in the answer based on accessible context, the pre-trained LLM's inference ability is exploited and applied to understand how weather conditions, traffic states, and road types influence traffic dynamics, being aware of this, the policies' action is taken and grounded based on realistic dynamics, thus help the agent learn a more realistic policy. We conduct experiments using DQN to show the effectiveness of the proposed PromptGAT's ability in mitigating the performance gap from simulation to reality (sim-to-real).
Motivation & Objective
- To address the persistent performance gap between simulator-trained policies and real-world deployment in traffic signal control.
- To overcome the limitations of traditional GAT methods that rely solely on real-world data and fail on unobserved or rare states.
- To integrate human-annotated domain knowledge into the forward model via LLMs to enhance generalization and robustness.
- To improve policy transferability by grounding actions based on more accurate and realistic system dynamics prediction.
- To demonstrate that LLM-based dynamic profiling leads to measurable reductions in performance gaps in real-world evaluation.
Proposed method
- Introduces PromptGAT, a prompt-based grounded action transformation framework that integrates LLMs into the GAT framework to model real-world system dynamics.
- Designs a cloze-style prompt template to elicit LLMs' reasoning about how weather, traffic states, and road types affect traffic dynamics.
- Uses chain-of-thought prompting to generate detailed, context-aware inferences about system behavior under unseen or extreme conditions.
- Employs the LLM’s inferred dynamics to improve the forward model $f_{\phi^{+}}$, which predicts next states $s_{t+1}$ from current state $s_t$ and action $a_t$.
- Applies the enhanced forward model to ground actions in the real world, enabling the policy to learn more realistic behaviors.
- Trains the DQN agent using the grounded actions, improving transfer performance from simulation to real-world-like environments.
Experimental results
Research questions
- RQ1Can LLMs effectively model real-world traffic dynamics under rare or extreme conditions not well-represented in real-world data?
- RQ2How does prompt-based LLM inference improve the accuracy of the forward model in GAT compared to data-only approaches?
- RQ3To what extent does improved forward model accuracy reduce the performance gap between simulation and real-world evaluation?
- RQ4Does incorporating human knowledge via LLMs lead to more robust and generalizable traffic signal control policies?
- RQ5How do the improvements in forward model accuracy correlate with reductions in performance gaps across key metrics like average travel time and queue length?
Key findings
- PromptGAT significantly reduces the performance gap in real-world evaluation ($E_{\text{real}}$) compared to Direct Transfer and VanillaGAT, with statistically significant improvements across all metrics.
- The prediction error of the forward model in PromptGAT is consistently lower than in VanillaGAT, demonstrating improved accuracy in modeling real-world dynamics.
- A strong positive correlation (p ≤ 0.001) exists between improvements in forward model accuracy and reductions in performance gap across average travel time, throughput, and queue length.
- The Pearson correlation coefficient $r$ for the relationship between forward model accuracy gain and performance gap mitigation exceeds 0.8 in all metrics, indicating high consistency and reliability.
- Case studies show that PromptGAT’s ability to reason about extreme conditions (e.g., bad weather) leads to more accurate action grounding and better policy generalization.
- All experiments were conducted in a simulation-to-simulation setting with reproducible configurations, and code and data are publicly available.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.