Manuscript Offprint
arXiv:2610.39508Compile Away Uncertainty: Self-Evolving Agent Skills via Programmatic Compilation
Chengyu Yang¹, Yunxiang Zheng¹, Zongzheng Li¹, Jiamei Li¹, Boxun Lan¹, Xiaoyu Liu², Xiaoyu Zhang¹, Xiaohong Chen¹, Ming Hu¹,*
¹East China Normal University, ²China University of Geoscience
*Corresponding author
Abstract—Self-evolving agent skills enable AI agents to accumulate and refine reusable procedural knowledge from interaction experience without updating model parameters. However, since such skills are typically represented as textual documents and executed through LLM reasoning, even previously learned procedures must be repeatedly interpreted and regenerated, introducing avoidable uncertainty into every execution. In contrast, program execution is deterministic and independently verifiable. Intuitively, transforming well-specified operations into executable programs can reduce reliance on LLM reasoning and, consequently, reduce execution uncertainty. Motivated by this intuition, we introduce SKILLCOMPILER, a self-evolving skill framework that integrates programmatic compilation into the skill evolution process. Specifically, SKILLCOMPILER adopts an executability-aware skill compilation strategy that decomposes skills into fine-grained operations, analyzes their executability, and constructs hybrid skill skeletons that retain LLM reasoning for context-dependent operations while compiling well-specified ones into validated programs. To avoid redundant program synthesis and enable executable knowledge to accumulate across evolving skills, we further design a program asset reuse mechanism that organizes validated programs as reusable assets, retrieves existing implementations whenever applicable, and synthesizes and verifies new programs only when necessary. Extensive experiments on five benchmarks and six model families demonstrate that SkillCompiler consistently outperforms state-of-the-art methods, achieving up to 32.33% improvement in task performance.
Index Terms—self-evolving agents, reusable skills, programmatic compilation, execution reliability, tool use
I. INTRODUCTION
Large language model (LLM) agents have demonstrated strong capabilities in reasoning, planning, tool use, and environment interaction, enabling them to solve increasingly complex tasks, including information retrieval, Web interaction, and interactive problem solving [1–5]. However, agents often need to rediscover similar task-solving procedures when facing new tasks, even when related experience has already been acquired. Agent skills provide a natural way to preserve such experience as reusable procedural knowledge, allowing agents to reuse previously acquired task-solving procedures without updating the underlying language model [6–10]. Consequently, effectively accumulating and reusing skills has become an important direction for improving agent capabilities through interaction experience.
To continuously accumulate and refine reusable skills from interaction experience, existing work has explored different strategies for skill evolution. Existing approaches can be broadly
classified into two categories, i.e., skill content evolution and skill execution augmentation. Specifically, skill content evolution improves reusable procedural knowledge through trajectory distillation [9], reflection-based revision [12], and validation-guided skill optimization [10]. Skill execution augmentation enhances how acquired skills are applied by reusing learned workflows [16, 17], incorporating external tool capabilities [5], or constructing executable procedural representations [19–21]. These methods enable agents to progressively improve both the knowledge encoded in skills and the way such knowledge is reused during task execution.
Although existing skill evolution methods can continuously accumulate and refine reusable task-solving knowledge, they still face two challenges in reliable and efficient skill reuse, i.e., execution uncertainty and repeated capability construction. Specifically, ① executing an evolved skill still requires the agent to repeatedly interpret retained knowledge, reconstruct intermediate decisions, and generate corresponding actions through LLM reasoning. As a result, even with an unchanged skill, repeated executions may follow different reasoning paths and produce different outcomes. ② Reusable execution capabilities discovered during skill evolution are often constructed for individual skills or tasks and are not persistently organized for subsequent reuse, leading to repeated generation and validation of similar procedures across evolving skills. Therefore, how to reduce execution uncertainty while efficiently accumulating and reusing executable knowledge across skill evolution remains an important problem.
Typically, LLM reasoning is inherently probabilistic, which makes the execution of the same skill susceptible to different intermediate decisions and outcomes across repeated runs. In contrast, executable programs encode their inputs, control flow, and state transformations explicitly, so the same operation follows a fixed execution procedure under the same conditions rather than regenerating intermediate decisions at each invocation. Intuitively, when an operation has explicit inputs, well-defined execution logic, and checkable outputs, its execution no longer needs to be repeatedly regenerated through LLM reasoning. Instead, such operations can be realized as executable programs, while LLM reasoning is retained for context-dependent or difficult-to-formalize decisions. Moreover, once these programs are validated, they can be persistently accumulated and reused across evolving skills, avoiding repeated synthesis of the same executable procedures.
Inspired by the above intuition, we propose SKILLCOMPILER, a self-evolving skill framework that transforms suitable reasoning operations into deterministic executable programs as skills evolve. Specifically, ① SKILLCOMPILER adopts an executability-aware skill compilation strategy to identify which skill operations can be reliably transformed into executable programs while retaining LLM reasoning for context-dependent decisions. ② To avoid redundant program synthesis and enable executable knowledge to accumulate across evolving skills, SKILLCOMPILER integrates a program asset reuse mechanism that organizes validated programs as reusable assets, retrieves compatible implementations whenever available, and synthesizes and verifies new programs only when necessary. In this way, SKILLCOMPILER reduces unnecessary LLM reasoning while preserving the flexibility required for unresolved operations. The main contributions are summarized as follows.
• We propose SKILLCOMPILER, a self-evolving skill framework that progressively transforms suitable skill operations into deterministic executable programs. Its executability-aware compilation strategy identifies which operations can be reliably programmatized while retaining LLM reasoning for context-dependent decisions.
• We design a program asset reuse mechanism that persistently accumulates, retrieves, and reuses validated executable programs across evolving skills, reducing redundant program synthesis and enabling executable knowledge to continuously grow through interaction.
• We conduct extensive experiments on five benchmarks and six model families. The results show that SKILLCOMPILER outperforms state-of-the-art methods, achieving up to 32.33% improvement in task performance.
A. Experience Accumulation and Reusable Agent Skills
AI agents can improve subsequent task solving by retaining useful experience from previous interactions without updating model parameters. Reflexion [6] stores verbal feedback from previous attempts to guide future decisions, while ExpeL [7] extracts generalizable insights from collections of task experiences. Agent Workflow Memory [17] induces recurring workflows from trajectories and retrieves them to guide subsequent action generation. Voyager [14] further accumulates executable skills from successful environment interactions and refines them through execution feedback.
B. Agent Skills Evolution
Existing work can be classified into skill content evolution and skill execution augmentation. Skill content evolution methods improve the quality and transferability of reusable procedural knowledge by refining skill representations from accumulated interaction experience. For example, Trace2Skill [9] distills reusable lessons from trajectories. EmbodiSkill [12] revises skills based on execution evidence. SkillOpt [10] conducts validation-guided optimization over natural-language skill documents. Skill execution augmentation methods enhance how acquired skills are carried out by introducing additional execution structures or capabilities. For example, Agent Workflow Memory [17] reuses learned workflows to guide subsequent action generation. FlowEvo [16] reuses verified workflows as executable skills. AutoTools [5] augments agent execution with external tools. NSI [20], SkillDisCo [21], and Agent Skill Induction [19] construct more directly executable procedural representations from interaction experience.
Different from existing skill evolution methods, SKILLCOMPILER does not merely attach reusable workflows, tools, or executable artifacts to skill execution. Instead, it explicitly analyzes operation-level executability within an evolving skill and selectively determines which operations should remain under LLM reasoning and which should be transformed into validated programs. To the best of our knowledge, SKILLCOMPILER is the first self-evolving skill framework that jointly enables operation-level selective compilation and persistent reuse of the resulting program assets across skill evolution.
III. OUR SKILLCOMPILER APPROACH
A. Overview
Fig. 1 presents the overall framework of SKILLCOMPILER, which consists of five major components, including the task analyzer, programmer, executor, skill optimizer, and program asset manager. Task analyzer decomposes a task into fine-grained operations, analyzes their executability, and constructs a hybrid skill skeleton. Programmer realizes programmable operations by retrieving existing implementations or synthesizing new programs and validates them before integration. Executor applies the resulting candidate skill by combining programmatic execution with decisions from the target agent. Skill optimizer analyzes successful and failed execution traces to refine the evolving skill. Program asset manager maintains a program asset bank to support program retrieval, updating, and reuse across skill evolution.
As shown in Fig. 1, the workflow of SKILLCOMPILER mainly consists of three phases, i.e., executability-aware skill compilation, program asset reuse, and skill optimization. The details of each phase are as follows:
-
Phase 1: Executability-aware skill compilation. Given a task, the Task Analyzer decomposes it into fine-grained operations, analyzes their executability, and organizes both programmatic and agent-guided operations into a hybrid skill skeleton. For operations selected for programmatic execution, the Programmer obtains validated implementations and incorporates them into the skeleton to form a candidate skill, while the remaining operations continue to rely on LLM reasoning.
-
Phase 2: Program asset reuse. Before synthesizing a new implementation, the program asset manager retrieves compatible programs from the Program Asset Bank and reuses them whenever applicable. Newly synthesized and validated programs are persisted as reusable assets for subsequent skills.
-
Phase 3: Skill optimization. The executor applies the candidate skill in the target environment and records the

