A Socially Aware Reinforcement Learning Agent for The Single Track Road Problem

Ido Shapira, Amos AzariaarXiv 2021

Abstract

Autonomous vehicles (AVs) navigating unstructured environments, such as single-track roads, face significant coordination challenges. Traditional Reinforcement Learning (RL) agents often fail in these scenarios due to the difficulty of accurately modeling human behavior. This paper introduces a Socially Aware Reinforcement Learning (SARL) agent that optimizes a weighted combination of its own utility and the predicted utility of the human driver. By incorporating social awareness into the reward function, the SARL agent achieves greater robustness against inaccurate behavior models. Experimental results show that SARL significantly outperforms purely selfish agents in both objective performance and human perception.

Introduction

The "Single Track Road Problem" represents a classic coordination challenge in autonomous driving. On narrow rural roads or lanes partially blocked by obstacles, two vehicles traveling in opposite directions must coordinate to pass each other. Typically, one driver must pull into a margin or "passing place" to allow the other to proceed.

For an AV, this is an "unstructured" social interaction. Standard RL agents rely on internal models of human behavior to plan their actions. However, human behavior is often noisy and unpredictable. If an agent is purely selfish and its model of the human is even slightly inaccurate, the interaction frequently results in deadlocks or collisions.

Methodology

The authors model the interaction as a sequential two-player game on a $2 \times 6$ grid. The top row represents the road, while the bottom row serves as a "margin" where vehicles can pull over.

The SARL Algorithm

The core innovation of this work is the Socially Aware Reinforcement Learning (SARL) objective. Instead of maximizing only its own utility $u(A)$, the agent maximizes a weighted sum: $$V = \beta u(A) + (1-\beta) u(B)$$ where $u(B)$ represents the human's utility. The weighting parameter $\beta$ is dynamically calculated based on the correlation between the agents' rewards: $$\beta = \frac{1 - \text{correl}(R_A, R_B)}{2}$$ This formulation ensures the agent remains competitive in zero-sum scenarios ($\beta \approx 1$) but becomes more cooperative in coordination-heavy environments.

Human Behavior and the Nash Equilibrium Gap

To evaluate the necessity of a socially aware approach, the authors collected data from 470 human participants. A key finding was the inadequacy of standard game-theoretic models for predicting human actions.

Distribution of human strategies showing that 82% of participants deviate from Nash Equilibrium.

As shown in the data, 82% of human participants did not follow sub-game perfect Nash Equilibrium strategies. This discrepancy highlights why agents relying on rigid game-theoretic assumptions often fail in real-world interactions.

Comparative Performance Analysis

The SARL agent was tested against several baselines, including "Careful," "Aggressive," and "Velocity-based Value Iteration" agents.

Average scores across different agent types, highlighting SARL as the only agent with a positive reward.

SARL was the only agent to achieve a positive average reward (15.87). In contrast, all other baselines resulted in negative scores, with some (like the Random and Semi-aggressive agents) performing exceptionally poorly. Furthermore, SARL achieved a total social welfare score of 32.99, far exceeding the -6.44 achieved by the next best baseline.

Beyond numerical performance, human participants rated the SARL agent as significantly more "wise," "generous," and "less aggressive" than its counterparts.

Conclusion

The success of the SARL agent stems from its inherent robustness. By valuing the human's utility, the agent "helps" the human reach a successful state, which in turn facilitates the agent's own goal. This "altruism as a strategy" proves more effective than complex behavioral modeling in noisy social environments. Future work will focus on extending this approach to continuous state spaces using Deep RL and employing Inverse Reinforcement Learning to better estimate human reward functions in real-time.

Summary updated

BibTeX
@misc{shapira2021socially,
  author = {Ido Shapira and Amos Azaria},
  title = {{A Socially Aware Reinforcement Learning Agent for The Single Track Road Problem}},
  year = {2021},
  eprint = {2109.05486},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.05486},
}
Figure