Precise Attribute Intensity Control in Large Language Models via Targeted Representation Editing

Rongzhi Zhang, Liqin Ye, Yuzhao Heng, Xiang Chen, Tong Yu +3 more
10/14/2025
cs.AIcs.CLcs.LG

Official code: Pre-Control/pre-control (4 stars, MIT, last commit 2025-10-09).

Abstract

Precise attribute intensity control--generating Large Language Model (LLM) outputs with specific, user-defined attribute intensities--is crucial for AI systems adaptable to diverse user expectations. Current LLM alignment methods, however, typically provide only directional or open-ended guidance, failing to reliably achieve exact attribute intensities. We address this limitation with three key designs: (1) reformulating precise attribute intensity control as a target-reaching problem, rather than simple maximization; (2) training a lightweight value function via temporal-difference learning to predict final attribute intensity scores from partial generations, thereby steering LLM outputs; and (3) employing gradient-based interventions on hidden representations to navigate the model precisely towards specific attribute intensity targets. Our method enables fine-grained, continuous control over attribute intensities, moving beyond simple directional alignment. Experiments on LLaMA-3.2-3b and Phi-4-mini confirm our method's ability to steer text generation to user-specified attribute intensities with high accuracy. Finally, we demonstrate efficiency enhancements across three downstream tasks: preference data synthesis, Pareto frontier approximation and optimization, and distillation of aligned behaviors for intervention-free inference. Our code is available on https://github.com/Pre-Control/pre-control

View on arXivView PDF

Code Implementations(1)

MIT
41Shell, PythonJun 27, 20251 years agoMIT

Cite this paper

@article{zhang2025precise,
  title  = {Precise Attribute Intensity Control in Large Language Models via Targeted Representation Editing},
  author = {Rongzhi Zhang and Liqin Ye and Yuzhao Heng and Xiang Chen and Tong Yu and Lingkai Kong and Sudheer Chava and Chao Zhang},
  year   = {2025},
  eprint = {2510.12121},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.12121v2}
}

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

Discussion