Preference Heads in Large Language Models: A Mechanistic Framework for Interpretable Personalization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Weixu, Yuan, Ye, Han, Changjiang, Tian, Yuxing, Sun, Zipeng, Du, Linfeng, Kang, Jikun, Kang, Hong, Liu, Xue, Wu, Haolun
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910162338447360
author Zhang, Weixu
Yuan, Ye
Han, Changjiang
Tian, Yuxing
Sun, Zipeng
Du, Linfeng
Kang, Jikun
Kang, Hong
Liu, Xue
Wu, Haolun
author_facet Zhang, Weixu
Yuan, Ye
Han, Changjiang
Tian, Yuxing
Sun, Zipeng
Du, Linfeng
Kang, Jikun
Kang, Hong
Liu, Xue
Wu, Haolun
contents Large Language Models (LLMs) exhibit strong implicit personalization ability, yet most existing approaches treat this behavior as a black box, relying on prompt engineering or fine tuning on user data. In this work, we adopt a mechanistic interpretability perspective and hypothesize the existence of a sparse set of Preference Heads, attention heads that encode user specific stylistic and topical preferences and exert a causal influence on generation. We introduce Differential Preference Steering (DPS), a training free framework that (1) identifies Preference Heads through causal masking analysis and (2) leverages them for controllable and interpretable personalization at inference time. DPS computes a Preference Contribution Score (PCS) for each attention head, directly measuring its causal impact on user aligned outputs. During decoding, we contrast model predictions with and without Preference Heads, amplifying the difference between personalized and generic logits to selectively strengthen preference aligned continuations. Experiments on widely used personalization benchmarks across multiple LLMs demonstrate consistent gains in personalization fidelity while preserving content coherence and low computational overhead. Beyond empirical improvements, DPS provides a mechanistic explanation of where and how personalization emerges within transformer architectures. Our implementation is publicly available.
format Preprint
id arxiv_https___arxiv_org_abs_2604_22345
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Preference Heads in Large Language Models: A Mechanistic Framework for Interpretable Personalization
Zhang, Weixu
Yuan, Ye
Han, Changjiang
Tian, Yuxing
Sun, Zipeng
Du, Linfeng
Kang, Jikun
Kang, Hong
Liu, Xue
Wu, Haolun
Computation and Language
Large Language Models (LLMs) exhibit strong implicit personalization ability, yet most existing approaches treat this behavior as a black box, relying on prompt engineering or fine tuning on user data. In this work, we adopt a mechanistic interpretability perspective and hypothesize the existence of a sparse set of Preference Heads, attention heads that encode user specific stylistic and topical preferences and exert a causal influence on generation. We introduce Differential Preference Steering (DPS), a training free framework that (1) identifies Preference Heads through causal masking analysis and (2) leverages them for controllable and interpretable personalization at inference time. DPS computes a Preference Contribution Score (PCS) for each attention head, directly measuring its causal impact on user aligned outputs. During decoding, we contrast model predictions with and without Preference Heads, amplifying the difference between personalized and generic logits to selectively strengthen preference aligned continuations. Experiments on widely used personalization benchmarks across multiple LLMs demonstrate consistent gains in personalization fidelity while preserving content coherence and low computational overhead. Beyond empirical improvements, DPS provides a mechanistic explanation of where and how personalization emerges within transformer architectures. Our implementation is publicly available.
title Preference Heads in Large Language Models: A Mechanistic Framework for Interpretable Personalization
topic Computation and Language
url https://arxiv.org/abs/2604.22345