arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.19206cs.LGcs.CL
收藏

单域与多域偏好谱中的推理时 LLM 对齐

Inference time LLM alignment in single and multidomain preference spectrum

University of Houston(休斯顿大学);AWS AI Labs(亚马逊云科技人工智能实验室)

Sadat Shahriar, Zheng Qi, Nikolaos Pappas, Srikanth Doss, Monica Sunkara, Kishaloy Halder, Manuel Mager, Yassine Benajiba

AI总结:

本文提出推理时 Alignment Vectors,通过模型差值线性调控 LLM 的医疗、法律、金融偏好层级,可跨微调阶段迁移,并显著降低推理成本与对齐时间。

摘要:

对齐大型语言模型(LLM)以处理主观性和细微的偏好层级,需要充分的灵活性与控制力,而这可能是一个资源密集且耗时的过程。现有的训练时对齐方法在需要变更时要求完整重新训练,推理时方法则通常需要在每个推理步骤访问奖励模型。为克服这些局限,我们提出一种推理时模型对齐方法,用于学习偏好维度的编码表示,称为 Alignment Vectors(AV,对齐向量)。这些表示通过用对齐后模型减去基础模型来计算,如同模型编辑中的做法,从而能够借助简单的线性运算在推理过程中动态调整模型行为。尽管偏好维度可以跨越不同粒度层级,本文聚焦于医疗、法律和金融三个专业领域中的三种渐进响应层级,以展示其实际潜力。这种新的对齐范式在推理期间引入可调节的偏好旋钮,允许用户定制 LLM 输出,同时与提示工程方法相比将推理成本降低一半。此外,我们发现 AV 可在同一模型的不同微调阶段之间迁移,证明了其灵活性。AV 还促进多域、多样化的偏好对齐,使该过程比重新训练方法快 12 倍。

英文摘要:

Aligning Large Language Models (LLM) to address subjectivity and nuanced preference levels requires adequate flexibility and control, which can be a resource-intensive and time-consuming procedure. Existing training-time alignment methods require full re-training when a change is needed and inference-time ones typically require access to the reward model at each inference step. To address these limitations, we introduce inference-time model alignment method that learns encoded representations of preference dimensions, called \textit{Alignment Vectors} (AV). These representations are computed by subtraction of the base model from the aligned model as in model editing enabling dynamically adjusting the model behavior during inference through simple linear operations. Even though the preference dimensions can span various granularity levels, here we focus on three gradual response levels across three specialized domains: medical, legal, and financial, exemplifying its practical potential. This new alignment paradigm introduces adjustable preference knobs during inference, allowing users to tailor their LLM outputs while reducing the inference cost by half compared to the prompt engineering approach. Additionally, we find that AVs are transferable across different fine-tuning stages of the same model, demonstrating their flexibility. AVs also facilitate multidomain, diverse preference alignment, making the process 12x faster than the retraining approach.

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

↑