Controlling Chat Style in Language Models via Single-Direction Editing

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Xu, Zhenyu, Sheng, Victor S.
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908864926973952
author Xu, Zhenyu
Sheng, Victor S.
author_facet Xu, Zhenyu
Sheng, Victor S.
contents Controlling stylistic attributes in large language models (LLMs) remains challenging, with existing approaches relying on either prompt engineering or post-training alignment. This paper investigates this challenge through the lens of representation engineering, testing the hypothesis that distinct stylistic attributes - from emotional tone to linguistic structure - are encoded as linear directions in the model's activation space. We provide strong empirical evidence for this hypothesis across a wide range of styles and, based on this finding, present a lightweight, training-free method for precise style control. Our approach supports linear style composition, enhances safety by ablating undesirable behaviors, and, as confirmed by experiments on over a dozen models, achieves high style adherence while preserving core capabilities at minimal computational cost.
format Preprint
id arxiv_https___arxiv_org_abs_2603_03324
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Controlling Chat Style in Language Models via Single-Direction Editing
Xu, Zhenyu
Sheng, Victor S.
Computation and Language
Artificial Intelligence
Controlling stylistic attributes in large language models (LLMs) remains challenging, with existing approaches relying on either prompt engineering or post-training alignment. This paper investigates this challenge through the lens of representation engineering, testing the hypothesis that distinct stylistic attributes - from emotional tone to linguistic structure - are encoded as linear directions in the model's activation space. We provide strong empirical evidence for this hypothesis across a wide range of styles and, based on this finding, present a lightweight, training-free method for precise style control. Our approach supports linear style composition, enhances safety by ablating undesirable behaviors, and, as confirmed by experiments on over a dozen models, achieves high style adherence while preserving core capabilities at minimal computational cost.
title Controlling Chat Style in Language Models via Single-Direction Editing
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2603.03324