Manuscript Offprint

arXiv:2610.10332

Learning to Act with Task Progress: Distilling Small Agents from Compact Teacher Supervision

Wenxi Gan

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

Abstract

Learning from large-model demonstrations offers a way to train small agents that can complete recurring tasks without calling a large model at every step. A central design choice is what to retain from teacher trajectories that contain reasoning, actions, and information about task progress. We introduce Task-Progress Distillation (TPD), an offline approach that pairs each demonstrated action with a short label describing the current task stage. The student learns these compact targets and selects actions by jointly scoring admissible stage-action pairs, which a deterministic harness executes in the environment. On ALFWorld, a 1.7B student trained with 404 demonstrations achieves 72.4% mean unseen task success with either TPD or action-only supervision, compared with 48.3% for a reasoning-trained student using constrained action selection. Explicit stages provide an additional benefit at 200 demonstrations, improving success from 48.0% to 67.7% over action-only supervision. With more demonstrations, the action-only student closes the gap, and both approaches reach 76.9% at 808 demonstrations. Shared-history analyses link part of TPD's local advantage to better decisions when moving between subgoals, particularly from object acquisition to processing. These results show that compact supervision can train effective small task agents, while explicit task progress provides additional guidance at an intermediate demonstration budget.

1 Introduction

For recurring tasks, a large model can provide demonstrations from which a smaller model learns to act on its own. The aim is for the student to complete new instances without asking the teacher to choose each action. The teacher trajectories in our setting contain reasoning, actions, and feedback that records how the task progresses. With limited demonstrations, the choice of what the student should learn becomes central.

Action imitation already provides a useful foundation. LM-BUTLER shows that action modeling can train effective ALFWorld agents, while FireAct and AgentTuning learn from language-model trajectories and broader agent data Micheli and Fleuret (2021); Chen et al. (2023); Zeng et al. (2024). Other methods separate reasoning and action losses or adjust token updates to change how the student learns from each trajectory Liu et al. (2025, 2026). Online learning offers another source of improvement: the student can collect experience beyond the initial demonstrations Feng et al. (2025); Peng et al. (2026). We keep the student's demonstrations fixed and compare which training targets best support task execution.

Our approach combines compact supervision with constrained action selection. We train the student to predict the next executable action from the task instruction and action–feedback history. At execution time, the student scores the actions allowed by the environment and selects one to execute. The action-only variant (C) uses this action as its entire decision target. Task-Progress Distillation (TPD,

Preprint.

arm B) adds a short label for the current task stage: finding the target, processing it, or delivering it. TPD scores stage–action pairs; a deterministic execution harness sends the selected action to the environment and records its feedback.

Stage labels address a common difficulty in multi-step tasks: moving from one subgoal to the next. Suppose the goal is to heat a cup and place it on a table. Once the cup has been acquired, the next subgoal is to take it to the microwave. An agent can instead keep searching, choosing actions that are allowed but no longer serve the immediate subgoal. Labeling this decision as processing tells the student which subgoal the next action should serve.

Both compact variants learn to complete tasks from a few hundred demonstrations. On ALFWorld, a Qwen3-1.7B student reaches 72.4% mean unseen success from 404 demonstrations with either action-only supervision or TPD; both reach 76.9% with 808 demonstrations. A student trained on reasoning and actions reaches 5.0% at the 404-demonstration budget with free generation, and 48.3% when the same checkpoints use constrained action selection. Constrained selection recovers much of the reasoning-trained student's performance, but both compact variants remain ahead under their respective training and execution configurations.

The additional benefit of task stages depends on the demonstration budget. With 200 demonstrations, TPD reaches 67.7% unseen success compared with 48.0% for action-only supervision, a gain of 19.7 percentage points. The action-only student catches up in mean unseen success at 404 and 808 demonstrations. We therefore examine both when stages help and which decisions change when the student uses them.

We investigate this question by comparing trajectories and then testing decisions under the same interaction history. In processing tasks, one recurring difference appears after the correct object has been acquired: TPD more often starts the required operation. On selected seen histories, fixing a stage that matches the task's progress more often leads to an action that advances the task than fixing a mismatched stage. This sensitivity overlaps with some decisions where TPD makes progress and C does not, mainly in a few heating tasks and with results that depend on the scoring rule. Across three training seeds on seen tasks, shuffling stage labels across histories also lowers success relative to aligned labels. Together, the results suggest that task-progress labels help the student learn some transitions between subgoals; with more action demonstrations, C increasingly makes similar choices.

Our contributions are:

• A compact distillation pipeline that combines action-focused supervision, task-stage labels, and admissible-action scoring to train a small agent from fixed teacher demonstrations.

• A comparison of reasoning, action-only, and task-progress configurations across demonstration budgets, showing strong compact-agent performance and an additional stage benefit at 200 demonstrations.

• A behavioral analysis linking part of TPD’s local advantage to stage-sensitive task transitions, with smaller B/C decision differences as demonstrations increase.

References (20)