Octax: Accelerated CHIP-8 Arcade Environments for Reinforcement Learning in JAX
Waris Radji, Thomas Michel, Hector Piteau
TL;DR
Octax addresses the scalability bottleneck in RL environment research by delivering GPU-accelerated CHIP-8 environments in JAX. It combines end-to-end CHIP-8 emulation with vectorized GPU execution, enabling thousands of parallel game instances while preserving faithful mechanics. The authors demonstrate PPO learning across 16 CHIP-8 games and show substantial speedups and scalability compared to CPU-based implementations; they also introduce an LLM-assisted pipeline for automated environment generation, including Level 1–3 Target Shooter tasks with meaningful difficulty gradients. The work offers a practical platform for large-scale, reproducible RL research on classic arcade dynamics and curriculum learning.
Abstract
Reinforcement learning (RL) research requires diverse, challenging environments that are both tractable and scalable. While modern video games may offer rich dynamics, they are computationally expensive and poorly suited for large-scale experimentation due to their CPU-bound execution. We introduce Octax, a high-performance suite of classic arcade game environments implemented in JAX, based on CHIP-8 emulation, a predecessor to Atari, which is widely adopted as a benchmark in RL research. Octax provides the JAX community with a long-awaited end-to-end GPU alternative to the Atari benchmark, offering image-based environments, spanning puzzle, action, and strategy genres, all executable at massive scale on modern GPUs. Our JAX-based implementation achieves orders-of-magnitude speedups over traditional CPU emulators while maintaining perfect fidelity to the original game mechanics. We demonstrate Octax's capabilities by training RL agents across multiple games, showing significant improvements in training speed and scalability compared to existing solutions. The environment's modular design enables researchers to easily extend the suite with new games or generate novel environments using large language models, making it an ideal platform for large-scale RL experimentation.
