Gaining Wisdom from Setbacks: Aligning Large Language Models via Mistake Analysis

Kai Chen, Chunwei Wang, Kuo Yang, Jianhua Han, Lanqing Hong +9 more
10/1/2023

No confident code implementation found for this paper.

Abstract

The rapid development of large language models (LLMs) has not only provided numerous opportunities but also presented significant challenges. This becomes particularly evident when LLMs inadvertently generate harmful or toxic content, either unintentionally or because of intentional inducement. Existing alignment methods usually direct LLMs toward the favorable outcomes by utilizing human-annotated, flawless instruction-response pairs. Conversely, this study proposes a novel alignment technique based on mistake analysis, which deliberately exposes LLMs to erroneous content to learn the reasons for mistakes and how to avoid them. In this case, mistakes are repurposed into valuable data for alignment, effectively helping to avoid the production of erroneous responses. Without external models or human annotations, our method leverages a model's intrinsic ability to discern undesirable mistakes and improves the safety of its generated responses. Experimental results reveal that our method outperforms existing alignment approaches in enhancing model safety while maintaining the overall utility.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{chen2023gaining,
  title  = {Gaining Wisdom from Setbacks: Aligning Large Language Models via Mistake Analysis},
  author = {Kai Chen and Chunwei Wang and Kuo Yang and Jianhua Han and Lanqing Hong and Fei Mi and Hang Xu and Zhengying Liu and Wenyong Huang and Zhenguo Li and Dit-Yan Yeung and Lifeng Shang and Xin Jiang and Qun Liu},
  year   = {2023},
  eprint = {2310.10477},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.10477},
  journal = {ICLR 2023 2023}
}

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/2310.10477.svg)](https://codeofpaper.com/paper/2310.10477)

Discussion