Manuscript Offprint

arXiv:2610.08033

Learning in Dreams, Winning in Reality: A Continuous Dyna Loop for a Ten-Hero MOBA

Jordy Kieto

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

World models are usually judged from the inside: by their prediction loss, by the return a policy earns in imagination, or by how convincing their frames look. We judge one from the outside. We learn a structured, multi-agent world model of a complete ten-hero MOBA (206 units, every hero acting every tick, games of up to 6,000 ticks), train a policy only inside it with 1,400-tick free-running imagined episodes, and measure that policy in the real game against the opponent the game ships with. The real game never provides a gradient. It provides two things: the policy's own games as training data for the world model, and an online evaluation that selects and anchors the policy. With these, run as a continuous asynchronous Dyna loop, the policy wins 70.2% of real games as radiant (421 of 600; 95% CI 66.4–73.7) on seeds never used for any decision, up from 0% for dream training alone and 33.7% before the loop. It wins none as dire, and neither does the shipped opponent when it plays itself. Four findings explain the result. Model exploitation is invisible from inside the dream: every unanchored run collapsed within a few updates while no in-dream metric tracked the collapse. A world model that is accurate on its training corpus is badly wrong on the policy's own games, and Dyna repairs it there, which is worth +9.2 points of real win rate with the policy recipe held fixed. Finally, the policy inherits its world model's fidelity profile mechanic by mechanic: the model represents the macro game and not crowd control, cast timing or lethality, and the policy wins by map-wide pressure with almost no coordinated fighting.

TL;DR. A policy trained only in a learned simulator of a ten-hero MOBA wins most of its real radiant games, but only once real data repairs the simulator where the policy goes and real games keep the policy honest; what it learns, and fails to learn, follows the simulator's fidelity, mechanic by mechanic.

1 Introduction

Learned world models now render playable games [1–3] and train agents with a fraction of the real experience model-free methods need [3–5]. The evidence behind that progress comes in two forms. Either the model is scored on its own terms (likelihood, frame fidelity, human preference), or an agent is trained with it, usually from short imagined rollouts branched off real states while real experience keeps flowing in. Neither form answers the question a practitioner faces when the real environment is slow, expensive or unsafe: if a policy learns by long, free-running imagination in a learned model, what does it actually learn, and does it survive contact with reality?

This report is the third in a line of work on that question. The first asked whether a policy can learn to drive from demonstrations [6]; the second whether a compact learned model can stand in for a simulator under continuous control [7]. Here we close the loop: learn a world, teach an agent inside it, and judge the agent only in the real world.

KIETO, 2026

(a) Reality: the dream-trained policy (radiant, cyan) in a real game vs the shipped net

Figure

(b) The dream under inspection: real game (left) vs world model (right), same actions, 300 ticks open loop

Figure 1: (a) The policy, trained only in the world model, in a real game against the shipped PufferNet, drawn by the game’s own client. (b) The world-model debugger: the real game and the dream start from the same state and receive the same actions of all ten heroes; after 300 ticks of open loop, lines join each predicted hero to its true position. The paper is about the gap between these two panels.

We pick a setting that stresses every weakness of a learned simulator. PufferLib’s MOBA [8] has 206 units (heroes, creep waves, neutral camps, towers), fifteen abilities with cooldowns, mana and crowd control, ten agents acting at every tick, and games that last thousands of ticks. Our policy trains on 1,400-tick imagined episodes. That is the regime model-based RL is designed to avoid: latent-imagination agents typically imagine 15 to 20 steps [5, 9], and model-based policy optimisation keeps rollouts short precisely because model error compounds with horizon [10, 11]. We evaluate the way the question demands: real games, a fixed and strong opponent, seeds never touched by any decision, and confidence intervals.

The story in one paragraph. Dream training alone wins nothing. Long episodes with a win reward and less reward for what the dream overpays (experience) bring the policy to a third of real radiant games. Then every attempt to train further collapses: real win rate drops to near zero within a handful of updates, at any learning rate we tried, while the dream reports steady progress. The cause is the oldest problem of learning in a model [12], exploitation, but in a form we could only see from outside: real kills and deaths fall in lockstep with real wins, because the policy is learning to stop fighting, while nothing measured inside the dream tracks it. Two remedies, applied together, turn the collapse into steady improvement. A continuous Dyna loop [13] retrains the world model on the policy’s newest real games, which repairs the model exactly where the policy goes; and a KL anchor ties the policy to the best real-game policy so far, an anchor that moves only when a candidate wins on fresh seeds. The resulting policy wins 70% of its real radiant games. When we look at how it wins, we find that it plays the game its world model can represent: the macro game of lanes and towers, not the micro game of stuns, timed heals and burst kills.

Findings. Each is measured (Section 5); the last is an inference supported by two independent measurements.

  1. Long free-running imagination can transfer. A policy trained only on 1,400-tick dreams wins 70.2% of real radiant games. A ladder of policies evaluated on the same untouched games attributes the gain to its ingredients: 0%, 1.3%, 5.7%, 33.7%, 53.0%, 70.2%.

  2. Exploitation is invisible from inside the dream. Over the collapse, dream reward, dream experience, dream deaths, policy entropy and update size all fail to track real wins ( ∣r∣≤0.37|r| \leq 0.37); real kills and deaths track them ( r=0.84,0.82r = 0.84, 0.82). Online real-game evaluation is part of the method, not only of the reporting.

  3. A world model is wrong where the policy goes, and Dyna repairs it there. On the policy’s own games, the pre-Dyna model predicts 1.79×1.79 \times the real number of tower falls (it is well calibrated on its corpus) and is

KIETO, 2026

worse than predicting no change for hero and tower health. After Dyna, tower falls are within 16% and hero position error after 200 ticks drops 2.4×. With the policy recipe held fixed, the Dyna-trained model is worth +9.2 points [3.5, 14.7] of real win rate.

  1. The policy inherits its world model’s fidelity profile. Measured mechanic by mechanic on the policy’s games, the model reproduces towers, lanes and aggregate damage, and misses crowd control (17% of real stuns), cast timing and lethality (heroes die 2.4× too rarely). The policy’s real play mirrors this: it takes more towers than the shipped net, but it groups 9% of the time (the net 54%), stuns before 7% of its kills (26%) and trades 3.3 deaths per kill.

Contributions beyond the findings. A world-model debugger that treats the learned simulator as an experimental subject: paired real and imagined timelines on identical actions, a field-by-field decomposition of every unit, an event layer, and a batch mode that turns every view into a metric (Section 4.4). An evaluation protocol for dream-trained policies under repeated online selection, with seed sets whose biases are stated and an untouched holdout for reporting (Section 3). And the system itself, released in full: the world model, the dream-PPO harness with an exact GPU port of the opponent, the asynchronous loop, every policy, log and video, at a whole-project cost of $382 in attributed cloud spend.

What we do not claim. We do not claim the policy beats the shipped net at the game: the net wins every one of its own radiant games, in less than half the time. We make no claim about the dire side, where nothing wins. And we make no sample-efficiency claim: the loop played about 46,000 real games, most of them to choose checkpoints.

References (23)