Manuscript Offprint
arXiv:2610.26926AtomSD: Procedural Atom-Guided Self-Distillation for LLM Agents
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Bohan Yu, Pengfei Cao, Kai Tian, Chen Han, Shi-Yang Li, Chenxi Zhou, Junlin Liu, Cao Liu, Ke Zeng, Jun Zhao, Kang Liu
School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences
The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences
School of Artificial Intelligence, University of Chinese Academy of Sciences
Meituan
yubohan2025@ia.ac.cn {pengfei.cao,jzhao,kliu}@nlpr.ia.ac.cn
Large language models (LLMs) possess broad factual knowledge and strong reasoning capabilities, but solving complex tasks also requires procedural knowledge about how to act. Existing approaches often represent procedural knowledge through trajectories or bundled skills, limiting flexible reuse across interaction histories. This paper introduces Procedural Atoms, fine-grained and independently applicable units that represent Intent, When, Do, and Avoid guidance. Building on this representation, we propose AtomSD, an Atom-guided Self-Distillation framework in which the learner continually extracts Procedural Atoms from its own successful trajectories and distills them into the evolving policy through Atom-conditioned supervision and task-reward optimization. Comprehensive experiments show that AtomSD consistently outperforms strong reward-based and distillation methods, exceeding the state-of-the-art baseline by up to 9.31 points in average performance. Further analyses demonstrate that the proposed Procedural Atoms provide effective guidance, highlighting the value of atom-level procedural knowledge for policy learning. GitHub
1 Introduction
Large language models (LLMs) have acquired extensive factual knowledge and strong reasoning capabilities, enabling them to tackle increasingly complex tasks across diverse domains (OpenAI et al., 2024; Zhao et al., 2026b). However, knowing the relevant facts does not necessarily imply knowing how to act. For example, a model may understand the properties of every reagent in a scientific experiment, yet still fail to execute the experimental procedure correctly. Such failures reflect the difference between declarative knowledge about a domain and procedural knowledge or planning knowledge about how tasks within that domain should be carried out. It becomes particularly consequential when successful behavior depends on sequences of interdependent decisions rather than isolated answers. In such contexts, an agent must determine which operations advance a goal, when their prerequisites hold, how intermediate results constrain later actions, and how its procedure should adapt as conditions change (Shridhar et al., 2021; Wang et al., 2022; Yao et al., 2023a; Yu et al., 2026b). Therefore, learning reusable procedural knowledge is an important step toward translating the broad capabilities of LLMs into reliable performance in complex tasks.
Toward this goal, existing approaches leverage interaction trajectories to construct and transfer reusable procedural knowledge, broadly following two directions. (1) Organizing trajectories into reusable guidance. Prior work transforms previous interactions into reflections, workflows, skills, or conditional rules that can guide subsequent behavior through prompting (Wang et al., 2025; Mi et al., 2026; Liang et al., 2026; Sun et al., 2026). Such representations abstract beyond individual actions and make past experience accessible.
Corresponding authors.
across future interactions. (2) Distilling experience into the policy. A second line of work transfers knowledge from demonstrations, feedback, or skill-augmented teacher context into the learner itself, allowing the resulting policy to benefit from this supervision without requiring the same external guidance at inference time (Zhao et al., 2026a; Hübotter et al., 2026; Wang et al., 2026a; Lu et al., 2026).
Despite their effectiveness, these approaches leave two important questions unresolved. (1) What should be the reusable unit of procedural knowledge? As shown in Figure 1, complete trajectories retain instance-specific objects, observations, and action sequences, while workflows and skills often bundle multiple operations into a single unit of guidance. Both can limit transfer across interaction histories: a new execution may require only a subset of the operations in a previous proce-

Figure 1: Procedural Atoms enable fine-grained reuse and composition of procedural knowledge.
dure, or may need to compose operations learned from different experiences. This calls for finer-grained procedural units that can be independently reused and flexibly composed across interaction histories. (2) How should procedural knowledge evolve with the learner? Existing approaches often rely on separately maintained skill libraries or external models to derive and update guidance from interaction trajectories (Mi et al., 2026; Lu et al., 2026; Wang et al., 2026a; Yang et al., 2026). However, reusable procedural knowledge should ideally co-evolve with the policy itself: as the learner acquires new capabilities and succeeds on new interaction histories, the knowledge available for subsequent learning should be updated accordingly. In a word, the aforementioned limitations motivate us to ask: what form of procedural knowledge can be extracted from previous interactions, and continuously distilled as the learner evolves?
To this end, this paper proposes AtomSD, a procedural Atom-guided Self-Distillation framework that couples continual procedural abstraction with online policy learning. To provide a reusable unit of procedural knowledge, we define a Procedural Atom as a fine-grained and independently applicable unit of procedural knowledge. As illustrated in Figure 1, a Procedural Atom consists of (i) Intent, specifying what the procedure is intended to accomplish; (ii) When, defining its applicability conditions; (iii) Do, specifying an ordered procedure; and (iv) Avoid, identifying operations or failure modes to avoid. With this goal-directed and condition-aware representation, individual Atoms can be selectively applied and flexibly composed across different interaction histories, rather than reused only in complete and inseparable trajectories or bundled workflows. In this way, procedural knowledge can better adapt to new interactions.
To enable procedural knowledge to co-evolve with the learner, AtomSD establishes a self-improving loop through two complementary processes. (1) Online procedural abstraction. At each training iteration, the student acts as its own knowledge extractor, abstracting successful on-policy trajectories into independently applicable Procedural Atoms. By sharing the resulting Atom set within the same task, knowledge extracted from one trajectory can guide other interaction histories, including both successful and failed ones. As the policy evolves, subsequent extraction continually refreshes the procedural guidance to reflect the learner's growing capabilities. (2) Atom-guided self-distillation. An Atom-conditioned teacher, derived from the student, evaluates the original on-policy trajectories, transforming self-extracted procedural knowledge into token-level supervision across different interaction histories. Through joint reward optimization and self-distillation, this guidance is progressively internalized into the policy, whose continued improvement in turn supports further procedural knowledge discovery.
Comprehensive experiments on widely used benchmarks (Shridhar et al., 2021; Wang et al., 2022; Yao et al., 2023a; Guo et al., 2025b) demonstrate that AtomSD consistently outperforms six strong reward-based and distillation baselines, while also showing competitive performance against advanced API-based models such as DeepSeek-V4-Pro (DeepSeek-AI et al., 2026) and GPT-5.5 (OpenAI, 2026). AtomSD exceeds the state-of-the-art baseline in average performance by up to 9.31 points, with improvements extending to unseen tasks. Further analyses show that fine-grained Procedural Atoms provide compact and effective guidance, validating the design of Atom-guided self-distillation.
Our key contributions are as follows:
-
This paper introduces Procedural Atoms, fine-grained and independently applicable units that support selective reuse and flexible composition of procedural knowledge across interaction histories.
-
AtomSD combines online procedural abstraction with Atom-guided self-distillation, allowing procedural knowledge to be progressively internalized into the policy while co-evolving with the learner.

