arXiv:2410.07513cs.LGcs.AI2024-10EMNLP被引 3

通过进化生成对比数据,提升模型对复杂指令的理解能力。

Evolutionary Contrastive Distillation for Language Model Alignment

  • 让模型逐步演化简单指令为复杂指令,生成难负样本。
  • 7B模型在复杂指令遵循上超越现有7B SOTA,媲美70B开源模型。
  • 适合想提升模型指令理解力的研究者与工程师。

大语言模型执行复杂指令的能力对其实际应用至关重要。然而,近期研究发现,大语言模型在处理挑战性指令时表现不佳。本文提出进化对比蒸馏(ECD),一种生成高质量合成偏好数据的新方法,旨在增强语言模型对复杂指令的遵循能力。ECD通过提示语言模型逐步将简单指令演化为更复杂的指令,使得原成功响应在新指令下成为“难负样本”——基本满足新指令要求,但仅遗漏一两个细节。通过将优质响应与这类难负样本配对,并采用如DPO等对比学习算法,显著提升了模型对复杂指令的遵循能力。实验表明,该方法使7B模型在复杂指令遵循性能上超越当前7B SOTA模型,甚至可与开源70B模型媲美。

原文摘要 · Abstract (English)

The ability of large language models (LLMs) to execute complex instructions is essential for their real-world applications. However, several recent studies indicate that LLMs struggle with challenging instructions. In this paper, we propose Evolutionary Contrastive Distillation (ECD), a novel method for generating high-quality synthetic preference data designed to enhance the complex instruction-following capability of language models. ECD generates data that specifically illustrates the difference between a response that successfully follows a set of complex instructions and a response that is high-quality, but nevertheless makes some subtle mistakes. This is done by prompting LLMs to progressively evolve simple instructions to more complex instructions. When the complexity of an instruction is increased, the original successful response to the original instruction becomes a "hard negative" response for the new instruction, mostly meeting requirements of the new instruction, but barely missing one or two. By pairing a good response with such a hard negative response, and employing contrastive learning algorithms such as DPO, we improve language models' ability to follow complex instructions. Empirically, we observe that our method yields a 7B model that exceeds the complex instruction-following performance of current SOTA 7B models and is competitive even with open-source 70B models.

指令对齐对比学习合成数据模型优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。