Dynamic Rewarding with Prompt Optimization Enables Tuning-free Self-Alignment of Language Models

Somanshu Singla, Zhen Wang, Tianyang Liu, Abdullah Ashfaq, Zhiting Hu +1 more
11/13/2024
cs.CL

No official code found. Best implementation: maitrix-org/dynamic-alignment-optimization (24 stars, Apache-2.0, last commit 2024-11-17).

Abstract

Aligning Large Language Models (LLMs) traditionally relies on costly training and human preference annotations. Self-alignment seeks to reduce these expenses by enabling models to align themselves. To further lower costs and achieve alignment without any expensive tuning or annotations, we introduce a new tuning-free approach for self-alignment, Dynamic Rewarding with Prompt Optimization (DRPO). Our approach leverages a search-based optimization framework that allows LLMs to iteratively self-improve and craft the optimal alignment instructions, all without additional training or human intervention. The core of DRPO is a dynamic rewarding mechanism, which identifies and rectifies model-specific alignment weaknesses, allowing LLMs to adapt efficiently to diverse alignment challenges. Empirical evaluations on eight recent LLMs, both open- and closed-sourced, demonstrate that DRPO significantly enhances alignment performance, with base models outperforming their SFT/RLHF-tuned counterparts. Moreover, the prompts automatically optimized by DRPO surpass those curated by human experts, further validating the effectiveness of our approach. Our findings highlight the great potential of current LLMs to achieve adaptive self-alignment through inference-time optimization, complementing tuning-based alignment methods.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[EMNLP'24 (Main)] DRPO(Dynamic Rewarding with Prompt Optimization) is a tuning-free approach for self-alignment. DRPO leverages a search-based optimization framework that allows LLMs to iteratively self-improve and design the best alignment instructions without the need for additional training.

242Shell, PythonOct 30, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{singla2024dynamic,
  title  = {Dynamic Rewarding with Prompt Optimization Enables Tuning-free Self-Alignment of Language Models},
  author = {Somanshu Singla and Zhen Wang and Tianyang Liu and Abdullah Ashfaq and Zhiting Hu and Eric P. Xing},
  year   = {2024},
  eprint = {2411.08733},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.08733v2}
}

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

Discussion