Gamer: A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agent
Run Luo, Kuan Zhang, Qi Deng, Yukun Chen, Zhihao Yang, Yufei Zhang, Renrong Hu, Yi Zhang and 19 others
miHoYo
Published November 13, 2026 · on the feed November 16, 2026 · ▲ 140 · arXiv 2611.18397
The abstract
We introduce Gamer, a generalist agent framework built for long-horizon tasks in complex interactive environments. Its end-to-end architecture combines perception, memory management, and multi-step reasoning. A shared training and deployment pipeline supports interaction with both conventional 2D graphical interfaces and complex 3D simulated worlds. We first continue pre-training on a dataset constructed from tens of thousands of hours of device-level keyboard and mouse interaction. These trajectories span simulated games and embodied environments, allowing the model to learn environmental dynamics across both physical and virtual domains. Sparse-thinking instruction tuning then substantially reduces redundant computation while preserving the reasoning needed for complex decisions. We train the policy for long-horizon interaction with a stable multi-turn reinforcement learning method that addresses finite context windows, accumulated rollout errors, and sparse rewards. For real-time interaction, a cloud-edge inference engine serves numerous simulated game environments concurrently, supports unbounded-context execution, and keeps online inference latency low. Across multiple challenging 3D open-world games, Gamer demonstrates solid generalization and operational efficiency comparable to skilled players. It also achieves competitive results on a range of conventional 2D game benchmarks. These results suggest that even repetitive keyboard and mouse trajectories can support substantial gains from scaling data and learning algorithms. Training on these trajectories helps Gamer learn complex skills more steadily in environments with both physical and digital properties. This approach offers a path toward generalist agents that can interact across digital and physical worlds.
The Brief
2:34A short podcast summary of the paper. Written and voiced by AI.
Transcript
Gamer. A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agent. By Run Luo and twenty-six others, from miHoYo. Published on the thirteenth of November.
Long-horizon tasks in complex interactive environments ask a lot of a single agent. It has to perceive a scene, manage memory across a long interaction, reason over many steps, and keep up in real time. The environments also differ in kind. Some are conventional 2D graphical interfaces, others are complex 3D simulated worlds. The target here is one generalist agent that can handle both, across simulated games and embodied environments alike.
Gamer is a generalist agent framework with an end-to-end architecture that combines perception, memory management and multi-step reasoning. One training and deployment pipeline is shared across 2D interfaces and 3D worlds. Its central bet is on data of a very plain kind: device-level keyboard and mouse interaction. The model continues pre-training on a dataset constructed from tens of thousands of hours of it. Those trajectories span simulated games and embodied environments, so the model can learn environmental dynamics across both physical and virtual domains.
Training then proceeds in stages. Sparse-thinking instruction tuning substantially reduces redundant computation, while preserving the reasoning needed for complex decisions. The policy is then trained for long-horizon interaction with a stable multi-turn reinforcement learning method. That method is aimed at three specific problems: finite context windows, rollout errors that accumulate, and rewards that are sparse.
Deployment has its own piece. For real-time interaction, a cloud-edge inference engine serves numerous simulated game environments concurrently. It supports execution with unbounded context, and it keeps online inference latency low.
Across multiple challenging 3D open-world games, Gamer demonstrates solid generalization, along with operational efficiency comparable to skilled players. It also achieves competitive results on a range of conventional 2D game benchmarks. The comparison point for the 3D results is human skill rather than another system: the claim is that the agent operates about as efficiently as a skilled player does.
The authors draw a lesson about data. Even repetitive keyboard and mouse trajectories, they suggest, can support substantial gains when data and learning algorithms are scaled. Training on those trajectories helps Gamer learn complex skills more steadily in environments that have both physical and digital properties. The input is about the humblest an agent can be given, the same key presses and mouse movements a person makes at a device, and the argument is that it is enough to build on. The authors offer the approach as a path toward generalist agents that can interact across digital and physical worlds.
The deep dive
6:43A longer episode, written from the whole paper. Written and voiced by AI.
Transcript
Gamer. A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agent. By Run Luo and twenty-six others, from miHoYo. Published on the thirteenth of November. This is the long version: the whole paper rather than the abstract.
Earlier game agents matched or beat humans on Atari, Minecraft and StarCraft, but typically through privileged internal state, tailored action spaces or dedicated interfaces. Modern commercial games rarely expose any of that. The paper's position is that a true generalist should play the way a person does: look at raw screen pixels and press keys and move a mouse. That raises a second problem the paper treats as central rather than incidental. The game does not wait. A conventional inference engine is slow enough that actions land after the observed state has already changed, and over a long trajectory those delays turn into control errors and early failures. The authors argue that this also damages online reinforcement learning, so real-time inference is part of learning, not just a deployment detail.
Start with the interface, because everything else is built on it. The model sees a screen frame every two hundred milliseconds. Each of those intervals is cut into six blocks of about thirty-three milliseconds, which gives a control rate of thirty hertz. One action is the accumulated mouse movement for the interval plus six sets of pressed keys and buttons. A key present in consecutive blocks stays held; a key that disappears is released. The action is written as ordinary tokens from the language model's own vocabulary, with no extra output head. Alongside the frames, the input carries a control specification: a list pairing each key with what it does in this particular game. The policy is Gamer, trained from Qwen3-VL-8B in three stages: continued pre-training on gameplay, supervised fine-tuning on instructions, then online reinforcement learning, with the action format unchanged throughout.
Continued pre-training uses two corrections for biases in gameplay data. The first is random key remapping. For each trajectory, rebindable keys are shuffled by a random one-to-one mapping, applied consistently to the specification, the history and the targets, so the model cannot lean on which keys happen to be frequent. The second is repeat-aware loss decay. More than eighty-five percent of action steps simply repeat the previous one, because players hold keys to walk or wait. A new action gets full weight, and each further repetition counts for nine tenths of the one before, which keeps duration in the data while shifting supervision toward stopping, turning and interacting.
Fine-tuning adds sparse thinking. At each step the model either acts directly, writes a short piece of reasoning for the current decision, or writes a memory summary, and it learns which, inside the same generation, with no separate classifier. Before older interactions leave the context, the model summarises them; when the memory budget fills, the oldest summaries go first. The annotations came from GPT-5.6-Luna: roughly one point two million decision annotations and two hundred and twenty-three thousand memory annotations, built into instructions at three levels, from one or two decisions up to six or more. Reinforcement learning then reuses those memory boundaries. A long rollout is split into segments at each compaction, and segments at the same stage across a group of rollouts are compared on outcomes the game engine verifies, without restoring identical states. Within a segment, later steps get larger weights that average to one. The paper is explicit that this is a temporal prior, not a claim that later actions matter more. Serving runs on Streaming-vLLM, which keeps cached state across turns, drafts predictable format tokens for the model to verify, and sends the first key block early. On the measured H200 setup, latency fell from about one point three one seconds to sixty-five milliseconds.
The comparison that best tests the thesis is real time against a paused game. On the MCU benchmark, GPT-5.6-Sol scores eight point seven with the game running, seventy-three point three points below its paused score. Across four public benchmarks the best listed general model averages seventeen point six in real time. The two pre-trained Gamer policies average twenty-nine point five and thirty-one point five, and the faster mixture-of-experts one actually scores three point four points higher in real time than paused.
On held-out side quests in Honkai: Star Rail, each stage adds. On Opportunity Makes the Thief, accuracy goes from zero for the base model to thirty-four point four after pre-training, seventy-two point two after fine-tuning and eighty after reinforcement learning. Bestial Ferocity ends at eighty-three point six. Across seven minigame types, the macro average climbs from three point two to forty-nine point seven. A direct ablation trains reinforcement learning on eight navigation tasks with real-time serving against a slow setting at zero point six frames per second. Real time learns earlier and higher, and several slow runs collapse late in training.
There is a limitations section, and it names three things: a selected set of environments and tasks, serving costs that still need real GPUs, and reasoning that may remain a bottleneck where deeper deliberation is needed. It suggests pairing a larger deliberative model with a fast reactive one. The evidence has further edges. Quest scores measure verified milestones, not uninterrupted end-to-end completion, and each task was run three times. The quests are new tasks inside a game the model trained on, not transfer to an unseen game. Reinforcement learning is not uniformly positive: puzzle success on Bestial Ferocity fell from twenty-two point two to eleven point one, and Janus's Maze fell from fifty-two point four to twenty-three point eight. Rewards depend on an instrumented game engine with game-master commands, kept away from the deployed policy. And the scaling study reports a negative control: on distant unseen games, more gameplay data stopped helping.
The idea to carry away is that, for an agent in a world that keeps moving, speed is part of the learning signal. A paused benchmark flatters slow models, and slow rollouts feed reinforcement learning stale, biased experience. Gamer's answer is one plain interface of pixels in and keys out, thinking only when a decision calls for it, memory written by the policy itself, and an inference engine built so the action arrives while it still matters.
Paper Quest · 7 chapters · about 41 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Games are hard, fast and closed. Here is the wall.
You want one agent that can play many modern games, 2D and 3D, through long quests that last hours. Earlier game agents matched humans, but only with privileged internal state, tailored action spaces or dedicated APIs.
The road ahead
- 1 · The problem ~7 min Earlier game agents only matched humans with special access to a game's insides, and modern games keep moving while a slow agent thinks.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min Gamer plays like a person: screen in, keyboard and mouse out, trained on hours of such play, thinking only when it matters, and served fast.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Four stages in order: pre-train on play, tune sparse reasoning and memory, refine long play with multi-turn RL, and serve it in real time.
- 6 · The experiment ~6 min You’ll guess: Across challenging 3D open-world games, how did Gamer's operational efficiency compare with human players?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.