Ensuring Safe and High-Quality Outputs: A Guideline Library Approach for Language Models

Yi Luo, Zhenghao Lin, Yuhao Zhang, Jiashuo Sun, Chen Lin +5 more
3/18/2024
cs.CLcs.AI

No official code found. Best implementation: XMUDM/Guide-Align (4 stars, last commit 2024-04-08).

Abstract

Large Language Models (LLMs) exhibit impressive capabilities but also present risks such as biased content generation and privacy issues. One of the current alignment techniques includes principle-driven integration, but it faces challenges arising from the imprecision of manually crafted rules and inadequate risk perception in models without safety training. To address these, we introduce Guide-Align, a two-stage approach. Initially, a safety-trained model identifies potential risks and formulates specific guidelines for various inputs, establishing a comprehensive library of guidelines and a model for input-guidelines retrieval. Subsequently, the retrieval model correlates new inputs with relevant guidelines, which guide LLMs in response generation to ensure safe and high-quality outputs, thereby aligning with human values. An additional optional stage involves fine-tuning a model with well-aligned datasets generated through the process implemented in the second stage. Our method customizes guidelines to accommodate diverse inputs, thereby enhancing the fine-grainedness and comprehensiveness of the guideline library. Furthermore, it incorporates safety expertise from a safety-trained LLM through a lightweight retrieval model. We evaluate our approach on three benchmarks, demonstrating significant improvements in LLM security and quality. Notably, our fine-tuned model, Labrador, even at 13 billion parameters, outperforms GPT-3.5-turbo and surpasses GPT-4 in alignment capabilities.

View on arXivView PDF

Code Implementations(1)

XMUDM/Guide-AlignCommunity100%

[NAACL 2024] Ensuring Safe and High-Quality Outputs: A Guideline Library Approach for Language Models

41Shell, PythonMar 18, 20242 years ago

Similar Papers

Cite this paper

@article{luo2024ensuring,
  title  = {Ensuring Safe and High-Quality Outputs: A Guideline Library Approach for Language Models},
  author = {Yi Luo and Zhenghao Lin and Yuhao Zhang and Jiashuo Sun and Chen Lin and Chengjin Xu and Xiangdong Su and Yelong Shen and Jian Guo and Yeyun Gong},
  year   = {2024},
  eprint = {2403.11838},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.11838v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.11838.svg)](https://codeofpaper.com/paper/2403.11838)

Discussion