Figure 2: Overview of AtomSD. Procedural Atoms are continually abstracted from the student's own successful trajectories and distilled back into the evolving policy through Atom-guided self-distillation.
2.1 Online Procedural Abstraction
We represent an interaction trajectory as a task together with the sequence of observations and actions encountered during execution. From its own successful trajectories, the evolving student serves as the procedural knowledge extractor, abstracting reusable procedures into independently applicable Procedural Atoms.
Atom Structure Formally, an Atom is represented as
where denotes the procedural intent; specifies the conditions under which the Atom applies; defines the ordered procedure to execute; and captures optional failure modes or inappropriate operations to avoid. Here, the elements of , , and denote the conditions, operations, and avoidance items, respectively, while , , and denote their respective counts. Together, these components characterize what to achieve, when to apply the Atom, how to act, and what boundaries to respect.
Atomization and Sharing To provide fine-grained procedural knowledge for reuse across interaction histories, we atomize successful trajectories and aggregate their Atoms at the task level. Consider the k-th self-improving iteration and a sampled task x in its training batch. Let denote the student parameters at the beginning of iteration k. For task x, the current student generates G on-policy trajectories without access to Procedural Atoms. Within , we identify the successful trajectories as
where indicates whether
successfully completes task . The current student then serves as its own procedural knowledge extractor, atomizing each successful trajectory using the extraction prompt shown in Figure 8:
where denotes the number of Procedural Atoms extracted from . The trajectory-level Atom sets are then aggregated into the task-level procedural knowledge of the current self-improving loop:
The resulting aggregates procedural knowledge discovered across successful trajectories while retaining the constituent Atoms as distinct units. It is then shared across all trajectories of task to provide reusable guidance over different interaction histories, including both successful and unsuccessful ones.
2.2 Atom-Guided Self-Distillation
The second process completes each self-improving loop by distilling the procedural knowledge extracted from the current student back into its policy. Conditioned on this shared Atom set, the teacher provides token-level procedural supervision over the student's on-policy interaction histories. Algorithm 1 summarizes the complete self-improving loop executed at each training iteration.
Atom-Conditioned Guidance Let denote the teacher parameters at iteration .
Atom Example The following example illustrates how a Procedural Atom instantiates the four components defined above.
Intent ( ): Clean a held object using a designated cleaning facility.
When : The agent holds an object requiring cleaning; a suitable cleaning facility is available.
Do : Navigate to the cleaning facility if not already there; execute the cleaning action with the held object and the facility.
Avoid : Attempting to clean without reaching the facility; cleaning an object that is not currently held; using an incorrect or unavailable cleaning method.
Algorithm 1 AtomSD: Procedural Atom-Guided Self-Distillation
Require: Initial student policy ; task distribution ; number of on-policy trajectories per task ; distillation weight ; clipping range ; EMA decay ; training iterations
Ensure: Trained student policy
1: Initialize teacher parameters
2: for to do
3: Sample a training batch
4: for all do
(1) Online Procedural Abstraction
5: Generate
6: successful trajectories
7:
8: task-level Atom set
(2) Atom-Guided Self-Distillation
9: Compute for all reward signal
10: Atom support
11: Compute from using Eq. (6)
12: end for
13: using all and over via Eq. (8) with and policy update
14: EMA teacher update
15: end for
16: return
For each trajectory and the -th student-generated token in , let denote its preceding token-level interaction history. Given the shared task-level Atom set and the teacher prompting template shown in Figure 9, the teacher's Atom-conditioned token-level support for is defined as
For each Atom , the intent and applicability conditions provide the basis for identifying relevant Atoms from the current history , while and provide the corresponding procedural guidance and boundaries. Conditioning jointly on and allows the teacher to draw on relevant Atom guidance while providing history-specific token-level supervision, enabling compositional procedural guidance across multiple Atoms.
Joint Optimization We convert the Atom-conditioned support from a teacher derived from the student into a token-level internalization signal:
where denotes stop-gradient. This signal captures the difference between the teacher's support under the extracted procedural knowledge and the student's corresponding unguided probability.
In parallel, environment feedback provides a trajectory-level learning signal. For the G trajectories in , we compute the GRPO advantage (Shao et al., 2024) as , where and denote the within-task reward mean and standard deviation. The policy ratio is . Both learning signals use the same PPO-style clipped surrogate loss (Schulman et al., 2017):
where clip( ) constrains the policy ratio to , and A denotes the corresponding reward or Atom-guided distillation signal. Combining the two signals, the task-level objective is
where counts valid student-generated tokens in , and controls the strength of distillation. The batch objective aggregates these task-level losses according to their valid token counts. Optimizing this objective updates the student from to , progressively internalizing the procedural knowledge represented by into the policy.
Teacher Update The teacher and student are initialized identically, . After optimizing each training iteration, the teacher is updated by exponential moving average (EMA):
where denotes the EMA decay. The updated student then serves as the basis for procedural abstraction in the next iteration. Repeating this loop continually externalizes procedural knowledge from the evolving learner and distills it back into the policy, allowing procedural knowledge and the policy to co-evolve throughout training.
3 Experiments
3.1 Experiment Settings
Benchmarks We evaluate agents' ability to follow and execute multi-step procedures across four benchmarks. ALFWorld (ALF) (Shridhar et al., 2021) assesses household planning and execution in text-based environments. ScienceWorld (SW) (Wang et al., 2022)
| Model / Method | ALFWorld | ScienceWorld | WebShop | StableToolBench | Avg. | ||
|---|---|---|---|---|---|---|---|
| Seen | Unseen | Seen | Unseen | ||||
| DeepSeek-V4-Flash | 78.57 | 73.13 | 73.25 | 68.22 | 60.25 | 48.52 | 66.99 |
| DeepSeek-V4-Pro | 85.71 | 85.82 | 76.80 | 76.43 | 60.95 | 52.66 | 73.06 |
| GLM-5.3 | 93.57 | 91.79 | 80.45 | 72.69 | 70.88 | 64.50 | 78.98 |
| GPT-5.5 | 97.14 | 100.00 | 87.16 | 86.22 | 71.00 | 58.58 | 83.35 |
| Qwen3.5-4B | |||||||
| * ReAct | 50.71 | 50.00 | 27.49 | 19.97 | 21.54 | 50.30 | 36.67 |
| * Reflexion | 69.29 | 63.43 | 36.79 | 29.33 | 28.04 | 68.64 | 49.25 |
| OPSD | 80.00 | 79.85 | 40.74 | 30.92 | 50.40 | 63.31 | 57.54 |
| GRPO | 79.29 | 79.10 | 24.81 | 23.08 | 63.65 | 72.19 | 57.02 |
| GRPO+OPSD | 85.71 | 78.36 | 32.46 | 32.42 | 64.14 | 84.02 | 62.85 |
| SDPO | 46.43 | 41.04 | 5.40 | 4.69 | 0.67 | 2.37 | 16.77 |
| Skill-SD | 78.57 | 72.39 | 26.97 | 24.36 | 56.34 | 71.01 | 54.94 |
| SDAR | 76.43 | 74.63 | 46.74 | 42.28 | 47.02 | 76.33 | 60.57 |
| AtomSD (Ours) | 93.57 | 84.33 | 55.73 | 54.13 | 60.58 | 84.62 | 72.16 ↑9.31 |
| Qwen3.5-9B | |||||||
| * ReAct | 56.43 | 51.49 | 29.22 | 25.56 | 39.75 | 52.07 | 42.42 |
| * Reflexion | 70.00 | 71.64 | 48.48 | 43.31 | 38.84 | 70.41 | 57.11 |
| OPSD | 87.14 | 85.82 | 60.70 | 57.96 | 58.53 | 68.05 | 69.70 |
| GRPO | 82.14 | 82.09 | 69.09 | 68.33 | 50.56 | 71.01 | 70.54 |
| GRPO+OPSD | 77.86 | 78.36 | 69.15 | 62.08 | 62.58 | 85.21 | 72.54 |
| SDPO | 65.71 | 60.45 | 16.12 | 13.30 | 0.97 | 11.83 | 28.06 |
| Skill-SD | 80.00 | 83.58 | 61.82 | 60.71 | 59.57 | 88.76 | 72.41 |
| SDAR | 87.86 | 91.04 | 30.45 | 28.81 | 58.73 | 78.70 | 62.60 |
| AtomSD (Ours) | 88.57 | 86.57 | 70.68 | 68.75 | 60.89 | 92.31 | 77.96 ↑5.42 |
Table 1: Main results across four benchmarks. * denotes methods requiring no additional training; ♠ denotes methods that update model parameters. Higher is better in every column. Avg. is the average of the six reported scores; green arrows (↑) indicate our absolute gains over the highest baseline Avg. within each backbone. Best, Second-best, and Third-best scores are highlighted within each backbone.

