arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.05303

ASCENT: Online Test-Time Training of Long-Horizon Agents via Self-Distillation of Verified Experience

Haodong Lu, Dong Gong

Haodong Lu, Dong Gong

University of New South Wales (UNSW Sydney)

haodong.lu@unsw.edu.au, dong.gong@unsw.edu.au

A large language model (LLM) agent solves long-horizon tasks through many reasoning-action turns, with one verification signal at termination. Deployed agents face streams of related tasks, making their own trajectories a natural resource for improvement. In-context adaptation agents store reflections, memories, or skills as text at the harness level, so reuse depends on retrieving the right experience and on a frozen policy executing it. We study Online Agentic Test-Time Training (OaTTT), which trains the LLM's weights on the agent's own execution trajectories during deployment. The agent executes each task once in one pass over the task stream, and the executed trajectory with its verification result is the only and immediate learning signal for weight updates that persist across tasks. Directly imitating or reinforcing the generated tokens of this single attempt destabilizes the policy. We introduce ASCENT (Agentic Self-distillation for Cross-task EvolutionN at Test-time), which instead self-distills verified experience. A stable version of the LLM, its frozen initial copy, receives the verifier-accepted trajectory as privileged information and predicts next-token distributions along it with this hindsight. Distilling them into persistent LoRA fast weights updates the agent for later tasks, without an external reference solution or stronger teacher. By further removing invalid-action turns from the trajectories, ASCENT can distill enhanced privileged experience for more effective and efficient execution. We characterize the population target of this distillation and the limits of sparse outcome selection. Across ALFWorld, WebShop, and AppWorld on varied model scales, ASCENT improves task success and interaction efficiency as experience accumulates, outperforms the compared online adaptation methods, and transfers to held-out scenes, showing that a deployed agent can consolidate its own verified experience into its policy without a separate training phase or memory retrieval at inference.

Project Page: Artificer-AI-Lab/ASCENT

1 Introduction

A large language model (LLM) agent interacts with its environment to accomplish a task, iteratively reasoning about the current state and taking actions such as tool calls [51]. The LLM serves as the core of the agent's decision policy. Agent tasks are often long-horizon, requiring multi-turn interactions with complex environments. Each completed interaction forms one episode, a trajectory of reasoning, actions, and observations.

Deployed agents often operate in persistent, long-running roles, encountering a continuous stream of tasks and interactions with users and environments. Because real-world tasks are complex and diverse, an agent built on a frozen LLM may not handle every situation it faces. The trajectories the agent gathers in the task stream are a natural resource for improving the agent at test time, as experience from earlier tasks can enhance performance on related tasks encountered later.

Relying on the in-context learning capability of LLMs, one line of work stores reflections on completed episodes, memories, and reusable skills as text at the harness level and reuses them in later interactions [32, 59]. Online variants accumulate this experience across tasks during deployment [26, 57, 10, 58]. Such in-context adaptation requires no parameter updates and changes only the model's input, keeping the model itself frozen. Its gains can therefore be limited by how well relevant experience or skill is retrieved and how reliably the frozen policy executes it over a long interaction. Efforts are thus also taken to improve the core LLM for the agentic task process, via parametric adaptation on model weights. Some test-time training (TTT) methods adapt the LLM's parameters within a single episode and reset them afterward, training on self-generated supervision (aTTT [45]) or QA pairs from the episode's accumulated context (TMEM [28]). Other TTT methods require pre-deployment training of the adaptation behavior [62] or multiple sampled attempts per problem [61, 40]. Reinforcement learning (RL) post-training also improves the agentic capability of LLMs, which optimizes the policy before deployment on a training task set, typically with many attempts per task [30, 11, 38, 48, 23] or single-attempt RL with a learned critic [15]. Thus, none of them adapts a long-horizon agent's weights at test time, in a single pass over the task stream with one attempt per task, while carrying updates across tasks.

To explore the potential of evolving LLMs through test-time training in deployment, we study Online Agentic Test-Time Training (OaTTT), which trains the LLM's weights directly on the agent's own execution trajectories to improve task success. Tasks arrive in a single-pass stream, and the agent executes the task once, receiving verification from environment. Each executed trajectory and its verification result drive weight updates that persist across following tasks. Like in-context adaptation agents [26, 57], the agent learns from each trajectory once, without multiple trails. It accumulates learning in LLM weights, whereas those agents use textual harness-level memory. Learning occurs entirely at test time, without task-specific or offline training. We ask:

Can a deployed agent turn its own verified execution trajectories, one per task, into persistent weight updates that improve its success on subsequent tasks?

We propose ASCENT (Agentic Self-distillation for Cross-task EvolutioN at Test-time), which enables agents to learn during deployment, turning each verified experience trajectory into a persistent weight update. Training directly on these streaming trajectories is straightforward but fragile, because each task yields only one attempt by the current policy. Directly imitating or reinforcing the verified trajectories, with direct imitation or single-attempt policy gradient (Sec. 3.2), destabilizes the policy, erodes executable behavior (Fig. 1), and lowers task success. ASCENT instead self-distills from the verified experience to enable stable online test-time training. A stable version of the LLM, its frozen initial copy, receives the verifier-accepted trajectory as privileged information and, at every token position of that trajectory, predicts a full next-token distribution with this hindsight. Environment verification acts as rejection sampling, providing self-distillation positive guidance over the full horizon. Distilling it into persistent LoRA fast weights absorbs selected experience without treating every generated token as a direct target [16, 2, 60]. ASCENT thus distills hindsight from verified experience into the LLM weights, using this stable version of the LLM as the teacher for stable training. Beyond raw verified experiences, ASCENT can further refine accepted trajectories by removing invalid-action turns, while retaining the reasoning-action content of valid turns as privileged information. Filtering changes only the teacher input. The agent is still trained at removed-turn positions. The filtered trajectories provide the agent with more effective and efficient execution paths. The execution of the next task is based on the updated agent, enabling verification-gated online self-evolution. Across tasks and model scales, ASCENT improves task success and interaction efficiency as experience accumulates, while transferring learned weights to held-out scenes in the stream (Fig. 2). Our contributions are as follows:

  • We study OaTTT, in which a deployed agent executes each task once in one pass over its task stream, and the executed trajectory with its verification result is the only data for weight updates that persist across tasks. In OaTTT, we identify the instability of directly imitating or reinforcing these trajectories.

  • We propose ASCENT, which self-distills verified experience for stable online test-time training. A stable version of the LLM, its frozen initial copy, conditioned on the verifier-accepted trajectory as privileged information, with invalid-action turns further removed, supplies hindsight-informed full-distribution targets that are distilled into persistent LoRA fast weights. We characterize the population target of this distillation and the limits of sparse outcome selection.

  • We validated ASCENT across different types of tasks/steams, across ALFWorld, WebShop, and AppWorld on varied model scales. ASCENT successfully improves task success and interaction efficiency with experience, outperforms the compared online adaptation baselines, and transfers to held-out scenes with effective continued test-time training. The influence of prevailed information and distillation divergence are investigated. We also analyzed in-context adaptation failure modes, and present a preliminary in-context and parametric co-evolution study with ASCENT.

References (61)