arXiv:2502.14211 · v2
Decomposing Prompts into Reusable Scaffolds and Task-Specific Residuals
摘要
Automatic prompt optimization typically treats each prompt as a monolithic text string, requiring task-specific search from scratch and limiting reuse across related tasks. We study a more structured view in which a prompt is decomposed into two components: a reusable Instructional Scaffold that captures shared domain-level instructions, and a concise Task-specific Residual that introduces task-level refinements. Based on this view, we propose DiSR (Discovering instructional Scaffolds and Residuals), a two-stage framework motivated by the intuition that related tasks may share a compact instructional core while differing in a small amount of task-specific information. DiSR first discovers a scaffold from source tasks within a coherent domain and then adapts it to a target task by learning a residual. Across multiple benchmarks, DiSR provides a stronger starting point than manual instructions and monolithic prompt optimization, yielding competitive or improved task performance and often better-calibrated confidence estimates. Additional analyses examine scaffold generalization, residual sparsity, and cross-domain portability, supporting the view that prompt reuse can be studied through scaffold-residual decomposition. Overall, the results suggest a practical and analyzable alternative to optimizing each prompt independently.
作者备注:16 pages. Accepted to Findings of ACL: EACL 2027. Substantially revised from v1 (Transfer-Prompting), with a new title, reformulated methodology, and updated experiments and analyses