Skip to main content
QUICK REVIEW

[Paper 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 Science61 citations
TL;DR

Self-Align reduces human supervision by using principle-driven self-alignment to train a language model from scratch; Dromedary (LLaMA-65B) achieves strong results with under 300 lines of annotations.

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.

Motivation & Objective

  • Reduce dependence on costly human supervision for LLM alignment.
  • Develop a practical four-stage pipeline (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.
  • Provide open-source code, weights, and synthetic data to advance research on supervision-efficient alignment.

Proposed method

  • 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.

Experimental results

Research questions

  • 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?

Key findings

  • 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.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.