Beyond Prompt or Skill? Attribution-Guided Optimization of Modular LLM Programs
Abstract
Large language models can solve increasingly diverse reasoning tasks, yet their performance remains highly sensitive to task prompts, intermediate instructions, and the way reusable problem-solving knowledge is incorporated. Existing optimization methods usually focus on only one part of this design space: they either optimize a monolithic prompt, or separately induce and refine skills from model traces. As a result, they lack a principled mechanism for deciding which component should be updated when failures occur, and they rarely optimize prompts, skills, and skill-use policies in a unified framework. We propose SPARO (Skill, Prompt, And Routing Optimization), a framework that jointly optimizes task instructions, reusable skill blocks, and routing rules. It performs controlled counterfactual evaluations, converts examples' effects into a probabilistic responsibility distribution over prompt, skill, and routing components, samples one component from that distribution, and applies the corresponding targeted mutation. This design moves language-program optimization beyond global prompt rewriting toward structured, reusable, and selectively activated task knowledge. Across five benchmarks and five worker models, SPARO consistently outperforms both prompt-centered and skill-centered optimization baselines. These results suggest that effective language-program optimization depends not only on discovering useful task knowledge, but also on deciding where that knowledge should be stored and when it should be activated.
Create a lesson
Related papers
AGL-SKILL: Coding Harnesses as Agentic Optimizers
Shared title terminologycs.AIRyan Tsui, Yuge Zhang, Yuqing Yang
AutoSECO: Automated Skill Evolution for Cross-Problem Combinatorial Optimization with General-Purpose LLM Agents
Shared title terminologycs.AIZirui Zhu, Cong Zhang, Ni Zhang et al.
Self-Evolving Agents via Likelihood-Guided Tool-Space Optimization
Shared title terminologycs.AIXuanqi Zhang, Ruinan Jin, Running Yang et al.
Towards Certificate-Driven Software Porting: A Self-Improving Agentic Harness for Scientific Program Optimization
Shared title terminologycs.AIPiyush Jha, Aishik Ghosh, Vijay Ganesh
TopoMamba: A Load-Support Relation-Guided Multi-Directional State-Space Model for Topology Optimization
Shared title terminologycs.AIBin Lou, Yuxuan Cheng, Huaizhi Zong et al.
Certified Long-Horizon Code Agent Evolution via Validation-Gated Skill Optimization
Shared title terminologycs.AIYifan Wang, Hao Cheng, Xiaomin Li et al.