让大模型实时适应用户偏好,无需重训
Amulet: ReAlignment During Test Time for Personalized Preference Adaptation of LLMs
- 将每个词的生成视为在线学习问题,用提示引导优化
- 在多个模型和数据集上显著提升个性化效果
- 计算开销极低,适合实际部署场景
如何将大语言模型(LLMs)与来自静态通用数据集的用户偏好对齐已受到广泛关注。然而,用户偏好通常是个性化的、动态变化的,受文化、价值观或时间影响。这导致实际使用中模型训练时的偏好与真实用户需求不一致。由于无法为每项需求收集足够数据并重新训练,研究基于基础大模型在推理阶段进行高效实时偏好适配的方法至关重要。为此,我们提出Amulet,一种无需训练的新型框架,将每个词的解码过程建模为独立的在线学习问题,通过简单的用户提示进行引导,从而实现实时优化以满足个性化偏好。为降低每词优化带来的计算开销,我们进一步提供每步优化的闭式解,使计算时间成本降至可忽略水平。实验结果表明,Amulet在多种大模型、数据集和用户偏好组合下均取得显著性能提升,同时保持可接受的计算效率。
原文摘要 · Abstract (English)
How to align large language models (LLMs) with user preferences from a static general dataset has been frequently studied. However, user preferences are usually personalized, changing, and diverse regarding culture, values, or time. This leads to the problem that the actual user preferences often do not coincide with those trained by the model developers in the practical use of LLMs. Since we cannot collect enough data and retrain for every demand, researching efficient real-time preference adaptation methods based on the backbone LLMs during test time is important. To this end, we introduce Amulet, a novel, training-free framework that formulates the decoding process of every token as a separate online learning problem with the guidance of simple user-provided prompts, thus enabling real-time optimization to satisfy users' personalized preferences. To reduce the computational cost brought by this optimization process for each token, we additionally provide a closed-form solution for each iteration step of the optimization process, thereby reducing the computational time cost to a negligible level. The detailed experimental results demonstrate that Amulet can achieve significant performance improvements in rich settings with combinations of different LLMs, datasets, and user preferences, while maintaining acceptable computational efficiency.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。