arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04894cs.CLcs.AI
收藏

ConstitutionalExperts:训练基于原则的提示词混合体

ConstitutionalExperts: Training a Mixture of Principle-based Prompts

Google Research(谷歌研究院)

Savvas Petridis, Ben Wedin, Ann Yuan, James Wexler, Nithum Thain

AI总结:

针对大语言模型提示词编写困难的问题,提出ConstitutionalExperts方法,通过编辑单个原则优化提示词,结合混合专家架构,在6个基准上F1值较前沿方法提升10.9%,且MoE可普适提升各类提示优化技术效果。

摘要:

大语言模型(LLMs)在合适的提示词加持下可出色完成各类任务,但编写优质提示词仍是困难且繁琐的过程。本研究提出ConstitutionalExperts方法,可基于训练数据集学习由宪法原则(即规则)构成的提示词。与将提示词作为单一整体优化的现有方法不同,本方法通过精准编辑单个原则逐步改进提示词。研究还发现,为训练数据的不同语义区域学习专属提示词,并在推理阶段使用混合专家(MoE)架构路由输入,可提升整体性能。研究在6个基准数据集上,将本方法与其他前沿提示词优化技术进行对比,同时探究了MoE是否能提升这些技术的表现。结果显示,ConstitutionalExperts的表现优于其他提示词优化技术10.9%(F1值),且混合专家架构可提升所有技术的表现,证明其具有广泛适用性。

英文摘要:

Large language models (LLMs) are highly capable at a variety of tasks given the right prompt, but writing one is still a difficult and tedious process. In this work, we introduce ConstitutionalExperts, a method for learning a prompt consisting of constitutional principles (i.e. rules), given a training dataset. Unlike prior methods that optimize the prompt as a single entity, our method incrementally improves the prompt by surgically editing individual principles. We also show that we can improve overall performance by learning unique prompts for different semantic regions of the training data and using a mixture-of-experts (MoE) architecture to route inputs at inference time. We compare our method to other state of the art prompt-optimization techniques across six benchmark datasets. We also investigate whether MoE improves these other techniques. Our results suggest that ConstitutionalExperts outperforms other prompt optimization techniques by 10.9% (F1) and that mixture-of-experts improves all techniques, suggesting its broad applicability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