HiMemFormer: Hierarchical Memory-Aware Transformer for Multi-Agent Action Anticipation

Zirui Wang, Xinran Zhao, Simon Stepputtis, Woojun Kim, Tongshuang Wu, Katia P. Sycara, Yaqi Xie · DOI

TL;DR

This paper introduces HiMemFormer, a novel transformer-based model for predicting future actions in multi-agent scenarios. It addresses the critical gap of modeling agent interactions by integrating global historical context with agent-specific memory in a hierarchical manner, leading to significantly improved action anticipation.

What Problem Does This Paper Address?

Predicting human actions is a fundamental challenge in robotics and AI, crucial for enabling systems to interact safely and effectively with their environment and other agents. While significant progress has been made in anticipating single-agent actions, most existing methods overlook the complex interplay and interactions between multiple agents. In real-world scenarios, an agent's behavior is not only influenced by its own past but also by the actions and intentions of others. This paper tackles the problem of multi-agent action anticipation, aiming to capture these crucial interaction dynamics to achieve more human-like forecasting.

Methods

The core innovation is the Hierarchical Memory-Aware Transformer (HiMemFormer). It employs a dual-hierarchical framework to process both global and agent-specific information:

  • Agent-to-Context Encoder: This component first encodes an agent's long-term memory into a latent representation. It then enhances this representation by cross-attending with global long-term memory, effectively integrating contextual information. This results in a refined, context-aware long-term memory representation for each agent.
  • Context-to-Agent Decoder: This decoder operates in a coarse-to-fine strategy.
  • Coarse Action Anticipation: It first generates a coarse prediction of future actions for all agents by using learned query tokens and the augmented long-term memory. This step leverages global contextual features.
  • Precise Action Refinement: The coarse prediction is then refined by incorporating agent-specific short-term memory. This allows the model to tailor the anticipation to the individual agent's unique characteristics and recent behavior, leading to more accurate predictions.

This hierarchical approach allows HiMemFormer to selectively utilize global context and agent-specific features, avoiding noise and redundancy.

Datasets

The model is evaluated on the LEMMA dataset, a public multi-agent dataset featuring compositional atomic actions from egocentric videos. The experiments are conducted across four scenarios: single-agent single-task (1x1), single-agent multi-task (1x2), multi-agent single-task (2x1), and multi-agent multi-task (2x2).

Key Insights and Ideas

  • The Importance of Hierarchical Context: The paper strongly suggests that simply aggregating global information isn't enough. A hierarchical approach that first integrates global context and then refines it with agent-specific details is key to effective multi-agent anticipation.
  • Agent-Specific Preferences Matter: Different agents might rely on different scales of temporal and social information. HiMemFormer's architecture allows it to adapt to these individual preferences, leading to better performance.
  • Coarse-to-Fine Decoding is Effective: The two-stage decoding process (coarse prediction followed by fine refinement) proves crucial for balancing the need for global understanding with agent-specific accuracy.
  • Long-Term Context is Crucial for Interactions: The results highlight that even when considering future information (as in MAT), the hierarchical integration of long-term historical context significantly boosts performance in complex multi-agent scenarios.

Key Results

HiMemFormer demonstrates significant performance improvements over state-of-the-art methods on the LEMMA dataset.

  • It outperforms LSTR by margins of 0.8% to 4% across the four scenarios in terms of mAP.
  • It shows a notable improvement over MAT, especially in the challenging 2x2 scenario, achieving around 2% improvement even when MAT utilizes future information.
  • Ablation studies indicate that increasing memory sizes doesn't always guarantee better performance, suggesting that the way memory is processed (as in HiMemFormer's hierarchical approach) is more critical than just its length.

Limitations and Future Work

The authors acknowledge that while HiMemFormer is a step forward, there's room for further exploration:

  • Expanding Multi-Agent Interaction Interpretation: Future work could focus on enhancing HiMemFormer's ability to interpret more complex multi-agent interactions.
  • Leveraging Large Language Models (LLMs): LLMs could be integrated to improve model interpretability and flexibility in dynamic environments.
  • Incorporating Knowledge and Scene Graphs: Knowledge graphs or scene graphs could serve as powerful feature representations to further boost performance.
  • Adaptive Mechanisms: Developing adaptive mechanisms that dynamically adjust the emphasis between long-term historical context and short-term agent-specific information could improve responsiveness to real-time changes.

Summary updated

BibTeX
@misc{wang2024himemformer,
  author = {Zirui Wang and Xinran Zhao and Simon Stepputtis and Woojun Kim and Tongshuang Wu and Katia P. Sycara and Yaqi Xie},
  title = {{HiMemFormer: Hierarchical Memory-Aware Transformer for Multi-Agent Action Anticipation}},
  year = {2024},
  eprint = {2411.01455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.01455},
}
Figure