Social Attention: Modeling Attention in Human Crowds.

Anirudh Vemula, Katharina Muelling, Jean Oh

Abstract

Predicting human movement in crowded environments is a critical capability for autonomous robots navigating social spaces. Traditional models often rely on proximity-based assumptions, assuming that only immediate neighbors influence a person's path. This paper introduces Social Attention, a deep learning framework that utilizes a soft attention mechanism over a Spatio-Temporal Graph (st-graph) to capture long-range human-human interactions. By learning to prioritize influential agents based on features like velocity and heading rather than just distance, the model significantly improves trajectory prediction accuracy on real-world benchmarks.

Introduction: Beyond Proximity

Navigating a robot through a busy crowd is a complex social challenge. To move safely and predictably, a robot must forecast where people will be several seconds into the future. Most existing models rely on a proximity-based assumption, assuming that only people within a small, local "neighborhood" affect a person's path.

However, human behavior is more nuanced. A person running toward you from 20 meters away is a much higher priority than someone standing still just two meters behind you. Relative distance is just one factor; velocity, heading, and time-to-collision are equally vital for modeling human-human interactions. Social Attention addresses this by allowing the model to "pay attention" to any agent in the scene, regardless of their physical distance.

Methodology

The authors represent the crowd dynamics using a Spatio-Temporal Graph (st-graph). In this representation, nodes represent individual pedestrians, while edges represent their spatial relationships (interactions between people) and temporal relationships (a person's own movement history).

Spatio-Temporal Graph representation of human movement across time steps.

Structural RNN and Social Attention

The architecture is built upon a mixture of Recurrent Neural Networks (RNNs) and a novel attention module:

  1. EdgeRNNs: These model the dynamics of interactions between pairs of people (spatial edges) and a person’s own history (temporal edges).
  2. Social Attention Module: This is the core innovation. Instead of simple grid-based pooling, the model implements a soft attention mechanism using scaled dot-product attention. It assigns "importance weights" to every other person in the scene based on the hidden states of the EdgeRNNs.
  3. NodeRNNs: These aggregate the weighted information from the attention module to predict the parameters of a bivariate Gaussian distribution, accounting for the inherent uncertainty in human movement.
Detailed architecture of the EdgeRNN, Social Attention module, and NodeRNN components.

Evaluation and Key Results

The model was evaluated on standard real-world benchmarks, including the ETH and UCY datasets, which cover over 1,500 pedestrians in diverse scenarios such as group walking and collision avoidance.

Key Insights

  • Proximity ≠ Importance: Empirical results prove that non-local interactions matter. By allowing the model to look at the entire crowd, it learns to ignore stationary bystanders and focus on distant agents who are on a collision course.
  • Feature-Rich Attention: Because the attention mechanism operates on the hidden states of the EdgeRNNs, it implicitly considers velocity, acceleration, and heading when deciding who is "important."
  • Scalability: By sharing weights across all nodes and edges in the graph, the model handles varying numbers of people without increasing the number of trainable parameters.

Quantitative Performance

Social Attention consistently outperformed the state-of-the-art Social LSTM baseline. For example, on the ETH-Hotel dataset, the model reduced the Average Displacement Error (ADE) to 0.29m (compared to 0.42m for Social LSTM) and the Final Displacement Error (FDE) to 2.64m (compared to 3.57m).

Conclusion and Future Work

Social Attention demonstrates that modeling long-range, feature-dependent interactions is essential for accurate crowd forecasting. While the model excels at human-human dynamics, it currently does not account for static obstacles like walls or furniture. Future work involves extending the st-graph framework to include environmental constraints and refining the attention mechanism for extremely dense scenarios where influence may be highly ambiguous.

Summary updated

BibTeX
@misc{vemula2017social,
  author = {Anirudh Vemula and Katharina Muelling and Jean Oh},
  title = {{Social Attention: Modeling Attention in Human Crowds.}},
  year = {2017},
  eprint = {1710.04689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.04689},
}
Figure