From History to State: Constant-Context Skill Learning for LLM Agents
Haoyang Xie, Xinyuan Wang, Yancheng Wang, Puda Zhao, Feng Ju
NeurIPS 2026
Abstract. Large language model (LLM) agents are increasingly used to operate browsers, files, code and tools, making personal assistants a natural deployment target. Yet personal agents face a privacy-cost-capability tension: cloud models execute multi-step workflows well but expose sensitive intermediate context to external APIs, while local models preserve privacy but remain less reliable. Both settings also pay repeatedly for long skill prompts and growing histories. We propose constant-context skill learning, a context-to-weights framework for recurring agent workflows: reusable procedures are learned in lightweight task-family modules, while inference conditions only on the current observation and a compact state block. A deterministic tracker renders this state block from task progress and supplies aligned subgoal rewards, so each module can be trained with step-level SFT and refined through online RL. Across ALFWorld, WebShop, and SciWorld, our agents achieve strong performance across Qwen3-4B, Qwen3-8B and Llama-3.1-8B. With Qwen3-8B, SFT+RL reaches 89.6% unseen success on ALFWorld, 76.8% success on WebShop, and 66.4% unseen success on SciWorld. They match or exceed strong published agent-training results while reducing prompt tokens per turn by 2-7$\times$ relative to controlled ReAct prompting baselines, showing that procedural context can be moved from prompts into weights.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
All the reviewers agree with the utility of this work. Several questions were raised by the reviewers and authors have addressed most of them in their rebuttal. Even though a few questions still remain, I think this work will be of value to the ML community. I recommend the paper for acceptance.
Final justification
see above.
- Final justification
- see above.
Read meta-review
Meta-review
All the reviewers agree with the utility of this work. Several questions were raised by the reviewers and authors have addressed most of them in their rebuttal. Even though a few questions still remain, I think this work will be of value to the ML community. I recommend the paper for acceptance.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes Constant-Context Skill Learning, a context-to-weights framework that transfers reusable agent workflows from prompts and execution histories into lightweight LoRA skill modules. Instead of conditioning on long trajectories, the agent relies on the current observation and a compact, deterministic state block generated by a task-specific tracker. The framework combines supervised fine-tuning and reinforcement learning to train task-family-specific LoRA adapters.
Strengths and weaknesses
Strengths
-
This work focuses on the central challenge of reducing the dependence of LLM agents on increasingly long prompts and execution histories, which is an important practical issue.
-
The proposed idea of moving reusable procedural knowledge from context into model parameters is intuitive.
Weaknesses
-
The method relies on manually defined state blocks to summarize task progress. While effective on highly structured benchmarks such as ALFWorld, WebShop, and SciWorld, it is unclear whether the same assumption holds for open-ended agent tasks involving ambiguous goals, evolving environments, or latent user preferences. As a result, the applicability of the framework beyond structured task families remains uncertain.
-
The paper claims that reusable procedures are internalized into LoRA modules, but the experiments do not clearly distinguish skill acquisition from benchmark-specific memorization. Since training and evaluation are conducted within the same benchmark families, it remains unclear whether the learned adapters encode transferable skills or merely exploit recurring environment patterns.
-
The framework requires task-specific state schemas, trackers, and reward functions. Such manual design may become a significant bottleneck when scaling to new domains, limiting the practicality of the approach despite its promising empirical results.
-
Each new task family requires separate LoRA training, reward design, and RL refinement. While this modular design mitigates interference across skills, it introduces additional maintenance and training costs, raising concerns about scalability and cross-task generalization.
Questions
-
How can we verify that the learned LoRA captures transferable skills rather than benchmark-specific patterns? The current experiments are confined to the same benchmark families. Evaluating transfer to tasks with the same underlying procedure but substantially different state distributions would provide stronger evidence that the adapter learns reusable skills.
-
Can a single LoRA module support multiple skills across benchmarks? The current framework trains one adapter per task family. It would be valuable to investigate whether a unified LoRA can learn multiple skills across heterogeneous environments without significant interference.
-
Does the unseen-task evaluation sufficiently demonstrate generalization? The unseen tasks are drawn from the same benchmark distributions and share similar environments, action spaces, and procedural structures. Evaluating transfer across more diverse task distributions would provide a stronger assessment of skill generalization.
Limitations
Please see weaknesses.
Final justification
This paper have several limitations. In particular, I am not sure that the trained model has learned a transferable skill in a meaningful sense. The reported generalization appears relatively limited and may mainly reflect adaptation to the specific task families and environments. Thus, the extent to which the learned behavior generalizes beyond these settings remains unclear.
Formatting concerns
None
3 comments
We thank the authors for their detailed rebuttal and additional experiments. However, there are still some concerns remain.
First, the LLM-generated tracker relies on GPT-5.4 to define the state schema which is a capability external to the trained model itself. This means the ability to define a useful state representation is not intrinsic to the trained model itself. Given that Table 3 shows state block removal causes a 15.6-point SR drop, the quality of state design is critical to performance, yet it remains dependent on the external model's capability rather than the training procedure. Second, all three generalization probes modify only surface-level text within the same benchmark environments, leaving state semantics, environment dynamics, and reward structure unchanged. This robustness is consistent with pretraining-level invariance rather than a skill acquired by the LoRA. We therefore remain unconvinced that the skills learned by the proposed framework are meaningfully reusable beyond the specific benchmark and task family on which the adapter was trained.
Clarification on State-Tracker Scope and New No-LoRA Controls
1. Clarification: state construction is an explicit interface, not a claimed learned capability.
We agree that state-schema discovery is external to the trained policy, but this is by design and outside our stated learning objective. Sections 2–3 explicitly define as the output of a deterministic tracker, while the LoRA learns the policy . The 15.6-point drop after removing confirms that the learned policy uses this interface as intended. It does not imply that schema discovery was claimed as part of LoRA training.
The relevant scalability question is whether the tracker must be manually engineered. Our new WebShop PoC answers this directly: without access to our tracker, GPT-5.4 generated the complete deterministic tracker and reward pipeline. It requires no runtime LLM calls and reaches 61.2% SR after SFT and 65.8% after RL on the held-out goals. Thus tracker construction can be automated. Requiring the LoRA itself to invent the state schema would be a different research problem, not a limitation relative to our stated claim.
2. Direct evaluation of Qwen3-8B without any LoRA. Existing results already indicate that the learned LoRA contributes task-family-specific behavior. Table 3 shows that SFT increases WebShop SR from 23.6% to 62.2%, followed by a further increase to 76.8% after RL. Moreover, as reported in our response to Tyru, our ALFWorld mismatch experiment keeps the base model, task, environment, prompt, and tracker fixed while changing only the loaded LoRA: the matched adapter achieves 89.7% SR, compared with 24.1% for incorrect adapters.
We now provide a more direct control. We reran the evaluations using the original frozen Qwen3-8B base model without loading any LoRA adapter. The task instances, splits, tracker, state block, prompt template, action parser, environment, decoding parameters, and inference seeds are otherwise unchanged. This controlled comparison isolates the contribution of the trained LoRA under the same inference interface.
Standard evaluation
| Benchmark | Split / Metric | Frozen Base (no LoRA) | SFT LoRA | SFT+RL LoRA |
|---|---|---|---|---|
| ALFWorld | Seen SR (%) | 0.0±0.0 | 62.4±2.5 | 83.6±1.8 |
| ALFWorld | Unseen SR (%) | 0.0±0.0 | 61.7±2.2 | 89.6±0.4 |
| WebShop | Score | 27.3±0.9 | 69.5±1.7 | 84.0±0.0 |
| WebShop | SR (%) | 22.5±0.8 | 62.2±1.2 | 76.8±0.2 |
| SciWorld | Seen Score / SR (%) | 11.6±1.2 / 4.8±0.3 | 65.7±1.6 / 58.2±1.5 | 72.8±2.7 / 62.9±2.2 |
| SciWorld | Unseen Score / SR (%) | 12.3±0.3 / 4.9±0.7 | 61.5±0.9 / 52.0±0.7 | 79.7±0.2 / 66.4±0.5 |
Generalization probes
| Probe | Frozen Qwen3-8B Score / SR (%) | SFT+RL LoRA Score / SR (%) |
|---|---|---|
| WebShop original 500 goals | 27.3±0.9 / 22.5±0.8 | 84.0±0.0 / 76.8±0.2 |
| WebShop paraphrased instructions | 28.2±0.8 / 22.5±0.6 | 82.7±0.5 / 72.2±0.7 |
| WebShop unseen joint constraint combinations (446 goals) | 27.3±0.8 / 22.6±0.9 | 84.9±0.3 / 75.8±0.6 |
| WebShop state block reserialized as sorted JSON | 17.4±0.6 / 13.5±0.2 | 83.3±0.4 / 75.7±0.8 |
| ALFWorld unseen, original 134 games | — / 0.0±0.0 | — / 89.6±0.4 |
| ALFWorld unseen, paraphrased instructions | — / 0.0±0.0 | — / 89.1±1.1 |
The frozen Qwen3-8B base model performs poorly despite receiving exactly the same tracker, state block, prompt, and evaluation protocol. Across the WebShop probes, loading the trained SFT+RL LoRA improves SR by 49.7–62.2 percentage points. On ALFWorld, the improvement is 89.1–89.6 points. Notably, the frozen base model drops from 22.5% to 13.5% SR when the state block is reserialized as sorted JSON, whereas the trained LoRA retains 75.7% SR, close to its original 76.8%. These results show that pretraining alone cannot explain either the strong execution performance or the robustness observed after training. The trained LoRA supplies task-family-specific procedural competence that remains effective under the tested instruction, constraint-combination, and state-serialization changes.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes Constant-Context Skill Learning (CCSL), a framework for recurring LLM-agent workflows that moves procedural knowledge from prompts into lightweight task-specific LoRA adapters. Instead of conditioning on long histories, demonstrations, retrieved memories, or skill descriptions, the agent only receives the current observation, a one-step context window, and a compact state block generated by a deterministic task tracker. The tracker also provides subgoal-aligned reward signals used for RL refinement.
The key claim is that recurring workflows should gradually become learned skills rather than repeatedly executed prompt programs. The authors train a separate LoRA for each task family using supervised fine-tuning on successful trajectories and then refine the policy with RL using tracker-derived rewards. Experiments on ALFWorld, WebShop, and SciWorld show competitive performance while substantially reducing prompt-token consumption compared to ReAct-style agents.
Strengths and weaknesses
Strengths:
- Important and practical problem. This paper proposes to use Lora modules as a skill add on, which improves efficiency quality trade off.
- Neat solution that potentially could work in practice. Traditional text based skills could result in context inflation
Weakness:
- Not enough comparison with baselines. There are more ways to incorporate knowledge into the model such as ACE or GEPA. We might want to compare with them as well.
- Not enough results on quality of generation. The tables sometimes only include delay, which means nothing if quality drops by too much.
- Writing is not clear enough. I think the idea is novel but some of the messages such as motivation of specific parts of the design still feels vague
Questions
- Could we compare with some other methods such as using skills or context engineering? Ex, how does this method compare with GEPA/ACE or using skills?
- I think table 1 is ablation, maybe you should move this down but put comparison with baselines there.
- For table 2, what is the accuracy?
Limitations
Yes
Final justification
New experiments demonstrate good perf
Formatting concerns
No
3 comments
Rebuttal
We thank the reviewer for the positive assessment of the problem and the solution, and for the concrete suggestions on baselines, reporting, and clarity. We address each point below, including new experiments run during the discussion period.
W1 & Q1: Comparison with other knowledge-incorporation methods (ACE, GEPA, skill-based approaches)
How these methods relate to ours. ACE and GEPA both improve the content of the context: ACE accumulates an evolving playbook of strategies from execution feedback, and GEPA evolves the system prompt through reflection on rollouts. Skill-based agents such as Agent Workflow Memory and SkillWeaver similarly induce reusable procedure and store it as retrievable text or API code. In all of these, the acquired knowledge must be re-read at inference time, so the per-step prompt is at least a ReAct-style prompt plus the injected skill/playbook text. Our focus is different: we remove the context's length dependence by compiling recurring procedure into task-family adapter weights, so the prompt carries only the current observation, one-step context, and a compact state block. The directions are therefore orthogonal and composable. For example, GEPA could be used to optimize how our state block is rendered.
Numerical comparison. A recent independent study [R1] re-implements GEPA, ACE, AWM on ALFWorld and WebShop, and we verified these results in our own runs:
| Method | ALFWorld SR | WebShop score |
|---|---|---|
| GEPA | 63.9% | 0.415 |
| ACE | 66.9% | 0.453 |
| AWM | 65.4% | 0.460 |
| Ours (Qwen3-8B) | 89.6% | 0.84 |
GEPA, ACE, and AWM all remain in the 63.9–66.9% / 0.415–0.460 range on the two benchmarks, whereas our skill modules reach 89.6% and 0.84 with a comparable-scale 8B backbone. Context-side adaptation improves what the prompt contains without any training, but the gain is modest; compiling the recurring procedure into weights yields a substantially larger improvement. Two further points on cost: (i) since these methods inject skill or playbook text on top of a ReAct-style loop, their per-step prompt cannot be shorter than a plain ReAct prompt, whereas ours is 2.1–3.0× shorter than even our ReAct-1step baseline (Table 2, and the combined table below); (ii) ACE's playbook grows as experience accumulates, so its per-step context cost increases with use, whereas ours is constant by construction. We will add this comparison and discussion to the related work in the revision.
W2 & Q3: Tables report cost without quality; what is the accuracy in Table 2?
The quality numbers do exist and they are in Tables 1 and 4. But we should explain why those tables are separate.Table 1 reports the results of our proposed method, where we control the evaluation end to end and can therefore report everything consistently: three backbones at different scales, all three benchmarks, seen and unseen splits, both benchmark score and binary success rate, each averaged over three inference seeds. Table 4 instead copies numbers from published papers, whose coverage and reporting conventions differ: some omit a benchmark, others report only score and no success rate. So merging the two would mean either discarding metrics we do have or leaving many cells blank. The two ReAct variants appear there as well (ReAct-1, ReAct-full), since they are baselines rather than our method, and so belong with the other baselines. The reviewer is right that Table 2 is hard to interpret without quality numbers, so we will rebuild it to report both.
The reconstructed table (all rows Qwen3-8B; SR is binary full-task success):
| Benchmark | Split | Method | Score | SR (%) | Steps | Prompt tok/turn | Completion tok/turn | Total tok/episode |
|---|---|---|---|---|---|---|---|---|
| ALFWorld | Seen | ReAct-1step | — | 22.9 | 24.9 | 380.0 | 53.3 | 10,969 |
| ReAct-full | — | 45.0 | 21.6 | 1,310.5 | 50.9 | 34,199 | ||
| Ours: SFT+RL | — | 83.6 | 18.4 | 183.8 | 7.1 | 3,251 | ||
| Unseen | ReAct-1step | — | 23.1 | 25.3 | 358.6 | 52.3 | 10,443 | |
| ReAct-full | — | 46.3 | 21.8 | 1,320.4 | 52.9 | 34,145 | ||
| Ours: SFT+RL | — | 89.6 | 15.9 | 179.9 | 7.1 | 2,851 | ||
| WebShop | Test | ReAct-1step | 8.8 | 1.2 | 13.6 | 1,059.0 | 72.4 | 15,763 |
| ReAct-full | 7.0 | 3.8 | 14.4 | 3,092.7 | 71.4 | 46,531 | ||
| Ours: SFT+RL | 84.0 | 76.8 | 6.8 | 488.0 | 10.4 | 3,353 | ||
| SciWorld | Seen | ReAct-1step | −25.0 | 8.8 | 18.9 | 1,443.0 | 61.9 | 28,088 |
| ReAct-full | −11.3 | 13.4 | 13.4 | 2,038.9 | 54.6 | 42,280 | ||
| Ours: SFT+RL | 72.8 | 62.9 | 33.7 | 492.0 | 5.3 | 17,894 | ||
| Unseen | ReAct-1step | −50.0 | 7.6 | 12.3 | 1,481.0 | 65.3 | 18,953 | |
| ReAct-full | −21.5 | 11.4 | 12.5 | 1,938.0 | 54.3 | 39,550 | ||
| Ours: SFT+RL | 79.7 | 66.4 | 30.7 | 496.3 | 5.3 | 16,182 |
Bold marks the best value per column within each split. Step counts on SciWorld are left unmarked, since fewer steps is not better there: invalid actions terminate an episode early with a negative score, so stronger agents survive longer and take more steps (Sec. 4.3).
The reviewer's concern was that cost numbers mean little if quality degrades. However, the table shows the opposite. Across all five splits, our method has both the highest success rate and the lowest prompt cost per turn. On ALFWorld unseen, for example, SR rises from 46.3% to 89.6% while prompt tokens per turn fall 7.3× and total tokens per episode fall 12.0×; on SciWorld unseen, SR rises from 11.4% to 66.4% while prompt tokens per turn fall 3.9×.
W3 & Q2: Writing clarity, table organization, and motivation of specific design choices
Table organization. Table 1 is our main performance result across three benchmarks and three backbones. The ablation is Table 3, and the comparison with published agent-training baselines is Table 4. As suggested, in the revision we will retitle Table 1 explicitly as the main results, and move the baseline comparison (Table 4) up next to it so that main results and baseline comparison appear together.
Design motivations. We summarize the three design choices that are central to the method, and we will make their motivation explicit in Secs. 1 and 3. We are also happy to elaborate on any other part of the design and to add the explanation to the revised paper.
- Why a state block at all. The bounded-context objective creates a state challenge (Sec. 2): the agent must not carry the full history, but it also cannot simply discard it. The current observation alone often omits progress the next decision depends on, such as which entities were already selected or which subgoals are complete, and different task families need different pieces of that past state. The state block is our answer: it exposes the minimal set of state variables required for the next action, deliberately not a trajectory summary or a solution plan. The ablation confirms it is the decisive prompt-side signal (Table 3): without any training, adding the state block raises WebShop success from 5.6% to 23.6%, and after training, removing it still costs 15.6 points (76.8% → 61.2%).
- Why a deterministic tracker rather than an LLM summarizer. Because the state block is rebuilt at every step, it sits on the critical path of inference: the tracker updates task-family variables with lightweight parsing rules, requires no model call, and produces reproducible output (Sec. 3.1). An LLM summarizer would instead add an extra generation to every step. That means more latency and more tokens paid in exactly the component whose purpose is to make inference cheap, and its output would vary from run to run, so the state the policy conditions on would no longer be reproducible.
- Why the same tracker also defines the RL rewards. This ties the design together (Sec. 3.3): the tracker state that renders the state block also supplies the subgoal progress and error terms used during RL, so what the policy reads and what RL reinforces are the same variables: the policy is trained to treat the state block as its execution state rather than as decoration. The ablation supports this as well: replacing the shaped subgoal rewards with terminal reward only costs 4.6 points on WebShop (76.8% → 72.2%, Table 3), and Figure 3 shows each component contributes—removing the progress rewards, the error penalties, or the step cost lowers success espectively.
[R1] arXiv:2606.28374
Thanks for new experiments. I increased my score.
Thank you for reviewing our additional experiments and updating your assessment. We sincerely appreciate your time and constructive feedback.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes constant-context skill learning for recurring LLM-agent workflows. Instead of prompting an agent with long instructions, examples, memories, and growing execution histories, the method trains task-family specific LoRA skill modules. Each module is conditioned on a bounded input consisting of the task goal, current observation, one-step previous context, and a deterministic tracker-rendered state block.
The training pipeline is: replay successful trajectories through a task-family tracker, convert them into state-action pairs, train a LoRA adapter with SFT, and refine it with GRPO-style RL using tracker-derived subgoal rewards.
The method is evaluated on ALFWorld, WebShop, and SciWorld with Qwen and Llama backbones. The reported results show improved task performance and large reductions in prompt-token usage compared with ReAct-style prompting baselines.
Strengths and weaknesses
Strength
- The main idea is technically clean: move reusable procedural knowledge from prompt history into lightweight task-family weights, while keeping instance-specific progress in a compact state block.
- The empirical results are strong within the tested benchmarks. SFT+RL improves over SFT-only across several settings, and token savings over ReAct-full are substantial.
- The ablations support the usefulness of the state block, SFT, and reward shaping. On WebShop, observation only and one-step context prompting are weak, adding the state block helps, SFT improves further, and RL gives the best result.
Weaknesses:
- The paper under-specifies how task families are actually divided. It defines task families as groups sharing tool environment, action space, and procedural structure, but it does not provide a principled algorithm for discovering families or choosing family granularity.
- The method appears to assume that task families, trackers, state schemas, and reward rules are known or manually engineered. This makes the approach closer to state-conditioned skill distillation plus RL refinement.
- The paper trades offline engineering and training cost for inference-time context reduction. It uses preprocessing, deterministic state tracking, per-family LoRA adapters, and shaped rewards to reduce prompt length at inference. This tradeoff is not analyzed deeply enough.
- The method also assumes that the correct task-family adapter is selected at inference time. The paper does not sufficiently discuss task routing, wrong-adapter errors, or multi-skill composition.
- The related-work discussion should more directly compare against Agent Workflow Memory and SkillWeaver.
[1] https://arxiv.org/abs/2409.07429
[2] https://arxiv.org/abs/2504.07079
Questions
- Could the authors redraw Figures 2, 5, and 6 as vector graphics? The current versions appear blurred, which makes some labels and details difficult to read.
- Do the improvements persist for larger base models beyond the 4B/8B-scale models shown in the paper?
- Is the efficiency claim inference-only or end-to-end? The proposed method requires offline trajectory collection, tracker preprocessing, SFT, GRPO-style RL refinement, adapter storage, and task-family routing, whereas ReAct is mostly a prompt-only inference baseline.
Limitations
yes
Final justification
The rebuttal addresses a substantial fraction of my original concerns, and I am updating my overall assessment upward.
Formatting concerns
n/a
1 comment
Rebuttal
We thank the reviewer for recognizing the cleanness of the core idea and the strength of the results. We address each point with new experiments conducted during the discussion period.
W1: How task families are divided; no principled discovery algorithm
We did not divide task families ourselves. All boundaries come pre-defined with the datasets: ALFWorld's six official task types, WebShop as a single shopping family and SciWorld's ETO grouping [31]. In our target setting, the boundary is given by the user's repeated workflow itself, so discovery is not required; automatic family discovery is an interesting future direction. We will clarify this in the revision.
Granularity is not a hard architectural constraint, but a deployment trade-off. Within one benchmark, a unified module across all ALFWorld families reaches 86.4%/88.1% seen/unseen after RL vs. 83.6%/89.6% per-family (Table 1): +2.8 on seen, −1.5 on unseen. We further trained one Qwen3-8B LoRA jointly on all three benchmarks (benchmark-balanced SFT; single run) and performance again remains comparable, with mild interference on ALFWorld unseen:
| Benchmark / split | Metric | Independent SFT (Table 1) | Unified cross-benchmark SFT | Δ |
|---|---|---|---|---|
| ALFWorld seen | SR | 62.4±2.5% | 65.7% | +3.3 |
| ALFWorld unseen | SR | 61.7±2.2% | 55.2% | −6.5 |
| WebShop test | Score / SR | 69.5±1.7 / 62.2±1.2% | 70.2 / 60.8% | +0.7 / −1.4 |
| SciWorld seen | Score / SR | 65.7±1.6 / 58.2±1.5% | 70.2 / 64.4% | +4.5 / +6.2 |
| SciWorld unseen | Score / SR | 61.5±0.9 / 52.0±0.7% | 71.6 / 56.4% | +10.1 / +4.4 |
W2: Everything appears manually engineered; close to state-conditioned skill distillation + RL
This is not distillation and the gain comes from the interface. No teacher model is distilled: supervision comes from successful environment executions (proxies for user demonstrations), i.e., standard behavior cloning + RL. Our contribution is not the training algorithm but the constant-context execution interface: the policy acts from a bounded input that never grows with the episode, whose state block is produced by the same deterministic tracker that supplies the aligned subgoal rewards. Table 3 isolates this: under the identical recipe, removing the state block costs 15.6 SR points.
The tracker pipeline can be fully LLM-generated. We tested whether manual engineering is actually required by replacing the human-written tracker with an entirely LLM-written one. Given only the public WebShop environment contract and a few example transitions, GPT-5.4 authored every component: state schema, deterministic parser/update logic, bounded renderer and dense reward rules. It is then compared against our human-written one under identical conditions: same training samples, same test goals and same SFT+RL recipe:
| WebShop (Qwen3-8B) | Score | SR |
|---|---|---|
| Manual tracker, SFT | 69.5 | 62.2% |
| Manual tracker, SFT+RL | 84.0 | 76.8% |
| LLM-generated tracker, SFT | 72.6 | 61.2% |
| LLM-generated tracker, SFT+RL | 75.0 | 65.8% |
The LLM-generated pipeline reaches 65.8% SR which below the manual tracker, as a hand-designed one should remain best, yet competitive with published results (ETO 37.5%, ACT 33.8%, Early Experience 62.2% in Table 4). With the reward rules already LLM-drafted (App. 7.2/7.5), full automation of the schema/tracker/reward pipeline is feasible: manual engineering is an optimization, not a requirement. Generation prompts will be added to the appendix.
W3: Offline cost traded for inference-time savings; not analyzed deeply
We agree this deserved explicit accounting. Training is a one-time cost, while context savings recur on every execution. Estimating training tokens from Tables 2 and 5:
| Benchmark | One-time training (1×A100) | Training tokens (est.) | Tokens saved / episode (vs. ReAct-full) | Break-even |
|---|---|---|---|---|
| ALFWorld | ≈13.7 h | ≈33M | ≈31.3k | ≈1,100 episodes |
| WebShop | ≈3.8 h | ≈25M | ≈43.2k | ≈580 episodes |
| SciWorld | ≈3.7 h | ≈33M | ≈24.4k | ≈1,350 episodes |
These break-even points are conservative for two reasons. First, training and inference tokens are not equivalent: training is a one-time offline cost on the user's own hardware, while the tokens saved recur on every execution and would otherwise leave the device in a cloud setup.Second, the comparison is not quality-matched: with the same 8B backbone, ReAct-full reaches only 46.3% on ALFWorld unseen and 3.8% on WebShop, so the fair accounting is the cost per successful task, where our method is ahead before any amortization:
| Method (Qwen3-8B) | ALFWorld unseen SR | Tok/episode | Tok/success | WebShop SR | Tok/episode | Tok/success |
|---|---|---|---|---|---|---|
| ReAct-full | 46.3% | 34,145 | ≈73.7k | 3.8% | 46,531 | ≈1,224k |
| Ours: SFT+RL | 89.6% | 2,851 | ≈3.2k | 76.8% | 3,353 | ≈4.4k |
An adapter is also a reusable artifact rather than a per-user cost: like a skill definition, it is trained once per workflow and can be shared. We will add this analysis in the revision.
W4: Correct-adapter selection is assumed; no routing / wrong-adapter / composition discussion
Routing. On ALFWorld, we built two routers that map the task instruction to one of the five adapters.
| Router | Split | Accuracy | Macro-F1 |
|---|---|---|---|
| Keyword intent rules | Seen | 100.0% | 100.0% |
| Keyword intent rules | Unseen | 100.0% | 100.0% |
| DistilBERT (3 seeds) | Seen | 99.0±0.8% | 98.6±1.2% |
| DistilBERT (3 seeds) | Unseen | 98.5±1.3% | 98.2±1.6% |
Wrong-adapter cost. A 5×5 cross-evaluation on all valid-unseen games (greedy decoding; task, environment, and tracker always correct, only the loaded RL LoRA changed):
| Loaded ↓ / Task → | Pick | Clean | Heat | Cool | Examine |
|---|---|---|---|---|---|
| Pick | 70.8% | 0.0% | 0.0% | 0.0% | 5.6% |
| Clean | 62.5% | 96.8% | 95.7% | 100.0% | 0.0% |
| Heat | 33.3% | 0.0% | 95.7% | 76.2% | 0.0% |
| Cool | 50.0% | 0.0% | 78.3% | 100.0% | 0.0% |
| Examine | 0.0% | 0.0% | 0.0% | 0.0% | 83.3% |
Matched adapters achieve 89.7% micro-SR versus 24.1% under wrong-adapter selection. The off-diagonal pattern is interpretable: transfer occurs only where procedures overlap, and no adapter outperforms the matched one on any task family.
Multi-skill composition. Skills compose by reuse: Pick2 tasks are solved by invoking the Pick adapter twice rather than training a Pick2-specific module (App. 7.1), with all Pick2 instructions routed correctly. Composition can also be avoided by merging skills into one module: the unified ALFWorld adapter (86.4%/88.1%, Sec. 4.2) and the new cross-benchmark unified LoRA (table in W1) remain competitive.
W5: Related work should directly compare against Agent Workflow Memory [1] and SkillWeaver [2]
We will add both to the related work in the revision. The three approaches address different problems and place reusable procedure at different locations accordingly: AWM focuses on acquiring workflows from experience and represents them as text injected into the prompt; SkillWeaver focuses on autonomously discovering website capabilities and represents them as retrievable API code; our focus is inference-time context efficiency for recurring workflows, so we compile procedure into adapter weights, removing skill text from the prompt entirely.
For AWM, a recent independent study [R1] re-implements it (alongside GEPA and ACE) on ALFWorld and WebShop under a shared local backbone, and we verified these results in our own runs: AWM improves over ReAct on both (65.4% vs. 64.6% on ALFWorld; 0.460 vs. 0.429 WebShop score) without any training, while our trained modules reach 89.6% and 0.84 with an 8B backbone. On tokens, AWM's per-step prompt contains at least a ReAct-1step prompt plus the injected workflow text. Since we already use 2.1–3.0× fewer prompt tokens per turn than ReAct-1step (Table 2), our token advantage follows directly without additional measurement.
For SkillWeaver, its skill-as-API mechanism is designed for WebArena's browser programming interface and is not directly executable in our text-action environments, so no numerical comparison is feasible. We will discuss it at the mechanism level in the revision.
[1] arXiv:2409.07429 [2] arXiv:2504.07079 [R1] arXiv:2606.28374
Q1: Vector figures
Yes. The three figures will be redrawn as vector graphics in the revision, resolving the blurry labels.
Q2: Do improvements persist beyond 4B/8B-scale models?
Yes. We repeated the full pipeline with Qwen3-14B under the identical recipe:
| Qwen3-14B | ALFWorld Seen | ALFWorld Unseen | WebShop Score | WebShop SR | SciWorld Seen Score/SR | SciWorld Unseen Score/SR |
|---|---|---|---|---|---|---|
| SFT only | 62.9±2.7 | 61.4±2.3 | 66.5±1.5 | 59.8±1.8 | 68.9±1.4 / 61.9±1.3 | 61.6±0.6 / 53.1±0.8 |
| SFT + RL | 82.1±0.8 | 87.3±1.6 | 85.9±0.5 | 78.8±0.3 | 76.0±1.6 / 67.0±1.8 | 79.1±0.1 / 67.3±0.3 |
The improvements persist: 14B surpasses 8B on WebShop SR (78.8% vs. 76.8%) and SciWorld unseen SR (67.3% vs. 66.4%), with ALFWorld at the same level. Scale helps but is not the critical factor. There is no qualitative leap, which is consistent with Table 3: the gains come from the state-block interface and the skill modules.
Q3: Is the efficiency claim inference-only or end-to-end?
The 2–7× per-turn savings reported in Table 2 are inference-time. W3 now provides the end-to-end accounting: training is a one-time offline cost that breaks even after ≈580–1,350 executions, and it buys a policy of much higher quality, so on a per-successful-task basis our method is ahead before any amortization (≈3.2k vs. ≈73.7k tokens per successful ALFWorld task).
Comments on the paper
2 comments
Summary of Additional Experiments and Rebuttal Updates
We thank all reviewers for their constructive feedback. We have now completed the additional experiments and updated our point-by-point responses. Since several concerns overlap across reviews, we briefly summarize the new evidence here for visibility:
-
Larger-model validation: We completed SFT and RL experiments with Qwen3-14B on ALFWorld, WebShop, and SciWorld.
-
Cross-benchmark unified LoRA: We trained a single Qwen3-8B LoRA jointly on all three heterogeneous benchmarks and evaluated it separately in each environment, demonstrating that a single adapter can accommodate multiple task families and environment interfaces.
-
Automated tracker construction: We evaluated an LLM-generated WebShop tracker through the complete SFT–RL–evaluation pipeline. It substantially improves over the corresponding non-state baseline, supporting the feasibility of reducing manual tracker implementation.
-
Adapter routing and mismatch: We added a 5×5 cross-family adapter evaluation on ALFWorld and a lightweight routing experiment. Correctly matched adapters substantially outperform mismatched ones, while the router reliably identifies the appropriate task family.
-
Generalization and memorization probes: We evaluated instruction paraphrases, previously unseen attribute combinations, and state-format perturbations on WebShop, together with paraphrased unseen instructions on ALFWorld. Performance remains robust under these changes, providing evidence against literal trajectory or surface-template memorization.
-
End-to-end efficiency analysis: We added a training-cost amortization analysis and combined success-rate/token comparisons, clarifying the trade-off between one-time offline training and recurring inference savings.
-
Additional comparisons and clarifications: We expanded the discussion of AWM, GEPA, ACE, and SkillWeaver.
The detailed protocols, numerical results, and responses to each concern are provided in the corresponding reviewer replies. We hope these additional experiments and clarifications address the reviewers’ questions, and we would be grateful if the reviewers could take them into consideration when finalizing their assessments.
Follow-up on Remaining Concerns
We would like to once again thank all reviewers for their careful reading and constructive feedback. We are grateful that the new experiments addressed Reviewer LWab’s concerns, and we have also provided further clarification and new experimental controls in response to Reviewer eqdA’s follow-up questions.
As the rebuttal period is nearing its end, we wanted to gently follow up with Reviewer Tyru. We would be grateful to know whether our responses and additional experiments have addressed your concerns, or whether any questions remain. We are happy to provide any further clarification that would be helpful.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for raising the central verification question: does the adapter acquire a skill, or does it memorize the benchmark? The reviewer also made three concrete suggestions, and we ran all of them as new experiments during the discussion period.
W2 & Q1: Does the LoRA capture transferable skills or benchmark-specific patterns?
We agree this is the key question, and the idea behind our experiments is simple. If the adapter is memorizing the benchmark, then what it relies on is the exact text it saw during training: the wording of the instructions, the layout of the state block, the goal configurations that keep recurring. So we change that text and keep everything else identical. A memorizing policy should break. A policy that learned the procedure should keep working, because the procedure depends on what the state means, not on how it is written.
Concretely, each probe rewrites only what the model reads. The task, the environment, the reward computation, and the state variables the tracker maintains all stay exactly the same. For a reference point: with the same prompt design but no training, the model reaches 23.6% SR on WebShop (Table 3), which is roughly where a policy that depends on memorized text should fall back to once the text is changed.
Setup. All three probes are evaluation-only: we take the same Qwen3-8B SFT+RL adapters that produced the results in Table 1, leave the weights untouched, and only change the inputs at test time. Each is run over three inference seeds under the Table 1 protocol.
Results.
Analysis. None of the three perturbations breaks the policy: the largest drop is 4.6 points, and all results stay far above the 23.6% level reachable without training. The WebShop paraphrase drop is the largest because WebShop success also depends on the search query the policy writes from the instruction text. So the policy keeps working whenever the state is preserved and only the text changes, which is what the skill hypothesis predicts and the memorization hypothesis does not.
Three results already in the paper agree. Removing the state block costs 15.6 SR points under identical training (Table 3). Unseen performance is at or above seen performance for every backbone (Table 1). And 5 trajectories fail entirely while performance rises smoothly up to 1,000 (Fig. 4), whereas memorization would saturate far earlier.
A new adapter cross-evaluation on ALFWorld adds one more piece of evidence: loading the wrong task-family adapter, with the task, environment, and tracker kept correct, drops success from 89.7% to 24.1%, and the failures follow procedural similarity rather than an arbitrary pattern. Full matrix in our response to Reviewer Tyru (W4).
Q2 & W4: Can a single LoRA support multiple skills across heterogeneous environments, and are per-family costs a scalability concern?
Following the reviewer's suggestion directly, we trained one Qwen3-8B LoRA jointly on benchmark-balanced SFT data from all three environments and evaluated it through each benchmark's native environment and metric (single evaluation run, SFT stage only):
A single adapter carries all three heterogeneous environments without collapse: WebShop is essentially unchanged, SciWorld improves on both splits, and only ALFWorld unseen shows meaningful interference at −6.5 points.
We should also point out that the submission already contains the within-benchmark version of this experiment. In Sec. 4.2 we train one LoRA module across all five ALFWorld task families, and it reaches 86.4% / 88.1% seen/unseen after RL, against 83.6% / 89.6% for the per-family modules (Table 1). One adapter can therefore hold multiple skills, both within a benchmark and across benchmarks, so per-family modules are a deployment choice rather than an architectural requirement. In practice we still prefer them: they avoid the interference seen above, and a new skill can be added by training a new adapter without retraining the existing ones or risking forgetting of already deployed skills.
The cost is modest. Each adapter is a one-time single-GPU run of a few hours (Table 5), takes 0.5 to 0.7 GB on disk, and only the active one is loaded at inference. Selecting it is also not an obstacle: on ALFWorld a deterministic keyword router reaches 100% routing accuracy on both splits, and a learned DistilBERT router reaches 99.0±0.8% and 98.5±1.3% over three seeds.
W1 & W3: Manually defined state blocks, trackers, and reward functions; applicability beyond structured task families
The pipeline can be produced by an LLM rather than by hand. We tested whether the manual component is really required by replacing the human-written WebShop tracker with an LLM-written one. GPT-5.4 was given the public environment contract and a few example transitions, and it wrote everything: the state schema, the parser and update logic, the renderer, and the reward rules. Both trackers are then trained and evaluated identically, on the same 15,111 samples and the same 500 held-out goals:
The fully generated pipeline reaches 65.8% SR. A carefully hand-designed tracker still does better, but 65.8% is competitive with published agent-training results on WebShop such as ETO at 37.5% and Early Experience at 62.2% (Table 4). The reward rules are already LLM generated (App. 7.2 and 7.5), and this experiment verifies that the state schema and the tracker can be generated as well, so the whole pipeline can in principle run without human design. A human-designed tracker still performs better, so we view manual design as an optimization rather than a requirement. The generation prompts will be added to the appendix in the revision.
On scope. The probes above suggest the framework is more robust than the structured-benchmark setting might imply: as long as the underlying procedure is the same, the policy tolerates rewritten instructions, unseen constraint combinations, and a different state-block format, and the base model itself contributes some flexibility beyond what the tracker encodes. That said, we agree that a state block alone is unlikely to be sufficient for genuinely open-ended tasks, and we will add this discussion to the revision.
Q3: Does the unseen-task evaluation sufficiently demonstrate generalization?
We agree the official unseen splits share the environment and procedural structure of training, which is why the probes in W2 widen the gap further: the paraphrase probe changes the instruction distribution (89.1% versus 89.6% on ALFWorld unseen), the reserialization probe changes the input format (75.7% versus 76.8% on WebShop), and the constraint-combination probe removes joint-configuration overlap with training entirely (75.8%). Performance holds in all three.
We would also be precise about the claim: the paper claims within-family, cross-variant procedural generalization, not zero-shot transfer to new skills, which we list as a limitation in Sec. 6. We will state this boundary explicitly in the revision.