TL;DR
OCAtari transforms the Arcade Learning Environment (ALE) into an object-centric reinforcement learning benchmark by exposing structured, object-level state representations (positions, sizes, categories) for classic Atari 2600 games. Alongside the environment, the authors release ODA (Object-centric Dataset for Atari) to benchmark unsupervised object discovery, and demonstrate that agents trained directly on lightweight object states match deep pixel-based methods while requiring far less computation.
What Problem Does This Paper Address?
Standard deep reinforcement learning (RL) agents learn policies directly from raw pixel grids. While successful, this black-box perception lacks the compositional, object-level reasoning natural to human cognition: agents struggle to generalize, cannot provide interpretable explanations for errors, and require millions of frames to learn basic scene rules.
While object-centric RL aims to solve these issues, the field has lacked standardized, accessible benchmarks. Existing object-centric platforms (like AI2-THOR or iGibson) focus heavily on complex 3D robotics, whereas 2D benchmarks like ALE lack reliable, ground-truth object annotations. Prior attempts like AtariARI only expose raw RAM byte locations, leaving coordinates and semantic states unparsed or incomplete.
Methods
OCAtari acts as a drop-in wrapper around Gymnasium/ALE, providing two complementary object extraction pipelines:
- Vision Extraction Method (VEM): Extracts visible objects from rendered frames using calibrated color-filtering masks and positional heuristics. VEM acts as a ground truth for strictly visible elements, though it cannot resolve occluded or blinking objects.
- RAM Extraction Method (REM): Reads and decodes the 128 bytes of Atari console RAM directly. By reverse-engineering game logic, REM derives semantic object coordinates, types, orientations, and bounding boxes $(x, y, w, h)$ from internal memory anchors and offsets. This enables tracking across blinking frames or off-screen states and runs without computer vision overhead.
- RAM Altering: Because OCAtari decodes RAM semantics, users can manipulate state variables on the fly to generate novel gameplay dynamics without recompiling ROMs (e.g., accelerating ball velocity in "Hard-fire Pong" or removing shields in Space Invaders).
Raw Atari Frame ──► VEM (Vision Filter) ──┐
├─► Interpretable Objects: (x, y, w, h, class)
Atari 128B RAM ──► REM (Memory Logic) ──┘
Datasets
- ODA (Object-centric Dataset for Atari): A sequential dataset generated across supported games combining frames collected from random agents (30%) and trained DQN agents (70%). Each sample consists of a $210 \times 160$ RGB image aligned with explicit object lists (bounding boxes and labels from both REM and VEM), isolated HUD elements, and RAM dumps.
- Coverage: At release, VEM supports 39 games and REM supports 38 games (substantially expanding beyond AtariARI’s 16 fully annotated games).
Key Insights and Ideas
- RAM decoding beats visual parsing for tracking: Many Atari games manage sprite limits by flickering objects across alternating frames. While pure vision models register false negatives during flicker, REM queries internal game state directly, providing stable object tracklets.
- Semantic RAM mapping vs. raw addresses: Prior tools like AtariARI only pinpoint which byte stores an attribute. OCAtari demonstrates that raw bytes are insufficient—games frequently multiplex orientation, class, and sub-pixel offsets into packed bitmasks that must be decoded to yield real screen coordinates.
- Drastic speedup for symbolic RL: Querying decoded RAM states bypasses neural visual backbones and image processing entirely, speeding up environment steps by roughly $50\times$ compared to vision-based object extraction.
Key Results
- Extraction Quality: Across tested games, REM achieves an average detection F1-score of 90.4% (Random agent frames) and 87.8% (DQN frames) when evaluated against visual baselines.
- Comparison to Neural Object Discoverers: REM delivers an average 93.9% F1-score across 7 benchmark games, drastically outperforming state-of-the-art unsupervised object-centric representation models like SPACE (31.5%) and SPOC (77.3%).
- Sample Efficiency in RL: A lightweight Proximal Policy Optimization (PPO) agent using a compact 2-layer MLP ($2 \times 64$) fed only historical $(x, y)$ object coordinates learned games like Pong, Asterix, Boxing, Freeway, and Tennis, matching the score profiles of full convolutional pixel-based PPO baselines.
Limitations and Future Work
- Hardcoded Background Geometry: Fixed environmental layouts (such as maze walls in Ms. Pac-Man or paddle bounds in Pong) are hardcoded into ROM game code rather than stored in dynamic RAM, preventing REM from extracting them. Combining VEM background extraction with REM object states remains future work.
- Pre-allocated / Dormant Entities: Games like Demon Attack or Yars' Revenge maintain pre-spawned or hidden objects in RAM before they visually appear, leading to false-positive detections unless specific "active" bit flags are located.
- Exploration Utility: The authors note that extracted object positions can naturally support programmatic reward shaping (e.g., rewarding paddle-to-ball proximity) and neuro-symbolic policy extraction.
Summary updated