Figure 3: Ablation of Atom components on Qwen3.5-4B and Qwen3.5-9B. Left: Final benchmark performance. Right: Training rewards after removing Intent, Avoid, or both, alongside the Atom-only setting.
requires scientific reasoning through multi-step experimentation. WebShop (WS) (Yao et al., 2023a) evaluates product search and purchasing under user constraints. StableToolBench (STB) (Guo et al., 2025b) assesses tool use through a virtual API environment. We report seen and unseen results separately for ALFWorld and ScienceWorld, denoted by the suffixes -S and -U, alongside test results for WebShop and StableToolBench. Detailed descriptions of the datasets and evaluation subsets are provided in Appendix A.
Models We use Qwen3.5-4B and Qwen3.5-9B (Qwen Team, 2026) as backbone models. We additionally evaluate four strong API-based models: DeepSeek-V4-Flash and DeepSeek-V4-Pro (DeepSeek-AI et al., 2026), GLM-5.3 (GLM-5-Team et al., 2026), and GPT-5.5 (OpenAI, 2026).
Baselines All models interact with the environments using ReAct (Yao et al., 2023b). API-based models are evaluated with ReAct alone. We compare AtomSD with the following categories of methods: (1) Prompting: the initial model with ReAct alone and Reflex-ion (Shinn et al., 2023), which additionally incorporates textual reflections from previous attempts without parameter updates; (2) Reward-based RL: GRPO (Shao et al., 2024), which learns from task rewards; (3) Trajectory-guided self-distillation: OPSD (Zhao et al., 2026a), SDPO (Hübotter et al., 2026), and GRPO+OPSD, which use successful demonstrations as privileged teacher context in our setting, with GRPO+OPSD additionally incorporating task rewards; and (4) Skill-guided distillation: Skill-SD (Wang et al., 2026a) and SDAR (Lu et al., 2026), which combine reward optimization with teacher guidance from skills constructed by strong external LLMs. Together, these baselines provide a comprehensive comparison across inference-time reflection, reward-based learning, and trajectory- or skill-guided distillation. We set , , and for AtomSD. Detailed training and implementation settings are provided in Appendix B.
Evaluation Metrics For training-based methods, we evaluate checkpoints at the same training step. We report success rate on ALFWorld, average task score on ScienceWorld and WebShop, and solved rate on StableToolBench using the official Final Answer Completeness (FAC) (Guo et al., 2025a). All scores use a 0–100 scale.
3.2 Main Results
Table 1 summarizes the main results, with four key findings. (1) AtomSD improves beyond reward- and demonstration-guided training. AtomSD consistently outperforms GRPO, OPSD, and GRPO+OPSD in average performance at both model scales, exceeding the strongest baseline by 9.31 and 5.42 points at 4B and 9B, respectively. This highlights the value of Procedural Atoms beyond reward-only learning, demonstration-guided distillation, and their combination. (2) AtomSD provides broader gains than skill-level distillation. AtomSD outperforms Skill-SD and SDAR on most tasks at both scales, with particularly pronounced gains on ScienceWorld. These results suggest that even skill libraries constructed by stronger external models do not necessarily provide more effective guidance, highlighting the value of fine-grained Procedural Atoms. (3) Improvements generalize to unseen tasks. AtomSD leads on ScienceWorld unseen at both model scales, with improvements also extending to ALFWorld unseen. These results suggest that procedural knowledge learned through AtomSD can generalize beyond seen tasks. (4) AtomSD is competitive with strong LLMs without inference-time reflection. AtomSD surpasses Reflexion by 22.91 and 20.85 points at 4B and 9B, respectively. AtomSD-9B further exceeds DeepSeek-V4-Pro and trails GPT-5.5 by only 5.39 points in average score, suggesting that internalizing Procedural Atom guidance can reduce reliance on inference-time reflection while narrowing the gap to substantially stronger LLMs. We further provide qualitative case studies in Appendix D.1.
3.3 Effects of Atom Components and Joint Optimization
Figure 3 examines the contributions of Atom components and joint reward optimization. (1) The complete Atom representation provides more effective guidance. Including Intent improves the average score by 15.0 points at 4B and 1.4 points at 9B, while the complete representation outperforms removing both Intent and Avoid by 8.9 and 13.4 points, respectively, with similar trends observed in the training rewards. These results highlight the value of organizing procedural guidance within the complete Atom representation. (2) Explicit avoidance boundaries improve performance at both scales. Removing Avoid reduces the average score by 13.1 points at 4B and 14.0 points at 9B. This further highlights the importance of explicitly representing what to avoid, rather than distilling successful operations alone. (3) Joint optimization strengthens Atom-guided learning. Combining Atom-guided distillation with task rewards improves average performance by 25.3 and 25.1 points over Atom-only training at 4B and 9B, respectively. This supports the design choice of jointly internalizing procedural guidance while optimizing for task completion. Overall, these results show that effective Atom-guided learning depends on both a complete procedural representation and joint optimization with task rewards.

