Sliding Puzzles Gym: A Scalable Benchmark for State Representation in Visual Reinforcement Learning

Bryan L. M. de Oliveira, Murilo L. da Luz, Bruno Brandão, Luana G. B. Martins, Telma W. de L. Soares +1 more
2/12/2026

No official code found. Best implementation: bryanoliveira/sliding-puzzles-gym (17 stars, MIT, last commit 2025-06-23). 1 more below.

Abstract

Effective visual representation learning is crucial for reinforcement learning (RL) agents to extract task-relevant information from raw sensory inputs and generalize across diverse environments. However, existing RL benchmarks lack the ability to systematically evaluate representation learning capabilities in isolation from other learning challenges. To address this gap, we introduce the Sliding Puzzles Gym (SPGym), a novel benchmark that transforms the classic 8-tile puzzle into a visual RL task with images drawn from arbitrarily large datasets. SPGym's key innovation lies in its ability to precisely control representation learning complexity through adjustable grid sizes and image pools, while maintaining fixed environment dynamics, observation, and action spaces. This design enables researchers to isolate and scale the visual representation challenge independently of other learning components. Through extensive experiments with model-free and model-based RL algorithms, we uncover fundamental limitations in current methods'ability to handle visual diversity. As we increase the pool of possible images, all algorithms exhibit in- and out-of-distribution performance degradation, with sophisticated representation learning techniques often underperforming simpler approaches like data augmentation. These findings highlight critical gaps in visual representation learning for RL and establish SPGym as a valuable tool for driving progress in robust, generalizable decision-making systems.

View on arXivView PDF

Code Implementations(2)

MIT

A scalable benchmark for state representation learning in visual reinforcement learning.

171PythonOct 31, 20231 years agoMIT
benchmarkenvironmentreinforcement-learningrl

Code for reproducing experiments in our ICML 2025 paper "Sliding Puzzles Gym: A Scalable Benchmark for State Representation in Visual Reinforcement Learning"

02Shell, PythonJun 12, 20251 years ago

Similar Papers

Cite this paper

@article{oliveira2026sliding,
  title  = {Sliding Puzzles Gym: A Scalable Benchmark for State Representation in Visual Reinforcement Learning},
  author = {Bryan L. M. de Oliveira and Murilo L. da Luz and Bruno Brandão and Luana G. B. Martins and Telma W. de L. Soares and L. Melo},
  year   = {2026},
  eprint = {2410.14038},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.14038},
  journal = {ICML 2024 2024}
}

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

Discussion