Beyond Prompt or Skill? Attribution-Guided Optimization of Modular LLM Programs

📅 2026-09-26
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Existing methods optimize prompts or skills in isolation, lacking component-level attribution and targeted update mechanisms upon failure. This work proposes SPARO, a framework that jointly optimizes task instructions, reusable skill blocks, and routing rules to enable structured knowledge management. Its core innovation lies in generating probabilistic responsibility distributions via counterfactual evaluation, which precisely localize failing components and guide targeted mutations. This attribution-driven modular optimization effectively replaces inefficient global prompt rewriting. Experiments demonstrate that SPARO consistently outperforms existing baselines across five benchmarks and five large language models.
📝 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.
Problem

Research questions and friction points this paper is trying to address.

LLM program optimization
prompt optimization
skill induction
modular design
attribution
Innovation

Methods, ideas, or system contributions that make the work stand out.

Modular LLM Programs
Attribution-Guided Optimization
Joint Optimization
Counterfactual Evaluation
Routing Rules
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
H
Haoran Shou
School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen 518172, China
Haoyue Liu
Haoyue Liu
School of Artificial Intelligence and Automation, Huazhong University of Science and Technology
Computer VisionEvent Camera
Y
Yu Huo
School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen 518172, China
Kun Zeng
Kun Zeng
Dongfang Electric Corporation Dongfang Boiler Co.,ltd.
magnetic domainNDEmagnetismmagnetic microstructureboiler
X
Xiaoying Tang
School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen 518172, China; Shenzhen Future Network of Intelligence Institute (FNii-Shenzhen)