Autonomous vehicles need social awareness to find optima in multi-agent reinforcement learning routing games.

Anastasia Psarou, Łukasz Gorczyca, Dominik Gaweł, Rafal KucharskiOpenReview 2025 · DOI · OpenReview

TL;DR

Autonomous vehicles (AVs) learning optimal routes using multi-agent reinforcement learning (MARL) can destabilize traffic systems and take years to converge. This paper introduces a "socially aware" reward function that incorporates an AV's impact on others (marginal cost), leading to significantly faster convergence and improved system-wide and individual performance.

What Problem Does This Paper Address?

The integration of autonomous vehicles (AVs) into urban environments promises efficiency, but their learning process, particularly using Multi-Agent Reinforcement Learning (MARL), presents a significant challenge. When multiple AVs learn independently and selfishly to minimize their own travel times, they can create traffic gridlock and instability. Existing MARL approaches struggle to converge to optimal solutions in these scenarios, often requiring simulation times equivalent to years of real-world driving. This paper addresses the critical need for AVs to learn efficient routing strategies that benefit not only themselves but also the overall traffic system, overcoming the convergence issues and potential instability caused by purely selfish learning.

Methods

The core innovation of this paper lies in a novel reward function for MARL agents. Instead of solely rewarding agents for minimizing their own travel time (extrinsic reward), the authors introduce an intrinsic reward component based on the marginal travel time (MTT). MTT quantifies the impact an individual AV's route choice has on the travel times of all other agents in the system.

Specifically, they calculate a marginal cost matrix where each entry $M_{i,j}(u)$ represents the change in travel time for agent $i$ when agent $j$ is present in the system, given a joint action $u$. The intrinsic reward for agent $j$, $m_j(u)$, is the sum of its impacts on all other agents (or all agents including itself), often transformed by a hyperbolic tangent function to bound the values. This "social awareness" is incorporated into the agent's total reward as $r_j(u) = \alpha e_j(u) + \beta m_j(u)$, where $\alpha$ and $\beta$ are weighting coefficients for the extrinsic (selfish) and intrinsic (social) rewards, respectively. This approach is inspired by counterfactual reasoning, evaluating the system's state with and without a specific agent.

Datasets

The experiments were conducted using two traffic networks:

  • Two-Route (Yield) network (TRY): A small, deliberately designed toy network to study the problem. This network has two routes, one shorter without priority and one longer with priority.
  • Saint-Arnoult network: A larger, real-world traffic network from the URB benchmark, featuring 1289 nodes and 2011 edges, with 111 traveling agents each having three route choices.

Key Insights and Ideas

  • Selfishness is Destabilizing: Purely selfish routing agents in MARL can lead to traffic system instability and extremely long convergence times.
  • Social Awareness is Key: Incorporating an agent's impact on others (marginal cost) into its reward function significantly accelerates convergence to optimal solutions.
  • Faster Convergence, Better Performance: Socially aware AVs not only converge faster but also achieve better system-wide and individual travel times.
  • Equilibria Preservation: The proposed counterfactual marginal cost formulation preserves the system's existing equilibria, meaning it doesn't fundamentally change the game's structure, just how agents learn within it.
  • Generalizability: The method is designed to be general and can be incorporated into various MARL algorithms.

Key Results

  • Reduced Training Time: The proposed reward formulation dramatically reduces training time, enabling convergence in hundreds of iterations instead of years of simulated driving. For instance, in the TRY network, convergence to near-optimal solutions is achieved within 100 iterations.
  • Improved Travel Times: In the Saint-Arnoult network, after a short training period (300 iterations), over 50% of AV agents achieved shorter individual travel times when using the social reward. System-wide and AV group average travel times were also reduced.
  • Reliable Convergence: The baseline algorithms often failed to converge or converged to suboptimal solutions, whereas the socially aware agents consistently converged to the optimal solution.
  • Equilibria Stability: Experiments showed that increasing the weight of the social reward ($\beta$) did not alter the system's equilibria, confirming the theoretical findings.

Limitations and Future Work

  • Computational Cost: The primary limitation acknowledged is the computational cost of calculating the marginal cost matrices, which grows exponentially with the size of the joint action space.
  • Rare Case Studied: The paper focused on a specific scenario where the System Optimum (SO) and User Equilibrium (UE) coincide. Future work should explore scenarios where SO and UE do not coincide.
  • Fairness and Equity: While performance is improved, future studies should investigate how social awareness impacts fairness and equity among AV users.
  • Real-world Deployment: Further research is needed to explore the practical implementation and scalability of these findings in real-world traffic management systems.

Summary updated

BibTeX
@misc{psarou2025autonomous,
  author = {Anastasia Psarou and Łukasz Gorczyca and Dominik Gaweł and Rafal Kucharski},
  title = {{Autonomous vehicles need social awareness to find optima in multi-agent reinforcement learning routing games.}},
  year = {2025},
  eprint = {2510.11410},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.11410},
}
Figure