HyperTuning:面向无反向传播的适应大语言模型
HyperTuning: Toward Adapting Large Language Models without Back-propagation
摘要:
为不同的任务微调大语言模型可能是昂贵和低效的,即使是减少调整参数数量的方法仍然需要完全基于梯度的优化。我们提出了HyperTuning,一种新的模型自适应方法,使用超模型为固定的下游模型生成特定于任务的参数。我们演示了一个简单的设置与HyperT 5,基于T5的超模型,产生软前缀或LoRA参数冻结T5模型从Few-Shot的例子。我们分两个阶段对HyperT 5进行训练:首先,使用修改后的条件语言建模目标进行超预训练,该目标训练超模型以生成参数;其次,对大量不同的语言任务进行多任务微调(MTF)。我们在P3,MetaICL和Super-NaturalInstructions数据集上评估了HyperT 5,并表明它可以有效地为看不见的任务生成参数。此外,我们表明,使用超模型生成的参数作为进一步的参数高效微调的初始化,提高了性能。因此,HyperTuning可以是一种灵活而有效的方式,用于为各种下游应用程序利用大语言模型。
英文摘要:
Fine-tuning large language models for different tasks can be costly and inefficient, and even methods that reduce the number of tuned parameters still require full gradient-based optimization. We propose HyperTuning, a novel approach to model adaptation that uses a hypermodel to generate task-specific parameters for a fixed downstream model. We demonstrate a simple setup for hypertuning with HyperT5, a T5-based hypermodel that produces soft prefixes or LoRA parameters for a frozen T5 model from few-shot examples. We train HyperT5 in two stages: first, hyperpretraining with a modified conditional language modeling objective that trains a hypermodel to generate parameters; second, multi-task fine-tuning (MTF) on a large number of diverse language tasks. We evaluate HyperT5 on P3, MetaICL and Super-NaturalInstructions datasets, and show that it can effectively generate parameters for unseen tasks. Moreover, we show that using hypermodel-generated parameters as initializations for further parameter-efficient fine-tuning improves performance. HyperTuning can thus be a flexible and efficient way to leverage large language models for diverse downstream applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。