conference-paper Open access

Style-Specific Neurons for Steering LLMs in Text Style Transfer

Research footprint

At a glance

Citations
6
References
0
Comments
0
Paper overview

Öz

Text style transfer (TST) aims to modify the style of a text without altering its original meaning.Large language models (LLMs) demonstrate superior performance across multiple tasks, including TST.However, in zero-shot setups, they tend to directly copy a significant portion of the input text to the output without effectively changing its style.To enhance the stylistic variety and fluency of the text, we present sNeuron-TST, a novel approach for steering LLMs using style-specific neurons in TST.Specifically, we identify neurons associated with the source and target styles and deactivate source-style-only neurons to give target-style words a higher probability, aiming to enhance the stylistic diversity of the generated text.However, we find that this deactivation negatively impacts the fluency of the generated text, which we address by proposing an improved contrastive decoding method that accounts for rapid token probability shifts across layers caused by deactivated source-style neurons.Empirical experiments demonstrate the effectiveness of the proposed method on six benchmarks, encompassing formality, toxicity, politics, politeness, authorship, and sentiment 1 .

Record transparency

Publication details

DOI
10.18653/v1/2024.emnlp-main.745
OpenAlex
W4404783340
Document type
conference-paper
Language
EN
Last metadata update
Community

Comments

Oturum Açın to join the discussion.

  1. No comments yet. Start the discussion.