Just-in-Time Skill Retrieval via Long-Horizon State Tracking
Xin Lin, Ziheng Wang, Zerui Chen, Jiayao Ma, Zhimin Wei, Bingshuai Liu, Buchao Zhan, Qinggang Zhang, Jinsong Su
Abstract
Large language model (LLM) agents increasingly rely on external skill libraries to support complex task execution. However, determining which skills are needed remains challenging in long-horizon tasks. Existing methods typically select a fixed skill set before execution, implicitly assuming that a task's procedural requirements can be determined from its initial description. This assumption is restrictive for long-horizon interaction, where new requirements emerge from intermediate observations, execution outcomes, and newly revealed constraints. This motivates just-in-time skill retrieval, which dynamically selects skills as execution unfolds. Just-in-time skill retrieval is promising but challenging: the utility of a skill depends not only on the current context, but also on the evolving task state shaped by prior steps. To this end, we propose JitSkill, a state-grounded framework that addresses this challenge through continuous task-state tracking. By connecting emerging requirements with accumulated task progress, JitSkill provides procedural support throughout execution without treating each retrieval decision independently. Experiments across three agent benchmarks demonstrate its effectiveness in improving long-horizon task completion. Our code is available at https://github.com/XMUDeepLIT/JitSkill.git/.
Create a lesson
Related papers
Delivered, Not Used: Evaluating Agent Memory at Its Point of Use
Changran Xu, Zeju Li, Qiang Xu
Route-Guided CBF-QP Repair for Safe Vision-Language-Action Models
Chan Park, Sunwoo Hong, Kirak Kim et al.
MemHarmBench: Evaluating Cross-Session Prompt Injection in Memory-Persistent AI Agents
Zhihua Wang, Yunhao Feng, Yifeng Gao et al.
SPAR: Experience-Driven Strategy Evolution in Multi-Session B2B Sales
Hangming Zhang, Yao Zhao, Haotian Kuang et al.
Xiaomi Auto World Model 2.0: Causal World Models for Real-World Driving and Embodied Intelligence
Zhenxin Zhu, Zhijian Huang, Cheng Chi et al.
Local or Escalate? Post-Training Expert Routing for Real-Time Duplex Speech Models
Ruoyu He, Jisen Li, Anthony Ji et al.