作者训练可玩的《宝可梦红》扩散世界模型并搭建 System 1/2 游戏智能体框架
I trained a playable diffusion world model of Pokémon Red, plus a game agent harness on the same System 1/2 split as Krafton's PUBG Ally. Can this be ICLR-workshop worthy? [P]
作者训练了一个可玩的《宝可梦红》扩散世界模型,输入最近 4 帧画面和按键即可生成下一帧,模型为 16.7M 参数的 DIAMOND 式 EDM U-Net,输出 72×80 灰度画面,每 10 步用 4 帧真实画面重新同步。
| 1. The world model: the game, dreamed by a neural net A diffusion model (same family as image generators) that learned Pokémon Red frame by frame from recorded play. Give it the last 4 screens and a button press, and it draws the next screen. 16.7M parameters, 72×80 greyscale, DIAMOND-style EDM U-Net. Left is the real emulator, right is the model dreaming the same moment from the same button presses. Every 10 steps it re-syncs on 4 real frames, otherwise it runs on its own. You can walk around inside the dream with a keyboard. 2. The game agent harness: System 1 / System 2 Same split Krafton used for PUBG Ally: a fast reactive layer and a slow thinking layer. - System 2 (planner): reads the game's RAM, picks the next goal (grind to level 14, heal, travel, gym), can look things up (Pokédex, guide search over Bulbapedia), and every decision is checked against the game's memory before it runs. Rules by default, or a local LLM. The GIF is a local LLM running as the planner. 5 of the 6 local LLMs I tested got the badge 10/10; the best one needed a median 7,144.5 button presses vs 8,779.5 for my hand-written rules. Architecture card is the slide before it (or the first comment on the video post). 3. Upscaler + colorizer: making a 72×80 greyscale game watchable The model works on tiny greyscale frames, so I trained two more small nets to watch it: an upsampler (72×80 → 144×160, 0.72M params) and a per-pixel colorizer (1.91M params, 99.27% colour accuracy on held-out frames). 25 minutes of training each. The clip is the first town rebuilt in Blender from the game's map data, with the restored screen. 4. What it cost and what it got 50.0 GPU-hours of training on one RTX 4090 at home. The harness does the grinding, healing and guide lookups, the world-model policies do the walking, and it wins the first gym badge in the real game 30/30 runs. Battles are yet to be solved: the dream ends battles early most of the time, so those stay scripted for now. Code, weights and the full showcase (2-min video, chapters, every number with its source) are linked in the comments. PS: I work in medical agents and full stack, this is just a project to learn (: [link] [留言] |
来源:r/MachineLearning · reddit.com