Rust in Everything
← Papers

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 et al.

2026-11-16▲ 93arXiv 2611.18397v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

Gamer is a generalist vision-language-action game agent trained with continued pre-training, sparse-thinking SFT, memory-linked TA-GRPO, and a Streaming-vLLM serving stack for real-time keyboard-mouse control in 2D and 3D games.

Problem

Complex modern games require long-horizon perception, memory, planning, and low-level keyboard-mouse control under partial observability and delayed feedback. Prior game agents often rely on privileged internal states, tailored action spaces, or game APIs, which generalize poorly beyond narrow domains. Real-time interaction adds an inference-latency bottleneck that can corrupt control and online RL rollouts, while long interactions challenge finite context windows, accumulated errors, and sparse rewards.

Method

Gamer maps raw screen observations and device events to a unified serialized action of accumulated mouse movement plus six keyboard-mouse blocks at a 30 Hz action rate. CPT learns cross-game control from tens of thousands of hours of trajectories using random key remapping and repeat-aware loss decay to reduce input-frequency and repetition biases. SFT conditions the policy on a control specification, task instruction at operation/subgoal/task levels, long-term memory, and recent history, and supervises sparse current reasoning or memory summaries before actions. TA-GRPO divides long rollouts into memory-linked segments, scores them with environment-verifiable outcomes, assigns group-relative and temporally weighted advantages, and updates reasoning and action tokens with a clipped token-level objective. Streaming-vLLM provides stateful KV-cache reuse, compaction-aware RoPE refresh, architecture-aware execution, FSM-guided speculative decoding with BF16 verification, and early action dispatch for concurrent real-time rollouts.

Results

  • CPT checkpoints exceed the strongest listed general-purpose baseline in average real-time cross-game score. §8.2.4
  • On two side quests, SFT improves overall accuracy and TA-GRPO further improves it to 80.0% and 83.6%. §8.3
  • Across seven minigame types, macro-average success rises from 3.2% for the base model to 49.7% after RL, and Navigation Compass rises from 50.0% to 95.8%. §8.4
  • Cumulative Streaming-vLLM optimizations reduce end-to-end latency from about 1.31 s to 65 ms, a 20.1x speedup. §8.6.1
  • Real-time Streaming-vLLM rollouts show earlier and higher reward improvement than 0.6-FPS standard vLLM across eight navigation tasks, with low-FPS runs showing later reward collapse. §8.5
  • The composition-aware scaling relation fits within measured mixtures, while distant unseen games show a near-zero fitted data exponent and weak within-mixture explanatory power. §8.2.3

Limitations

  • Evaluation covers a selected set of environments and task structures; the paper says extending joint post-training and systematic evaluation to broader interactive settings remains future work. (§10)
  • The two evaluated side quests and 40 scored minigame tasks are held out from training but are within HSR, so the split tests held-out tasks in a familiar game, not zero-shot transfer to a game unseen during training. (§D.1)
  • Serving costs on the evaluated GPU platforms remain a barrier to wider deployment; model compression and further runtime optimizations are future directions for resource-constrained settings. (§10)
  • Reasoning capability may remain a bottleneck in environments requiring deeper deliberation; the paper proposes hierarchical System 2/System 1 agents as a future direction, not a demonstrated result. (§10)

Key points

  • Observations are sampled at 5 Hz, each interval has six keyboard-mouse blocks lasting about 33 ms for a 30 Hz action rate, and actions are serialized in the language model vocabulary without an extra output head. §2.1
  • CPT uses random key remapping to reduce reliance on key identity and repeat-aware loss decay to reweight temporally persistent actions. §2.2
  • SFT conditions on control specification, instruction, memory, and history, instantiates instructions as local operations, intermediate subgoals, and complete tasks, and lets reasoning be empty, current-decision reasoning, or a memory summary. §3.1
  • Before old history leaves the context, the policy generates a memory summary; the update keeps recent interactions and carries task progress forward, and memory generation remains part of a normal action step. §3.2
  • TA-GRPO uses verified segment outcomes for group-relative advantages, requires no learned process reward model or value critic, and redistributes segment advantage over steps with normalized later-step weights. §4.2
  • The FSM drafter proposes structural tokens such as think/action boundaries and formatting, while BF16 target-model verification accepts only matching prefixes and the server streams the first verified action blocks early. §5.3
  • The annotation pipeline yields about 1.2M timestamp-aligned Think annotations and about 63K task segments with a median duration of about 40 seconds across seven activity labels. §6.2
  • The RL sandbox uses game-native rule verifiers, GM-controlled initialization, 32 parallel Windows game environments, a sharded Streaming-vLLM pool backed by 64 NVIDIA H200 GPUs, and 128 rollouts per iteration in groups of eight. §7.3

Mind map

Gamer
Problem setting
Long-horizon 3D and 2D games
Screen to keyboard mouse interface
Real-time latency and sparse rewards
Training stages
CPT cross-game control
Unified action serialization
Key remapping and repeat decay
SFT sparse reasoning and memory
Three instruction levels
Summary-based memory
TA-GRPO online RL
Memory-linked rollouts
Verifiable rewards and temporal credit
Data pipeline
Trajectory filtering and alignment
LLM-assisted Think and task segments
Memory annotation
Three-level instruction construction
Real-time serving
Streaming-vLLM
Stateful KV reuse and RoPE refresh
FSM decoding and BF16 verification
Concurrent game environments
Evaluation
CPT cross-game benchmarks
HSR side quests
Seven minigame types
Streaming latency and RL rollouts
Limitations
Selected environments
Serving cost
Reasoning bottleneck
Held-out HSR not unseen game