Figure 4: Procedural Atom internalization analysis on Qwen3.5-4B/9B across Early/Late training and same-/cross-task histories, reporting action-support change and guidance-direction agreement.
Figure 5: Analysis of Procedural Atom evolution, teacher updates, and representation. Top: Extractor comparison. Middle: Teacher-update comparison. Bottom left: Length comparison of teacher prefixes (left) and individual Atoms, skills, and student trajectories (right); Overall averages all samples across the four datasets. Bottom right: Atom component count distribution.
3.4 Internalization and Co-Evolution
Internalization and Composition To examine whether the student internalizes Atom guidance, we consider two relevant Procedural Atoms, and , and evaluate guidance from each individually and in combination. We use GPT-5.5 to identify supported actions and their preceding interaction histories. This analysis covers both same-task and cross-task histories at two training stages, Early and Late. Within each stage, we use a fixed training interval and compare the student checkpoints at its beginning and end using two metrics: (1) maximum-token support change, measuring the relative probability increase of the most-improved action token without Atoms, and (2) guidance-direction agreement, measuring whether Atom-favored tokens change in the same direction after training without Atoms. Detailed definitions and results are provided in Appendix C. As shown in Figure 4, during Early training, maximum-token support ( ) increases by 36.9% for 4B and 45.2% for 9B on same-task histories. Agreement with composed guidance from and reaches 75.0% on cross-task histories for Early 4B and 70.5% for Late 9B. These results support effective internalization of both individual and composed Atom guidance, including across tasks; see Appendix D.2 for a concrete composition case.
Co-Evolution To assess whether procedural knowledge benefits from co-evolving with the learner, we replace the evolving student extractor with either DeepSeek-V4-Pro or the frozen initial Qwen backbone. Figure 5 (top) shows that a stronger extractor alone does not yield better performance: DeepSeek-V4-Pro trails AtomSD at 4B and is comparable at 9B. Meanwhile, the evolving student consistently outperforms the frozen extractor in evaluation performance and late-stage rewards at both scales. These results support AtomSD's co-evolving design: learner improvement refreshes procedural knowledge for distillation, which in turn supports further policy improvement.
Atom Representation To characterize the granularity and compactness of Procedural Atoms, Figure 5 (bottom left) compares lengths using trajectories matched by task and training step across methods. Overall, Atom guidance requires 1.53k prefix tokens, compared with 2.20k for skills and 3.93k for trajectories. At the unit level, individual Atoms average only 0.15k tokens, substantially smaller than skills (0.64k) and trajectories (4.97k). Figure 5 (bottom right) further shows a relatively balanced distribution of the four Atom components across datasets throughout training. These results show that Procedural Atoms provide compact, fine-grained guidance across multiple procedural aspects, supporting selective reuse and composition.

