Steering Large Language Models with Register Analysis for Arbitrary Style Transfer

Xinchen Yang, Marine CarpuatarXiv 2025 · DOI

Abstract

Arbitrary text style transfer (TST) requires rewriting a source text to match the style of a target exemplar while preserving original meaning. Current Large Language Model (LLM) approaches often suffer from style-content entanglement due to unconstrained, open-ended style descriptors. We present a novel prompting strategy grounded in Biber’s Multidimensional Register Analysis (MDA). By guiding models through a structured three-step pipeline—style analysis, descriptor extraction, and rewriting—we demonstrate that linguistic grounding provides a necessary constraint for effective style transfer. Our results across diverse datasets show that register-guided methods consistently achieve a superior balance between stylistic fidelity and semantic preservation, defining the Pareto frontier in TST performance.

Introduction

Text Style Transfer (TST) is a fundamental natural language processing task that involves modifying the stylistic attributes of a text while maintaining its core semantic content. "Arbitrary" TST is particularly challenging as it requires the model to infer stylistic nuances from a provided target exemplar rather than a predefined label (e.g., "formal").

Existing LLM-based methods typically rely on zero-shot prompting or self-generated descriptors. However, these "unconstrained" descriptors often lead to two significant failures: style-content entanglement, where the model alters factual information to fit a perceived tone, and stylistic inaccuracy, where subtle linguistic markers are missed. This research addresses these issues by introducing formal linguistic constraints via register analysis.

Methodology: Register-Guided Prompting

The proposed approach utilizes Biber’s Multidimensional Register Analysis (MDA), a framework that categorizes language variation based on situational use. The methodology is implemented as a three-step pipeline designed to decouple style from content.

The three-step Register-Guided (RG) prompting pipeline for arbitrary style transfer.
  1. Style Analysis/Comparison: The LLM is prompted to analyze the target exemplar (and sometimes compare it to the input) using Biber’s register dimensions, such as "involved vs. informational production."
  2. Descriptor Extraction: The model distills the analysis into a concise list of comma-separated style descriptors.
  3. Rewrite: The model rewrites the input text strictly following the extracted descriptors.

Two variants were evaluated: RG (absolute analysis of the target) and RG-Contrastive (analysis of the stylistic delta between input and target). These were compared against state-of-the-art baselines like STYLL and simple one-line prompts.

Experimental Setup

The framework was evaluated across three distinct stylistic tasks:

  • Authorship Imitation: Using the Reddit Million User (MUD) dataset to mimic individual writing styles.
  • Formality Transfer: Using the Grammarly Yahoo Answers Formality Corpus (GYAFC) across Entertainment and Family domains.
  • Text Simplification: Using the Cochrane dataset to translate complex medical abstracts into plain language.

Results and Discussion

The primary finding is that register-based methods (RG and RG-Contrastive) consistently occupy the Pareto frontier, providing the optimal trade-off between style transfer strength and meaning preservation across all tasks.

Style-meaning trade-offs across MUD, Cochrane, and GYAFC tasks, showing the Pareto frontier for register-based methods.

Meaning Preservation and Decoupling

Register-guided methods showed significant improvements in meaning preservation, measured by Mutual Implication Scores (MIS). Unlike baseline models that often introduced hallucinations or deleted critical information, the RG approach successfully adopted stylistic markers—such as verbal fillers ("oh man") or specific casing—without altering the underlying facts.

The "Simple Prompt" Trap

Analysis revealed that while simple one-line prompts may appear to perform well on style metrics, they often "cheat" by copying verbatim segments from the target exemplar, which destroys the original meaning. By contrast, the structured register analysis acts as a "guardrail," preventing the model from drifting into affective or tone-oriented descriptors that are prone to content entanglement.

Conclusion

Grounding LLM prompts in formal linguistic frameworks like Biber’s MDA significantly enhances the performance of arbitrary style transfer. By constraining the model's "thinking" to specific register dimensions, we achieve a more robust decoupling of style and content. Future work will explore the scalability of this approach to larger frontier models and the potential benefits of few-shot prompting to further refine stylistic accuracy.

Summary updated

BibTeX
@misc{yang2025steering,
  author = {Xinchen Yang and Marine Carpuat},
  title = {{Steering Large Language Models with Register Analysis for Arbitrary Style Transfer}},
  year = {2025},
  eprint = {2505.00679},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.00679},
}
Figure