Fig. 1. Framework and Overview of SKILLCOMPILER
resulting execution traces and task feedback. If the skill successfully completes the task, the execution result is returned and the validated skill knowledge is retained for subsequent reuse. Otherwise, the Skill Optimizer analyzes the failed execution trace to identify problematic operations, guidance, or dependencies and generates an updated skill skeleton. Operations affected by the revision are returned to the preceding phases for executability analysis, program retrieval or synthesis, and validation before the updated skill is executed again.
B. Executability-Aware Skill Compilation
A skill may contain operations with different execution requirements. Some operations depend on semantic understanding, contextual judgment, or changing observations, while others follow explicit and repeatable procedures. Executing all operations through LLM reasoning therefore introduces unnecessary execution uncertainty, whereas compiling the entire skill into a program may sacrifice the flexibility required for context-dependent decisions. To address this issue, SKILLCOMPILER analyzes executability at the operation level and selectively transforms suitable operations into executable programs.
- Operation Decomposition.: To identify the appropriate unit for selective compilation, the task analyzer first decomposes the task and relevant skill knowledge into a set of fine-grained operations. Each operation represents a locally coherent capability that can be independently invoked and evaluated. We represent an operation using a 6-tuple operation contract as follows:
where and denote the required inputs and expected outputs, specifies the observable preconditions, describes the expected local effects, defines how these effects can be verified, and contains reusable execution guidance. Task-specific entities and values are instantiated only when the operation is invoked, allowing the same operation to be reused across different tasks.
- Operation Analysis.: After operation decomposition, the task analyzer determines whether each operation can be reliably realized through programmatic execution. An operation is considered programmatic when its inputs and outputs can be explicitly represented, its execution procedure can be clearly specified, its preconditions can be observed from the current environment, and its resulting outputs or local effects can be independently verified. In addition, the available tool interfaces should support a bounded implementation of the operation. Operations satisfying these requirements are selected for programmatic execution, while operations involving unresolved inputs, context-dependent decisions, or open-ended semantic reasoning remain agent-guided.
This analysis determines the execution mode of each operation before constructing the skill. In particular, programmatic operations no longer require the target agent to repeatedly generate their internal execution procedures, while agent-guided operations retain LLM reasoning to accommodate dynamic observations and contextual decisions. In this way, SKILLCOMPILER selectively moves well-specified operations from probabilistic reasoning to deterministic execution without restricting the flexibility of the entire skill.
- Skill Skeleton Construction.: Based on the executability analysis, the task analyzer organizes the resulting operations into a hybrid skill skeleton. For a task x, the instantiated skill skeleton is represented as
where contains the operation occurrences required by the task, specifies their execution order, records the data and prerequisite relations among operations, and contains the current argument bindings. Data relations connect the outputs of preceding operations to the inputs of subsequent operations, while prerequisite relations specify the local effects that must be established before an operation can be executed.
Both programmatic and agent-guided operations are organized in the same skill skeleton. During construction, SKILLCOMPILER checks the compatibility between operation interfaces and identifies the sources of required inputs. Task-specific values that are unavailable during construction remain unresolved in and are instantiated according to actual observations during execution. Therefore, the skill skeleton explicitly describes how deterministic programs and LLM reasoning collaborate to accomplish a task while preserving their respective execution requirements.
- Programming and Validation.: For each operation selected for programmatic execution, SKILLCOMPILER needs to obtain a qualified executable realization before incorporating it into the candidate skill. The programmer first attempts to obtain an existing compatible implementation through the program asset manager. When no qualified implementation is available, it synthesizes a new program according to the operation contract, permitted tool interfaces, and available execution evidence.
The synthesized program is validated in an isolated environment before being used for task execution. Specifically, SKILLCOMPILER checks whether the program can be successfully executed, whether its inputs and outputs conform to and , and whether the resulting local effects satisfy post according to check . When validation fails, the observed errors and check discrepancies are returned to the Programmer to guide program repair. This synthesis, validation, and repair process continues until a qualified implementation is obtained or the operation remains agent-guided. Only validated programs are incorporated into the skill skeleton to form the candidate skill, ensuring that LLM reasoning is replaced only when the corresponding program can be independently verified.
C. Program Asset Reuse
Although programmatic execution reduces repeated LLM reasoning, repeatedly synthesizing and validating similar programs can introduce additional overhead during skill evolution. In practice, different tasks may contain operations with the same underlying capability, making their executable implementations reusable across skills. To avoid redundant program synthesis, SKILLCOMPILER maintains validated programs in the Program Asset Bank and preferentially reuses existing implementations whenever compatible operations are encountered.
- Compatibility-Based Program Retrieval.: For each operation selected for programmatic execution, the program asset manager first retrieves candidate programs according to the semantic description and execution requirements of the operation. Lexical similarity is used to identify potentially reusable implementations, while their applicability is further determined according to the operation contract. Specifically, compatible Skill Skeletons are ranked by lexical similarity, while atomic skills are ranked using lexical Dice similarity, historical utility, and activation status:
where denotes lexical term sets, is the historical utility of atomic skill a, and indicates its active status. Candidates are first filtered by capability and contract compatibility before ranking.
Program realizations are located through explicit Skill-Implementation-Program references. A retrieved program can be reused only when its required inputs can be correctly bound, its preconditions are satisfied, the current environment provides the required interfaces, and its existing validation record remains applicable to the current operation. Formally, the eligible programs are
where contains the program realizations referenced by skill a, and the predicates check argument binding, preconditions, environment compatibility, and validation applicability, respectively. Therefore, lexical similarity supports candidate discovery, while interface and state compatibility determine whether a retrieved program can be safely invoked.
When multiple implementations correspond to the same capability, SKILLCOMPILER retains their respective applicability conditions and validation evidence. The program satisfying the current operation contract and execution environment is selected for reuse. Automatic invocation requires a unique eligible or preferred implementation; otherwise, selection remains agent-guided. If no compatible implementation is available, the operation is passed to the Programmer for program synthesis and validation as described in Section III-B.
D. Skill Optimization
After constructing the candidate skill, SKILLCOMPILER executes it in the target environment to evaluate whether the current skill can successfully accomplish the task. During execution, the executor invokes validated programs for programmatic operations and delegates the remaining operations to the target agent. The resulting actions, observations, argument bindings, program invocations, local checking results, and final task feedback are recorded as execution traces for subsequent skill updating.
-
Trace-Based Skill Revision.: When task execution fails, the skill optimizer locates the failure by comparing the actual execution of each operation with its operation contract. If an operation produces the expected output and satisfies check , the operation is retained even when the final task fails. Otherwise, SKILLCOMPILER revises the corresponding component according to the observed failure. An unsatisfied or overly broad invocation condition leads to an update of pre . Incorrect information passed between operations leads to changes in argument bindings or dependencies in the skill skeleton. Incomplete execution guidance results in an update of . If a program fails to produce the expected effect specified by post , the corresponding program is sent back for repair and validation. Therefore, skill revision is performed locally according to operation-level execution evidence rather than regenerating the entire skill from the failed task.
-
Skill Merging and Updating.: The revised operations are further compared with existing operations in the skill bank to reduce redundant skill knowledge. SKILLCOMPILER first determines whether two operations describe the same local capability and then checks whether their operation contracts are compatible. Operations with consistent input and output semantics, preconditions, expected effects, and checking requirements are merged into a shared reusable operation, while task-specific entities and values are abstracted through parameterization and argument bindings. Operations with different capability semantics or conflicting contracts remain separate.
Formally, for two operation contracts and , the merging criterion is expressed as
Here, SameCap denotes shared capability semantics, aligns task-specific parameters, and Compat requires semantically consistent contract fields under the alignment. Thus, merging is permitted only when capability identity and contract compatibility are both satisfied.
The resulting operations are reorganized into an updated skill skeleton. If the update only changes agent-guided operations, the revised skeleton can be directly used for the next execution. If the update changes a programmatic operation, its implementation is retrieved again or regenerated when necessary and subsequently validated before reuse. The candidate skill is then executed in the target environment. A successful execution confirms the current skill update with corresponding skill and program resources retained, while another failure produces a new execution trace for the next round of local revision.
IV. EXPERIMENTS
In this section, we first introduce the experimental setup and evaluate the performance of SKILLCOMPILER against representative baselines. We then investigate its execution reliability and resource consumption through repeated-execution experiments and cost analysis. Finally, ablation studies are conducted to assess the contributions of the key components.
A. Experimental Setup
Benchmarks and Models. We conduct experiments on five benchmarks, including SearchQA [28], OfficeQA [29], DocVQA [30], LiveMath [31], and ALFWorld [32]. Specifically, SearchQA [28] evaluates open-domain question answering, while OfficeQA [29] and DocVQA [30] focus on document understanding. LiveMath [31] assesses mathematical reasoning, and ALFWorld [32] evaluates long-horizon interactive task solving. Table I summarizes the training, validation, and test
TABLE I
DATASET PARTITION STATISTICS FOR THE FIVE EVALUATION BENCHMARKS.
| Benchmark | Train | Val | Test |
|---|---|---|---|
| SearchQA [28] | 300 | 24 | 1,400 |
| OfficeQA [29] | 120 | 24 | 102 |
| DocVQA [30] | 180 | 22 | 201 |
| LiveMath [31] | 60 | 17 | 100 |
| ALFWorld [32] | 120 | 24 | 134 |
partitions of these benchmarks. Furthermore, we consider six large language models, including MiniMax-M3, Gemini-3.8-Flash, Qwen3.8-Flash, DeepSeek-V4.1-Flash, Kimi-K2.6, and GLM-5.3-Flash.
Baselines. We compare our proposed method SKILLCOMPILER with seven baselines, including No Skill, Human Skill, Trace2Skill [9], EvoSkill [13], EmbodiSkill [12], GEPA [11], and SkillOpt [10].
• No Skill. The agent performs tasks without any skill guidance, relying solely on the underlying LLM.
• Human Skill. The agent executes tasks using fixed human-written skills provided by SkillOpt without evolution.
• Trace2Skill [9]. It distills reusable knowledge from execution trajectories and consolidates trajectory-level lessons into transferable skills.
• EvoSkill [13]. It identifies capability gaps through failure analysis and iteratively generates or refines skills based on validation feedback.
• EmbodiSkill [12]. It employs skill-aware reflection to distinguish skill deficiencies from execution failures, enabling targeted skill revisions.
• GEPA [11]. It optimizes prompts through natural-language reflection on execution feedback and Pareto-based candidate selection.
• SkillOpt [10]. It iteratively optimizes natural-language skills through bounded textual revisions, accepting updates only when validation performance improves.
Evaluation Protocol. All methods use the same task partitions, available tools, benchmark evaluators, and inference settings within each model-benchmark configuration. Main performance and cost results are averaged over three independently seeds (42, 43, and 44). Persistent skill states are selected before testing and remain frozen throughout the test evaluation. For repeated-execution and ablation analyses, we use the seed-42 skill states and execute each test task three times under the same inputs and environment conditions.
Metrics. Task performance is evaluated using exact match (EM) where applicable and benchmark-specific scores otherwise, including success rate (SR) for ALFWorld. Execution reliability is assessed through outcome instability and execution-path consistency, while resource consumption is measured by model token usage and the number of model calls.
B. Performance Comparison
We evaluate the effectiveness of SKILLCOMPILER across different benchmarks, large language model families, and long-horizon interaction tasks.
- Performance on different benchmarks: Table II presents the performance comparison across six language model families in terms of EM on four benchmarks. Taking Kimi-K2.6 as an example, SKILLCOMPILER achieves scores of 85.50%, 74.51%, 96.52%, and 76.00% on SearchQA, OfficeQA, DocVQA, and LiveMath, respectively. Compared with the strongest baseline on each benchmark, these results correspond to improvements of 1.52%, 16.99%, 0.50%, and 22.00%, respectively. In particular, the most significant improvements are observed
TABLE II PERFORMANCE COMPARISON OF SKILLCOMPILER AND BASELINE METHODS ACROSS FOUR BENCHMARKS USING SIX MODELS.
| Model | Method | SearchQA | OfficeQA | DocVQA | LiveMath | Avg |
|---|---|---|---|---|---|---|
| MiniMax-M3 | No Skill | 76.21 | 52.94 | 72.64 | 32.00 | 58.45 |
| Human Skill | 76.17 | 53.92 | 83.91 | 33.67 | 61.92 | |
| Trace2Skill [9] | 79.43 | 60.78 | 91.38 | 42.00 | 68.40 | |
| EvoSkill [13] | 79.24 | 62.09 | 89.88 | 51.33 | 70.64 | |
| EmbodiSkill [12] | 77.64 | 61.76 | 79.77 | 34.67 | 63.46 | |
| GEPA [11] | 79.57 | 59.48 | 90.55 | 48.67 | 69.57 | |
| SkillOpt [10] | 81.88 | 60.46 | 89.72 | 54.67 | 71.68 | |
| SKILLCOMPILER | 82.86 | 63.72 | 94.53 | 78.00 | 79.78 | |
| Gemini-3.8-Flash | No Skill | 82.83 | 50.98 | 92.70 | 33.00 | 64.88 |
| Human Skill | 83.19 | 51.63 | 94.86 | 33.33 | 65.75 | |
| Trace2Skill [9] | 84.67 | 60.78 | 94.20 | 45.33 | 71.25 | |
| EvoSkill [13] | 84.74 | 57.84 | 94.36 | 55.67 | 73.15 | |
| EmbodiSkill [12] | 82.55 | 25.49 | 90.71 | 33.00 | 57.94 | |
| GEPA [11] | 87.05 | 66.34 | 93.70 | 67.33 | 78.61 | |
| SkillOpt [10] | 84.29 | 55.23 | 94.69 | 66.67 | 75.22 | |
| SKILLCOMPILER | 89.00 | 75.49 | 96.02 | 78.00 | 84.63 | |
| Qwen3.8-Flash | No Skill | 79.10 | 37.58 | 93.53 | 25.67 | 58.97 |
| Human Skill | 79.14 | 50.98 | 93.86 | 26.00 | 62.50 | |
| Trace2Skill [9] | 82.90 | 72.88 | 93.70 | 31.67 | 70.29 | |
| EvoSkill [13] | 82.74 | 70.59 | 93.53 | 51.67 | 74.63 | |
| EmbodiSkill [12] | 83.07 | 67.65 | 94.69 | 14.67 | 65.02 | |
| GEPA [11] | 81.21 | 68.63 | 93.37 | 39.00 | 70.55 | |
| SkillOpt [10] | 80.21 | 68.30 | 92.70 | 35.00 | 69.05 | |
| SKILLCOMPILER | 85.07 | 75.49 | 96.02 | 77.00 | 83.40 | |
| DeepSeek-V4.1-Flash | No Skill | 76.10 | 33.33 | 74.96 | 28.00 | 53.10 |
| Human Skill | 76.21 | 41.18 | 82.75 | 27.33 | 56.86 | |
| Trace2Skill [9] | 84.24 | 67.65 | 88.56 | 32.67 | 68.28 | |
| EvoSkill [13] | 83.33 | 69.28 | 84.58 | 52.00 | 72.30 | |
| EmbodiSkill [12] | 81.36 | 51.63 | 77.61 | 23.67 | 58.57 | |
| GEPA [11] | 83.21 | 70.26 | 87.56 | 50.67 | 72.93 | |
| SkillOpt [10] | 82.95 | 69.93 | 85.57 | 30.33 | 67.20 | |
| SKILLCOMPILER | 86.36 | 71.24 | 91.71 | 77.00 | 81.58 | |
| Kimi-K2.6 | No Skill | 80.79 | 32.03 | 94.67 | 39.67 | 61.79 |
| Human Skill | 81.05 | 32.03 | 95.02 | 39.33 | 61.86 | |
| Trace2Skill [9] | 83.98 | 55.56 | 95.36 | 43.33 | 69.56 | |
| EvoSkill [13] | 83.33 | 52.61 | 95.19 | 36.00 | 66.78 | |
| EmbodiSkill [12] | 78.98 | 57.52 | 92.37 | 51.67 | 70.14 | |
| GEPA [11] | 83.10 | 55.56 | 96.02 | 42.00 | 69.17 | |
| SkillOpt [10] | 81.48 | 54.25 | 95.19 | 54.00 | 71.23 | |
| SKILLCOMPILER | 85.50 | 74.51 | 96.52 | 76.00 | 83.13 | |
| GLM-5.3-Flash | No Skill | 78.62 | 30.07 | 81.92 | 42.00 | 58.15 |
| Human Skill | 79.45 | 31.70 | 91.04 | 41.00 | 60.80 | |
| Trace2Skill [9] | 83.90 | 65.69 | 94.36 | 44.67 | 72.16 | |
| EvoSkill [13] | 77.38 | 59.80 | 90.38 | 40.67 | 67.06 | |
| EmbodiSkill [12] | 81.02 | 59.15 | 93.20 | 40.00 | 68.34 | |
| GEPA [11] | 83.50 | 64.05 | 93.03 | 43.00 | 70.90 | |
| SkillOpt [10] | 83.55 | 64.38 | 93.37 | 41.67 | 70.74 | |
| SKILLCOMPILER | 85.21 | 71.89 | 94.53 | 77.00 | 82.16 |
on LiveMath and OfficeQA, indicating that SKILLCOMPILER is effective on mathematical reasoning and document-oriented tasks. In contrast, the relatively modest gains on SearchQA and DocVQA suggest that the benefits of programmatic compilation vary across task characteristics. A similar trend is observed across the remaining model families, with the largest performance gains generally occurring on LiveMath. In particular, SKILLCOMPILER improves the performance of GLM-5.3-Flash on LiveMath by 32.33%, further highlighting its effectiveness on mathematical reasoning tasks. These results suggest that SKILLCOMPILER is advantageous for tasks involving well-specified operations that can be compiled into validated executable programs.
- Performance with different model families: To investigate the applicability of SKILLCOMPILER across different foundation models, we evaluate its performance using six language model families. As shown in Table II, SKILLCOMPILER consistently achieves the highest average score across all six models, outperforming the strongest baseline for each model by 6.02–11.90%. Specifically, the average scores of SKILLCOMPILER range from 79.78% to 84.63%, exhibiting a relatively narrow performance range of 4.85% across different models. The improvement is observed even though the relative performance
TABLE III PERFORMANCE COMPARISON ON ALFWORLD USING DEEPSEEK-V4.1-FLASH.
| Method | Success Rate (%) |
| No Skill | 79.60 |
| Human Skill | 83.83 |
| Trace2Skill | 88.31 |
| EvoSkill | 85.82 |
| EmbodiSkill | 93.53 |
| GEPA | 86.82 |
| SkillOpt | 88.06 |
| SKILLCOMPILER | 98.26 |
TABLE IV PERFORMANCE AND EXECUTION UNCERTAINTY COMPARISON ON LIVEMATH USING GEMINI-3.8-FLASH.
| Method | EM ↑ | EIR@3 ↓ |
| No Skill | 28.33 | 19.00 |
| Human Skill | 28.33 | 13.00 |
| Trace2Skill | 40.67 | 28.00 |
| EvoSkill | 55.33 | 31.00 |
| EmbodiSkill | 27.67 | 18.00 |
| GEPA | 58.00 | 23.00 |
| SkillOpt | 64.67 | 32.00 |
| SKILLCOMPILER | 78.67 | 11.00 |
of competing skill evolution methods changes across models. For example, the strongest overall baseline differs between Gemini-3.8-Flash and Qwen3.8-Flash, whereas SKILLCOMPILER remains the top-performing method in both settings. This result suggests that the proposed skill representation and execution mechanism can be applied across heterogeneous model families without modifying their parameters. It does not imply identical performance across models; rather, the advantages over the corresponding baselines are consistently positive. These results indicate that SKILLCOMPILER maintains consistent performance advantages across different foundation models, demonstrating its broad applicability without modifying the underlying model parameters.
- Performance on long-horizon interaction tasks: To further evaluate the effectiveness of SKILLCOMPILER in long-horizon interactive environments, we conduct experiments on ALFWorld using DeepSeek-V4.1-Flash. Unlike the other four benchmarks, ALFWorld requires agents to perform sequential actions and adapt to changing environment states, where intermediate decisions and execution errors may affect subsequent task progress. As shown in Table III, SKILLCOMPILER achieves the highest success rate of 98.26%, outperforming all competing methods. Specifically, SKILLCOMPILER surpasses the strongest baseline EmbodiSkill by 4.73%, while exceeding SkillOpt and GEPA by 10.20% and 11.44%, respectively. Compared with No Skill, SKILLCOMPILER improves the success rate from 79.60% to 98.26%, corresponding to an improvement of 18.66%. These results demonstrate the effectiveness of SKILLCOMPILER in long-horizon interactive tasks, indicating that its performance advantages extend beyond conventional reasoning and question-answering tasks to complex long-horizon interaction task.
C. Uncertainty Analysis
To investigate the execution uncertainty, we execute each task three times using fixed learned skills under identical task inputs, initial environment states, and inference settings. We adopt execution instability rate (EIR@3) to measure the proportion of tasks exhibiting both successful and failed executions. For ALFWorld, we further employ average path similarity (APS@3), success-conditioned path similarity (APS@3), and exact path repetition (EPR@3) to evaluate execution-path consistency. Table IV presents the results on LiveMath using Gemini-3.8-Flash. SKILLCOMPILER achieves the highest EM of 78.67% and the lowest EIR of 11.00%. Compared with SkillOpt, which achieves the highest EM among the baselines, SKILLCOMPILER improves EM by 14.00% while reducing EIR from 32.00% to 11.00%, corresponding to a relative reduction of 65.6%. Similarly, SKILLCOMPILER achieves the lowest EIR of 3.0% on ALFWorld, outperforming SkillOpt by 4.5%, as shown in Fig. 2. Regarding execution-path consistency, SKILLCOMPILER achieves APS, APS, and EPR scores of 81.3%, 82.5%, and 44.8%, respectively. These results demonstrate that SKILLCOMPILER effectively reduces execution uncertainty across different task environments while maintaining high task performance.
D. Cost Analysis
To evaluate the resource efficiency of SKILLCOMPILER, we analyze the learning and inference costs in terms of token consumption and model calls. In particular, learning costs include tokens consumed during skill evolution, while inference costs are measured by the average token consumption and model calls per test task. The results are reported in Tables V and VI. Specifically, on LiveMath, SKILLCOMPILER consumes 2.695M learning tokens, reducing the learning cost by 41.9% and 52.1% compared with SkillOpt and GEPA, respectively. Moreover, SKILLCOMPILER requires only 0.450 model calls per task, the lowest among all competing methods. Although its inference token consumption of 13.984k per task exceeds that of SkillOpt, it remains lower than those of EvoSkill, EmbodiSkill, and GEPA. On ALFWorld, SKILLCOMPILER consumes 47.015k inference tokens per task, representing reductions of 7.6% and 32.7% compared with SkillOpt and GEPA, respectively. Meanwhile, its learning cost of 32.442M tokens is also lower than those of both methods. Compared with No Skill, SKILLCOMPILER reduces model calls by 25.7% while improving the task success rate by 18.66%. These results indicate that SKILLCOMPILER achieves substantial performance improvements without necessarily increasing inference costs. Furthermore, Table VII reports the internal execution and program reuse statistics of SKILLCOMPILER on ALFWorld. The PPC reaches 100.00%, while CPO is at least 48.36%. Meanwhile, CSR, PIS, and PAS achieve 54.85%, 88.84%, and 87.06%, respectively. In particular, the high PAS indicates that a substantial proportion of environment actions are performed within program execution spans. These observations provide additional evidence of extensive programmatic execution, complementing the resource efficiency analysis.