Figure 6: Training dynamics of AtomSD and baselines on Qwen3.5-4B and Qwen3.5-9B. Top: Training rewards. Bottom: Trajectory token counts (left) and interaction steps (right).
Figure 7: Distillation coefficient analysis on Qwen3.5-4B and Qwen3.5-9B. Top: Training rewards. Bottom: Final evaluation score differences from AtomSD.
3.5 Analyses
Training Dynamics Analysis Figure 6 (top) shows that AtomSD's advantage emerges as training progresses. OPSD improves rapidly early on at both model scales, but its gains subsequently plateau, whereas AtomSD continues to improve and reaches the highest reward toward the end. Figure 6 (bottom) further shows that these gains accompany relatively low token usage and fewer interaction steps during later training at both scales. These results show that Procedural Atoms improve performance with more compact trajectories.
Distillation Strength Analysis Figure 7 shows that increasing from 0.001 to 0.01 or 0.1 consistently reduces late-stage training rewards and average evaluation performance at both model scales. This suggests that Atom-guided distillation is more effective when properly balanced with reward optimization rather than simply strengthened, consistent with recent findings on self-distillation in agentic RL (Lu et al., 2026; Kaur et al., 2026).
Teacher Update Analysis Figure 5 (middle) compares EMA with fixed and fully synchronized teachers. EMA achieves the highest average evaluation performance at both model scales; the fixed teacher remains competitive, while full synchronization yields lower late-stage training rewards at both scales. These results suggest that EMA balances preserving prior teacher knowledge with incorporating student progress.
4 Related Work
Experiential Memory and Procedural Knowledge Experience-based agents transform interaction histories into reflections, insights, and reasoning memories for reuse in subsequent decisions (Shinn et al., 2023; Zhao et al., 2024; Ouyang et al., 2026), while others leverage embeddings, KV cache, or special tokens to represent memories (Yu et al., 2025; 2026c; Wu et al., 2026b). Furthermore, prior work organizes histories into reusable workflows, conditional procedures, and explicit rules, enabling more selective reuse across interactions (Wang et al., 2025; Fu et al., 2024; Lin et al., 2026; Yu et al., 2026a; Mi et al., 2026). A complementary line of work models environment dynamics and action consequences to support planning (Qiao et al., 2024; Kim & Hwang, 2025; Liu et al., 2026b). AtomSD instead uses procedural abstractions as privileged context. Condition-aware Atoms guide policy learning and are progressively internalized into model parameters, without requiring external guidance at inference.
On-Policy Distillation On-policy distillation applies teacher supervision to student-generated trajectories, internalizing privileged knowledge into model parameters (Agarwal et al., 2024; Zhao et al., 2026a; Hübotter et al., 2026; Ye et al., 2026; Wu et al., 2026a). Privileged knowledge can be supplied as explicit textual context or encoded into learned latent representations (Liu et al., 2026a; Ye et al., 2026; Zhang et al., 2026). AtomSD uses indepen-dently applicable Procedural Atoms as the unit of privileged supervision, enabling guidance to be composed according to the student’s current interaction history rather than being tied to a specific demonstration trajectory or workflow.
Skill-Guided Agent Learning Skill-augmented reinforcement learning optimizes agents' ability to exploit and improve external skill libraries (Wang et al., 2026b; Xia et al., 2026; Chen et al., 2026). Skill-conditioned distillation instead uses skill guidance as teacher-side context to train policies that operate without external skill inputs at inference (Lu et al., 2026; Wang et al., 2026a; Yang et al., 2026; Lv et al., 2026). AtomSD constructs procedural guidance online from the evolving student's successful trajectories, without relying on a preconstructed skill library or a separate external model for knowledge extraction. By continually decomposing trajectories into independently applicable Atoms rather than bundled skills, it supports selective reuse and flexible composition while allowing procedural knowledge to co-evolve with the learner.
5 Conclusion
This paper presents AtomSD, a self-improving framework that transforms successful on-policy trajectories into Procedural Atoms and distills their guidance back into the policy, allowing procedural knowledge to co-evolve with the learner. Comprehensive experiments and analyses show that AtomSD consistently improves agent performance, while fine-grained Procedural Atoms support selective reuse and flexible composition across interaction histories. Our results highlight atomized procedural knowledge as an effective bridge between raw interaction histories and parametric policy learning.
References
Minsoo Kim and Seung-won Hwang. CoEx – co-evolving world-model and exploration. In Findings of the Association for Computational Linguistics: EMNLP 2025, pp. 21629–21651, Suzhou, China, November 2025. Association for Computational Linguistics.
Siru Ouyang, Jun Yan, I-Hung Hsu, Yanfei Chen, Ke Jiang, Zifeng Wang, et al. Reasoningbank: Scaling agent self-evolving with reasoning memory, 2026. Preprint, arXiv:2509.25140.
Qwen Team. Qwen3.5: Towards native multimodal agents, February 2026.
Shuofei Qiao, Runnan Fang, Ningyu Zhang, Yuqi Zhu, Xiang Chen, Shumin Deng, et al. Agent planning with world knowledge model. In Advances in Neural Information Processing Systems, volume 37, pp. 114843–114871. Curran Associates, Inc., 2024.
Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents, 2023a. Preprint, arXiv:2207.01206.
Zhicheng Guo, Sijie Cheng, Hao Wang, Shihao Liang, Yujia Qin, Peng Li, et al. Stable-toolbench: Towards stable large-scale benchmarking on tool learning of large language models, 2025b. Preprint, arXiv:2403.07714.
Qirui Mi, Zhijian Ma, Mengyue Yang, Haoxuan Li, Yisen Wang, Haifeng Zhang, et al. Skill-pro: Learning reusable skills from experience via non-parametric PPO for LLM agents. In Forty-third International Conference on Machine Learning, 2026.
Jiangwang Chen, Zixin Song, Junlin Liu, Shuaiyu Zhou, Haiyan Wu, Haihan Shi, et al. Decoevo: Score-decoupled co-evolution of solver and rubric-generator skills in text space, 2026. Preprint, arXiv:2607.25675.
Chunji Lv, Yangguang Wei, Junlin Liu, Yang Gao, Ming Liu, Xinming Wang, et al. Pcsd: Persistent consistency for self-distillation in agentic reinforcement learning, 2026. Preprint, arXiv:2608.01837.
Yao Fu, Dong-Ki Kim, Jaekyeom Kim, Sungryull Sohn, Lajanugen Logeswaran, Kyunghoon Bae, et al. Autoguide: Automated generation and selection of context-aware guidelines for large language model agents. In Advances in Neural Information Processing Systems, volume 37, pp. 119919–119948. Curran Associates, Inc., 2024.
Zhengxi Lu, Zhiyuan Yao, Zhuowen Han, Zi-Han Wang, Jinyang Wu, Qi Gu, et al. Self-distilled agentic reinforcement learning, 2026. Preprint, arXiv:2605.15155.
Bohan Yu, Shi-Yang Li, Pengfei Cao, Jun Zhao, and Kang Liu. Ruleweaver: Benchmarking rule-centered scenario reasoning for large language models, 2026b. Preprint, arXiv:2608.26832.
Jonas Hübotter, Frederike Lübeck, Lejs Deen Behric, Anton Baumann, Marco Bagatella, Daniel Marta, et al. Reinforcement learning via self-distillation. In Forty-third International Conference on Machine Learning, 2026.
Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, et al. Self-distilled reasoner: On-policy self-distillation for large language models. In Forty-third International Conference on Machine Learning, 2026a.
Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning, 2021. Preprint, arXiv:2010.03768.
Zihan Lin, Zhenyu Chen, Jiawen Wei, Xiaohan Wang, Jie Cao, Jiajun Chai, et al. When not to imitate: Boundary-aware skill memory for reliable tool-use llm agents, 2026. Preprint, arXiv:2608.22339.
Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, et al. A survey of large language models, 2026b. Preprint, arXiv:2303.18223.
Guibin Zhang, Jiayang Lyu, Ran Sun, Xinlei Yu, Haoyu Zhao, Qibing Ren, et al. Latent on-policy self-distillation, 2026. Preprint, arXiv:2608.13040.
Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, et al. Toolllm: Facilitating large language models to master 16000+ real-world apis. In International Conference on Learning Representations, volume 2024, pp. 9695–9717, 2024.
Bohan Yu, Pengfei Cao, Chen Han, Chenxi Zhou, Zhiheng Zhang, Zhiyang Xie, et al. Beyond factual knowledge: Benchmarking and learning step-level procedural rule reasoning in large language models, 2026a. Preprint, arXiv:2608.22753.
OpenAI. GPT-5.5 system card, April 2026.
Zijun Wu, Yongchang Hao, and Lili Mou. Tokmem: One-token procedural memory for large language models, 2026b. Preprint, arXiv:2510.00444.
Xingjian Wu, Junlin Liu, Xingchen Liu, Xuhang Zhu, Jianing Wang, Linsen Guo, et al. Contrastive reinforced policy optimization via privileged self-distillation, 2026a. Preprint, arXiv:2607.28026.
Peng Xia, Jianwen Chen, Hanyang Wang, Jiaqi Liu, Kaide Zeng, Yu Wang, et al. Skillrl: Evolving agents via recursive skill-augmented reinforcement learning, 2026. Preprint, arXiv:2602.08234.
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, et al. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations, 2024.
Jiongxiao Wang, Qiaojing Yan, Yawei Wang, Yijun Tian, Soumya Smruti Mishra, Zhichao Xu, et al. Reinforcement learning for self-improving agent with skill library. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1529–1550, San Diego, California, United States, July 2026b. Association for Computational Linguistics.
Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent workflow memory. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 63897–63911. PMLR, 13–19 Jul 2025.
Hao Wang, Guozhi Wang, Han Xiao, Yufeng Zhou, Yue Pan, Jichao Wang, et al. Skill-sd: Skill-conditioned self-distillation for multi-turn llm agents, 2026a. Preprint, arXiv:2604.10674.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R Narasimhan, et al. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, 2023b.
OpenAI, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, et al. Gpt-4 technical report, 2024. Preprint, arXiv:2303.08774.
Tianzhu Ye, Li Dong, Xun Wu, Shaohan Huang, and Furu Wei. On-policy context distillation for language models, 2026. Preprint, arXiv:2602.12275.
Bohan Yu, Wei Huang, and Kang Liu. Sr-ki: Scalable and real-time knowledge integration into llms via supervised attention, 2025. Preprint, arXiv:2511.06446.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms, 2017. Preprint, arXiv:1707.06347.
Youwei Liu, Jian Wang, Hanlin Wang, and Wenjie Li. Comap: Co-evolving world models and agent policies for llm agents, 2026b. Preprint, arXiv:2606.02372.
Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. Expel: Llm agents are experiential learners, 2024. Preprint, arXiv:2308.10144.
Wangtao Sun, Haotian Xu, Huanxuan Liao, Xuanqing Yu, Zhongtao Jiang, Shizhu He, et al. Shuttle between symbolic instructions and neural parameters of large language models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 27510–27524, San Diego, California, United States, July 2026. Association for Computational Linguistics.
Junlin Liu, Jiangwang Chen, Zixin Song, Shuaiyu Zhou, Chunji Lv, Hank Wu, et al. From proprietary to open-source: Bridging the distribution gap via multi-agent protocol distillation in agentic search, 2026a. Preprint, arXiv:2607.24280.
DeepSeek-AI, Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, et al. Deepseek-v4: Towards highly efficient million-token context intelligence, 2026. Preprint, arXiv:2606.19348.
Yifan Song, Da Yin, Xiang Yue, Jie Huang, Sujian Li, and Bill Yuchen Lin. Trial and error: Exploration-based trajectory optimization of LLM agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 7584–7600, Bangkok, Thailand, August 2024. Association for Computational Linguistics.
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, pp. 8634–8652. Curran Associates, Inc., 2023.
Bohan Yu, Lei Shen, Chenxi Zhou, Chen Han, Junlin Liu, Wenbo Su, et al. Prem: Learning what to preserve and when to refresh for context compression, 2026c. Preprint, arXiv:2607.14327.
Sirui Liang, Pengfei Cao, Jian Zhao, Wenhao Teng, Xiangwen Liao, Jun Zhao, et al. Learning how to remember: A meta-cognitive management method for structured and transferable agent memory. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 30733–30753, San Diego, California, United States, July 2026. Association for Computational Linguistics.
GLM-5-Team, :, Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, et al. Glm-5: from vibe coding to agentic engineering, 2026. Preprint, arXiv:2602.15763.
Simran Kaur, Narutatsu Ri, Yinghui He, Liam Fowl, and Sanjeev Arora. Rethinking on-policy self-distillation for thinking models, 2026. Preprint, arXiv:2607.05184.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, et al. Deepseek-math: Pushing the limits of mathematical reasoning in open language models, 2024. Preprint, arXiv:2402.03300.
Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, et al. Hybridflow: A flexible and efficient rlhf framework. In Proceedings of the Twentieth European Conference on Computer Systems, EuroSys '25, pp. 1279–1297. ACM, March 2025.
Ruoyao Wang, Peter Jansen, Marc-Alexandre Côté, and Prithviraj Ammanabrolu. Science-world: Is your agent smarter than a 5th grader?, 2022. Preprint, arXiv:2203.07540.
Shuo Yang, Jinyang Wu, Zhengxi Lu, Yuhao Shen, Fan Zhang, Lang Feng, et al. Opid: On-policy skill distillation for agentic reinforcement learning, 2026. Preprint, arXiv:2606.26790.
Zhicheng Guo, Sijie Cheng, Yuchen Niu, Hao Wang, Sicheng Zhou, Wenbing Huang, et al. StableToolBench-MirrorAPI: Modeling tool environments as mirrors of 7,000+ real-world APIs. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 5247–5270, Vienna, Austria, July 2025a. Association for Computational Linguistics.
A Datasets
We evaluate AtomSD on four agent benchmarks covering household interaction, scientific experimentation, web shopping, and tool use. These benchmarks differ substantially in task structure and interaction requirements, providing a diverse testbed for procedural knowledge learning. Table 2 summarizes their task characteristics, task diversity, and the number of task instances available for training and used for evaluation.
| Benchmark | Task characteristics | Task types | Training | Evaluation |
|---|---|---|---|---|
| ALFWorld | Household interaction with object search, navigation, and prerequisite-aware manipulation | 6 families | 3,553 | 140 seen / 134 unseen |
| ScienceWorld | Multi-step scientific experimentation involving transformations, measurement, circuits, and biological reasoning | 30 types | 3,592 | 194 seen / 211 unseen |
| WebShop | Interactive product search, attribute matching, option selection, and purchase | Open-ended | 10,587 | 200 test |
| StableToolBench | Multi-turn tool use involving API selection, parameterization, and execution | 3 groups | 10,129 | 169 solvable |
| Total | 27,861 | 1,048 |
Table 2: Dataset characteristics and task counts used for training and evaluation.
ALFWorld ALFWorld (Shridhar et al., 2021) evaluates text-based household interaction across six task families: placing objects, placing two objects, cleaning, heating, cooling, and examining an object under a light. The benchmark requires agents to locate relevant objects, satisfy action prerequisites, and execute multi-step plans. We use 3,553 training tasks and report results on 140 seen and 134 unseen evaluation tasks.
ScienceWorld ScienceWorld (Wang et al., 2022) evaluates scientific reasoning and experimentation across 30 task types, including material transformations, electrical circuits, measurement, and biological processes. We use 3,592 training tasks and evaluate on 194 seen and 211 unseen tasks.
WebShop WebShop (Yao et al., 2023a) evaluates interactive shopping agents that must search a product catalog, inspect product attributes and options, and select an item satisfying a natural-language request. Its diversity arises from open-ended product constraints and shopping goals. We use 10,587 training tasks and 200 test tasks for evaluation.
StableToolBench StableToolBench (Guo et al., 2025b) evaluates multi-turn tool use across the G1, G2, and G3 query groups, requiring agents to select appropriate APIs, construct valid calls, and reason over tool responses. Our training pool contains 10,129 audited ToolBench (Qin et al., 2024) queries, and evaluation uses the 169 solvable instances in the StableToolBench reporting subset.
Evaluation Subsets We use fixed evaluation subsets across all methods: 140 seen and 134 unseen tasks for ALFWorld, 194 seen and 211 unseen tasks for ScienceWorld, 200 test tasks for WebShop, and 169 solvable queries for StableToolBench. The ScienceWorld and WebShop subsets follow the manifests released with ETO (Song et al., 2024), and the same task selections are used for every method.
B Training and Implementation Details
Shared Setup We train AtomSD and all training baselines under a unified mixed-benchmark setting using verl (Sheng et al., 2025) on 8× A100 80GB GPUs, with tasks sampled from the training pools of ALFWorld, ScienceWorld, WebShop, and StableToolBench. At each training iteration, we sample 48 tasks, with 12 drawn from each benchmark, and generate four on-policy trajectories per task. Sampling is balanced across task types for ALFWorld, ScienceWorld, and StableToolBench, while WebShop is sampled from a single task pool. Training rewards are normalized to [0, 1]: ALFWorld and StableToolBench use binary success rewards, while ScienceWorld and WebShop retain their graded rewards after scaling by 100. We use a learning rate of ; other shared training hyperparameters are summarized in Table 3. For AtomSD, we set the distillation coefficient to , the clipping range to , and the EMA decay to , updating the teacher once per training iteration. All training baselines follow the same shared setup, with method-specific objectives, guidance sources, and teacher-update strategies summarized in Table 4. For evaluation inference and Atom extraction, we set the temperature to 0.7 for Qwen3.5 models and 1.0 for API-based models. We disable thinking wherever supported; for GLM-5.3, which requires thinking, we set the reasoning effort to low.
Demonstration-Based Distillation
We follow the official teacher-update settings for the demonstration-based baselines: OPSD and GRPO+OPSD use a teacher fixed at the initial backbone, while SDPO maintains an EMA teacher. Demonstrations are drawn from successful same-task rollouts in the current batch, excluding the target trajectory.
Skill-Based Distillation We reproduce Skill-SD and SDAR following the official implementation and experimental settings released with SDAR, including their respective teacher-update and distillation configurations. Both methods use a skill library as privileged teacher context, while the student receives no skill input. Skill-SD uses a distillation coefficient of 0.001, whereas SDAR uses 0.01 with its original gating mechanism; both teachers use the current student parameters at each training iteration. For ALFWorld and WebShop, we use the skill libraries released with SDAR. For ScienceWorld and StableToolBench, where corresponding libraries are unavailable, we construct them following SDAR's official setting, using the SkillRL (Xia et al., 2026) procedure with training-task rollouts and GPT-5.5 as the library builder.
| Parameter | Setting |
|---|---|
| Shared training settings | |
| Backbones | Qwen3.5-4B / Qwen3.5-9B |
| Tasks per iteration | 48 (12 per benchmark) |
| Rollouts per task | 4 |
| Optimization mini-batch | 12 tasks / 48 trajectories |
| Optimization epochs | 1 |
| Learning rate | |
| Maximum context length | 49,152 tokens |
| Rollout temperature | 1.0 |
| Random seed | 42 |
| AtomSD-specific settings | |
| KD coefficient λ | 0.001 |
| EMA decay α | 0.95 |
| Teacher update | Every training iteration |
Table 3: Shared training hyperparameters and AtomSD-specific settings.
Inference-Only Baselines ReAct performs a single episode per task without parameter updates. Reflexion allows up to three attempts per task with task-local reflection memory, stopping early upon success. We adapt the official reflection prompt to all four benchmarks.
C Procedural Atom Internalization and Composition Analysis
We define procedural Atom internalization as the transfer of explicit Atom guidance into the student's own policy, such that the same guidance is reflected in its behavior even when Atoms are no longer provided. We further examine whether this internalization extends to composed guidance from multiple Atoms. To examine this process, we hold the interaction history fixed and compare two sources of action-support change: the change induced by explicitly supplying Atoms to an earlier checkpoint, and the change produced by subsequent training without Atom access. We quantify their relationship using two complementary metrics: (1) maximum-token support change, which captures the strongest
| Method | GRPO reward loss | Distillation weight | Teacher update | Distillation configuration |
|---|---|---|---|---|
| GRPOOPSD | YesNo | —1.0 | —Fixed | Task-reward optimization only.Sampled-token reverse-KL surrogate with successful same-task demonstrations. |
| GRPO+OPSD | Yes | 0.001 | Fixed | Same demonstration-conditioned distillation objective as OPSD. |
| SDPO | No | 1.0 | EMA () | Distribution-level self-distillation over the top-K tokens and the aggregated tail probability, with . |
| Skill-SD | Yes | 0.001 | Full synchronization | Differentiable importance-weighted divergence. |
| SDAR | Yes | 0.01 | Full synchronization | Detached sigmoid gating with . |
Table 4: Method-specific configurations for the training baselines.
local increase in support for an action, and (2) guidance-direction agreement, which measures whether training-induced changes follow the direction specified by explicit Atom guidance. We evaluate both individual and composed Atom guidance across same-task and cross-task histories at Early and Late stages of training.
Analysis Units Each analysis unit consists of an interaction history, a recorded action, and an Atom pair . We obtain Atoms from successful training trajectories and use GPT-5.5 to assess their applicability to the target history and identify procedural dependencies or joint constraints relevant to the recorded action. For same-task analysis, the target history comes from a different trajectory of the same task, whereas for cross-task analysis, it comes from a task with a distinct task ID. The 4B analysis includes 175 same-task and 144 cross-task units, while the 9B analysis includes 173 and 149 units, respectively. We define Early as training steps 0–10 and Late as steps 50–60.
Conditional Action Support Let index an analysis unit, let denote the token at position of its recorded action, and let denote the positions of the scored action-content tokens. For each Atom context , we teacher-force the recorded action and compute the token-level log-probability
where contains the preceding interaction history and the recorded action prefix before token . We score only action-content tokens, yielding their conditional support under each Atom context.
Metric 1: Maximum-Token Support Change Let and denote the earlier and later checkpoints within an analysis interval. Without providing Atoms, we define the training-induced log-probability change for each action token as . For each analysis unit, we select the most-improved token:
with ties resolved by the earliest position. Its relative probability change is . For a set of analysis units, we report
therefore measures the mean relative change in the most-improved token of each recorded action.
Metric 2: Guidance-Direction Agreement
For each nonempty Atom context , we measure its explicit guidance effect at the earlier checkpoint as
We then select the token with the largest guidance effect, , independently for Atom , Atom , and their combination. This selection depends only on the earlier checkpoint and is therefore independent of subsequent training changes. At the selected token, we define directional agreement as
For the eligible set , the agreement rate is
Thus, measures how often subsequent training without Atoms changes action support in the same direction as the explicit Atom guidance.
Aggregation and Results We aggregate both metrics at the action level within each model scale, training stage, and task-matching group, such that each recorded action contributes one observation regardless of token length. Table 5 reports the aggregated results. Maximum-token support increases across all eight groups, indicating that the selected action tokens receive stronger policy support after training. Guidance-direction agreement is also consistently observed, reaching 75.0% for composed Atom guidance in Early 4B cross-task analysis and 70.5% in Late 9B cross-task analysis. These results provide evidence that both individual and composed Atom guidance is reflected in subsequent unguided policy changes, including across different tasks.
D Qualitative Case Studies
D.1 Procedural Dependency Patterns
Across evaluation trajectories, we observe several recurring forms of procedural dependency that distinguish successful agent behavior beyond simply executing plausible action sequences. We highlight four representative patterns: (1) observation-conditioned branching, (2) constraint-driven revision, (3) subgoal-state dependency, and (4) feedback-guided API recovery. Table 6 summarizes one representative case for each pattern, followed by detailed trajectory-level analysis.
Observation-Conditioned Branching This pattern arises when the appropriate downstream action depends on information revealed only through an intermediate observation. In ScienceWorld task use-thermometer/384, the agent must first measure an unknown substance and then select its destination according to the observed temperature. AtomSD measures and subsequently places the substance in the box designated for temperatures below , successfully completing the task. In contrast, unsuccessful baseline trajectories exhibit errors such as incorrect thermometer use, repeated invalid actions, and interactions with unrelated objects, failing to obtain the measurement needed for the subsequent placement decision. This case illustrates that procedural competence requires not only acquiring relevant information, but also conditioning subsequent actions on the observed outcome.
| Model | Stage | Hist. | (%) | (%) | (%) | (%) | |
|---|---|---|---|---|---|---|---|
| 4B | Early | Same | 175 | 36.9 | 68.4 | 64.9 | 67.4 |
| Cross | 144 | 16.9 | 70.8 | 72.9 | 75.0 | ||
| Late | Same | 175 | 21.2 | 52.7 | 50.0 | 56.3 | |
| Cross | 144 | 5.8 | 47.1 | 46.1 | 44.2 | ||
| 9B | Early | Same | 173 | 45.2 | 59.0 | 56.0 | 54.4 |
| Cross | 149 | 25.9 | 69.9 | 68.7 | 61.9 | ||
| Late | Same | 173 | 38.1 | 70.5 | 61.0 | 69.0 | |
| Cross | 149 | 8.1 | 75.8 | 70.3 | 70.5 |
Table 5: Procedural Atom internalization across model scales, training stages, and history settings. denotes the number of analysis units; measures maximum-token support change; , , and measure guidance-direction agreement for Atom , Atom , and their composition, respectively.
| Procedural Pattern | Core Dependency | Representative Case |
|---|---|---|
| Observation-Conditioned Branching | A downstream action depends on newly observed information. | ScienceWorld: AtomSD measures a substance at −31°C and selects the destination specified for temperatures below 50°C, completing the task. |
| Constraint-Driven Revision | An earlier choice must be revised after detecting a violated constraint. | WebShop: AtomSD rejects an over-budget product, returns to search, and selects a cheaper item satisfying the requested attributes. |
| Subgoal-State Dependency | A later subgoal requires the state produced by an earlier operation. | ALFWorld: AtomSD acquires a potato, heats it, and only then places the heated object in the target receptacle. |
| Feedback-Guided API Recovery | Uninformative API responses require adapting the query strategy based on returned feedback. | StableToolBench: After an empty response, AtomSD revises its pagination strategy, verifies the returned results, and reports nine products grounded in the API output. |
Table 6: Representative cases of recurring procedural patterns observed in evaluation trajectories.
Constraint-Driven Revision This pattern captures situations in which an initially plausible choice must be revised after newly observed information reveals a constraint violation. In WebShop task 1451, the requested sweater must satisfy multiple constraints, including color, size, fit, and a price below 100 candidate, recognizes the price mismatch, returns to search, and selects a cheaper product before configuring the requested color and size, obtaining a score of 100. By comparison, failed baseline trajectories exhibit incomplete constraint satisfaction, such as purchasing after selecting the color without configuring the requested size. The case highlights the ability to revise an intermediate decision rather than persist with a candidate that no longer satisfies the task constraints.
Subgoal-State Dependency This pattern occurs when a later subgoal depends on a state established by an earlier operation. In an ALFWorld heat-and-place task, the potato must be heated before it can satisfy the final placement goal. AtomSD first acquires the potato, executes heat potato 1 with microwave 1, observes confirmation of the state change, and then places the heated potato in the garbage can, completing the task in eight steps. Meanwhile, failed baseline trajectories include irrelevant object manipulations that divert execution from the required acquire–heat–place sequence. This case illustrates the need to preserve state dependencies across subgoals, ensuring that the output of one procedure satisfies the requirements of the next.
Feedback-Guided API Recovery This pattern arises when an API response is uninformative or inconsistent, requiring the agent to revise its query strategy based on returned feedback. In StableToolBench task G1_instruction/32617, the user asks for all products in the Clothing category and their total count. AtomSD initially receives an empty result, then inspects the available categories and adjusts its requests until it retrieves nine valid products together with a reported count of nine. It subsequently verifies the result through additional pagination checks and grounds its final answer in the returned API data. Unsuccessful baseline trajectories instead exhibit continued querying despite obtaining nonempty results, without consolidating the retrieved information into a final answer. This case illustrates feedback-guided recovery: when an initial tool call is uninformative, the agent uses subsequent observations to revise its interaction strategy and recover a grounded answer.
| Intent | When | Do | Avoid |
|---|---|---|---|
| Collect ingredients | Required ingredients have been identified from the recipe. | Move each required ingredient into a suitable common container. | Leaving ingredients outside the container or mixing prematurely. |
| Mix the contents | All required ingredients are in one accessible, stable container, and the recipe calls for mixing. | Mix the container and observe whether the target substance is produced. | Mixing incomplete or separated ingredients, or ignoring mixing errors. |
| Acknowledge the product | The desired substance has been created and its location is known. | Focus on the created substance and confirm task completion. | Focusing on the wrong object or continuing without acknowledging the goal. |
Table 7: Paraphrases of Procedural Atoms extracted from successful training trajectories.
D.2 Composition of Internalized Atoms
We use a ScienceWorld chemistry case to illustrate how Procedural Atoms acquired during training can be reflected in the final model's behavior. The task requires the agent to make dough from flour and water and then focus on the resulting product. During evaluation, the model receives only the task itself, without any Atoms or teacher guidance.
Atoms Learned During Training From earlier successful training trajectories, AtomSD extracts three relevant Atoms: (1) place the required ingredients into the same container, (2) mix them only after all ingredients are ready, and (3) focus on the target product after it has been created. Table 7 summarizes the corresponding Atoms. These Atoms are extracted from different successful training tasks, yet capture complementary procedures that can be reused and composed to solve new task instances.
| Method | Score | Outcome |
|---|---|---|
| GRPO | 33 | Incomplete |
| OPSD | 25 | Incomplete |
| GRPO+OPSD | 33 | Incomplete |
| SDPO | 8 | Incomplete |
| Skill-SD | 33 | Incomplete |
| SDAR | 33 | Incomplete |
| AtomSD | 100 | Complete |
Table 8: Episode-level comparison on the dough task.
Internalization and Composition In the evaluation task, AtomSD follows the same procedural structure. It places water and flour into the same glass cup, mixes them to produce dough, and then focuses on the dough to complete the task. The reappearance of these procedures without explicit Atom guidance suggests that the learned procedural knowledge has been internalized by the model, while their sequential use illustrates how multiple Atoms can be composed to solve a new interaction. As shown in Table 8, AtomSD completes the task with a score of 100, whereas all compared baselines fail to complete it.
Atom Extraction Prompt
System Message
You extract reusable atoms from trajectories that may succeed or fail. An atom is an independent unit of procedural knowledge that can be applied on its own or combined with other atoms to complete a task.
Extraction rules
– Ground each atom in the actions and observation feedback of the supplied trajectory. Do not add unsupported assumptions. – Express each atom using general roles, conditions, and operations. Preserve the domain concepts needed to apply it. – Do not include answers, facts, or results specific to the source task, including in examples. – A successful trajectory does not mean every action was effective, and a failed trajectory does not mean every action was ineffective. Judge actions by their observation feedback. – Prefer distinct capabilities over duplicate descriptions. Return an empty list if no atoms are supported.
Field requirements
– intent: the procedural aim of the atom. – when: the conditions under which the atom applies. – do: the operations to perform under those conditions, in order. – avoid: the failure modes or inappropriate operations to avoid under those conditions. – intent, when, and do must be supported and nonempty. Keep clauses concise.
Output format
Return a JSON list directly, with exactly the four fields below in each atom:
[ { "intent": "", "when": [], "do": [], "avoid": [] } ]
User Message
Environment interaction rules
{environment_interaction_rules}
Episode outcome: {episode_outcome}
Task: {task_description} Initial observation: {initial_observation}
Step {step_index}
Thought: {thought} Action: {environment_action} Observation: {environment_observation} {remaining_trajectory_steps}
User Message (Tool Use)
Step {step_index}
Reasoning: {assistant_content} Tool: {tool_name} Arguments: {tool_arguments} Observation: {tool_observation} Tool status: {tool_status_code}
Figure 8: Prompt template for procedural Atom extraction.
Atom-Conditioned Teacher Input
System Message
{original_environment_system_prompt}
First User Message
{original_user_message}
The atoms below were extracted from prior trajectories. An atom is an independent unit of procedural knowledge that can be applied on its own or combined with other atoms to complete a task.
– intent: the procedural aim of the atom.
– when: the conditions under which the atom applies.
– do: the operations to perform under those conditions, in order.
– avoid: the failure modes or inappropriate operations to avoid under those conditions.
=== Procedural Atoms Begin ===
{atoms_json}
=== Procedural Atoms End ===
After reading the procedural Atoms above, make sure you understand the purpose of each Atom, when it applies, and why its operations are useful — do not simply copy or paraphrase them. Now, using your own reasoning, continue solving the current task. Select and combine applicable Atoms according to the current observations, respect their prerequisites, and skip those that do not apply. Adapt their operations to the current task rather than treating the Atom collection as a fixed execution sequence. Think step by step, consider how applicable Atoms can support the next action, and don't be afraid to backtrack or reconsider if something doesn't work out:
Student–Generated Interaction Sequence
{student_response}
Figure 9: Atom-conditioned teacher input template.