cs.LGFeb 23, 2026

Sparse Masked Attention Policies for Reliable Generalization

Authors: Caroline Horsch, Laurens Engwegen, Max Weltevrede, Matthijs T. J. Spaan, Wendelin Böhmer

Organizations: Department of Intelligent Systems, Delft University of Technology, Delft, Netherlands.

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.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Overcoming Valid Action Suppression in Unmasked Policy Gradient Algorithms

    Mar 10, 2026Renos Zabounidis, Roy Siegelmann, Mohamad Qadri +3Policy Gradient Methods

  2. TransMASK: Masked State Representation through Learned Transformation

    Mar 5, 2026Sagar Parekh, Preston Culbertson, Dylan P. LoseyRepresentation LearningRobot Imitation Learning

  3. Mask-Aware Policy Gradients for Diffusion Language Models

    Jul 16, 2026Haran Raajesh, Kulin Shah, Adam Klivans +1Masked Diffusion ModelsRL for Language Model Reasoning