Pref-CTRL: Preference Driven LLM Alignment using Representation Editing
About
Test-time alignment methods offer a promising alternative to fine-tuning by steering the outputs of large language models (LLMs) at inference time with lightweight interventions on their internal representations. Recently, a prominent and effective approach, RE-Control (Kong et al., 2024), has proposed leveraging an external value function trained over the LLM's hidden states to guide generation via gradient-based editing. While effective, this method overlooks a key characteristic of alignment tasks, i.e. that they are typically formulated as learning from human preferences between candidate responses. To address this, in this paper we propose a novel preference-based training framework, Pref-CTRL, that uses a multi-objective value function to better reflect the structure of preference data. Our approach has outperformed RE-Control on two benchmark datasets and showed greater generalization on out-of-domain datasets. Our source code is available at https://github.com/UTS-nlPUG/pref-ctrl.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Preference Alignment Evaluation | Nectar | -- | 30 | |
| LLM Alignment | HH-RLHF (test) | Diversity0.87 | 23 | |
| Preference-based Alignment | Stanford SHP (test) | Win Rate (Llama)80.4 | 9 | |
| Preference Alignment Evaluation | PKU-SafeRLHF | Win Rate (Llama Judge)83 | 4 | |
| Test-time Alignment | HH-RLHF | Win Rate vs Llama85.7 | 3 |