Skip to main content
QUICK REVIEW

[论文解读] Improving the Robustness of Large Language Models via Consistency Alignment

Zhao Yukun, Yan Lingyong|arXiv (Cornell University)|Mar 21, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

本文提出一种两阶段训练框架——一致性对齐训练(Consistency Alignment Training, CAT),通过减少大语言模型(LLMs)对语义等价指令的不一致响应,提升其鲁棒性。该方法首先通过指令增强的监督微调(SFT)提升泛化能力,随后利用模型自身输出生成的自奖励进行一致性对齐,无需外部人类偏好数据,显著提升了响应一致性与对齐程度。

ABSTRACT

Large language models (LLMs) have shown tremendous success in following user instructions and generating helpful responses. Nevertheless, their robustness is still far from optimal, as they may generate significantly inconsistent responses due to minor changes in the verbalized instructions. Recent literature has explored this inconsistency issue, highlighting the importance of continued improvement in the robustness of response generation. However, systematic analysis and solutions are still lacking. In this paper, we quantitatively define the inconsistency problem and propose a two-stage training framework consisting of instruction-augmented supervised fine-tuning and consistency alignment training. The first stage helps a model generalize on following instructions via similar instruction augmentations. In the second stage, we improve the diversity and help the model understand which responses are more aligned with human expectations by differentiating subtle differences in similar responses. The training process is accomplished by self-rewards inferred from the trained model at the first stage without referring to external human preference resources. We conduct extensive experiments on recent publicly available LLMs on instruction-following tasks and demonstrate the effectiveness of our training framework.

研究动机与目标

  • 系统分析并量化当前大语言模型(LLMs)在响应语义等价指令时的不一致性问题。
  • 解决指令微调大语言模型中响应鲁棒性提升缺乏系统性解决方案的问题。
  • 开发一种即插即用的训练框架,提升大语言模型鲁棒性,无需依赖外部人类偏好标注或奖励模型。
  • 通过自监督一致性学习提升模型泛化能力与与人类期望的一致性。

提出的方法

  • 通过改写原始指令并将其与原始响应配对,扩充监督微调(SFT)数据集,形成新的训练样本。
  • 在扩充后的SFT数据集上训练大语言模型,以提升其对指令变化的泛化能力。
  • 使用微调后的模型为改写后的指令生成候选响应。
  • 基于相对一致性计算每条响应的一致性得分,形成<好, 坏>响应对。
  • 使用离线偏好学习算法优化模型,使其响应更高一致性得分,自奖励来源于模型自身输出。
  • 应用两阶段训练流程——先进行指令增强的SFT,再进行一致性对齐训练(CAT),以增强模型鲁棒性。
Figure 1: GPT-4 generates inconsistent responses for the identical task.
Figure 1: GPT-4 generates inconsistent responses for the identical task.

实验结果

研究问题

  • RQ1如何定量衡量大语言模型在语义等价指令下响应生成的不一致性?
  • RQ2指令增强的监督微调在多大程度上能提升模型对指令变化的泛化能力?
  • RQ3能否仅依靠模型自身输出生成的自奖励,有效引导一致性对齐,而无需外部人类偏好数据?
  • RQ4与标准微调相比,一致性对齐训练在响应质量与鲁棒性方面有何提升?
  • RQ5两阶段训练框架(SFT + CAT)是否能带来响应一致性与人类期望对齐的可测量改进?

主要发现

  • 所提出的CAT + SFT(IA)框架显著提升了对语义等价指令的响应一致性,人类评估中胜率比仅使用SFT(IA)高出27%。
  • 人类评估显示,CAT + SFT(IA)生成的86%响应属于预期答案类型,而原始Vicuna-13B模型仅为56%。
  • 该方法使得得分为2(正确)的响应比例达到44%,而基线模型仅为14%,表明事实性与语义对齐性显著提升。
  • 框架提升了泛化能力,人类评估中对比如下:胜48场,平44场,负8场,胜率48%。
  • CAT中的自奖励机制无需外部人类偏好数据或奖励模型,即可实现有效的对齐。
  • 两阶段训练流程(SFT(IA)后接CAT)在基线SFT(IA)基础上实现了持续改进,证明了各组件在独立与组合使用时的有效性。
Figure 2: The consistency metrics of recent LLMs.
Figure 2: The consistency metrics of recent LLMs.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。