NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GREMLIN: Generating Random Environments for Meta-Learning with Interacting Networks

Octave GaspardarXiv 2026

TL;DR

To teach an AI "how to learn," researchers usually rely on massive collections of human-designed video games. This paper asks a wilder question: can we skip human game designers entirely and discover reinforcement learning (RL) algorithms inside worlds dreamed up by random, untrained neural networks? By screening random neural networks for interesting dynamics, the author shows that synthetic gibberish worlds can successfully breed a learning rule that transfers to classic Atari games—even if it doesn't beat standard human-crafted algorithms just yet.

What Problem Does This Paper Address?

Normally, humans write the mathematical update rules for reinforcement learning (like Q-learning). In meta-RL (or "rule discovery"), we flip the script: an outer loop trains a neural network "teacher" to invent a better learning rule by watching agents play games.

Recent breakthroughs like DeepMind's DiscoRL discovered state-of-the-art rules, but there’s a catch: it required training across 103 human-crafted games (like Atari) using massive compute (2,048 TPU cores). Relying on human-designed games creates a bottleneck. GREMLIN (Generating Random Environments for Meta-Learning with Interacting Networks) investigates whether randomly wired neural networks can act as an unlimited, ultra-cheap substitute for human-designed training environments.

Methods

GREMLIN keeps DiscoRL’s standard meta-learning framework—where a "teacher" network observes an agent's actions and rewards, outputs update targets, and is meta-trained via gradients—but swaps out the training environments and shrinks the compute budget (running on 8 GPUs with compact vector states instead of pixel images).

Figure 1: GREMLIN workflow.

What’s new is how GREMLIN builds and filters its synthetic worlds:

  • Deliberately Structured Random Worlds: Pure white noise teaches nothing. Each generated game uses frozen, randomly initialized neural networks to govern 32-dimensional state transitions (with built-in "inertia" so states evolve smoothly over 128-step episodes).
  • Two-Part Rewards: Rewards combine an immediate strategy anchor (rewarding agreement with a random frozen policy network) and an outcome score (a separate random network scoring the next state). This creates tension between immediate gratification and better future states.
  • Screening for "Nontriviality": Out of many random candidates, the author keeps the first 48 games where a standard RL algorithm (Double DQN) beats simple, non-learning baselines (like repeating actions). From those 48, 16 diverse games are selected to form the meta-training bank.

Datasets

Because this is RL, "datasets" are interactive environments:

  • Newly Introduced Synthetic Environments: 16 screened, randomly parameterized neural games used for meta-training (discovery), plus 4 held-out neural games from the same screening pool to test in-distribution generalization.
  • Human-Designed Evaluation Benchmarks: To test zero-shot transfer, the frozen rule trains fresh agents on 6 classic benchmarks using state/RAM vectors rather than pixels: Acrobot-v1, LunarLander-v3, and four Atari games (Breakout, Space Invaders, Qbert, and Seaquest).

Key Insights and Ideas

  • Random networks contain real pedagogical signal: It is genuinely surprising that interacting with frozen, randomly wired matrices—with zero human game semantics—teaches a meta-learner enough about credit assignment and control to solve human tasks like landing a lunar module or swinging up an acrobot.
  • Patience matters during evaluation: Agents trained by GREMLIN often look hopeless early on, then suddenly "click" millions of steps later. Measuring too early hides what the discovered rule actually knows.
  • Screening is a double-edged sword: Filtering candidate worlds using Double DQN guarantees the games are learnable, which saves compute, but likely biases the resulting game bank toward problems where DQN naturally shines.

Key Results

After 224.8M meta-training steps (~616 GPU-hours), the GREMLIN teacher was frozen and evaluated by training fresh agents for 4M steps against three baselines: an untrained random teacher (Initial), DeepMind's pre-trained Disco103 rule, and standard DQN.

  • Universal improvement over initialization: GREMLIN outperformed the untrained teacher across all 26 tested games (16 training, 4 held-out synthetic, and 6 human-designed).
  • Closing the gap on synthetic tasks: On generated games, GREMLIN closed 88% to 98% of the performance gap between random play and DQN, and averaged 96% on held-out synthetic games, beating Disco103 on 9 of the 16 training games.
Figure 3: Raw episode returns; each game has its own axis. Small points show individual agents at 4M. The red band is ±2 standard errors of the uniform-random mean across 1,024 episodes.
  • Transfer to human tasks is real, though uneven: As seen above, GREMLIN transferred zero-shot to all 6 human tasks. On LunarLander, mean return jumped from $-184.60$ (Initial) to $47.38$ (GREMLIN), and on Seaquest RAM from $74.88$ to $189.48$. Late-stage learning was dramatic on Acrobot, improving from $-499$ at 500k steps (failing) to $-227.08$ at 4M steps.
  • Conventional RL still leads: Despite clear transfer, standard DQN outscored GREMLIN on all 6 human games and 19 of 20 synthetic games. Disco103 also beat GREMLIN on 5 of 6 human tasks (GREMLIN edged it out on Breakout RAM: $3.48$ vs. $1.55$).

Limitations and Future Work

  • Compute and single-run constraints: Due to budget limits, the paper reports a single meta-training discovery run (224.8M steps vs. DiscoRL's tens of billions) without ablations. We can't yet tell how reliable discovery is, or which design choices (inertia, anchor rewards, DQN screening) did the heavy lifting.
  • Narrow task structure: Every synthetic game had dense step-by-step rewards, 4 actions, and fixed 128-step episodes. Human games feature sparse rewards, up to 18 actions, and thousands of steps—leaving GREMLIN underprepared for deep exploration or long-horizon credit assignment.
  • Next steps: Future work should test larger meta-training budgets to see if performance surpasses DQN or saturates, compare revisiting a fixed bank of 16 games against an endless stream of newly generated ones, and ablate the environment generator against simple procedural tasks.

Summary updated

BibTeX
@misc{gaspard2026gremlin,
  author = {Octave Gaspard},
  title = {{GREMLIN: Generating Random Environments for Meta-Learning with Interacting Networks}},
  year = {2026},
  eprint = {2611.33101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33101},
}
Figure