Controlling Chat Style in Language Models via Single-Direction Editing

Zhenyu Xu, Victor S. Sheng
2/10/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xu2026controlling,
  title  = {Controlling Chat Style in Language Models via Single-Direction Editing},
  author = {Zhenyu Xu and Victor S. Sheng},
  year   = {2026},
  eprint = {2603.03324},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.03324v1}
}

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

Discussion