Not Everything is All You Need: Toward Low-Redundant Optimization for Large Language Model Alignment

Zhipeng Chen, Kun Zhou, Wayne Xin Zhao, Jingyuan Wang, Ji-Rong Wen
6/18/2024
cs.CL

Official code: RUCAIBox/ALLO (9 stars, last commit 2024-06-19).

Abstract

Large language models (LLMs) are still struggling in aligning with human preference in complex tasks and scenarios. They are prone to overfit into the unexpected patterns or superficial styles in the training data. We conduct an empirical study that only selects the top-10\% most updated parameters in LLMs for alignment training, and see improvements in the convergence process and final performance. It indicates the existence of redundant neurons in LLMs for alignment training. To reduce its influence, we propose a low-redundant alignment method named \textbf{ALLO}, focusing on optimizing the most related neurons with the most useful supervised signals. Concretely, we first identify the neurons that are related to the human preference data by a gradient-based strategy, then identify the alignment-related key tokens by reward models for computing loss. Besides, we also decompose the alignment process into the forgetting and learning stages, where we first forget the tokens with unaligned knowledge and then learn aligned knowledge, by updating different ratios of neurons, respectively. Experimental results on 10 datasets have shown the effectiveness of ALLO. Our code and data are available at \url{https://github.com/RUCAIBox/ALLO}.

View on arXivView PDF

Code Implementations(1)

RUCAIBox/ALLOOfficial100%

The official repository of "Low-Redundant Optimization for Large Language Model Alignment''

91Shell, PythonJun 18, 20242 years ago

Similar Papers

Cite this paper

@article{chen2024everything,
  title  = {Not Everything is All You Need: Toward Low-Redundant Optimization for Large Language Model Alignment},
  author = {Zhipeng Chen and Kun Zhou and Wayne Xin Zhao and Jingyuan Wang and Ji-Rong Wen},
  year   = {2024},
  eprint = {2406.12606},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.12606v2}
}

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

Discussion