Pref-CTRL: Preference Driven LLM Alignment using Representation Editing

Imranul Ashrafi, Inigo Jauregi Unanue, Massimo Piccardi
4/26/2026
cs.CLcs.AI

Official code: UTS-nlPUG/pref-ctrl (1 star, Python, last commit 2026-04-12).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

10PythonApr 17, 20267 months ago

Similar Papers

Cite this paper

@article{ashrafi2026prefctrl,
  title  = {Pref-CTRL: Preference Driven LLM Alignment using Representation Editing},
  author = {Imranul Ashrafi and Inigo Jauregi Unanue and Massimo Piccardi},
  year   = {2026},
  eprint = {2604.23543},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.23543v1}
}

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

Discussion