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

参数高效微调助力语言模型对齐

Parameter-Efficient Tuning Helps Language Model Alignment

Nanjing University(南京大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Tianci Xue, Ziqi Wang, Heng Ji

AI总结:

针对现有大语言模型对齐方法存在的单偏好对齐、数据格式受限及控制令牌优化不足的问题,提出结合参数高效微调的对齐方法MEET,通过先优化控制令牌再微调模型,显著提升了可控生成质量。

摘要:

使大语言模型(LLM)与人类偏好对齐,对打造安全且实用的LLM至关重要。现有研究主要采用基于人类反馈的强化学习(RLHF)和直接偏好优化(DPO)来实现对齐,但这类方法存在一定缺陷:其一,训练时只能让模型对齐单一偏好(例如当偏好数据倾向于详细回复时,模型无法学习生成简洁回复);其二,对数据格式存在特定限制(比如DPO仅支持成对偏好数据)。\n为此,已有研究将可控生成引入对齐任务,让语言模型学习多种偏好,推理阶段可按需输出符合不同偏好的结果,同时可控生成在数据格式上也更具灵活性(例如支持逐点偏好数据)。具体而言,该方法在训练和推理阶段为不同偏好设置不同的控制令牌,使LLM能按需呈现不同行为。当前的可控生成方法要么使用特殊令牌、要么采用人工构建的提示词作为控制令牌,并将其与LLM一同优化。但由于控制令牌的参数量通常远小于LLM,这种优化策略可能无法有效优化控制令牌。\n针对这一问题,我们首先利用参数高效微调(如提示微调、低秩适配)优化控制令牌,再参照已有方法对模型进行微调以实现可控生成。我们提出的方法——alignMEnt with parameter-Efficient Tuning(MEET,基于参数高效微调的对齐方法)提升了控制令牌的质量,在两个公认数据集上,相比已有方法持续且显著地提升了可控生成的质量。

英文摘要:

Aligning large language models (LLMs) with human preferences is essential for safe and useful LLMs. Previous works mainly adopt reinforcement learning (RLHF) and direct preference optimization (DPO) with human feedback for alignment. Nevertheless, they have certain drawbacks. One such limitation is that they can only align models with one preference at the training time (e.g., they cannot learn to generate concise responses when the preference data prefers detailed responses), or have certain constraints for the data format (e.g., DPO only supports pairwise preference data). To this end, prior works incorporate controllable generations for alignment to make language models learn multiple preferences and provide outputs with different preferences during inference if asked. Controllable generation also offers more flexibility with regard to data format (e.g., it supports pointwise preference data). Specifically, it uses different control tokens for different preferences during training and inference, making LLMs behave differently when required. Current controllable generation methods either use a special token or hand-crafted prompts as control tokens, and optimize them together with LLMs. As control tokens are typically much lighter than LLMs, this optimization strategy may not effectively optimize control tokens. To this end, we first use parameter-efficient tuning (e.g., prompting tuning and low-rank adaptation) to optimize control tokens and then fine-tune models for controllable generations, similar to prior works. Our approach, alignMEnt with parameter-Efficient Tuning (MEET), improves the quality of control tokens, thus improving controllable generation quality consistently by an apparent margin on two well-recognized datasets compared with prior works.

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

↑