Reproduce “Efficient Safety Alignment of Large Language Models via Preference Re-ranking and Representation-based Reward Modeling” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Qiyuan Deng, Xuefeng Bai, Kehai Chen, Yaowei Wang, Liqiang Nie, Min Zhang
Researchers from Harbin Institute of Technology, Shenzhen, introduce an efficient safety alignment method for large language models, leveraging preference re-ranking and a representation-based hybrid reward model. The approach achieves safety performance comparable to online methods while reducing computational overhead by approximately 300x across Llama2 and Qwen2.5 models.
Key insights
- LLMs' internal hidden states inherently encode discriminative information regarding safety, which can be directly leveraged to construct a lightweight reward model.
- Distribution shift in off-policy alignment can be effectively addressed by dynamically re-ranking existing preference data based on a continuously adapting reward signal, rather than relying on costly online sampling.
- Converting the expensive online sampling process into an efficient re-ranking mechanism guided by an intrinsically derived, dynamically adapting reward signal offers a practical solution to the efficiency-effectiveness trade-off in LLM alignment.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.