Submitted:
08 October 2026
Posted:
09 October 2026
You are already at the latest version
Abstract
Modern LLM agent harnesses augment the underlying model with reusable components such as external skills and procedural memories, making effective retrieval increasingly important as these repositories grow. However, existing retrieval pipelines often rank stored skills or memories by semantic similarity, which measures how similar a skill or memory appears to the current retrieval query but does not necessarily reflect how useful it is for completing the task. We introduce TaskMatch, a lightweight plug-and-play model that learns task-aware relevance from offline examples labeled as required, supportive, or irrelevant. Using the fixed query and skill and memory representations already available in the host retrieval pipeline, TaskMatch combines direct feature-wise matching with nonlinear interactions while leaving candidate generation and downstream agent execution unchanged. We instantiate the same architecture separately for two representative harness components—skill retrieval and procedural-memory retrieval—with fewer than 0.30M trainable parameters per model and no additional online LLM calls. Across both components, TaskMatch consistently improves retrieval ranking quality and downstream task execution. It raises SKILLDAG success on ALFWorld from 67.10% to 81.43%, improves MEMP Proceduralization success from 81.34% to 90.30%, and increases TravelPlanner hard-constraint satisfaction from 64.06 to 76.19. Our code is available at https://github.com/ldx825/learned-relevance-scorer-agent-retrieval.git
Keywords:
arge language model agents
; task-aware relevance
; skill retrieval
; procedural memory
; learning to rank
1. Introduction
Large language model (LLM) agent harnesses increasingly augment base models with retrievable tools [12,21,24,38], reusable skills [17,30], workflows [33], and procedural memories [7,23]. These components allow agents to reuse capabilities and prior experience rather than repeatedly planning and exploring from scratch. As these repositories grow, retrieval becomes a critical bottleneck: large skill libraries shift the challenge toward selecting the right skills, while procedural-memory systems depend on retrieving experience that is actually useful for the current task [1,7,23]. This makes effective selection increasingly important as agent harnesses scale [5,6,17,25]. At each retrieval event, we refer to the skill or memory entries considered for ranking as candidates.
A natural and widely adopted approach is to represent the current retrieval query and each candidate skill or memory as embedding vectors and rank the candidates according to their cosine similarity [1,7,9,22]. Let q denote the text query used for a retrieval event, and let c denote one candidate memory/skill entry in the external repository. Let denote the fixed text encoder used by the original retrieval system, which maps a text input into a d-dimensional embedding vector. The cosine-based relevance score is then
Here, denotes cosine similarity, and a larger indicates closer query and candidate embeddings. Because both and the scoring rule are fixed, this ranking cannot learn cases in which a less similar candidate is nevertheless more useful for the task. This fixed-score limitation appears in both cosine-based memory retrieval and structure-aware skill systems whose final ranking still contains similarity-based components [1,7,10,17,31].
This mismatch becomes especially important when semantic similarity differs from what execution actually requires. A prerequisite skill may be less textually similar than a redundant skill, while memories with similar wording may encode different operations, object counts, or preconditions [1,2,7,8,17]. In the held-out case shown in Figure 1, the query “find tissuebox” ranks receptacle-oriented skills highly under cosine similarity, even though the tissue box is itself the object that needs to be located, retrieved, and transported. TaskMatch instead promotes object-centric capabilities. This example motivates learning task-aware relevance rather than relying on semantic similarity alone.
We refer to the original agent and its retrieval pipeline as the host system. At each retrieval event, the host system provides a query q, which may be the full task or a shorter operation-specific request; for example, Figure 1 uses “find tissuebox” for the full task “Find two tissue boxes and put them in the toilet.” TaskMatch neither generates nor rewrites these queries: given the same query, candidate set, and fixed representations, it changes only candidate scoring and ranking.
TaskMatch learns from offline query–candidate pairs labeled as required, supportive, or irrelevant, including hard cases where semantic overlap conflicts with what the task requires. We distill these labels into a lightweight content-based scoring function
where is a trainable interaction model with parameters , and is its predicted task-aware relevance score. To move beyond fixed cosine similarity, TaskMatch combines direct feature-wise matching with nonlinear query–candidate interactions. Its interaction design draws on Neural Collaborative Filtering (NCF) [13], but operates on fixed content representations rather than learned user–item identifiers, allowing it to score unseen queries and entries without identifier memorization. In this sense, retrieval shifts from passive similarity matching to learned, task-aware recommendation.
At inference time, TaskMatch reranks candidates returned by the host retriever, optionally combining its score with the original retrieval score. All supervision is constructed offline, so online scoring requires no judge, learned identifier lookup, or additional LLM call. This makes TaskMatch a lightweight plug-in for vector-, graph-, and memory-based retrieval pipelines [10,19,40,41].
We evaluate TaskMatch on two representative retrieval components of agent harnesses—skills and procedural memories—covering both structure-aware and similarity-based pipelines. Across both settings, learned task-aware relevance consistently improves the original retrieval mechanism.
Our main contributions are summarized as follows:
- Beyond fixed similarity for agent retrieval. We show that semantic similarity does not necessarily reflect the operational relevance of skills or procedural memories, and formulate retrieval as content-based task–candidate relevance learning.
- TaskMatch. We distill graded task–candidate supervision into an NCF-inspired scorer with only 0.15–0.30M trainable parameters. It operates on the host system’s existing queries and candidate representations, requiring no additional online LLM call or planning module.
- Improved retrieval and task execution. The scorer improves both skill and procedural-memory retrieval, raising SkillDAG ALFWorld success from 67.10% to 81.43% and MemP Proceduralization success from 81.34% to 90.30%.
2. Related Work
2.1. Skill and Tool Retrieval for LLM Agents
Structural approaches such as GoS and SkillDAG further model dependencies, prerequisites, conflicts, and specializations that semantic matching alone may miss [1,17]. Recent concurrent work improves other stages of the skill-use pipeline: SkillZip compresses skill libraries into reusable procedural graph units, Capability Pages enrich skill documents with contrastive capability boundaries, SkillTrace retrieves executable skill compositions through query–skill graph traversal, and SkillAligner adapts already retrieved skills before execution [15,28,32,37]. These approaches modify the skill representation, retrieval structure, or downstream use of retrieved skills. TaskMatch instead leaves these components unchanged and learns only the task–candidate scoring function, making it complementary to such advances while also extending the same formulation to procedural-memory retrieval.
2.2. Agent Memory and Procedural Memory Retrieval
External memory enables LLM agents to reuse past experience rather than repeatedly solving similar tasks from scratch. Existing methods distill trajectories into reusable workflows, guidelines, exemplars, manuals, or structured memories, and retrieve them to support subsequent execution [3,8,27,29,33,36,39]. Among them, MemP systematically studies procedural-memory construction, retrieval, and update, using task-based cosine matching and feature-based similarity to retrieve relevant experience [7], while Remember Me, Refine Me further emphasizes dynamic refinement of procedural memory from execution experience [2]. These methods demonstrate the value of retrieving prior experience, but memory selection still commonly depends on semantic similarity or predefined retrieval heuristics. TaskMatch focuses specifically on this stage: without changing how memories are constructed, stored, or updated, it learns task–candidate relevance from offline supervision and uses it in place of a fixed matching rule.
2.3. From Fixed Similarity to Learnable Interaction
A common retrieval paradigm encodes queries and candidates into a shared space and ranks them with fixed similarity functions such as inner product or cosine similarity [9,22]. While simple and efficient, such scoring largely reduces task–candidate compatibility to geometric similarity. Neural information retrieval instead learns richer query–candidate interactions, as in DRMM, MatchPyramid, K-NRM, CEDR, and ColBERT [11,14,18,20,35], while neural reranking further learns pairwise relevance functions directly [19].
Recent agent-retrieval methods similarly use learned rerankers or task-aware scoring to improve tool and skill selection beyond fixed embedding similarity [4,10,31,40,41]. Some rely on substantially larger models; for example, SkillRouter uses a 0.60B reranker after a 0.60B retrieval encoder [41], whose cost can accumulate across repeated retrieval events in long-horizon agents. TaskMatch instead learns task–candidate relevance with a 0.15–0.30M interaction model over frozen host representations. Inspired by Neural Collaborative Filtering [13], it combines explicit feature matching with nonlinear task–candidate interactions without candidate IDs, and applies the same formulation to both skill and procedural-memory retrieval.
3. Methodology
3.1. Problem Formulation
We study task-aware relevance for two representative retrieval components of agent harnesses: skills and procedural memories. Let denote the query issued by the host system at retrieval step t, which may be the original task or a shorter operation-specific request. Given an external repository , where each is a skill or procedural memory, the host retriever returns
Here, is the number of candidates returned at retrieval step t and can be any existing retrieval mechanism, including vector-based memory retrieval or structure-aware skill retrieval [1,7,17]. It may also provide an original retrieval score , such as cosine similarity or a structure-derived score.
Let denote the fixed text encoder used by the host retrieval pipeline. For the cosine baseline, candidate relevance is scored by
TaskMatch instead learns a task-aware relevance score from the same fixed representations, as detailed in Section 3.2.
From training tasks and candidates, we construct the graded relevance target:
We learn from this supervision. Let denote the number of candidates selected for the downstream agent. At retrieval step t,
Here, TopK returns the K candidates with the largest TaskMatch scores.
Shared-query comparison.
At every retrieval event, the baseline and TaskMatch receive the same host-issued query, candidate set, and fixed representations; only candidate scoring and ranking are changed. Figure 2 summarizes the pipeline.
3.2. TaskMatch: Lightweight Task-Aware Relevance Modeling
Given , TaskMatch learns task-aware relevance beyond fixed cosine similarity while remaining lightweight enough for repeated retrieval. It reuses the fixed representations already available in the host pipeline:
The encoder remains fixed, allowing candidate representations to be precomputed and cached.
To model task-aware relevance, we use two complementary interaction paths inspired by Neural Collaborative Filtering (NCF) [13]: a Generalized Matrix Factorization (GMF) branch for element-wise matching and a Multilayer Perceptron (MLP) branch for nonlinear interaction. Unlike ID-based recommendation, both branches operate on fixed query and candidate representations.
Here, and are the query and candidate projection matrices of the GMF branch, while and are the corresponding projection matrices of the MLP branch. The operator ⊙ denotes element-wise multiplication, and denotes vector concatenation, where and are the projection dimensions of the two branches. The final relevance score combines both interaction signals:
Here, and b are the learnable fusion weight and bias, respectively, and denotes the sigmoid function. The scalar is the ranking score, while is its sigmoid-normalized relevance prediction. All trainable parameters of TaskMatch are collectively denoted by . TaskMatch combines direct feature-wise and nonlinear interactions without learned query or candidate identifiers. Skill and procedural-memory retrieval use the same architecture but separately trained TaskMatch models.
3.3. Distilling Offline Relevance Priors
For each training query q, let denote the candidate pool used to construct offline supervision:
Here, contains semantically retrieved candidates, contains structurally related candidates when available, and contains hard negatives that are semantically similar but execution-incompatible. An LLM judge assigns grades for required, supportive, and irrelevant/harmful, respectively; ambiguous cases are discarded. Hard negatives expose cases where semantic similarity conflicts with task requirements. Full prompts and construction details are provided in Appendix B.
Composite training tasks are also rendered as operation-specific task views that approximate the granularity of the local retrieval queries issued by the host system during execution; the labels further constitute relevance supervision rather than causal effect estimates. Both points are detailed in Appendix B.
Let denote the set of labeled training query–candidate pairs. For each , we normalize the graded target as and optimize the pointwise binary cross-entropy objective
Since retrieval ultimately depends on relative ordering, let denote the set of preference triples satisfying . We optimize
which explicitly encourages . The final objective is
Here, controls the relative weight of the pairwise ranking objective. Following NeuMF [13], we pretrain the GMF and MLP branches independently before jointly optimizing the full TaskMatch model. Exact initialization, optimization hyperparameters, and loss coefficients are reported in the Appendix A for reproducibility.
3.4. Integration with Existing Retrievers
TaskMatch uses the task query already produced by the host system and is inserted at the candidate-scoring stage. Given the candidate set returned by the base retriever, it reorders the surfaced candidates using as defined in Section 3.2, with final Top-K selection following Eq. 6. The base retriever remains responsible for candidate recall and any retriever-specific structure. In deployments that retain the base score, the TaskMatch and base scores are normalized and combined with a fixed coefficient selected on the development split. This calibration changes neither the TaskMatch input nor the online information budget.
Since TaskMatch operates on frozen task and candidate representations, its parameter count scales linearly with the representation dimension; the resulting TaskMatch model sizes and the effect of the inherited embedding dimension are reported in Appendix C.5. Both settings use the same interaction architecture.
4. Experiments
We evaluate TaskMatch by answering three questions:
- RQ1
- Does TaskMatch improve intrinsic retrieval quality for both skills and procedural memories?
- RQ2
- Do better retrieval results translate into higher end-to-end task performance?
- RQ3
- Which components drive the gains, and what training and inference overhead does TaskMatch introduce?
4.1. Experimental Setup
Benchmarks.
We evaluate two retrieval settings. For skill retrieval, we use SkillsBench-1000 [16] and ALFWorld with the 37-skill library used by SkillDAG [1,26]. SkillsBench evaluates skill selection from a large repository, while ALFWorld evaluates long-horizon embodied task execution. For procedural-memory retrieval, we follow the MemP evaluation framework on ALFWorld and TravelPlanner [7,26,34], covering Script, Trajectory, and Proceduralization memories.
Baselines and Models.
For skill retrieval, we compare against Vanilla Skills, Vector Skills, Graph-of-Skills (GoS) [17], and SkillDAG [1], using MiniMax-M2.7 and GPT-5.2-Codex. TaskMatch is added at SkillDAG’s scoring interface: it receives the same task queries and skill representations while leaving graph construction and candidate generation unchanged. For procedural memory, we use GPT-4o and retain the memory representations and execution pipeline of MemP [7], changing only the score used to rank the same memories. We focus on controlled integrations with two representative host retrievers—structure-aware SkillDAG and similarity-based MemP—to isolate the effect of TaskMatch scoring across substantially different retrieval mechanisms; see Appendix C.4 for a discussion of concurrent methods. The skill and memory settings use separately trained TaskMatch models; they share the same architecture and training procedure but no parameters.
Retrieval Protocol.
For intrinsic memory retrieval, we consider two settings. In the full-pool setting, Query cosine and TaskMatch rank the same memory pool, enabling a controlled comparison between fixed similarity and learned scoring. In the cascade setting, cosine retrieval first reduces the pool to 50 memories and TaskMatch selects the final Top-10. We use the latter as a practical efficiency–recall configuration.
Metrics and Implementation.
For intrinsic retrieval, we report Ret@K, which measures whether the Top-K results contain a ground-truth relevant candidate, and mean reciprocal rank (MRR), which measures how early the first ground-truth candidate appears in the ranking. For procedural-memory retrieval, we additionally report NDCG@10 for overall Top-10 ranking quality, Precision@10 for the proportion of relevant memories among the Top-10 results, and Harm@10 for the proportion of incompatible or unhelpful memories retrieved. For end-to-end evaluation, SkillsBench reports benchmark reward, ALFWorld reports task success rate and average execution steps, and TravelPlanner reports Common Sense (#CS), Hard Constraint (#HC), and step metrics. Higher is better except for Harm@10 and Steps. Full metric definitions are provided in Appendix C.3, and TaskMatch implementation details are provided in Appendix A.
4.2. Intrinsic Retrieval Quality
We first isolate retrieval quality from downstream agent execution.
RQ1 Summary.
Table 1 and Table 2 show that TaskMatch consistently improves intrinsic ranking over the corresponding host retrievers. With MiniMax-M2.7, skill Ret@1 increases from 66.70 to 76.98 on SkillsBench and from 57.90 to 86.03 on ALFWorld, and the improvements persist with GPT-5.2-Codex. Under the matched ALFWorld memory setting, Ret@1 rises from 73.84 to 91.04, and on TravelPlanner Top-K coverage improves substantially while Harm@10 drops from 88.77 to 66.59. The gains recur across all four evaluation settings, spanning both structure-aware skill retrieval and similarity-based procedural-memory retrieval. Per-metric details, including the optional cascade variant, are reported in Appendix D.4.
4.3. End-to-End Agent Performance
We next test whether the retrieval gains translate into better task execution.
Table 3.
End-to-end skill-selection performance. SkillsBench reports reward and ALFWorld reports task success rate.
Table 3.
End-to-end skill-selection performance. SkillsBench reports reward and ALFWorld reports task success rate.
| SkillsBench | ALFWorld | ||
|---|---|---|---|
| Model | Method | Reward↑ | Success (%)↑ |
| MiniMax-M2.7 | Vanilla Skills | 17.20 | 47.10 |
| Vector Skills | 10.40 | 50.70 | |
| GoS | 18.70 | 54.30 | |
| SkillDAG | 27.30 | 67.10 | |
| SkillDAG + TaskMatch | 29.21 | 81.43 | |
| GPT-5.2-Codex | Vanilla Skills | 27.40 | 89.30 |
| Vector Skills | 21.50 | 92.90 | |
| GoS | 34.40 | 93.60 | |
| SkillDAG | 36.80 | 93.60 | |
| SkillDAG + TaskMatch | 38.33 | 96.43 |
Table 4.
End-to-end procedural-memory results. Query-cosine baselines are our reruns under the same MemP evaluation pipeline. The memory representation is unchanged; only memory scoring differs.
Table 4.
End-to-end procedural-memory results. Query-cosine baselines are our reruns under the same MemP evaluation pipeline. The memory representation is unchanged; only memory scoring differs.
| ALFWorld | TravelPlanner | ||||||
|---|---|---|---|---|---|---|---|
| Memory | Retriever | Dev Success↑ | Test Success↑ | Avg. Steps↓ | #CS↑ | #HC↑ | Avg. Steps↓ |
| NoMemory | – | 39.28 | 42.14 | 23.76 | 71.93 | 12.88 | 17.84 |
| Script | Query cosine | 71.43 | 84.33 | 13.43 | 76.32 | 12.14 | 16.58 |
| Query cosine + TaskMatch | 78.57 | 85.07 | 13.85 | 76.81 | 13.81 | 16.66 | |
| Trajectory | Query cosine | 79.29 | 80.60 | 13.72 | 81.39 | 66.25 | 15.83 |
| Query cosine + TaskMatch | 80.71 | 84.33 | 13.63 | 81.53 | 70.13 | 15.44 | |
| Proceduralization | Query cosine | 85.71 | 81.34 | 13.30 | 80.69 | 64.06 | 15.73 |
| Query cosine + TaskMatch | 89.29 | 90.30 | 12.22 | 80.76 | 76.19 | 14.66 | |
RQ2 Summary.
The intrinsic retrieval gains generally translate into stronger downstream execution. With MiniMax-M2.7, adding TaskMatch to SkillDAG raises ALFWorld success from 67.10% to 81.43%, and the improvement persists with GPT-5.2-Codex (93.60% to 96.43%); SkillsBench reward increases from 27.3 to 29.21. For procedural memory, Proceduralization raises ALFWorld Test SR from 81.34% to 90.30% while reducing average steps from 13.30 to 12.22, and on TravelPlanner it improves #HC from 64.06 to 76.19. The same scoring formulation therefore complements both structure-aware skill retrieval and cosine-based procedural-memory retrieval without redesigning the underlying retrieval mechanisms. Per-setting details are reported in Appendix D.5.
Script memory provides a counterexample to a strictly linear relationship between ranking quality and agent success. Table 5 provides a second example: the TaskMatch (MLP) variant obtains the highest Ret@1 and MRR under the deployed protocol, while the full TaskMatch model achieves the highest task success.
4.4. Ablation and Efficiency
We finally examine which components contribute to the gains and how much additional computation TaskMatch introduces. We first evaluate component variants using intrinsic retrieval metrics and report the complete architectural ablation in Appendix D.2, together with the efficiency measurements in Appendix C.6. We then conduct end-to-end agent evaluation for the principal architectural variants to verify whether retrieval-level improvements translate into better task execution.
End-to-End Ablation.
Table 5 complements the analysis in Appendix D.2 with matched local evaluations of the TaskMatch variants, while the SkillDAG row is retained as the published reference. Unlike the pure full-pool analysis, the intrinsic columns here report each branch under its deployed calibrated ranking protocol. Both single-branch TaskMatch variants improve task success over SkillDAG, reaching 72.14% for TaskMatch (GMF) and 75.71% for TaskMatch (MLP), while the full TaskMatch model achieves the highest success rate of 81.43%. Notably, TaskMatch (MLP) obtains slightly higher Ret@1 and MRR than the full TaskMatch model under this protocol, yet its task success is 5.72 points lower. This discrepancy highlights a retrieval–execution gap: intrinsic ranking metrics evaluate whether highly relevant candidates are placed near the top of the ranking, but they do not fully characterize how useful the resulting retrieved set is for downstream decision making. In particular, end-to-end success depends not only on the top-ranked candidate, but also on the composition of the retrieved candidates and on how the agent uses them during multi-step execution. The full TaskMatch model may therefore produce rankings that are more helpful for execution even when its Ret@1 is slightly lower, by balancing direct feature-wise matching with nonlinear query–candidate interactions. More broadly, these results show that improvements in intrinsic retrieval metrics should be validated with end-to-end agent evaluation rather than treated as a direct proxy for task success.
5. Conclusions
During agent execution, the host system naturally issues retrieval queries that reflect the current task state. We leave this query-generation process unchanged and study how candidates should be scored for the same query and candidate interface. The TaskMatch training pipeline converts existing tasks and candidates into graded weak supervision and distills their relevance patterns into a content-based TaskMatch with at most 0.30M trainable parameters. It requires no online judge, additional LLM call, or planning module. Across skill and procedural-memory retrieval, TaskMatch improves intrinsic ranking and downstream execution, including ALFWorld gains from 67.10% to 81.43% on top of SkillDAG and from 81.34% to 90.30% under MemP Proceduralization. The architectural ablation also shows that the highest Ret@1 and MRR do not necessarily yield the highest agent success. TaskMatch improves the selection of candidates, while the downstream agent remains responsible for using the retrieved candidates effectively.
6. Limitations
TaskMatch has three main limitations. Its relevance supervision is LLM-annotated rather than causally derived, its reranking quality can be bounded by upstream recall in restricted candidate sets, and skill and memory retrieval currently require separately trained TaskMatch models. Future work could address these issues through execution-derived supervision, adaptive candidate expansion, and shared cross-repository training.
Use of Artificial Intelligence
We used generative AI tools solely to assist with language polishing and improving the clarity and organization of the manuscript. All scientific content, analyses, experiments, and conclusions were produced and verified by the authors.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Implementation Details
Appendix A.1. TaskMatch Architecture
Both retrieval settings use the same NeuMF interaction architecture, with GMF and MLP projection dimensions of and , respectively. Skill retrieval uses frozen 3072-dimensional text-embedding-3-large representations, while procedural-memory retrieval uses frozen 1536-dimensional text-embedding-3-small representations. For an input dimension d, TaskMatch contains
trainable parameters. This gives 297,553 parameters for skill retrieval and 150,097 parameters for procedural-memory retrieval.
Appendix A.2. Optimization Details
Grades are mapped to pointwise targets . The pointwise term uses binary cross-entropy with logits. For each task context, a candidate with a strictly higher relevance grade is paired with a lower-grade candidate, and the pairwise objective is
The total objective uses a pairwise coefficient of . GMF and MLP are pretrained independently for at most 20 epochs with Adam at a learning rate of . Their parameters initialize the full TaskMatch model, which is fine-tuned for at most 20 epochs using SGD at a learning rate of . We use pointwise and pairwise batch sizes of 512, early-stopping patience of 5, no weight decay, and random seed 2026. Checkpoint selection is performed only on the corresponding internal development split.
Appendix B. Graded Relevance Supervision Details
Appendix B.1. Candidate Pool Construction
Task–skill supervision.
For composite ALFWorld tasks, operation-specific task views are derived from the training task schema (locate, transform, place, and verify when applicable). Candidate skills are collected from task-view cosine retrieval, full-task cosine retrieval, and hard candidates surfaced by the previous TaskMatch model. Route indicators are retained for auditing, whereas the network input contains only the task-view and skill-document embeddings. The implementation refers to these views internally as “phases.” Throughout the paper, we use task view or retrieval-query view to distinguish this offline supervision representation from an inference-time planning component. The views mirror the short operation-specific queries naturally issued by the host agent during skill search; they are not generated by an additional planner. The 37-skill bank is small enough that intrinsic evaluation can rank the complete bank.
Task–memory supervision.
For ALFWorld memories, query views are constructed from the training tasks and the source queries already associated with the 300 Script memories. Candidate routes include query cosine, memory-content cosine, structured exact matches, structured complementary matches, and structured hard negatives. A query is retained only when the fixed memory bank contains at least one calibrated Grade 1 or Grade 2 candidate. During training, every Grade 1/2 pair is retained and four Grade 0 candidates per positive are selected deterministically by hardest cosine-route rank. The internal development split retains its complete candidate set.
More precisely, the construction starts from 945 public ALFWorld training queries and deterministically renders each query from four relation-focused views: the complete task, operation, object, and destination. This gives 3,780 canonical views. We first split these views by parent-task family, obtaining 3,440 internal-training and 340 model-development views. Only the internal-training views are then expanded with three slot-preserving surface forms each, adding 10,320 views and producing 14,100 train-derived views in total. The positive-evidence gate excludes 152 training and four development views for which the fixed bank contains no defensible positive, leaving 13,608 training and 336 model-development views. All variants of a parent query remain in the same split. These are alternative supervision contexts derived from training tasks, not independent benchmark instances or evaluation-derived examples.
Appendix B.2. LLM Judge Prompts
The skill judge is used only during offline supervision construction. It receives the full task workflow, an operation-specific task view and its objective, together with the candidate skill identifiers, descriptions, and instruction previews. The exact prompt used in our experiments is reproduced below. In the prompt, “phase” refers only to the operation-specific task view used for constructing supervision and does not denote an inference-time task decomposition or planning module.

The memory judge is likewise used only during offline supervision construction. To match the information available to the query-cosine baseline, it receives only train-derived task queries and memory source queries, without access to trajectory bodies or evaluation outcomes. The exact prompt used in our experiments is reproduced below.

Appendix B.3. Label Definitions and Worked Examples
Grade 2 denotes a directly required capability or a memory query that covers the current retrieval focus. Grade 1 denotes a distinct prerequisite, complement, verification, recovery step, or transferable subprocedure. Grade 0 denotes irrelevance, an execution conflict, a redundant alternative, or a potential distraction. The uncertain label is excluded until it can be resolved without evaluation data.
For the operation-specific task view “clean a fork,” clean-object is Grade 2 because it directly supplies the state-changing capability. A valid object-handling or verification skill can be Grade 1 when it contributes a separate prerequisite or postcondition check. A cooling skill is Grade 0 because it conflicts with the required operation despite both skills modifying object state. For a memory query “clean a spoon and place it on the countertop,” an exact operation/object/cardinality/destination match is Grade 2; a clean-and-place procedure for another utensil may be Grade 1 when it supplies a transferable operation-specific subprocedure; a heat or cool procedure is Grade 0.
Appendix B.4. Hard-Negative Construction
Hard negatives are deliberately plausible under semantic similarity but incompatible with the task requirement. In skill retrieval, a verification view such as “verify the tomato is heated and on the dining table” can rank heater and temperature-management skills highly by cosine, although a verifier is the required candidate. In memory retrieval, a source query may share the same object and destination while specifying the wrong operation or cardinality. These candidates are more informative than uniformly sampled negatives because they teach TaskMatch which apparently related candidate should not displace an execution-compatible one.
Appendix B.5. Data Statistics and Leakage Control
Table A1 reports the frozen supervision used in each of the four retrieval settings. Pair counts are setting-specific rather than a fixed budget shared across datasets: they depend on the number of train-derived query views, the candidate-pool size and granularity, the positive-evidence gate, and the number of hard negatives retained per query.
Table A1.
Frozen task–candidate supervision statistics for the four target settings. “Pairs/query” normalizes training pairs by training query views; “Preferences” counts strict within-query graded comparisons used by the pairwise objective.
Table A1.
Frozen task–candidate supervision statistics for the four target settings. “Pairs/query” normalizes training pairs by training query views; “Preferences” counts strict within-query graded comparisons used by the pairwise objective.
| Candidate Type | Benchmark | Train tasks/queries | Candidates | Train pairs | Pairs/query | Dev pairs | Train G0 | Train G1 | Train G2 | Preferences |
|---|---|---|---|---|---|---|---|---|---|---|
| Skill | ALFWorld | 560 tasks / 2,230 views | 37 | 39,769 | 17.83 | 4,969 | 22,585 | 9,193 | 7,991 | 180,054 |
| Skill | SkillsBench-1000 | 4,963 queries | 1,000 | 54,472 | 10.98 | 14,907 | 44,341 | 4,505 | 5,626 | 106,087 |
| Memory | ALFWorld | 13,608 queries | 300 | 198,696 | 14.60 | 8,064 | 151,156 | 36,164 | 11,376 | 584,136 |
| Memory | TravelPlanner | 1,270 retrieval views | 519 | 30,840 | 24.28 | 11,017 | 10,591 | 8,762 | 11,487 | 246,673 |
The ALFWorld skill corpus contains 700 train-derived tasks split by task identity into 560/70/70 internal train/dev/test subsets, yielding 2,791 task views and 49,773 total pairs. SkillsBench uses a larger 1,000-skill catalog but caps the judged candidate set for each document-derived query; its frozen skill-only corpus contains 6,147 queries and 69,379 total pairs. Its official benchmark tasks are used only for evaluation. After the construction detailed above, the ALFWorld memory corpus contains 14,100 train-derived query views; 13,944 satisfy the positive-evidence gate, of which 13,608 are used for training and 336 for model selection. TravelPlanner instead represents procedures as 519 operation-level candidates and uses 1,980 train-derived retrieval views, split by task family into 1,270 training and 710 development queries, yielding 41,857 total pairs.
These differences are intentional and do not indicate that one setting receives more evaluation supervision. We construct only the informative task–candidate relations supported by the training data rather than materializing every query–candidate Cartesian product. The amount of supervision consequently tracks the available train-derived views and the density of defensible hard comparisons. In particular, Memory–ALFWorld materializes 198,696 training pairs but only 14.60 pairs per training query; its larger absolute corpus is primarily explained by its larger set of train-derived query views rather than unusually dense supervision. All method comparisons within a benchmark use the same frozen queries, candidate pool, labels, and splits; pair counts are never tuned using the corresponding evaluation outcomes. The ALFWorld skill-template audit contains 33 generic templates and 1,221 MiniMax-M2.7 judgments (812/325/84 for Grades 0/1/2); all responses parsed successfully.
No official evaluation task, reward, expert plan, or evaluation trajectory is used to construct labels, model inputs, weights, or checkpoints. Task identity is separated across internal splits. For memory data, canonical cross-split overlap is zero. Judge reasons, confidence, calibration actions, and all privileged execution fields are retained only in audit artifacts and excluded from model inputs.
Composite training tasks are additionally rendered as operation-specific task views. These views approximate the granularity of the local retrieval queries issued by the host system during execution and are used only to construct offline supervision; they do not add an inference-time task decomposition or planning module. Finally, the labels are relevance supervision rather than causal effect estimates: the objective is to rank candidates for the host-issued query, not to estimate the marginal contribution of an individual candidate to task success. We therefore evaluate TaskMatch using both intrinsic ranking metrics and end-to-end agent outcomes.
Appendix C. Full Experimental Settings
Appendix C.1. Skill Retrieval
ALFWorld uses the 37-skill library and graph released with SkillDAG. Offline analysis ranks the complete 37-skill pool and reports Top-5 retrieval. The end-to-end experiment follows the 140-task valid_seen setting with a 30-environment-step limit and a single run, matching the budget used in the reported SkillDAG comparison. The graph remains editable. During execution, SkillDAG can invoke skill retrieval repeatedly as the agent progresses through a composite task. These events naturally use local operation-specific queries rather than always repeating the initial task description. TaskMatch does not create or decompose these queries. At every retrieval event, cosine and TaskMatch scoring receive the same host-issued query, candidate interface, and frozen representations. Any deterministic query transformation in the host pipeline is shared by all TaskMatch variants. SkillDAG’s graph interface and execution loop remain unchanged. Values attributed to prior methods in the main tables are quoted from the corresponding papers; rows containing TaskMatch use our frozen checkpoints and local runs.
SkillsBench uses the 1,000-skill collection and final Top-5 retrieval. The skill documents and cold-start graph supply training evidence; the official 87 evaluation tasks and their outcomes are excluded from training and model selection. The two agent backbones are MiniMax-M2.7 and GPT-5.2-Codex, as specified in the main tables.
Appendix C.2. Procedural-Memory Retrieval
The ALFWorld memory bank contains 300 Script memories. Full-pool retrieval ranks all 300 memories; the cascade first keeps 50 cosine memories and returns the Top-10 after TaskMatch scoring. End-to-end comparisons reuse the same GPT-4o agent, prompts, action budget, memory format, and MemP execution code, changing only memory ordering. Script, Trajectory, and Proceduralization results are reported separately because their retrieved content and downstream use differ.
TravelPlanner uses 519 candidate operations derived from the same memory bank available to both compared retrievers. A fixed parser constructs five operation-specific retrieval views, and the selected operations are assembled back into memory context before the unchanged GPT-4o planner is called. Query cosine and TaskMatch use the same five views; the parser is part of their shared retrieval protocol. Full-pool rows score all 519 candidates; cascade rows use . The official test labels are hidden; we therefore follow the released validation protocol for model development.
Appendix C.3. Evaluation Metrics
For intrinsic skill retrieval, we follow the retrieval evaluation protocol of SkillDAG and report Ret@K, Ret@1, and mean reciprocal rank (MRR). Ret@K measures whether the Top-K retrieved results cover the ground-truth skill required by the retrieval query, while Ret@1 measures whether a ground-truth skill is ranked first. MRR further accounts for ranking position by assigning a larger score when the first ground-truth skill appears earlier in the retrieved list. Higher values indicate better retrieval quality.
For intrinsic procedural-memory retrieval, we additionally report NDCG@10, Precision@10, and Harm@10. NDCG@10 measures the overall quality of the Top-10 ranking by rewarding relevant memories that appear closer to the top of the list. Precision@10 measures the proportion of relevant memories among the Top-10 retrieved results, while Harm@10 measures the proportion of retrieved memories that are incompatible with or unhelpful for the current retrieval query. Higher NDCG@10 and Precision@10 are better, whereas lower Harm@10 is better.
For end-to-end evaluation, we follow the metrics of the corresponding host benchmarks. SkillsBench reports task reward. On ALFWorld, task completion is determined by the environment, and success rate measures the proportion of episodes completed successfully; average steps measures the number of environment interactions required for execution. On TravelPlanner, #CS and #HC denote the Common Sense and Hard Constraint scores, respectively, obtained by evaluating the generated travel plan against the benchmark requirements, while Steps measures execution efficiency. Higher reward, success rate, #CS, and #HC are better, whereas fewer execution steps are better.
Appendix C.4. Choice of Host Retrievers
Recent concurrent methods improve complementary stages of the skill-use pipeline, including skill representation, library organization, structural retrieval, and post-retrieval adaptation. Rather than reimplementing each method under a new evaluation stack, we focus on controlled integrations with two representative host retrievers: structure-aware SkillDAG and similarity-based MemP. These settings allow us to isolate the effect of TaskMatch scoring while covering substantially different retrieval mechanisms.
Appendix C.5. TaskMatch Implementation and Evaluation Protocol
The TaskMatch models for skill and memory retrieval inherit the frozen representations used by their respective host retrieval systems. Skill retrieval uses 3072-dimensional text-embedding-3-large representations and yields a 297,553-parameter TaskMatch model (0.298M), while procedural-memory retrieval uses 1536-dimensional text-embedding-3-small representations and yields a 150,097-parameter TaskMatch model (0.150M). Both settings use the same interaction architecture, so the difference in model size comes solely from the embedding dimensionality inherited from the host retrieval system. Candidate representations are precomputed and cached in both settings. Training and model selection use only non-test supervision; test task–candidate labels and execution outcomes are reserved for final evaluation. Detailed optimization hyperparameters are provided in Appendix A.
Appendix C.6. Hardware and Efficiency Measurement
Routine TaskMatch training was performed on a dual-socket Intel Xeon Gold 6530 machine with 64 physical cores and 128 hardware threads. For the efficiency measurements reported in Table A2, we used a single NVIDIA GeForce RTX 4090 with 48 GiB of memory. Inference latency was measured by batch-scoring the complete 300-memory ALFWorld bank using one CPU thread, with 200 warm-up queries followed by 10,000 timed queries. Each method was evaluated in a fresh process, and we report the arithmetic mean latency. Embedding computation is excluded because both methods use the same precomputed and cached representations. Peak GPU memory was measured using the PyTorch allocator after resetting peak-memory statistics. We additionally reran the complete TaskMatch training pipeline from scratch on the same RTX 4090: GMF pretraining, MLP pretraining, and NeuMF fine-tuning together required 295.02 s, with a peak allocated training memory of 128.25 MiB.
Table A2.
Additional cost of TaskMatch in the ALFWorld procedural-memory setting with a 300-memory pool. Latency excludes the shared text-encoding stage and measures candidate scoring after frozen representations are available. Training time covers TaskMatch optimization after offline supervision construction and excludes LLM annotation.
Table A2.
Additional cost of TaskMatch in the ALFWorld procedural-memory setting with a 300-memory pool. Latency excludes the shared text-encoding stage and measures candidate scoring after frozen representations are available. Training time covers TaskMatch optimization after offline supervision construction and excludes LLM annotation.
| Method | Added Params | #Scored | TaskMatch Train | Latency↓ | Mem.↓ |
|---|---|---|---|---|---|
| Query cosine | 0 | 300 | – | 0.057 ms | 13.83 MiB |
| TaskMatch (Full) | 0.15M | 300 | 295.02 s | 0.248 ms | 17.21 MiB |
Efficiency.
Table A2 reports the additional training and inference cost of TaskMatch once offline supervision and frozen representations are available. Candidate representations are cached, and task–candidate interactions are batched across candidates. On the 300-memory ALFWorld pool, scoring and ranking the complete bank takes 0.248 ms per query, compared with 0.057 ms for cosine retrieval, corresponding to an absolute increase of 0.191 ms. The full training recipe (20 GMF epochs, 20 MLP epochs, and early-stopped NeuMF fine-tuning) completes in 295.02 s, excluding LLM annotation. Peak inference memory increases from 13.83 MiB to 17.21 MiB. Because TaskMatch reuses the frozen embeddings required by the host retriever, it introduces no additional online embedding or LLM calls.
Appendix D. Additional Results and Analysis
Appendix D.1. Ablation Protocol
All offline architectural variants in Table A3 use the same arrays, splits, embeddings, candidate pool, seed, and evaluation code. Only the named component changes. In particular, TaskMatch (GMF), TaskMatch (MLP), and TaskMatch (Full) are pure full-pool variants in this table; no variant receives a different graph or cosine-fusion advantage. Binary-label training maps both supportive and required candidates to one positive class. The no-pairwise variant sets , and the random-negative variant replaces deterministic hard negative selection while keeping the pair budget fixed.
The offline columns of Table 5 use the deployed online calibration for each branch and are therefore intentionally distinct from the pure full-pool architecture table. Success is measured only by a full agent run; it is never inferred from Ret@1 or MRR.
Appendix D.2. Full Architectural Ablation
Table A3.
Component ablation on ALFWorld. Skill retrieval uses SkillDAG candidates; memory retrieval uses Script memory with the matched full pool.
Table A3.
Component ablation on ALFWorld. Skill retrieval uses SkillDAG candidates; memory retrieval uses Script memory with the matched full pool.
| Skill Retrieval | Memory Retrieval | ||||
|---|---|---|---|---|---|
| Variant | Ret@1↑ | MRR↑ | Ret@1↑ | MRR↑ | NDCG@10↑ |
| Base retriever | 59.88 | 71.08 | 73.84 | 82.98 | 71.81 |
| TaskMatch (Linear) | 30.14 | 46.16 | 5.73 | 12.42 | 6.39 |
| TaskMatch (GMF) | 63.47 | 79.64 | 65.59 | 74.68 | 61.01 |
| TaskMatch (MLP) | 69.86 | 83.03 | 85.30 | 90.07 | 79.10 |
| TaskMatch (Full + Binary labels) | 68.86 | 81.95 | 48.75 | 58.49 | 48.72 |
| TaskMatch (Full w/o Pairwise loss) | 62.67 | 79.49 | 56.63 | 66.68 | 51.08 |
| TaskMatch (Full w/ Random negatives) | 59.08 | 78.53 | 87.46 | 92.48 | 82.57 |
| TaskMatch (Full) | 71.66 | 83.85 | 91.04 | 93.82 | 84.45 |
Component Ablation.
Table A3 isolates the contributions of the interaction architecture and training strategy. The TaskMatch (Linear), TaskMatch (GMF), and TaskMatch (MLP) variants compare increasingly expressive task–candidate interaction functions, while the remaining variants ablate graded labels, pairwise ranking, and hard-negative construction with the other components fixed. TaskMatch (Linear) performs substantially below the base retriever in both settings, indicating that a simple linear mapping is insufficient for modeling task–candidate relevance from the frozen representations. GMF and MLP substantially improve over TaskMatch (Linear), while combining both interaction branches yields the strongest overall retrieval performance. On skill retrieval, the full TaskMatch model improves Ret@1 by 1.80 points over TaskMatch (MLP) and by 8.19 points over TaskMatch (GMF). The supervision design also matters, particularly for memory retrieval: binarizing the graded labels reduces Ret@1 from 91.04 to 48.75, while removing the pairwise objective reduces it to 56.63. Random negatives remain competitive for memory retrieval but reduce skill Ret@1 from 71.66 to 59.08, suggesting that targeted hard-negative construction is particularly useful in the skill setting.
Appendix D.3. Retrieval–Execution Gap
The experiments show that retrieval is important but not sufficient. For ALFWorld skills, the large Ret@1 improvement coincides with a 14.33-point success gain. For Script memory, however, a 17.20-point Ret@1 gain yields only 0.74 points of Test SR. TravelPlanner exhibits the same pattern: much stronger Top-K coverage produces modest Script-level gains because planning quality, constraint grounding, and model stochasticity remain downstream bottlenecks. We therefore report intrinsic and end-to-end metrics separately.
Appendix D.4. RQ1: Detailed Intrinsic Retrieval Results
Skill Retrieval.
As shown in Table 1, TaskMatch consistently improves SkillDAG’s intrinsic retrieval quality. With MiniMax-M2.7, Ret@1 increases from 66.70 to 76.98 on SkillsBench and from 57.90 to 86.03 on ALFWorld, while MRR increases from 71.30 to 79.70 and from 71.10 to 92.50, respectively. Improvements remain with GPT-5.2-Codex, including an ALFWorld MRR increase from 69.60 to 86.45. Thus, TaskMatch improves candidate ordering even when candidates are produced by a structure-aware retriever.
Procedural-Memory Retrieval.
Table 2 shows that TaskMatch also improves procedural-memory retrieval. Under the matched ALFWorld full-pool setting, Ret@1 increases from 73.84 to 91.04, MRR from 82.98 to 93.82, and NDCG@10 from 71.81 to 84.45. On TravelPlanner, the largest improvements appear in Top-K coverage: Ret@5 rises from 16.22 to 94.67 and Ret@10 from 18.78 to 98.67, while Harm@10 decreases from 88.77 to 66.59.
Cascade Retrieval.
We additionally evaluate a two-stage cascade in which cosine similarity first reduces the memory pool to 50 candidates and TaskMatch reranks only this subset. This setting tests whether TaskMatch can be used as a lightweight second-stage reranker when scoring the full repository is unnecessary or undesirable. On ALFWorld, cosine retrieval already provides strong candidate recall, so reranking the reduced pool further improves Ret@1 from 73.84 to 96.06. On TravelPlanner, however, the cosine first stage has much lower recall and removes relevant memories before TaskMatch is applied, reducing Ret@5 and Ret@10 relative to full-pool scoring. We therefore use the cascade as an efficiency-oriented deployment variant rather than the primary evaluation of TaskMatch.
Figure A1.
Intrinsic retrieval improvements across skill and procedural-memory settings. Each panel compares the corresponding host retriever with TaskMatch, while annotated differences show the absolute improvement in percentage points. The gains recur across all four evaluation settings, spanning both structure-aware skill retrieval and similarity-based procedural-memory retrieval. Detailed results are reported in Table 1 and Table 2.
Figure A1.
Intrinsic retrieval improvements across skill and procedural-memory settings. Each panel compares the corresponding host retriever with TaskMatch, while annotated differences show the absolute improvement in percentage points. The gains recur across all four evaluation settings, spanning both structure-aware skill retrieval and similarity-based procedural-memory retrieval. Detailed results are reported in Table 1 and Table 2.

Appendix D.5. RQ2: Detailed End-to-End Results
Skill Selection.
Table 3 shows that the retrieval improvements translate into stronger agent execution. With MiniMax-M2.7, adding TaskMatch to SkillDAG increases SkillsBench reward from 27.30 to 29.21 and ALFWorld success from 67.10% to 81.43%. The improvement persists with GPT-5.2-Codex, where ALFWorld success increases from 93.60% to 96.43%. These gains show that TaskMatch can further complement a strong structure-aware retriever across different agent backbones.
Procedural Memory.
As reported in Table 4, TaskMatch improves downstream performance without changing the memory representation. On ALFWorld, Test SR increases from 80.60% to 84.33% for Trajectory memory and from 81.34% to 90.30% for Proceduralization, while the latter reduces average steps from 13.30 to 12.22. On TravelPlanner, Proceduralization improves #HC from 64.06 to 76.19 and reduces average steps from 15.73 to 14.66. Script memory exhibits only modest downstream gains despite substantial intrinsic retrieval improvements, indicating that retrieval quality contributes to, but does not fully determine, final agent performance.
Appendix E. Case Studies and Failure Analysis
Appendix E.1. Detailed Skill Retrieval Case
Figure 1 provides a compact visualization of this case; here we report the complete retrieval rankings and execution details. We examine a held-out ALFWorld task that requires finding two tissue boxes and placing them in the toilet. Both runs issue the same batched retrieval call with the queries “find tissuebox” and “put tissuebox in toilet,” requesting five skills for each query over the same skill library. For the shared initial query “find tissuebox,” cosine similarity ranks receptacle-finder, tool-locator, receptacle-searcher, storage-explorer, and search-pattern-executor in its Top-5. This ranking is consistent with the surface association between “box” and receptacle-oriented or generic-search capabilities, although the tissue box is the object that must be located, retrieved, and transported. In contrast, TaskMatch ranks object-transporter, object-locator, object-retriever, inventory-management, and tool-locator, providing a more complementary set of capabilities for locating, retrieving, transporting, and tracking multiple target objects.
In the corresponding execution traces, the cosine-based run follows a broad sequential search through eight drawers before reaching the countertop and exhausts the 30-step budget. The run using the TaskMatch ranking prioritizes the countertop, immediately locates multiple tissue boxes, and completes the two-object transport task in 8 environment steps. Because the two trajectories are independent stochastic agent runs, this example is intended only to illustrate how different retrieval rankings can align with different execution behaviors; our quantitative conclusions are based on the complete benchmark.
Appendix E.2. Cardinality-Sensitive Procedural-Memory Reranking Case
We next examine a real retrieval case from the frozen, train-derived model-development split. The query requires placing two spray bottles in a toilet, jointly specifying the target object, cardinality, and placement relation. Query cosine ranks a single-object procedure, put a spraybottle in toilet, first and places the exact two-object procedure only fourth. Its remaining Top-3 results also match the target object lexically but fail to preserve the required cardinality and placement relation.
TaskMatch instead promotes find two spraybottle and put them in toilet from cosine rank four to rank one. This memory is the only displayed candidate that satisfies all three requirements: the target object, the two-object workflow, and the intended placement relation. The case illustrates the distinction between surface similarity and fine-grained task–memory relevance. It is an intrinsic retrieval example and does not use downstream agent outcomes or official evaluation trajectories.
Appendix E.3. Failure Modes Across Retrieval and Execution
End-to-end agent performance depends on more than candidate ranking. We distinguish three failure modes according to where they arise in the retrieval–execution pipeline: candidate-recall failure, ranking failure, and downstream execution failure. This distinction is important because TaskMatch directly targets only the middle stage.
Candidate-recall and ranking failures. In restricted candidate-generation settings, a relevant memory may be filtered out before reranking, leaving a post-retrieval scorer no opportunity to recover it. This limitation does not apply to the full-pool setting, where the complete memory bank is directly available for scoring. In contrast, when a relevant memory is present but under-ranked, TaskMatch can intervene directly. The cardinality-sensitive example in Section E.2 illustrates this case: cosine similarity favors lexically close but constraint-incomplete memories, whereas TaskMatch promotes the memory that better satisfies the task’s procedural requirements.
Downstream execution failures. Improved retrieval quality does not uniquely determine the final agent outcome. In our paired ALFWorld analysis, we observe cases in which two runs receive the same retrieved memory contents in the same order but nevertheless follow different execution paths and reach different outcomes. Such divergence can arise from downstream behaviors including inefficient object search, invalid actions, state-transition mistakes, repeated actions, or exhaustion of the step budget. These observations indicate that retrieval quality and execution quality are related but distinct: TaskMatch reranking can improve the information exposed to the agent, while the downstream policy remains responsible for converting that information into successful actions.
References
- Bai, T.; Wan, Z.; Zhou, P.; Yu, X.; You, Y.; Tsang, I. W. SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scale. arXiv 2026, arXiv:2606.03056. [Google Scholar]
- Cao, Z.; Deng, J.; Yu, L.; Zhou, W.; Liu, Z.; Ding, B.; Zhao, H. Remember me, refine me: A dynamic procedural memory framework for experience-driven agent evolution. Findings of the Association for Computational Linguistics: ACL 2026 Findings of the association for computational linguistics: Acl 2026 2026, 16803–16822. [Google Scholar] [CrossRef]
- Chen, M.; Li, Y.; Yang, Y.; Yu, S.; Lin, B.; He, X. Automanual: Constructing instruction manuals by llm agents via interactive environmental learning. Adv. Neural Inf. Process. Syst. 2024, 37589–631. [Google Scholar]
- Chen, Y.; Shi, W.; Yang, W.; Xu, J. Task Decomposition-Guided Reranking for Adaptive Agent Skill Retrieval. arXiv 2026, arXiv:2607.06283. [Google Scholar]
- Chen, Y.; Yoon, J.; Sachan, D. S.; Wang, Q.; Cohen-Addad, V.; Bateni, M.; Lee, C.-Y.; Pfister, T. Re-invoke: tool invocation rewriting for zero-shot tool retrieval. arXiv 2024, arXiv:2408.01875. [Google Scholar]
- Du, Y.; Wei, F.; Zhang, H. Anytool: Self-reflective, hierarchical agents for large-scale api calls. arXiv 2024, arXiv:2402.04253. [Google Scholar]
- Fang, R.; Liang, Y.; Wang, X.; Wu, J.; Qiao, S.; Xie, P.; Huang, F.; Chen, H.; Zhang, N. Memp: Exploring agent procedural memory. Findings of the Association for Computational Linguistics: ACL 2026 Findings of the association for computational linguistics: Acl 2026 2026, 17490–17502. [Google Scholar] [CrossRef]
- Fu, Y.; Kim, D.-K.; Kim, J.; Sohn, S.; Logeswaran, L.; Bae, K.; Lee, H. Autoguide: Automated generation and selection of context-aware guidelines for large language model agents. Adv. Neural Inf. Process. Syst. 2024, 37119919–119948. [Google Scholar]
- Gao, L.; Callan, J. Unsupervised corpus aware language model pre-training for dense passage retrieval. Proc. 60th Annu. Meet. Assoc. Comput. Linguist. 2022, Volume 1, 2843–2853. [Google Scholar] [CrossRef]
- Goulart, P.; Wu, L.; Wan, K.; Papalexakis, E. E.; Hong, L. Field Aware Agent Skill Retrieval. arXiv 2026, arXiv:2608.02880. [Google Scholar]
- Guo, J.; Fan, Y.; Ai, Q.; Croft, W. B. A deep relevance matching model for ad-hoc retrieval. In Proceedings of the 25th ACM international on conference on information and knowledge management Proceedings of the 25th acm international on conference on information and knowledge management, 2016; pp. 55–64. [Google Scholar]
- Hao, S.; Liu, T.; Wang, Z.; Hu, Z. Toolkengpt: Augmenting frozen language models with massive tools via tool embeddings. Adv. Neural Inf. Process. Syst. 2023, 3645870–45894. [Google Scholar]
- He, X.; Liao, L.; Zhang, H.; Nie, L.; Hu, X.; Chua, T.-S. Neural collaborative filtering. In Proceedings of the 26th international conference on world wide web Proceedings of the 26th international conference on world wide web ( 173–182), 2017. [Google Scholar]
- Khattab, O.; Zaharia, M. Colbert: Efficient and effective passage search via contextualized late interaction over bert. In Proceedings of the 43rd International ACM SIGIR conference on research and development in Information Retrieval Proceedings of the 43rd international acm sigir conference on research and development in information retrieval, 2020; pp. 39–48. [Google Scholar]
- Li, Q.; He, D.; Bao, Y.; Yang, Y.; Chen, R.; Yu, X.; Liang, L.; Su, G.; Zhang, W.; Zhang, X. SkillAligner: Treating Retrieved Skills as Adaptable Drafts at Execution Time. arXiv 2026, arXiv:2608.06880. [Google Scholar]
- Li, X.; Liu, Y.; Chen, W.; You, B.; Di, Z.; He, Y.; Zheng, S.; Choe, K. W.; Sun, J.; Wang, S.; et al. SkillsBench: Benchmarking how well agent skills work across diverse tasks. arXiv 2026, arXiv:2602.12670. [Google Scholar]
- Liu, D.; Li, Z.; Du, H.; Wu, X.; Gui, S.; Kuang, Y.; Sun, L. Graph-of-Skills: Dependency-Aware Structural Retrieval for Massive Agent Skills. arXiv 2026, arXiv:2604.05333. [Google Scholar]
- MacAvaney, S.; Yates, A.; Cohan, A.; Goharian, N. CEDR: Contextualized embeddings for document ranking. In Proceedings of the 42nd international ACM SIGIR conference on research and development in information retrieval Proceedings of the 42nd international acm sigir conference on research and development in information retrieval, 2019; pp. 1101–1104. [Google Scholar]
- Nogueira, R.; Cho, K. Passage Re-ranking with BERT. arXiv 2019, arXiv:1901.04085. [Google Scholar]
- Pang, L.; Lan, Y.; Guo, J.; Xu, J.; Wan, S.; Cheng, X. Text matching as image recognition. In Proceedings of the AAAI conference on artificial intelligence Proceedings of the aaai conference on artificial intelligence ( 30), 2016. [Google Scholar]
- Qin, Y.; Liang, S.; Ye, Y.; Zhu, K.; Yan, L.; Lu, Y.; Lin, Y.; Cong, X.; Tang, X.; Qian, B.; et al. Toolllm: Facilitating large language models to master 16000+ real-world apis. International Conference on Learning Representations International conference on learning representations, 2024; pp. 9695–9717. [Google Scholar]
- Reimers, N.; Gurevych, I. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP) Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (emnlp-ijcnlp), 2019; pp. 3982–3992. [Google Scholar]
- Sarch, G.; Jang, L.; Tarr, M. J.; Cohen, W. W.; Marino, K.; Fragkiadaki, K. Vlm agents generate their own memories: Distilling experience into embodied programs of thought. Adv. Neural Inf. Process. Syst. 2024, 3775942–75985. [Google Scholar]
- Schick, T.; Dwivedi-Yu, J.; Dessì, R.; Raileanu, R.; Lomeli, M.; Hambro, E.; Zettlemoyer, L.; Cancedda, N.; Scialom, T. Toolformer: Language models can teach themselves to use tools. Adv. Neural Inf. Process. Syst. 2023, 3668539–68551. [Google Scholar]
- Shi, Z.; Wang, Y.; Yan, L.; Ren, P.; Wang, S.; Yin, D.; Ren, Z. Retrieval models aren’t tool-savvy: Benchmarking tool retrieval for large language models. Findings of the Association for Computational Linguistics: ACL 2025 Findings of the association for computational linguistics: Acl 2025, 2025, 24497–24524. [Google Scholar] [CrossRef]
- Shridhar, M.; Yuan, X.; Côté, M.-A.; Bisk, Y.; Trischler, A.; Hausknecht, M. Alfworld: Aligning text and embodied environments for interactive learning. arXiv 2020, arXiv:2010.03768. [Google Scholar]
- Tan, X.; Li, B.; Qiu, X.; Qu, C.; Chu, W.; Xu, Y.; Qi, Y. Meta-agent-workflow: Streamlining tool usage in llms through workflow construction, retrieval, and refinement. In Companion Proceedings of the ACM on Web Conference 2025 Companion proceedings of the acm on web conference 2025, 2025; pp. 458–467. [Google Scholar]
- Tan, X.; Wang, X.; Liu, Q.; Xu, X.; Yuan, X.; Zhu, L.; Zhang, W. SkillZip: Contract-Preserving Graph Compression for Scalable Agent Skill Libraries. arXiv 2026, arXiv:2608.05604. [Google Scholar]
- Tang, X.; Qin, T.; Peng, T.; Zhou, Z.; Shao, D.; Du, T.; Wei, X.; Xia, P.; Wu, F.; Zhu, H.; et al. Agent kb: Leveraging cross-domain experience for agentic problem solving. arXiv 2025, arXiv:2507.06229. [Google Scholar]
- Wang, G.; Xie, Y.; Jiang, Y.; Mandlekar, A.; Xiao, C.; Zhu, Y.; Fan, L.; Anandkumar, A. Voyager: An open-ended embodied agent with large language models. arXiv 2023, arXiv:2305.16291. [Google Scholar]
- Wang, Z.; Wen, W.; Ji, Q.; Chen, K.; Qiao, R.; Sun, X. Skill Is Not Document: Query-Conditioned Compatibility for LLM Agent Skill Routing. arXiv 2026, arXiv:2606.03565. [Google Scholar]
- Wang, Z.; Wen, W.; Ji, Q.; Qiao, R. Skills Know Their Neighbors: Cluster-Contrastive Capability Pages for Skill Retrieval. arXiv 2026, arXiv:2608.04482. [Google Scholar]
- Wang, Z. Z.; Mao, J.; Fried, D.; Neubig, G. Agent workflow memory. arXiv 2024, arXiv:2409.07429. [Google Scholar]
- Xie, J.; Zhang, K.; Chen, J.; Zhu, T.; Lou, R.; Tian, Y.; Xiao, Y.; Su, Y. Travelplanner: A benchmark for real-world planning with language agents. arXiv 2024, arXiv:2402.01622. [Google Scholar]
- Xiong, C.; Dai, Z.; Callan, J.; Liu, Z.; Power, R. End-to-end neural ad-hoc ranking with kernel pooling. In Proceedings of the 40th International ACM SIGIR conference on research and development in information retrieval Proceedings of the 40th international acm sigir conference on research and development in information retrieval, 2017; pp. 55–64. [Google Scholar]
- Xu, W.; Liang, Z.; Mei, K.; Gao, H.; Tan, J.; Zhang, Y. A-MEM: Agentic Memory for LLM Agents. Adv. Neural Inf. Process. Syst. Adv. Neural Inf. Process. Syst. 2025, 38, 17577–17604. [Google Scholar]
- Yao, Y.; Wang, S.; Chen, X.; Zhang, M.; He, J.; Luo, B.; Gedeon, T. SkillTrace: Traversing a Query-Skill Graph for Composable LLM Agents. arXiv 2026, arXiv:2608.02356. [Google Scholar]
- Yuan, L.; Chen, Y.; Wang, X.; Fung, Y.; Peng, H.; Ji, H. Craft: Customizing llms by creating and retrieving from specialized toolsets. International Conference on Learning Representations International conference on learning representations, 2024; pp. 40097–40125. [Google Scholar]
- Zheng, L.; Wang, R.; Wang, X.; An, B. Synapse: Trajectory-as-exemplar prompting with memory for computer control. International Conference on Learning Representations International conference on learning representations, 2024; pp. 19036–19066. [Google Scholar]
- Zheng, Y.; Li, P.; Liu, W.; Liu, Y.; Luan, J.; Wang, B. Toolrerank: Adaptive and hierarchy-aware reranking for tool retrieval. In Proceedings of the 2024 joint international conference on computational linguistics, language resources and evaluation (LREC-COLING 2024) Proceedings of the 2024 joint international conference on computational linguistics, language resources and evaluation (lrec-coling 2024), 2024; pp. 16263–16273. [Google Scholar]
- Zheng, Y.; Zhang, Z.; Ma, C.; Yu, Y.; Zhu, J.; Wu, Y.; Xu, T.; Dong, B.; Zhu, H.; Huang, R.; Yu, G. SkillRouter: Skill Routing for LLM Agents at Scale. arXiv 2026, arXiv:2603.22455. [Google Scholar]
Figure 1.
A representative ALFWorld case illustrating the mismatch between semantic similarity and task relevance. For the shared query “find tissuebox,” cosine similarity ranks receptacle-oriented skills highly, whereas TaskMatch promotes object transportation, localization, and retrieval capabilities that better match the required operations. The figure shows the Top-3 entries from the Top-5 ranking returned for this query. The corresponding stochastic agent runs end in a 30-step failure and an 8-step success.
Figure 1.
A representative ALFWorld case illustrating the mismatch between semantic similarity and task relevance. For the shared query “find tissuebox,” cosine similarity ranks receptacle-oriented skills highly, whereas TaskMatch promotes object transportation, localization, and retrieval capabilities that better match the required operations. The figure shows the Top-3 entries from the Top-5 ranking returned for this query. The corresponding stochastic agent runs end in a 30-step failure and an 8-step success.

