Human-Instruction-Free LLM Self-Alignment with Limited Samples

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Guo, Hongyi, Yao, Yuanshun, Shen, Wei, Wei, Jiaheng, Zhang, Xiaoying, Wang, Zhaoran, Liu, Yang
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917566179442688
author Guo, Hongyi
Yao, Yuanshun
Shen, Wei
Wei, Jiaheng
Zhang, Xiaoying
Wang, Zhaoran
Liu, Yang
author_facet Guo, Hongyi
Yao, Yuanshun
Shen, Wei
Wei, Jiaheng
Zhang, Xiaoying
Wang, Zhaoran
Liu, Yang
contents Aligning large language models (LLMs) with human values is a vital task for LLM practitioners. Current alignment techniques have several limitations: (1) requiring a large amount of annotated data; (2) demanding heavy human involvement; (3) lacking a systematic mechanism to continuously improve. In this work, we study aligning LLMs to a new domain with limited samples (e.g. < 100). We propose an algorithm that can self-align LLMs iteratively without active human involvement. Unlike existing works, our algorithm relies on neither human-crafted instructions nor labeled rewards, significantly reducing human involvement. In addition, our algorithm can self-improve the alignment continuously. The key idea is to first retrieve high-quality samples related to the target domain and use them as In-context Learning examples to generate more samples. Then we use the self-generated samples to finetune the LLM iteratively. We show that our method can unlock the LLMs' self-generalization ability to perform alignment with near-zero human supervision. We test our algorithm on three benchmarks in safety, truthfulness, and instruction-following, and show good performance in alignment, domain adaptability, and scalability.
format Preprint
id arxiv_https___arxiv_org_abs_2401_06785
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Human-Instruction-Free LLM Self-Alignment with Limited Samples
Guo, Hongyi
Yao, Yuanshun
Shen, Wei
Wei, Jiaheng
Zhang, Xiaoying
Wang, Zhaoran
Liu, Yang
Computation and Language
Artificial Intelligence
Aligning large language models (LLMs) with human values is a vital task for LLM practitioners. Current alignment techniques have several limitations: (1) requiring a large amount of annotated data; (2) demanding heavy human involvement; (3) lacking a systematic mechanism to continuously improve. In this work, we study aligning LLMs to a new domain with limited samples (e.g. < 100). We propose an algorithm that can self-align LLMs iteratively without active human involvement. Unlike existing works, our algorithm relies on neither human-crafted instructions nor labeled rewards, significantly reducing human involvement. In addition, our algorithm can self-improve the alignment continuously. The key idea is to first retrieve high-quality samples related to the target domain and use them as In-context Learning examples to generate more samples. Then we use the self-generated samples to finetune the LLM iteratively. We show that our method can unlock the LLMs' self-generalization ability to perform alignment with near-zero human supervision. We test our algorithm on three benchmarks in safety, truthfulness, and instruction-following, and show good performance in alignment, domain adaptability, and scalability.
title Human-Instruction-Free LLM Self-Alignment with Limited Samples
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2401.06785