Multi-focus Attention Network for Efficient Deep Reinforcement Learning

Jinyoung Choi, Beom-Jin Lee, Byoung-Tak Zhang

Abstract

Standard Deep Reinforcement Learning (DRL) models often suffer from sample inefficiency because they process raw sensory input as a monolithic state, lacking spatial abstraction. This paper presents the Multi-focus Attention Network (MANet), which improves DRL efficiency by allowing agents to attend to multiple important entities simultaneously. By partitioning the input into "partial states" and utilizing parallel attention heads with diversity regularization, MANet achieves near-optimal performance up to 3.5x faster than standard Deep Q-Networks (DQN).

Introduction

Deep Reinforcement Learning models, such as the classic Deep Q-Network (DQN), are notoriously sample-inefficient. A primary cause is their perception of the environment: they treat the entire raw sensory input as a single, indivisible state. This approach lacks "spatial abstraction." For instance, in a navigation task, the relative position between an agent and its goal is the critical information. However, if both move together to a different part of the screen, a standard DQN perceives an entirely new state and must relearn the policy for that specific configuration from scratch. In contrast, humans focus on specific entities—the agent, the goal, and obstacles—and their relationships, enabling rapid generalization.

Methodology

The authors propose MANet, which introduces three core architectural innovations to facilitate spatial abstraction:

The MANet architecture featuring input segmentation and parallel attention heads.
  1. Input Segmentation: Instead of processing the entire image at once, the model divides the input into several segments called "partial states" using a grid partition.
  2. Dual-Stream Feature Extraction: For each partial state, the model extracts two types of features: Keys, which determine spatial relevance (where to look), and Values, which encode the content used for decision-making.
  3. Parallel Attention Layers: Unlike single-attention models, MANet employs multiple parallel attention heads. To prevent these heads from converging on the same high-saliency object, the authors implement entropy and distance regularization to encourage diversity in focus.

The model also extends to multi-agent settings, where "partial states" represent individual agent observations, allowing for efficient communication by attending to relevant teammates.

Experimental Setup

MANet was evaluated on two custom environments:

  • Grid World Navigation: An 8x8 grid where a single agent must visit four waypoints in a specific sequence, testing the ability to track multiple positions simultaneously.
  • Combat Environment: A 15x15 grid for multi-agent testing. Two teams of five agents engage in battle; agents have limited vision (5x5) and must coordinate to defeat the enemy.

Results and Discussion

The experimental results demonstrate significant improvements in both learning speed and final performance.

Comparison of average reward per episode across training epochs for MANet, Single Attention, and DQN.
  • Learning Speedup: In the navigation task, MANet reached near-optimal scores in just 57 epochs, compared to 95 epochs for single-attention models and 198 epochs for standard DQN.
  • Performance Gains: MANet achieved higher overall scores while requiring significantly fewer experience samples. In the multi-agent combat task, it learned approximately 20% faster than the previous state-of-the-art model, CommNN.
  • Spatial Abstraction Proof: Qualitative analysis of attention weights confirmed that different heads successfully tracked separate entities, such as the agent and the current waypoint, proving the model's ability to perform spatial abstraction.

Conclusion

MANet demonstrates that incorporating multi-focus attention and spatial abstraction can drastically improve the sample efficiency of DRL agents. By breaking the environment into entities and relationships, the model avoids the pitfalls of pixel-level memorization. Future work will explore more advanced segmentation techniques, such as Spatial Transformer Networks, and the integration of temporal attention to capture historical context.

Summary updated

BibTeX
@inproceedings{choi2017multi,
  author = {Jinyoung Choi and Beom-Jin Lee and Byoung-Tak Zhang},
  title = {{Multi-focus Attention Network for Efficient Deep Reinforcement Learning}},
  booktitle = {Workshops @ AAAI},
  year = {2017},
  url = {https://openreview.net/forum?id=BJ-TB6ed-H},
}
Figure