Sparse Masked Attention Policies for Reliable Generalization

Caroline Horsch, Laurens Engwegen, Max Weltevrede, Matthijs T. J. Spaan, Wendelin Böhmer
2/23/2026
cs.LG

No confident code implementation found for this paper.

Abstract

In reinforcement learning, abstraction methods that remove unnecessary information from the observation are commonly used to learn policies which generalize better to unseen tasks. However, these methods often overlook a crucial weakness: the function which extracts the reduced-information representation has unknown generalization ability in unseen observations. In this paper, we address this problem by presenting an information removal method which more reliably generalizes to new states. We accomplish this by using a learned masking function which operates on, and is integrated with, the attention weights within an attention-based policy network. We demonstrate that our method significantly improves policy generalization to unseen tasks in the Procgen benchmark compared to standard PPO and masking approaches.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{horsch2026sparse,
  title  = {Sparse Masked Attention Policies for Reliable Generalization},
  author = {Caroline Horsch and Laurens Engwegen and Max Weltevrede and Matthijs T. J. Spaan and Wendelin Böhmer},
  year   = {2026},
  eprint = {2602.19956},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.19956v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.19956.svg)](https://codeofpaper.com/paper/2602.19956)

Discussion