mlsanityData to 7 Oct 2026

PlayTrain: An Efficient Reinforcement Learning Framework for LLM-Generated Adaptable JavaScript Games

arXiv 2609.09059 ↗First posted 8 Sep 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

While many video-game environments (VGEs) have played crucial roles in advancing reinforcement learning (RL), developing novel VGEs or modifying existing ones to support new features, has been a laborious process requiring extensive hand-coding. Here we present PlayTrain, an RL framework that combines the abilities of large language models (LLMs) to robustly generate JavaScript (JS) games from a minimal human prompt, and an efficient pipeline that can run any JS game in a standard 'gym' environment. Not only are recent LLMs particularly good at writing JS code, but the JS format also allows users to easily play generated VGEs, while PlayTrain enables us to train RL agents on the exact same games. We demonstrate multiple use cases of PlayTrain, including cloning well-known Atari and ProcGen games in simple JS, where PlayTrain trains pixel-based agents end-to-end at over 1M agent-decisions per second on a single GPU node; and creating modified versions thereof (e.g., that support novel test sets, procedural generation logics, or game dynamics). Through PlayTrain, we reimagine RL VGE development: all we need is a single JS file, generated and modified through an LLM. We discuss promising future RL research directions that PlayTrain unlocks.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 30 of its 76 references that are in the map. First posted on arXiv 8 Sep 2026.

Builds on

30 of 76 references.

References · 30

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2019Dota 2 with Large Scale Deep Reinforcement Learningcited by 1,084
  4. 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 866
  5. 2024Genie: Generative Interactive Environmentscited by 706
  6. 2019Leveraging Procedural Generation to Benchmark Reinforcement Learningcited by 478
  7. 2021Brax -- A Differentiable Physics Engine for Large Scale Rigid Body Simulationcited by 375
  8. 2018Quantifying Generalization in Reinforcement Learningcited by 345
  9. 2020Emergent Complexity and Zero-shot Transfer via Unsupervised Environment Designcited by 260
  10. 2020The NetHack Learning Environmentcited by 196
  11. 2020Prioritized Level Replaycited by 190
  12. 2019Paired Open-Ended Trailblazer (POET): Endlessly Generating Increasingly Complex and Diverse Learning Environments and Their Solutionscited by 182
18 more
  1. 2022Evolving Curricula with Regret-Based Environment Designcited by 166
  2. 2021A Survey of Zero-shot Generalisation in Deep Reinforcement Learningcited by 164
  3. 2025Measuring AI Ability to Complete Long Software Taskscited by 142
  4. 2020Sample Factory: Egocentric 3D Control from Pixels at 100000 FPS with Asynchronous Reinforcement Learningcited by 84
  5. 2018Illuminating Generalization in Deep Reinforcement Learning through Procedural Level Generationcited by 80
  6. 2024Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learningcited by 80
  7. 2024OMNI-EPIC: Open-endedness via Models of human Notions of Interestingness with Environments Programmed in Codecited by 67
  8. 2022EnvPool: A Highly Parallel Reinforcement Learning Environment Execution Enginecited by 58
  9. 2023Jumanji: a Diverse Suite of Scalable Reinforcement Learning Environments in JAXcited by 52
  10. 2019TorchBeast: A PyTorch Platform for Distributed RLcited by 41
  11. 2024EnvGen: Generating and Adapting Environments via LLMs for Training Embodied Agentscited by 41
  12. 2020Griddly: A platform for AI research in gamescited by 31
  13. 2024PufferLib: Making Reinforcement Learning Libraries and Environments Play Nicecited by 22
  14. 2022Abstraction for Deep Reinforcement Learningcited by 19
  15. 2026AI Gamestore: Scalable, Open-Ended Evaluation of Machine General Intelligence with Human Gamescited by 10
  16. 2025Octax: Accelerated CHIP-8 Arcade Environments for Reinforcement Learning in JAXcited by 5
  17. 2025PuzzleJAX: A Benchmark for Reasoning and Learningcited by 4
  18. 2026Dreaming in Code for Curriculum Learning in Open-Ended Worldscited by 2

Built on by

Not cited yet.