Skip to main content
QUICK REVIEW

[论文解读] Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervision

Zhiqing Sun, Yikang Shen|arXiv (Cornell University)|May 4, 2023
Topic ModelingComputer Science被引用 61
一句话总结

Self-Align 通过使用基于原理的自对齐从零开始训练语言模型来减少人类监督;Dromedary (LLaMA-65B) 在不到 300 行标注的情况下取得了优秀结果。

ABSTRACT

Recent AI-assistant agents, such as ChatGPT, predominantly rely on supervised fine-tuning (SFT) with human annotations and reinforcement learning from human feedback (RLHF) to align the output of large language models (LLMs) with human intentions, ensuring they are helpful, ethical, and reliable. However, this dependence can significantly constrain the true potential of AI-assistant agents due to the high cost of obtaining human supervision and the related issues on quality, reliability, diversity, self-consistency, and undesirable biases. To address these challenges, we propose a novel approach called SELF-ALIGN, which combines principle-driven reasoning and the generative power of LLMs for the self-alignment of AI agents with minimal human supervision. Our approach encompasses four stages: first, we use an LLM to generate synthetic prompts, and a topic-guided method to augment the prompt diversity; second, we use a small set of human-written principles for AI models to follow, and guide the LLM through in-context learning from demonstrations (of principles application) to produce helpful, ethical, and reliable responses to user's queries; third, we fine-tune the original LLM with the high-quality self-aligned responses so that the resulting model can generate desirable responses for each query directly without the principle set and the demonstrations anymore; and finally, we offer a refinement step to address the issues of overly-brief or indirect responses. Applying SELF-ALIGN to the LLaMA-65b base language model, we develop an AI assistant named Dromedary. With fewer than 300 lines of human annotations (including < 200 seed prompts, 16 generic principles, and 5 exemplars for in-context learning). Dromedary significantly surpasses the performance of several state-of-the-art AI systems, including Text-Davinci-003 and Alpaca, on benchmark datasets with various settings.

研究动机与目标

  • 减少对昂贵的人类监督在大型语言模型对齐中的依赖。
  • 开发一个实用的四阶段管道(Self-Instruct、Principle-Driven Self-Alignment、Principle Engraving、Verbose Cloning)。
  • Demonstrate that a base model (LLaMA-65B) can be aligned from scratch to outperform several baselines while using minimal human input.
  • 提供开源代码、权重以及合成数据,以促进对监督高效对齐的研究。

提出的方法

  • Topic-Guided Red-Teaming Self-Instruct to generate diverse synthetic instructions and prompts.
  • Principle-Driven Self-Alignment using 16 human-written principles and 5 exemplars for in-context learning demonstrations.
  • Principle Engraving: fine-tune the base model on self-aligned outputs while pruning demonstrations and principles.
  • Verbose Cloning: train a verbose, context-distilled model to produce more comprehensive responses.
  • In-context demonstrations guide the model to comply with the principles during response generation.
  • Fine-tuning is performed to embed principle-aligned behavior directly in the model parameters.

实验结果

研究问题

  • RQ1Can language models be aligned from scratch with minimal human supervision using a principle-driven framework?
  • RQ2How does the inclusion of a small set of principles and exemplars affect alignment performance across benchmarks?
  • RQ3What is the impact of the Verbose Cloning step on generation quality and on various evaluation metrics?
  • RQ4How does Self-Align compare to RLHF/CAI-based approaches in terms of supervision efficiency and safety/quality trade-offs?

主要发现

  • Dromedary-65B (final) surpasses several baselines like Text-Davinci-003 and Alpaca on benchmark datasets under various settings.
  • TruthfulQA MC1 accuracy reaches 69 with a modified ranking approach, outperforming GPT-4 and other open-source models in the MC task.
  • In BIG-bench HHH Eval, Dromedary shows significantly improved harmlessness and overall performance relative to open-source baselines and is only marginally below ChatGPT/ Vicuna distillates.
  • Verbose Cloning improves generation quality on certain benchmarks (e.g., Vicuna benchmark questions) but can incur a verbose tax, reducing performance on some multiple-choice rankings.
  • The approach achieves strong results while using fewer than 300 lines of human annotations, highlighting supervision efficiency.

阅读本论文

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

在 Nubint 中阅读本论文

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