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

用于动态可控文本生成的连续语言模型插值

Continuous Language Model Interpolation for Dynamic and Controllable Text Generation

School of Engineering and Applied Sciences(工程与应用科学学院);Harvard University(哈佛大学);Kempner Institute(凯普纳研究所)

Sara Kangaslahti, David Alvarez-Melis

AI总结:

本文提出基于低秩微调锚模型权重的连续线性插值框架,可在凸包内即时构造模型,实现对多种文本风格属性的动态、可预测且细粒度的同时控制。

摘要:

随着大型语言模型(LLM)在各种用例中普及,使其具备适应性和可控性已变得愈发重要,尤其是在面向用户的应用中。现有关于 LLM 适配的文献主要关注寻找优化单一预定义目标的一个(或多个)模型,而本文聚焦于一个具有挑战性的场景:模型必须动态适应多样且经常变化的用户偏好。为此,我们利用基于线性权重插值的适配方法,将其塑造为连续的多域插值器,可即时生成具有特定指定生成特征的模型。具体而言,我们使用低秩更新将基础模型微调至多个不同领域,从而得到一组具有不同生成特征的锚模型。随后,我们利用这些锚模型的权重更新来参数化其凸包内包含的整个(无限)模型类别。我们通过实验表明,改变插值权重会使模型输出在所有受控属性上产生可预测且一致的变化。我们发现大多数属性之间几乎不存在纠缠,并识别和讨论了并非如此的属性对。结果表明,在微调模型的权重之间进行线性插值,有助于同时针对多种风格特征实现对模型输出的可预测、细粒度控制。

英文摘要:

As large language models (LLMs) have gained popularity for a variety of use cases, making them adaptable and controllable has become increasingly important, especially for user-facing applications. While the existing literature on LLM adaptation primarily focuses on finding a model (or models) that optimizes a single predefined objective, here we focus on the challenging case where the model must dynamically adapt to diverse -- and often changing -- user preferences. For this, we leverage adaptation methods based on linear weight interpolation, casting them as continuous multi-domain interpolators that produce models with specific prescribed generation characteristics on-the-fly. Specifically, we use low-rank updates to fine-tune a base model to various different domains, yielding a set of anchor models with distinct generation profiles. Then, we use the weight updates of these anchor models to parametrize the entire (infinite) class of models contained within their convex hull. We empirically show that varying the interpolation weights yields predictable and consistent change in the model outputs with respect to all of the controlled attributes. We find that there is little entanglement between most attributes and identify and discuss the pairs of attributes for which this is not the case. Our results suggest that linearly interpolating between the weights of fine-tuned models facilitates predictable, fine-grained control of model outputs with respect to multiple stylistic characteristics simultaneously.

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

↑