Prompt2Skill:从自然语言指令进行无监督技能优化
研究论文 · 2026/10/02
技能是大型语言模型(LLM)在推理时使用的外部工件,通过融入相关的过程和领域知识来提升其在专业领域的表现。专家编写的技能制作成本高昂,且生成的工件未针对消费它们的特定模型进行优化,而模型的失败模式可能随版本、规模和训练而变化。此外,新兴任务可能超出现有技能库的范围,因此在策划的训练数据可用之前,需要开发新技能。近期研究探索了通过反思进行自动化技能优化,但它们需要策划的、分布内的训练集,而用户可能并不总是拥有这样的数据集。为解决这些限制,我们提出了Prompt2Skill,一个仅从自然语言任务描述构建技能的框架。从提示中,系统推导出任务规范,发现或合成数据集,并在反思性编辑的闭环中优化技能。在涵盖问答、阅读理解、电子表格操作和数学推理的四个领域中,Prompt2Skill始终优于直接提示基线,在开源和前沿模型上平均提升10.8。
Prompt2Skill 提出了一种无需策划训练数据即可从自然语言指令自动构建和优化技能的方法,在多个领域显著优于直接提示,为 LLM 在专业领域的快速适应提供了实用框架。
Skills are external artifacts that Large Language Models (LLMs) consume at inference time to improve their performance on specialized domains by incorporating relevant procedural and domain knowledge. Expert-authored skills are expensive to produce, and the resulting artifacts are not optimized for the specific model that consumes them, whose failure modes can vary with version, scale and training. In addition, emerging tasks may fall outside the scope of existing skill libraries, creating a need to develop new skills before curated training data become available. Recent works have explored automated skill optimization through reflection, but they require a curated, in-distribution training set, which users might not always have. To address these limitations, we present Prompt2Skill, a framework that builds skills from natural-language task description alone. From the prompt, the system derives a task specification, discovers or synthesizes datasets, and refines the skill in a closed loop of reflective editing. Across four domains spanning question answering, reading comprehension, spreadsheet manipulation, and mathematical reasoning, Prompt2Skill consistently outperforms the direct prompting baseline, achieving an average improvement of 10.8 across open-source and frontier models.