cs.LGMar 12, 2026

Automatic Generation of High-Performance RL Environments

Authors: Seth Karten, Rahul Dev Appapogu, Chi Jin

Organizations: 1Princeton University · 2Independent Researcher

Abstract

Translating complex reinforcement learning (RL) environments into high-performance implementations has traditionally required months of specialized engineering. We present a closed-loop methodology that produces equivalent high-performance environments for minimal compute cost. Our method uses a generic prompt template, hierarchical verification (property, interaction, and rollout tests), iterative repair, and cross-backend policy transfer to verify no sim-to-sim gap. We demonstrate three distinct workflows across five environments: (1) Direct translation (no prior performance implementation exists) from Game Boy emulator PyBoy to our EmuRust (via Rust IPC) and from Pokemon Showdown to our PokeJAX (via JAX); (2) Translation verified against existing performance implementations via throughput parity with Puffer Pong, MJX and Brax at matched GPU batch sizes; and (3) New environment creation: TCGJax, the first Pokemon TCG Pocket environment, created from a web-extracted specification. At 200M parameters, the environment overhead drops below 4% of training time. Our closed-loop methodology confirms equivalence for all five environments. TCGJax, synthesized from a private reference absent from public repositories, serves as a contamination control for agent pretraining data concerns.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Octax: Accelerated CHIP-8 Arcade Environments for Reinforcement Learning in JAX

    Oct 2, 2025Waris Radji, Thomas Michel, Hector PiteauRL BenchmarksReinforcement Learning

  2. Envs-FORGE: Frontier-Optimized Reward-Grounded Environment Synthesis for Agent RL

    Aug 14, 2026Xiaojun Wu, Cehao Yang, Honghao Liu +7RL for LLM AgentsReinforcement Learning

  3. EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RL

    May 18, 2026Minrui Xu, Zilin Wang, Mengyi DENG +12Tool-Augmented Language Model AgentsAgentic RL