MaDi: Learning to Mask Distractions for Generalization in Visual Deep Reinforcement Learning

Bram Grooten, Tristan Tomilin, Gautham Vasan, Matthew E. Taylor, A. Rupam Mahmood +3 more
12/23/2023
cs.LGcs.AIcs.CV

No official code found. Best implementation: bramgrooten/mask-distractions (25 stars, MIT, last commit 2025-03-25).

Abstract

The visual world provides an abundance of information, but many input pixels received by agents often contain distracting stimuli. Autonomous agents need the ability to distinguish useful information from task-irrelevant perceptions, enabling them to generalize to unseen environments with new distractions. Existing works approach this problem using data augmentation or large auxiliary networks with additional loss functions. We introduce MaDi, a novel algorithm that learns to mask distractions by the reward signal only. In MaDi, the conventional actor-critic structure of deep reinforcement learning agents is complemented by a small third sibling, the Masker. This lightweight neural network generates a mask to determine what the actor and critic will receive, such that they can focus on learning the task. The masks are created dynamically, depending on the current input. We run experiments on the DeepMind Control Generalization Benchmark, the Distracting Control Suite, and a real UR5 Robotic Arm. Our algorithm improves the agent's focus with useful masks, while its efficient Masker network only adds 0.2% more parameters to the original structure, in contrast to previous work. MaDi consistently achieves generalization results better than or competitive to state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

MIT

[AAMAS 2024] Code for the paper "MaDi: Learning to Mask Distractions for Generalization in Visual Deep RL"

254Shell, PythonDec 3, 20231 years agoMIT
deep-reinforcement-learningneural-networks

Similar Papers

Cite this paper

@article{grooten2023madi,
  title  = {MaDi: Learning to Mask Distractions for Generalization in Visual Deep Reinforcement Learning},
  author = {Bram Grooten and Tristan Tomilin and Gautham Vasan and Matthew E. Taylor and A. Rupam Mahmood and Meng Fang and Mykola Pechenizkiy and Decebal Constantin Mocanu},
  year   = {2023},
  eprint = {2312.15339},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.15339v1}
}

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/2312.15339.svg)](https://codeofpaper.com/paper/2312.15339)

Discussion