Steering Large Language Models with Register Analysis for Arbitrary Style Transfer
Xinchen Yang, Marine Carpuat
TL;DR
The paper addresses arbitrary style transfer using LLMs by proposing a register-analysis–driven prompting framework. It introduces two prompting variants, RG-Contrastive and RG, which leverage Biber's multidimensional register analysis to generate target style descriptors guiding rewrites of input texts $x^{\mathrm{input}}$ toward exemplars $x^{\mathrm{style}}$, producing outputs $x^{\mathrm{output}}$. Across Authorship Imitation, Formality Transfer, and Text Simplification, the approach yields improved meaning preservation and competitive style transfer strength, outperforming several baselines and STYLL in key tasks. Qualitative analysis confirms descriptors align with register in a way that minimizes semantic drift, underscoring better decoupling of style and content and supporting practical use in low-resource settings with responsible deployment considerations.
Abstract
Large Language Models (LLMs) have demonstrated strong capabilities in rewriting text across various styles. However, effectively leveraging this ability for example-based arbitrary style transfer, where an input text is rewritten to match the style of a given exemplar, remains an open challenge. A key question is how to describe the style of the exemplar to guide LLMs toward high-quality rewrites. In this work, we propose a prompting method based on register analysis to guide LLMs to perform this task. Empirical evaluations across multiple style transfer tasks show that our prompting approach enhances style transfer strength while preserving meaning more effectively than existing prompting strategies.
