用智能MoPs扫除异质性:面向LLM任务适配的提示混合方法
Sweeping Heterogeneity with Smart MoPs: Mixture of Prompts for LLM Task Adaptation
AI总结:
本文提出提示混合(MoPs)方法,通过智能门控动态组合提示专家,同时处理异质任务和数据分布,在联邦与集中场景中分别降低困惑度约20%-70%和3%-30%。
摘要:
大型语言模型(LLMs)具有开箱即用地解决多种任务的能力,例如文本摘要和数学问题,但它们通常是为单一任务而训练的。由于高昂的计算成本,当前的趋势是使用提示指令微调来更好地调整整体预训练的LLMs以适应新的——但通常是单一的——下游任务。因此,如何扩展提示微调以同时处理异质任务和数据分布,是一个广泛开放的问题。为弥补这一空白,我们建议使用与智能门控功能相关联的“提示混合”(Mixture of Prompts,简称MoPs):后者(其设计是本文的贡献之一)能够识别嵌入在不同提示组中的相关技能,并根据目标任务动态分配组合专家(即提示集合)。此外,MoPs在经验上对任何为效率原因而应用的模型压缩技术、指令数据来源以及任务组成均不敏感。在实践中,MoPs可以同时缓解多任务、多源场景(例如,跨来源的任务和数据异质性)中的提示训练“干扰”,以及模型近似可能带来的影响。作为一个亮点,与基线相比,MoPs在联邦场景中将最终困惑度降低了约20%至70%,在集中式场景中降低了约3%至30%。
英文摘要:
Large Language Models (LLMs) have the ability to solve a variety of tasks, such as text summarization and mathematical questions, just out of the box, but they are often trained with a single task in mind. Due to high computational costs, the current trend is to use prompt instruction tuning to better adjust monolithic, pretrained LLMs for new -- but often individual -- downstream tasks. Thus, how one would expand prompt tuning to handle -- concomitantly -- heterogeneous tasks and data distributions is a widely open question. To address this gap, we suggest the use of \emph{Mixture of Prompts}, or MoPs, associated with smart gating functionality: the latter -- whose design is one of the contributions of this paper -- can identify relevant skills embedded in different groups of prompts and dynamically assign combined experts (i.e., collection of prompts), based on the target task. Additionally, MoPs are empirically agnostic to any model compression technique applied -- for efficiency reasons -- as well as instruction data source and task composition. In practice, MoPs can simultaneously mitigate prompt training "interference" in multi-task, multi-source scenarios (e.g., task and data heterogeneity across sources), as well as possible implications from model approximations. As a highlight, MoPs manage to decrease final perplexity from $\sim20\%$ up to $\sim70\%$, as compared to baselines, in the federated scenario, and from $\sim 3\%$ up to $\sim30\%$ in the centralized scenario.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。