arXiv:2610.32412cs.AIOct 2026

Manuscript Offprint

arXiv:2610.32412

LeafSkill: Efficient Leaf-Level Action Grounding for Recursive LLM Agents

Shen Liu, Ze Zhou, Zhenguo Xu, Shaopu Wang, Yike Gao, Chunlei Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recursive large language model (LLM) agents often invoke a large host model after decomposition has reduced the problem to grounding a leaf task into one executable action. Our traces show that this last-mile grounding consumes 22.9–44.5% of host-model tokens. We introduce LeafSkill, an external action-grounding layer that reuses local task-action experience without taking over recursive planning. LeafSkill separates recall from execution: semantic retrieval proposes task-action templates, deterministic binding instantiates currently admissible actions, and a lightweight controller selects a candidate or abstains. The controller cannot generate free-form commands, and abstention returns control to the host. With the same ReCAP planner and Qwen3.5-27B host, LeafSkill reduces host tokens on jointly solved tasks by 23.1% on Robotouille and 41.3% on ALFWorld, each averaged over all nine cross-run pairings of three independent repeats; an independent Robotouille set yields a 14.4% reduction. Mean observed success is numerically higher for LeafSkill in both environments. A disjoint growth study expands the library from 446 to 588 skills without selector retraining or test trajectories; on tasks solved by all systems, host-token savings deepen from 18.3% to 25.6%. Ablations show that retrieval supplies paraphrase coverage, binding enforces executability, and learned selection controls when reuse is appropriate. Leaf-level action grounding therefore reduces expensive host inference while preserving recursive planning and recovery.

1 Introduction

Recursive LLM agents tackle long-horizon tasks by decomposing goals into progressively smaller task nodes (Yao et al. 2023b,a; Hu et al. 2025; Zhang et al. 2025). Yet decomposition does not eliminate expensive host-model inference. Even after a leaf task has become explicit, the agent may still invoke the same large model merely to translate that task into one action accepted by the current environment. For example, once the planner has produced “pick up onion1 from board1,” the remaining decision is no longer how to solve the overall goal, but how to ground this local instruction into an executable command.

We call this operation leaf-level action grounding: mapping an already specified task node to one currently admissible environment action, without altering decomposition, parent

Figure

Figure 1: Host-token composition of ReCAP trajectories used for skill-library construction in Robotouille and ALFWorld.

plans, or completion state. Although local, this operation recurs throughout a trajectory. A conservative audit of the source corpora used for library construction shows that strict leaf grounding consumes 22.9% and 23.7% of host-model tokens in two Robotouille splits, and 44.5% in ALFWorld (Figure 1). Leaf grounding is therefore a narrow but substantial target for reducing host inference. We study this opportunity using ReCAP as the recursive host, while leaving its planning, recovery, and completion mechanisms unchanged.

Reusing these decisions is not equivalent to exact-string caching. Semantically equivalent tasks may be expressed by different phrases, while similar phrases may encode different intents. Retrieved arguments may be absent from the current state, and the same task may ground to different actions under different observations. Effective reuse must therefore solve four distinct problems: semantic recall, state-dependent instantiation, candidate disambiguation, and safe abstention.

We introduce LeafSkill, an external action-grounding layer for recursive LLM agents. Its frozen library stores canonical-task/action-template pairs, each of which we call a skill; multiple skills may share one canonical task key. Given a leaf task, semantic retrieval recalls related templates, deterministic binding instantiates them with entities from the current state and removes inadmissible actions, and a lightweight controller selects among the remaining request-local candidates or abstains. The controller cannot generate free-form commands, and abstention returns control to the host without changing agent state. LeafSkill thus delegates only the final choice within a finite, state-bound action set, while recursive planning, recovery, and goal completion remain entirely host-owned. This boundary distinguishes LeafSkill from systems that

∗^{*}Corresponding author.

return retrieved text for host reinterpretation or route an entire prompt to another model.

With the same ReCAP planner and Qwen3.5-27B host, LeafSkill reduces host-model tokens on jointly solved tasks by 23.1% on Robotouille and 41.3% on ALFWorld, each averaged over all nine cross-run pairings of three independent repeats. The nine pairing-specific reductions span 16.8–29.7% and 36.7–45.2%, respectively. An independent Robotouille evaluation yields a further 14.4% reduction, while mean observed success is numerically higher for LeafSkill in both environments. A disjoint growth study expands the library from 446 to 588 skills without selector retraining or test trajectories; on tasks solved by all systems, host-token savings deepen from 18.3% to 25.6%. Ablations further show that retrieval supplies paraphrase coverage, binding enforces executability, and learned selection controls when reuse is appropriate.

Our contributions are:

  • Problem formulation and measurement. We formulate leaf-level action grounding as a distinct delegation boundary in recursive LLM agents and show that it accounts for 22.9–44.5% of host-model tokens in our source traces.

  • Constrained grounding architecture. We develop a retrieve–bind–select layer that converts reusable task–action experience into state-bound admissible candidates, while preserving host-owned planning and recovery through explicit abstention.

  • Cross-environment efficiency evidence. Across Robotouille and ALFWorld, we demonstrate substantial host-token reductions on jointly solved tasks, identify the complementary roles of retrieval, binding, and selection, and show that post-training library growth can further increase savings without selector retraining.

References (23)