miHoYo's Gamer agent plays 3D games from screen pixels with keyboard and mouse
A 2026 preprint trains a vision-language model in three stages to play Honkai: Star Rail in real time, and builds an inference engine fast enough to keep up.

Commercial video games make an awkward test for AI. They rarely give an agent access to their internal state or a programming interface, so an agent has to play the way a person does, watching the screen and pressing keys, sometimes for hours. According to the paper, earlier agents that matched human players in Atari, Minecraft or StarCraft typically relied on privileged game state, purpose-built action sets or dedicated interfaces. A preprint posted to arXiv in 2026, not yet peer reviewed, describes Gamer, an agent from miHoYo built to work under the harder conditions. Gamer is a vision-language-action (VLA) model, meaning it takes in images and text and outputs actions.
The authors put every game behind the same interface. The agent sees a screenshot every 200 milliseconds. For each interval it outputs an accumulated mouse movement and six keyboard and button blocks of about 33 milliseconds each, which gives a 30 Hz action rate. The actions are written as ordinary text tokens, with no separate output component, and the prompt carries each game's key bindings. The final model starts from Qwen3-VL-8B, an open vision-language model.
Training has three stages. The first is continued pre-training, which means training the existing model further on recordings of play. In each recording the rebindable keys are randomly reassigned, so the model learns what an action does rather than which key is common. The authors also report that more than 85% of action steps repeat the previous one, so they discount runs of repeated inputs to keep held-down keys from dominating training. The second stage is supervised fine-tuning on labelled examples. It conditions the policy on instructions at three levels, from single operations to whole task stages. The model writes out reasoning only at key decision points, an approach the authors call sparse thinking. Before old history falls out of its context window, it writes a short memory summary. The third stage is reinforcement learning with a method the authors call TA-GRPO. It compares several attempts at the same task against the group average, splits long attempts at the memory-summary points, and gives more credit to steps closer to an outcome checked by the game engine. It uses no learned reward model.
To keep up with a running game, the team built a serving engine, Streaming-vLLM. Between turns it reuses stored intermediate computations rather than recomputing them. A simple rule-based predictor guesses formatting tokens, which the model then confirms. The engine also sends the first action block to the game before the rest of the action has been generated.
On held-out side quests in Honkai: Star Rail, the authors report gains at each stage. On one quest, scores went from 0.0% for the base model to 34.4% after pre-training, 72.2% after fine-tuning and 80.0% after reinforcement learning. On a second, the scores were 13.9%, 47.9%, 69.1% and 83.6%. A suite of seven minigame types rose from a 3.2% average to 49.7%. These scores measure verified progress on milestones, not whole quests completed without interruption. On public benchmarks, general-purpose models lost much of their score when the game kept running while they thought. GPT-5.6-Sol averaged 17.6, down 34.5 points from paused play, and Claude-Opus-5.0 averaged 17.3, down 26.4. The version of that table available to braintankAI breaks off before Gamer's own rows. On streaming-video benchmarks with the same Qwen3-VL-8B backbone, the engine roughly matched a rival method called DSCache on StreamingBench, scoring 83.29 against 83.21. Its latency was 0.08 seconds against 0.53, and it used 22 GB of memory against 21.
The results come with caveats. The authors note that the quest tests set new tasks inside a game the model was trained on, so they do not measure transfer to an unfamiliar game. The reward checkers rely on an instrumented version of the game engine. The fine-tuning annotations were written by GPT-5.6-Luna, which is also one of the comparison models. A companion scaling study of 120 training setups found that the gains from extra data depended on its composition, and that extra gameplay data stopped helping on distant, unseen games. The open release covers the serving engine and the scaling-study checkpoints. The authors say serving costs need to come down for wider deployment, and warn that fast play does not guarantee strategic problem solving.
TA-GRPO's way of assigning credit within long attempts tackles the same problem as IQuest's method for tool-using agents, which scores each complete turn and then shares that score among its tokens (earlier story).
- Paper
- Gamer: A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agent
- Authors
- Run Luo, Kuan Zhang, Qi Deng, Yukun Chen, Zhihao Yang, Yufei Zhang et al.
- Venue
- arXiv preprint — not yet peer reviewed · 13 November 2026
- Link
- arxiv.org/abs/2611.18397
- Index
- stacks.braintank.ai
- Code
- github.com/RainBowLuoCS/Gamer
- Cite


