Deep Reinforcement Learning via Object-Centric Attention

Jannis Blüml, Cedric Derstroff, Bjarne Gregori, Elisabeth Dillies, Quentin Delfosse +1 more
4/3/2025
cs.LGcs.AI

No official code found. Best implementation: VanillaWhey/OCAtariWrappers (3 stars, MIT, last commit 2026-04-21).

Abstract

Deep reinforcement learning agents, trained on raw pixel inputs, often fail to generalize beyond their training environments, relying on spurious correlations and irrelevant background details. To address this issue, object-centric agents have recently emerged. However, they require different representations tailored to the task specifications. Contrary to deep agents, no single object-centric architecture can be applied to any environment. Inspired by principles of cognitive science and Occam's Razor, we introduce Object-Centric Attention via Masking (OCCAM), which selectively preserves task-relevant entities while filtering out irrelevant visual information. Specifically, OCCAM takes advantage of the object-centric inductive bias. Empirical evaluations on Atari benchmarks demonstrate that OCCAM significantly improves robustness to novel perturbations and reduces sample complexity while showing similar or improved performance compared to conventional pixel-based RL. These results suggest that structured abstraction can enhance generalization without requiring explicit symbolic representations or domain-specific object extraction pipelines.

View on arXivView PDF

Code Implementations(1)

MIT

This repository includes different wrappers to be used with OCAtari to generate different object-centric masked input representations.

31Shell, PythonJan 17, 20256 months agoMIT
gymnasiummaskingocatari

Cite this paper

@article{blml2025deep,
  title  = {Deep Reinforcement Learning via Object-Centric Attention},
  author = {Jannis Blüml and Cedric Derstroff and Bjarne Gregori and Elisabeth Dillies and Quentin Delfosse and Kristian Kersting},
  year   = {2025},
  eprint = {2504.03024},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.03024v1}
}

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

Discussion