Manuscript Offprint

arXiv:2610.40276

TaskFrame: Connecting Task-Level Planning with Frame-Level Control for Game Agents

Guangzhi Wang, Junfu Pu, Yiran Wang, Xingyilang Yin, Honghao Chen, Cheng Cheng, Lingen Li, Yinan Zhou, Jiarui Wu, Yinuo Jiang, Hongbo Jin, Xiaodong Cun, Ying Shan

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

Guangzhi Wang1∗^{1*}, Junfu Pu1∗†^{1*\dagger}, Yiran Wang1∗^{1*}, Xingyilang Yin2∗^{2*}, Honghao Chen1^{1}, Cheng Cheng1^{1}, Lingen Li3^{3}, Yinan Zhou4^{4}, Jiarui Wu3^{3}, Yinuo Jiang5^{5}, Hongbo Jin6^{6}, Xiaodong Cun1,7‡^{1,7\ddagger}, Ying Shan1^{1}

1^{1}Tencent ARC Lab, 2^{2}University of Macau, 3^{3}The Chinese University of Hong Kong, 4^{4}City University of Hong Kong, 5^{5}Huazhong University of Science and Technology, 6^{6}Peking University, 7^{7}Great Bay University ∗^{*}Equal contribution., †^{\dagger}Project lead., ‡^{\ddagger}Corresponding author.

Building general game agents requires both high-level task reasoning and low-latency action control in rapidly changing visual environments. These capabilities favor models with substantially different computational profiles, making them difficult to realize within a single model. In this work, we present TaskFrame, a hierarchical planner–controller framework that connects task-level planning with frame-level keyboard-and-mouse control. A vision-language task planner decomposes a high-level goal into an ordered sequence of atomic instructions and is optimized through supervised learning and dependency-aware GRPO. The hidden states of special goal tokens that terminate each atomic instruction provide continuous goal embeddings that are cached and reused across control steps. A causal Transformer controller combines the embedding of the active goal with recent observations to predict discrete keyboard and mouse-button actions and continuous camera motion at every game step. We train the system in three stages: planner training, controller pretraining, and joint alignment. Experiments in Minecraft show that TaskFrame is competitive with general-purpose vision-language models on instruction decomposition, and that in closed-loop evaluation the agent achieves a higher combat success rate than the evaluated baselines.

Date: October 30, 2026

Project page: https://task-frame.github.io/

1 Introduction

Games have long been a demanding testbed for artificial general intelligence (AGI), as successful gameplay requires the integration of perception, reasoning, planning, and decision making into goal-directed behavior. Existing efforts have reached or surpassed expert human performance in board games, Atari, multiplayer poker, and complex real-time strategy games (Silver et al., 2016, 2017; Schrittwieser et al., 2020; OpenAI et al., 2019; Badia et al., 2020; Brown and Sandholm, 2019; Vinyals et al., 2019). More recently, research has shifted toward embodied game agents that follow language instructions and act directly from pixels in open-ended virtual worlds (SIMA Team, 2025; Magne et al., 2026; Yue et al., 2026; Li et al., 2025a; Hafner et al., 2025). Unlike agents specialized for a fixed environment or objective, such systems provide a natural setting for studying whether an agent can understand diverse goals, adapt its behavior to changing visual situations, and execute complex tasks through a general action interface.

Building such an embodied agent remains difficult because task-level reasoning and frame-level control operate at different frequencies. Understanding a scene, grounding an instruction, and determining the correct sequence of subgoals require a large, high-capacity model. In contrast, executing those subgoals requires a lightweight controller that can continuously incorporate the latest frame and emit actions with low latency. This challenge is especially evident in visually dynamic games, where abrupt camera motion and sudden events must be handled through a hybrid action space combining discrete keyboard presses with continuous mouse movement. Running a large reasoning model at every control step is prohibitively expensive, whereas a small reactive policy alone lacks the semantic capacity to reliably interpret and organize complex instructions and visual history.

Figure

Figure 1 Overview of TaskFrame. Once per task, the task planner decomposes a high-level instruction into ordered atomic goals, each terminated by a special goal token whose hidden state is cached as a goal embedding. At every frame, the frame controller takes the embedding of the active goal and the latest visual input and emits native keyboard-and-mouse actions.

Existing work addresses parts of this tension through several strategies. Hierarchical agents use a language model to select skills or produce high-level plans for a goal-conditioned controller (Ahn et al., 2022; Wang et al., 2023c; Yuan et al., 2023; Li et al., 2025b). In physical robotics, dual-system Vision-Language-Action (VLA) models separate a slower semantic module from a faster visuomotor policy (NVIDIA et al., 2025; Figure AI, 2025; Zhang et al., 2024; Bu et al., 2024; Shi et al., 2025), while action chunking amortizes inference by predicting multiple actions at once, with recent methods improving parallel decoding or asynchronous execution (Kim et al., 2025; Black et al., 2025). A practical game agent must connect these mechanisms through an interface that supports both structured planning and responsive control. The high-level model must translate an open-vocabulary goal into a complete and correctly ordered sequence of atomic goals, and the controller must keep incorporating the latest visual observation at every action step.

We present TaskFrame, a hierarchical game agent that connects task-level planning with frame-level control through planner-produced goal representations (Figure 1). Its high-capacity task planner is trained to perform visually grounded instruction decomposition, with dedicated data and a dependency-aware reinforcement learning objective that addresses both step-count and ordering correctness. Each atomic goal it emits is terminated by a special goal token, and the hidden states at these tokens are cached and passed to a lightweight frame controller as continuous goal embeddings. The controller combines the embedding of the active goal with recent frames to emit discrete keyboard and mouse-button actions and continuous camera motion at every game step, so the large planner stays outside the frame-level control loop. We train the system in three stages: the planner is trained for decomposition, the controller is trained to produce actions from each frame, and the two modules are finally aligned jointly.

We train the controller on human gameplay with native keyboard-and-mouse actions recorded directly from players, and the planner on the hierarchical annotations of GameHorizon Suite (Wang et al., 2026), which provide atomic instructions, compositional goals, and dependency relations. Our 9B planner outperforms GPT-4o and Qwen3.5-397B-A17B on instruction decomposition. In closed-loop Minecraft evaluation, TaskFrame reaches a 51% average success rate on combat tasks, the highest among the evaluated models, and ablations examine each component. To summarize, our contributions are as follows:

  • We introduce TaskFrame, a hierarchical game agent in which a vision-language planner decomposes goals once per task and conditions a frame-level keyboard-and-mouse controller, which acts at every game step, through the hidden states of special goal tokens.

  • We propose a dependency-aware GRPO objective for instruction decomposition that rewards necessary precedence relations separately from conventional ordering, derived from pairwise dependency

annotations.

  • We propose a three-stage training recipe that pretrains the controller with a generic goal encoder and then aligns it with the planner through LoRA adapters, and we equip the controller with a hybrid discrete and flow-matching action head. We evaluate the planner on two decomposition benchmarks and the full agent in closed-loop Minecraft control.

References (65)