Fig. 2. Execution reliability comparison on ALFWorld using DeepSeek-V4.1-Flash.
TABLE V RESOURCE CONSUMPTION COMPARISON ON LIVEMATH USING GEMINI-3.8-FLASH.
| Method | Learning (M tokens) | Test/task (k tokens) | Calls/task |
|---|---|---|---|
| No Skill | 0.000 | 5.429 | 1.007 |
| Human Skill | 0.000 | 5.997 | 1.000 |
| Trace2Skill | 1.117 | 8.918 | 1.003 |
| EvoSkill | 1.752 | 17.311 | 1.060 |
| EmbodiSkill | 2.988 | 19.335 | 3.047 |
| GEPA | 5.631 | 17.504 | 1.033 |
| SkillOpt | 4.639 | 6.672 | 1.007 |
| SKILLCOMPILER | 2.695 | 13.984 | 0.450 |
TABLE VI RESOURCE CONSUMPTION COMPARISON ON ALFWORLD USING DEEPSEEK-V4.1-FLASH.
| Method | Learning (M tokens) | Test/task (k tokens) | Calls/task |
|---|---|---|---|
| No Skill | 0.000 | 47.906 | 20.020 |
| Human Skill | 0.000 | 27.885 | 16.813 |
| Trace2Skill | 3.212 | 68.418 | 14.085 |
| EvoSkill | 3.515 | 39.102 | 19.420 |
| SkillOpt | 57.468 | 50.906 | 14.674 |
| EmbodiSkill | 10.934 | 42.710 | 15.321 |
| GEPA | 52.970 | 69.836 | 16.279 |
| SKILLCOMPILER | 32.442 | 47.015 | 14.868 |
E. Ablation Study
In this subsection, we assess the contributions of the key components of SKILLCOMPILER through ablation experiments on ALFWorld using DeepSeek-V4.1-Flash. Specifically, we construct three variants by individually removing the Skill Skeleton, Programmer, and Skill Optimization. As shown in Table VIII, the variant without the Skill Skeleton achieves SR of 95.52%, compared with 98.26% for the full method. Meanwhile, its token consumption increases by 2.75 times, and EIR rises from 2.99% to 8.21%, indicating the importance of explicit operation organization for efficient and reliable execution. The most significant performance degradation occurs when the Programmer is disabled, with SR dropping to 53.48%, token consumption increasing to 7.36 times that of the full method, and EIR reaching 19.40%. These results highlight the critical role of programmatic execution in improving task performance and reliability. The variant without Skill Optimization achieves an SR of 95.52%, while its token consumption increases to 2.48 times that of the full method. Furthermore, APS decreases from 81.27% to 61.95%, demonstrating the importance of continuous skill Optimization for execution efficiency and consistency.
TABLE VII PROGRAM EXECUTION AND REUSE STATISTICS OF SKILLCOMPILER ON ALFWORLD ACROSS THREE LEARNING SEEDS.
| Metric | Definition | Mean (%) |
|---|---|---|
| PPC | Persistent Program Coverage (covered / total tasks) | 100.00 |
| CPO | Consumed Program Outputs (trace-confirmed lower bound) | ≥ 48.36 |
| CSR | Cross-Skill Reuse (multi-skill / used programs) | 54.85 |
| PIS | Program Invocation Success (successful / total calls) | 88.84 |
| PAS | Program Action Share (program / total actions) | 87.06 |
TABLE VIII ABLATION STUDY ON ALFWORLD USING DEEPSEEK-V4.1-FLASH.
| Condition | SR ↑ | Test tokens (k/task) ↓ | EIR@3 ↓ | APS@3 ↑ |
|---|---|---|---|---|
| Full SKILLCOMPILER | 98.26 | 41.954 | 2.99 | 81.27 |
| w/o Skill Skeleton | 95.52 | 115.424 | 8.21 | 67.49 |
| w/o Programmer | 53.48 | 308.887 | 19.40 | 54.51 |
| w/o Skill Optimization | 95.52 | 103.858 | 4.48 | 61.95 |
Overall, these results confirm the complementary contributions of the three components to SKILLCOMPILER's effectiveness.
F. Discussion
Empirical Implications. The performance gains vary across benchmarks, with larger improvements on LiveMath and OfficeQA than on SearchQA and DocVQA. This suggests that selective compilation is particularly beneficial when tasks contain recurring operations with explicit inputs, well-defined procedures, and verifiable effects. In contrast, tasks dominated by context-dependent interpretation offer fewer opportunities to replace LLM reasoning with executable procedures.
Limitations. SKILLCOMPILER relies on identifiable operation boundaries, observable preconditions, and independently checkable effects. Consequently, ambiguous or context-dependent decisions remain under LLM control, meaning that compilation reduces rather than eliminates execution uncertainty. Moreover, local validation establishes correctness only under the tested inputs and environment states, without guaranteeing generalization to unseen conditions. The benefits of persistent program reuse also depend on contract compatibility and sufficient reuse to amortize synthesis and validation costs. Finally, our evaluation of SKILLCOMPILER focused primarily on controlled benchmark environments, and its effectiveness across a broader range of tasks and in dynamic web environments remains to be investigated.
V. CONCLUSION
SKILLCOMPILER integrates operation-level compilation into skill evolution. Its executability-aware strategy combines validated programs and context-dependent reasoning within hybrid Skill Skeletons, while persistent program assets support reuse and trace-driven Optimization. Experiments across five benchmarks and six model families show higher mean task performance. Fixed-bank repetitions on LiveMath and ALF-World additionally show fewer outcome reversals. Resource savings vary by baseline, while ALFWorld ablations identify the contributions of programmatic execution, explicit operation dependencies, and Optimization.
REFERENCES
[1] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing Reasoning and Acting in Language Models. In International Conference on Learning Representations. https://arxiv.org/abs/2210.03629
[2] Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Samuel Stevens, Boshi Wang, Huan Sun, and Yu Su. 2023. Mind2Web: Towards a Generalist Agent for the Web. In Advances in Neural Information Processing Systems, Vol. 36. https://arxiv.org/abs/2306.06070
[3] Shuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, Uri Alon, and Graham Neubig. 2024. WebArena: A Realistic Web Environment for Building Autonomous Agents. In International Conference on Learning Representations. https://arxiv.org/abs/2307.13854
[4] Hongliang He, Wenlin Yao, Kaixin Ma, Wenhao Yu, Yong Dai, Hongming Zhang, Zhenzhong Lan, and Dong Yu. 2026. WebVoyager: Building an End-to-End Web Agent with Large Multimodal Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, 6864–6890. https://doi.org/10.18653/v1/2024.acl-long.371
[5] Zhengliang Shi, Shen Gao, Lingyong Yan, Yue Feng, Xiuyi Chen, Zhumin Chen, Dawei Yin, Suzan Verberne, and Zhaochun Ren. 2025. Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents. In Proceedings of the ACM Web Conference 2025. https://doi.org/10.1145/3696410.3714825
[6] Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. Reflexion: Language Agents with Verbal Reinforcement Learning. In Advances in Neural Information Processing Systems, Vol. 36. https://papers.neurips.cc/paper_files/paper/2023/hash/1b44b878bb782e6954cd888628510e90-Abstract-Conference.html
[7] Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. 2024. ExpeL: LLM Agents Are Experiential Learners. Proceedings of the AAAI Conference on Artificial Intelligence 38, 17 (2024), 19632–19642. https://doi.org/10.1609/aaai.v38i17.29936
[8] Boxun Lan, Jiamei Li, Weijian Li, Chengyu Yang, Zhuang Qi, Chengcheng Wan, Xiaohong Chen, and Ming Hu. 2026. FedSkillGit: Federated Skill Evolution via Version Control. arXiv:2610.21348. https://arxiv.org/abs/2610.21348
[9] Jingwei Ni, Yihao Liu, Xinpeng Liu, Yutao Sun, Mengyu Zhou, Pengyu Cheng, Dexin Wang, Erchao Zhao, Xiaoxi Jiang, and Guanjun Jiang. 2026. Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills. arXiv:2603.25158. https://arxiv.org/abs/2603.25158
[10] Yifan Yang, Ziyang Gong, Weiquan Huang, Qihao Yang, Ziwei Zhou, Zisu Huang, Yan Li, Xuemei Gao, Qi Dai, Bei Liu, Kai Qiu, Yuqing Yang, Dongdong Chen, Xue Yang, and Chong Luo. 2026. SkillOpt: Executive Strategy for Self-Evolving Agent Skills. arXiv:2605.23904. https://arxiv.org/abs/2605.23904
[11] Lakshya A. Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J. Ryan, Meng Jiang, Christopher Potts, Koushik Sen, Alex Dimakis, Ito Stoica, Dan Klein, Matei Zaharia, and Omar Khattab. 2026. GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning. In International Conference on Learning Representations. https://proceedings.iclr.cc/paper_files/paper/2026/hash/0e9e708b6f48e14f0dac29e167413f76-Abstract-Conference.html
[12] Ruofei Ju, Xinrui Wang, Xin Ding, Yifan Yang, Hao Wu, Shiqi Jiang, Qianxi Zhang, Hao Wen, Xiangyu Li, Weijun Wang, Kun Li, Yunxin Liu, Haipeng Dai, Wei Wang, and Ting Cao. 2026. EmbodiSkill: Skill-
Aware Reflection for Self-Evolving Embodied Agents. arXiv:2605.10332. https://arxiv.org/abs/2605.10332
[13] Salaheddin Alzubi, Noah Provenzano, Jaydon Bingham, Weiyuan Chen, and Tu Yu. 2026. EvoSkill: Automated Skill Discovery for Multi-Agent Systems. arXiv:2603.02766, version 1. https://arxiv.org/abs/2603.02766v1
[14] Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. 2024. Voyager: An Open-Ended Embodied Agent with Large Language Models. Transactions on Machine Learning Research. https://openreview.net/forum?id=Mn3Lzp1sMQ
[15] Simon Yu, Gang Li, Weiyan Shi, and Peng Qi. 2026. PolySkill: Learning Generalizable Skills Through Polymorphic Abstraction for Continual Learning. In International Conference on Learning Representations. https://proceedings.iclr.cc/paper_files/paper/2026/hash/e350897ed832f9cad6f2e223e7acad6d-Abstract-Conference.html
[16] Zeyu Ren, Ling Yue, Ran Li, Yishu Wang, Shengxiang Xu, Hanmo Liu, Shaowu Pan, and Shimin Di. 2026. FlowEvo: Self-Evolving Agents through the Co-Evolution of Workflows and Executable Skills. In Third Conference on Language Modeling. https://arxiv.org/abs/2607.21596
[17] Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. 2025. Agent Workflow Memory. In Proceedings of the 42nd International Conference on Machine Learning, PMLR 267, 63897–63911. https://proceedings.mlr.press/v267/wang25bx.html
[18] Boyuan Zheng, Michael Y. Fatemi, Xiaolong Jin, Zora Zhiruo Wang, Apurva Gandhi, Yueqi Song, Yu Gu, Jayant Sriinvasa, Gaowen Liu, Graham Neubig, and Yu Su. 2025. SkillWeaver: Web Agents Can Self-Improve by Discovering and Honing Skills. arXiv:2504.07079. https://arxiv.org/abs/2504.07079
[19] Zora Zhiruo Wang, Apurva Gandhi, Graham Neubig, and Daniel Fried. 2025. Inducing Programmatic Skills for Agentic Tasks. In Second Conference on Language Modeling. https://openreview.net/forum?id=1sAY6fWsog
[20] Jie-Jing Shao, Haiyan Yin, Yueming Lyu, Xingrui Yu, Lan-Zhe Guo, Ivor Tsang, James Kwok, and Yu-Feng Li. 2026. Lifting Traces to Logic: Programmatic Skill Induction with Neuro-Symbolic Learning for Long-Horizon Agentic Tasks. In Proceedings of the 43rd International Conference on Machine Learning, PMLR 306, 110314–110337. https://proceedings.mlr.press/v306/shao26i.html
[21] Zhongxin Guo, Danrui Qi, Hanwen Gu, Peng Cheng, and Yongqiang Xiong. 2026. SKILL-DISCO: Distilling and Compiling Agent Traces into Reusable Procedural Skills. arXiv:2606.26669. https://arxiv.org/abs/2606.26669
[22] Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig. 2023. PAL: Program-aided Language Models. In Proceedings of the 40th International Conference on Machine Learning. https://arxiv.org/abs/2211.10435
[23] Wenhu Chen, Xueguang Ma, Xinyi Wang, and William W. Cohen. 2023. Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks. Transactions on Machine Learning Research. https://arxiv.org/abs/2211.12588
[24] Schoon Kim, Suhong Moon, Ryan Tabrizi, Nicholas Lee, Michael W. Mahoney, Kurt Keutzer, and Amir Gholami. 2024. An LLM Compiler for Parallel Function Calling. In Proceedings of the 41st International Conference on Machine Learning, PMLR 235, 24370–24391. https://proceedings.mlr.press/v235/kim24y.html
[25] Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan A, Saiful Haq, Ashutosh Sharma, Thomas Joshi, Hanna Moazam, Heather Miller, Matei Zaharia, and Christopher Potts. 2024. DSPy: Compiling Declarative Language Model Calls into State-of-the-Art Pipelines. In International Conference on Learning Representations. https://proceedings.iclr.cc/paper_files/paper/2024/hash/f1c02ce09757f57c3b93c0db83181e0-Abstract-Conference.html
[26] Chenxi Wang, Zhuoyun Yu, Xin Xie, Wuguannan Yao, Runnan Fang, Shuofei Qiao, Kexin Cao, Guozhou Zheng, Xiang Qi, Peng Zhang, and Shumin Deng. 2026. SkillX: Automatically Constructing Skill Knowledge Bases for Agents. arXiv:2604.04804. https://arxiv.org/abs/2604.04804
[27] Jacky Liang, Wenlong Huang, Fei Xia, Peng Xu, Karol Hausman, Brian Ichter, Pete Florence, and Andy Zeng. 2026. Code as Policies: Language Model Programs for Embodied Control. In IEEE International Conference on Robotics and Automation. https://arxiv.org/abs/2209.07753
[28] Matthew Dunn, Levent Sagun, Mike Higgins, V. Ugur Guney, Volkan Cirik, and Kyunghyun Cho. 2017. SearchQA: A New Q&A Dataset Augmented with Context from a Search Engine. arXiv:1704.05179. https://arxiv.org/abs/1704.05179
[29] Databricks AI Research Team. 2025. Introducing OfficeQA: A Benchmark for End-to-End Grounded Reasoning. Databricks Research, December 9, 2025. https://www.databricks.com/blog/introducing-officeqa-benchmark-end-to-end-grounded-reasoning
[30] Minesh Mathew, Dimosthenis Karatzas, and C. V. Jawahar. 2021. DocVQA: A Dataset for VQA on Document Images. In IEEE Winter Conference on Applications of Computer Vision, 2200–2209. https://arxiv.org/abs/2007.00398
[31] Linyang He, Qiyao Yu, Hanze Dong, Baohao Liao, Xinxing Xu, Micah Goldblum, Jiang Bian, and Nima Mesgarani. 2026. LiveMathematician-Bench: A Live Benchmark for Mathematician-Level Reasoning with Proof Sketches. arXiv:2604.01754, version 1. https://arxiv.org/abs/2604.01754v1
[32] Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. 2021. ALFWorld: Aligning Text and Embodied Environments for Interactive Learning. In International Conference on Learning Representations. https://arxiv.org/abs/2010.03768
[33] Timo Schick, Jane Dwivedi-Yu, Roberto Dessi, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2023. Toolformer: Language Models Can Teach Themselves to Use Tools. In Advances in Neural Information Processing Systems, Vol. 36. https://papers.nips.cc/paper_files/paper/2023/hash/d842425e4bf79ba039352da0f658a906-Abstract-Conference.html
[34] Cheng Qian, Chi Han, Yi Fung, Yujia Qin, Zhiyuan Liu, and Heng Ji. 2023. CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2023, 6922–6939. https://doi.org/10.18653/v1/2023.findings-emnlp.462
[35] Tianle Cai, Xuezhi Wang, Tengyu Ma, Xinyun Chen, and Denny Zhou. 2024. Large Language Models as Tool Makers. In International Conference on Learning Representations. https://arxiv.org/abs/2305.17126
[36] Gabriel Grand, Lio Wong, Maddy Bowers, Theo X. Olau-son, Muxin Liu, Joshua B. Tenenbaum, and Jacob Andreas. 2024. LILO: Learning Interpretable Libraries by Compressing and Documenting Code. In International Conference on Learning Representations. https://proceedings.iclr.cc/paper_files/paper/2024/hash/819cebb05f993840e8a52d7564c5c282-Abstract-Conference.html
[37] Haiming Wang, Huajian Xin, Chuanyang Zheng, Zhengying Liu, Qingxing Cao, Yinya Huang, Jing Xiong, Han Shi, Enze Xie, Jian Yin, Zhenguo Li, and Xiaodan Liang. 2024. LEGO-Prover: Neural Theorem Proving with Growing Libraries. In International Conference on Learning Representations. https://proceedings.iclr.cc/paper_files/paper/2024/hash/85dca46374dc0f27b4bb5f265b3d17f0-Abstract-Conference.html
[38] Siyuan Guo, Cheng Deng, Ying Wen, Hechang Chen, Yi Chang, and Jun Wang. 2024. DS-Agent: Automated Data Science by Empowering Large Language Models with Case-Based Reasoning. In Proceedings of the 41st International Conference on Machine Learning, PMLR 235, 16813–16848. https://proceedings.mlr.press/v235/guo24b.html
APPENDIX
Effectiveness and reporting units. For method , learning run , and task , let be the score returned by the benchmark evaluator, expressed on when the native score is reported as a percentage. The per-run score is
EM and native binary task-success metrics have ; any native continuous score keeps its own name and interpretation. The four-benchmark main table reports arithmetic means over independent learning runs. Its Avg column is the unweighted mean of SearchQA, OfficeQA, DocVQA, and LiveMath, and does not pool tasks across domains. ALFWorld success rate is reported separately. Repeated evaluations of one frozen bank form a separate replication axis. Secondary metrics are not converted into binary accuracy by an added threshold.
Repeated outcomes. For a fixed bank and a binary correctness or success signal, let be the outcome of repetition on task t. The following expressions are rates; percentages multiply them by 100:
Repeated-run EM or SR averages all binary outcomes. EIR is the fraction of tasks exhibiting correctness flips; RSR is the supplementary fraction solved in every repetition. Both use tasks as their denominator, so the K repetitions are not counted as independent tasks.
Paths. Let be the canonical sequence of environment actions. Canonicalization removes method-internal bookkeeping, retains semantically relevant arguments, and expands environment calls inside programs. Restoration-discarded actions are excluded from the accepted path but remain in raw cost. With sequence Levenshtein distance d, define
These formulas are applied to workloads with a meaningful action sequence. A direct answer with no such sequence does not receive an artificial perfect path score. Success-conditioned APS averages pairs in which both executions succeed, first within each eligible task and then across eligible tasks.
Resource variability. For nonnegative cost quantity , let and be its mean and sample standard deviation across repetitions. For ,
All-zero observed quantities have CV zero and are counted separately; missing quantities are excluded with their coverage stated. Mean task-level CV is reported with absolute mean usage. Failed episodes remain in the resource sample.
Program execution and reuse. For seed s, let denote the test tasks and the frozen persistent Bank. Persistent Program Coverage (PPC) is the fraction of tasks in with at least one actually started invocation of a Program from . A Program mentioned only in a plan, or synthesized temporarily for the current test task, does not contribute to PPC.
Consumed Program Outputs (CPO) reports a conservative, trace-confirmed lower bound on downstream consumption of Program results. A result contributes positive evidence only when its use by a subsequent operation, output binding, or accepted environment effect can be traced; a mere invocation or recorded return is insufficient. Cases without a verifiable consumption link are not inferred to be consumed. The reported lower bound is calculated within each seed before averaging.
Cross-Skill Reuse (CSR) is the fraction of actually used persistent Program versions that are invoked by at least two distinct Skill Skeletons. Multiple task instances of the same Skeleton do not by themselves establish cross-skill reuse. Program Invocation Success (PIS) is the number of invocations recorded as successful divided by all actually started Program invocations; invocation success alone does not establish final task correctness or universal semantic validity.
Program Action Share (PAS) is the ratio of canonical environment-action indices executed inside Program spans to all canonical environment-action indices. Program-internal environment actions are expanded, and the numerator is a union of indices so that nested bookkeeping does not double-count an action. Restoration-discarded actions are excluded from the accepted path but retained in cost accounting. Computation-only Programs with no environment action are captured by Program coverage rather than PAS.
For ALFWorld, the numerator/denominator pairs for CSR across seeds 42, 43, and 44 are 6/11, 7/14, and 6/10; for PIS they are 690/807, 641/713, and 698/766; and for PAS they are 1078/1209, 979/1178, and 1034/1163, respectively. Each reported percentage is calculated per seed and then averaged equally across the three seeds. PPC is 134/134 for each seed; the reported CPO values are lower bounds.
Graph Construction Coverage (GCC) is the fraction of tasks that enter an explicit nontrivial reusable or recomposed Skill Skeleton, excluding the one-node dynamic fallback. An LLM-free task requires no model request throughout the task execution; a Program identifier in the plan does not suffice.
Statistical comparisons. Paired task-level differences use the same physical task identities. A task bootstrap resamples tasks while keeping their repeated executions together; it does not treat three executions of a task as three independent samples. Independent learned banks form a separate replication axis. Binary paired comparisons can use McNemar's test, with a stated multiplicity correction for a family of contrasts. No significance designation or uncertainty interval is inferred from rounded aggregate means alone.
Source-grounded checks. A reusable program's test binding identifies the actual public inputs, source operation, and observed result. Required inputs are checked against the declared schema and linked to public fields or executed-operation arguments. Required outputs are linked to source result fields or independently recorded file effects. Hidden answer fields and task-identity lookup tables are not program inputs. An intermediate computation is not reclassified as a complete answer unless the recorded operation supports that output role. For validation, a separate environment instance is reset to the source task and the relevant action prefix is replayed. The program runs through the permitted interface. The check compares required outputs with the source reference and, where applicable, verifies the native operation and its allowed writes. File checks compare the recorded output effect while retaining the original artifact hash. Parameter variations are applied only when the source supplies a valid independent reference and the varied input satisfies the schema. These tests are evidence of local behavior, not exhaustive branch coverage or semantic equivalence on arbitrary inputs.
Side effects and failure handling. Isolated validation avoids changing the active task. Task-local execution uses a restorable snapshot where supported, and successful publication occurs only after the associated output checks. A failed attempt retains its actions, model usage, and error record. A restored-away interval is not positive evidence for later skill extraction. Where restoration is unavailable or fails, subsequent decisions depend on actual state observations; the framework does not assume arbitrary external operations are reversible.
Retrieval and invocation qualification. In the ALFWorld execution protocol, Skill Skeleton and atomic-skill candidates are filtered for capability and contract compatibility before lexical ranking. Atomic skills use the Dice-based score in Eq. (3), including recorded utility and active status; no embedding-based retrieval is used. Program realizations are resolved through explicit Skill-Implementation-Program references rather than independently ranked by vector similarity. Eligibility requires input binding, preconditions, environment compatibility, and applicable validation evidence, as summarized in Eq. (4). When no unique eligible or preferred implementation is identified, execution remains agent-guided.
Asset identity and compatibility. Operations, program realizations, and Skill Skeletons are versioned separately. Operations are consolidated only when they represent the same local capability and have compatible contracts; matching names or input-output types alone is insufficient. Program reuse additionally requires compatibility with the current inputs, preconditions, expected effects, and execution environment. The Program Asset Manager associates each accepted program version with its operation contract, applicable execution conditions, and validation evidence. Changes to the implementation, behavioral contract, or supported execution conditions require validation of the affected realization before admission. A failed realization does not invalidate the operation definition itself. Compatible replacements can serve existing Skill Skeletons if their operation requirements and parameter bindings remain satisfied.
Training and trace-based learning. Training trajectories provide evidence for skill induction and revision. The batchwise evolution process described in Section III allows accepted updates to influence subsequent task execution. The Skill Optimizer analyzes both successful and failed episodes to propose local changes and consolidate compatible skills. Retained training trajectories remain associated with the skill state and environmental observations of their original execution when reused for further revision. Task outcomes and local operation outcomes are distinguished. An unsuccessful task may contain independently checked successful operations that support skill learning. Conversely, overall task success does not establish that every intermediate program executed correctly. Failed calls and discarded or rolled-back segments support diagnosis and revision, while only independently checked, retained execution segments provide positive evidence for reusable operations.
Local validation and candidate selection. Local program validation checks whether a candidate realizes its operation under the tested inputs and execution conditions, using reference evidence independent of the candidate's claimed outputs. Validation-set performance is used to select among candidate skills or bank snapshots. This selection evaluates their contribution to task performance and does not replace local program validation. The selected persistent skill state is fixed before the corresponding test evaluation.
Independent learning runs. Main task results and cost comparisons use seeds 42, 43, and 44. Each learning-based method constructs a separate bank for each model-benchmark-seed configuration. Task partitions are shared across methods and runs. Main performance and cost metrics are calculated within each independent run and then averaged over the three seeds. Fixed-bank repetition metrics are reported separately. Learning seeds control training order and supported local sampling; they do not imply deterministic responses from a hosted language model. No Skill and Human Skill are evaluated under the same run settings without model-based skill learning.
Repeated execution. Stability and ablation analyses use the skill state learned with seed 42. For each method or condition, the same test tasks are executed three times with fixed persistent skills, task inputs, initial environment states, and inference settings. These repetitions examine variation in executing an established skill rather than variation between independently learned banks. The LiveMath analysis uses Gemini-3.8-Flash on 100 tasks, giving 300 task executions. The ALFWorld analysis uses DeepSeek-V4.1-Flash on 134 tasks, giving 402 task executions. Mean EM or SR summarizes execution outcomes, whereas EIR@3 counts tasks with both successful and unsuccessful outcomes. ALFWorld path metrics use canonical environment-action sequences, including actions executed inside programs. The Full ablation condition uses the same skill bank and repeated evaluations as the complete framework in the ALFWorld stability analysis. Metric definitions are given in Appendix A.
Frozen skills and task-local execution. The persistent learned skill and Program Asset Bank state remains fixed throughout test evaluation. Task-local argument grounding, error recovery, and programming permitted by the corresponding method remain confined to the current task execution. Temporary programs and intermediate results are not added to the persistent bank or transferred to later test tasks. Each repeated execution starts from the same selected bank and reset task-local state. Test outcomes are used for reporting performance and execution behavior, not for selecting or revising the bank.
Baselines and textual priors. Human Skill uses the benchmark-specific human-written initial.md released by the SkillOpt authors [10]. This textual skill remains unchanged during testing and repeated execution. Other baselines retain their own initialization procedures, learning algorithms, and knowledge representations under the shared task interface. Within each model-benchmark comparison, methods use the same task resources, native tools, evaluators, and inference settings. The reported SKILLCOMPILER banks are learned through the skill evolution process described in Section III.
Ablation scope. The three interventions in Section IV-E are evaluated on ALFWorld with DeepSeek-V4.1-Flash. Each condition learns independently from an empty bank using seed 42, and its intervention applies during both learning and testing.
Without Skill Skeleton disables multi-operation skeleton construction and retrieval while retaining individual operation retrieval, programmatic execution, and trace-driven learning. Without Programmer disables program synthesis, qualification, and invocation, including reuse of stored program realizations, while retaining textual skill learning, Skill Skeletons, and native tools. Without Skill Optimization permits the acquisition of new capabilities and an existing textual operation's first validated program realization, but prevents subsequent semantic revision or merging of accepted guidance, contracts, skeletons, and program realizations. Initial program validation and bounded repair remain available. All conditions retain runtime grounding and error recovery within their permitted execution mechanisms, with shared task partitions, native tools, and budget limits.
Resource accounting. Learning tokens include training-trajectory collection, skill construction and revision, feedback, and validation-based selection. Each model request is counted once, and each bank's learning investment is counted once before averaging across learning runs. Test tokens include input and output tokens from successful and unsuccessful executions, method-internal model calls, and retries. Calls/task counts actual model HTTP requests. Retries contribute to the cost of their original task execution without increasing the number of evaluated tasks. An execution completed entirely by programs contributes zero model requests. The main cost tables average the per-run measurements from seeds 42, 43, and 44. Ablation costs instead average the three repeated evaluations of each condition's seed-42 bank. These summaries characterize resource use across independently learned banks and during repeated use of a fixed bank, respectively.
Reproducibility and development history. Experimental records associate each run with its model and inference settings, task partition, learning seed, selected bank version, task outcomes, execution traces, and learning and test resource usage. Reasoning settings, completion limits, and retry policies are held consistent within each model-benchmark comparison. Development included inspection of held-out failure cases; the reported frozen-bank evaluations prohibit persistent updates from test outcomes.
Scope of validation. Programs execute within the permitted benchmark interfaces and task resources under bounded execution. Local validation provides evidence for the checked inputs, environment configurations, and operation effects. Its coverage is limited to those conditions. Task correctness is determined by the benchmark evaluator, while unresolved semantics and context-dependent decisions remain under the target agent's control.