Figure 2.
Overview of TaskMatch. Offline graded relevance supervision trains TaskMatch. At inference, TaskMatch reranks candidates using fixed representations while leaving the host retriever and downstream agent unchanged.
Figure 2.
Overview of TaskMatch. Offline graded relevance supervision trains TaskMatch. At inference, TaskMatch reranks candidates using fixed representations while leaving the host retriever and downstream agent unchanged.

Table 1.
Intrinsic skill-retrieval results. TaskMatch is applied to skills produced by SkillDAG. Higher is better for all metrics.
Table 1.
Intrinsic skill-retrieval results. TaskMatch is applied to skills produced by SkillDAG. Higher is better for all metrics.
| SkillsBench-1000 | ALFWorld-37 | ||||||
|---|---|---|---|---|---|---|---|
| Model | Method | Ret@5↑ | Ret@1↑ | MRR↑ | Ret@5↑ | Ret@1↑ | MRR↑ |
| MiniMax-M2.7 | Vector Skills | 10.80 | 3.60 | 5.80 | 68.60 | 37.90 | 49.20 |
| GoS | 65.50 | 50.60 | 57.30 | 86.40 | 56.40 | 67.90 | |
| SkillDAG | 78.20 | 66.70 | 71.30 | 92.10 | 57.90 | 71.10 | |
| SkillDAG + TaskMatch | 84.13 | 76.98 | 79.70 | 99.40 | 86.03 | 92.50 | |
| GPT-5.2-Codex | Vector Skills | 10.80 | 3.60 | 5.80 | 68.60 | 37.90 | 49.20 |
| GoS | 65.50 | 50.60 | 57.30 | 86.40 | 56.40 | 67.90 | |
| SkillDAG | 75.90 | 70.10 | 73.00 | 85.10 | 60.40 | 69.60 | |
| SkillDAG + TaskMatch | 80.49 | 70.73 | 74.23 | 100.00 | 74.52 | 86.45 | |
Table 2.
Intrinsic procedural-memory retrieval. Full-pool rows score the complete memory pool, while cascade rows first retrieve 50 memories with cosine similarity and then apply TaskMatch only to this subset. The final row of each dataset reports the optional cascade variant.
Table 2.
Intrinsic procedural-memory retrieval. Full-pool rows score the complete memory pool, while cascade rows first retrieve 50 memories with cosine similarity and then apply TaskMatch only to this subset. The final row of each dataset reports the optional cascade variant.
| Dataset | Retriever | Pool Size | Ret@1↑ | Ret@5↑ | Ret@10↑ | MRR↑ | NDCG@10↑ | Prec.@10↑ | Harm@10↓ |
|---|---|---|---|---|---|---|---|---|---|
| ALFWorld | Random | 300 | 7.36 | 26.84 | 39.76 | 15.70 | 7.33 | 7.44 | – |
| Query cosine | 300 | 73.84 | 95.70 | 98.92 | 82.98 | 71.81 | 58.69 | – | |
| TaskMatch | 300 | 91.04 | 98.57 | 99.28 | 93.82 | 84.45 | 71.73 | – | |
| Query cosine + TaskMatch | 50 | 96.06 | 100.00 | 100.00 | 97.79 | 94.68 | 80.54 | – | |
| TravelPlanner | Random | 519 | 0.44 | 2.56 | 4.78 | 1.41 | 1.61 | 1.66 | 98.34 |
| Query cosine | 519 | 7.78 | 16.22 | 18.78 | 12.23 | 11.00 | 11.23 | 88.77 | |
| TaskMatch | 519 | 8.78 | 94.67 | 98.67 | 40.36 | 49.96 | 33.41 | 66.59 | |
| Query cosine + TaskMatch | 50 | 34.11 | 64.67 | 64.67 | 48.60 | 33.99 | 16.62 | 83.38 |
Table 5.
Focused architectural ablation on ALFWorld with MiniMax-M2.7. The intrinsic columns use each branch’s deployed calibrated ranking protocol and are not directly comparable to the pure full-pool scores reported in Appendix D.2.
Table 5.
Focused architectural ablation on ALFWorld with MiniMax-M2.7. The intrinsic columns use each branch’s deployed calibrated ranking protocol and are not directly comparable to the pure full-pool scores reported in Appendix D.2.
| Variant | Ret@1↑ | MRR↑ | Success (%)↑ |
|---|---|---|---|
| SkillDAG | 57.90 | 71.10 | 67.10 |
| SkillDAG + TaskMatch (GMF) | 76.85 | 87.01 | 72.14 |
| SkillDAG + TaskMatch (MLP) | 89.22 | 93.91 | 75.71 |
| SkillDAG + TaskMatch (Full) | 86.03 | 92.50 | 81.43 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.