Manuscript Offprint

arXiv:2609.02772

HyperStyler: Low-resource Authorship Style Transfer via Context-aware Style Navigation and Hypernetworks

Jongkyung Shin, Minguk Jeon, Chanwoo Park, Chiehyeon Lim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Low-resource authorship style transfer (LAST) aims to rewrite text into the style of an arbitrary target author using only a few reference examples while preserving the original meaning. Existing methods often struggle to achieve both high style fidelity and semantic preservation because they compress diverse references into a single static author embedding, which averages out context-dependent stylistic variation, and rely on hidden representations for style control, which entangle style with content. We propose HyperStyler, a novel architecture that decouples LAST into style selection and style realization. Stylo-navigator predicts style coordinates by jointly modeling the source context and target-author references, and Stylo-hypernet realizes them via dynamic parameter modulation instead of hidden-state injection. Our experiments on Reddit, Blog, and News datasets demonstrate that HyperStyler consistently outperforms prior methods including LLM-based approaches and generalizes robustly across domains. Notably, HyperStyler achieves superior performance with as few as 2.4% additional parameters over T5-large, while being over 1.8×1.8\times faster than LLMs at inference.

1 Introduction

Even when writing the same content, individuals exhibit distinctive lexical choices, syntactic structures, and modes of expression (Stamatatos, 2009; Wang et al., 2023). Low-resource authorship style transfer (LAST) aims to rewrite a source text in the style of an arbitrary target author, preserving the original semantics given only a few reference examples (Patel et al., 2024). Unlike traditional style transfer, which is often restricted to authors with massive corpora, LAST extends the scope to everyday writers with a small number of sentences. This shift offers significant practical value, enabling users to efficiently transform drafts into the nuanced voice of any desired author.

Despite its potential, high-fidelity style transfer remains a significant challenge. Initial attempts leverage in-context learning (Patel et al., 2024) or inference-time control methods (Khan et al., 2024; Horvitz et al., 2024a), but often yield weak stylistic transfer. More recent approaches (Liu et al., 2024; Horvitz et al., 2024b) introduce unsupervised style alignment frameworks by constructing pseudo-parallel datasets. However, they still struggle to achieve strong style fidelity and semantic preservation simultaneously.

We can find the first root cause of this challenge in the stylometry literature. According to prior studies, an author's style is not a static template but a multifaceted phenomenon that shifts with topic and register (Sapkota et al., 2014; Hoover, 2017; Grieve, 2023). In the few-shot setting of LAST, this context-dependency introduces a fundamental problem. Since the references provided at inference time each capture the author's style in a specific context, processing all references without explicitly identifying which is most relevant to the source text can result in a style that is either diluted into a generic average or dominated by the most salient reference. Specifically, some methods compressing references into a single static author embedding directly induce mode averaging, while other methods directly feeding all references into the context window lack any mechanism to prioritize contextually relevant references, potentially causing the model to latch onto the most stylistically prominent one.

The second cause lies in how existing methods perform style control in the hidden state space. When stylistic signals are directly injected into hidden states, they become entangled with semantic content, making it difficult to isolate style from semantic content. This is particularly problematic in LAST, where the model must handle the open-ended stylistic variation of unseen authors rather

†: Corresponding authors.

than a fixed set of style categories. Such style-content interference makes it increasingly difficult to precisely realize diverse stylistic variations while preserving the original meaning.

To address these limitations, we propose HyperStyler, a novel architecture that decouples the task into a style selection and a style realization stage via two specialized modules. First, Stylo-navigator explicitly predicts style coordinates by considering both the input context and target-author references. Second, Stylo-hypernet realizes these coordinates through dynamic parameter modulation, shifting the control mechanism to the parameter space to reduce content-style entanglement and enable fine-grained controllability. Extensive experiments across Reddit, Blog, and News domains demonstrate that HyperStyler consistently outperforms existing baselines including LLM-based approaches, and generalizes robustly across domains. Furthermore, HyperStyler is over 1.8× faster than LLMs at inference, and maintains superior performance even with only a 2.4% parameter increase over T5-large, highlighting its practical utility for time- and resource-constrained applications.

References (35)

  • Gaussian Error Linear Units (GELUs)
  • Aleem Khan, Andrew Wang, Sophia Hager, and Nicholas Andrews. 2024. Learning to generate text in arbitrary writing styles. Preprint, arXiv:2312.17242. (opens arXiv in a new tab)
  • Shuai Liu, Shantanu Agarwal, and Jonathan May. 2024. Authorship style transfer with policy optimization. Preprint, arXiv:2403.08043. (opens arXiv in a new tab)
  • Ajay Patel, Nicholas Andrews, and Chris Callison-Burch. 2024. Low-resource authorship style transfer: Can non-famous authors be imitated? Preprint, arXiv:2212.08986. (opens arXiv in a new tab)
  • GLU Variants Improve Transformer
  • Association for Computational Linguistics
  • The dataset comprises over 300 million Reddit posts produced by approximately one million users over the course of one year, and includes text-based user contributions in the form of comments
  • This dataset is freely available for non-commercial research purposes
  • This dataset is available at
  • Specifically, we remove articles with missing author information, exclude articles attributed to organizations or non-individual entities, and discard articles with multiple authors
  • Style variation is measured as the mean cosine distance of each author's style embeddings to their centroid, averaged across authors
  • Higher values reflect greater intra-author stylistic variability and greater inter-author separation
  • Cross-domain distances are consistently larger than in-domain distances across all domain pairs
  • We set $d = d_e$ for simplicity
  • This embedder is trained via contrastive learning with negative samples from the same topic and domain, encouraging the model to capture subtle stylistic signals that distinguish authors within the same topic, yielding content-independent style representations
  • Therefore, we attribute the improvement primarily to the presence of an activation function rather than to any specific choice
  • Only for the Reddit dataset, we use the publicly available checkpoint rather than training from scratch, as we found that training from scratch in our environment yielded lower performance than originally reported
  • While we made every effort to ensure a faithful reproduction, minor discrepancies may exist compared to the original implementation due to unspecified details of the algorithm or hyperparameters
  • Originally, ASTRAPOP uses LLaMA-2-7B, a decoder-only model, as its backbone architecture
  • We therefore report the two variants that preserve the original input order in Table 1
  • As shown in Table 23, despite a more than 9× difference in model size, HyperStyler consistently achieves higher JOINT scores across three datasets
  • STYLL follows the original experimental setup (Patel et al., 2024) using Qwen2.5-7B
  • Let $\vec{R}(P)$ denote a single UAR embedding produced over a set of posts $P$
  • As the evaluation of style transfer is known to be difficult for humans (Krishna et al., 2020; Patel et al., 2024; Hallinan et al., 2023; Liu et al., 2024), we introduce a qualification test to ensure a minimum level of annotation quality
  • The evaluation is conducted on the same 100 source-target author pairs sampled from the Reddit test set, with three annotators assigned to each model output
  • They are then asked to select which text is more likely to have been written by the target author
  • Focus on the *core content* and *key information* conveyed, not the writing style
  • ><em>Inference-time control</em></td></tr><tr><td>ParaGuide<sub>λ=200</sub></td><td>20.93</td><td>3.40</td></tr><tr><td>ParaGuide<sub>λ=2500</sub></td><td>20.86</td><td>3.40</td></tr><tr><td>StyleMC</td><td>49.51</td><td>9.29</td></tr><tr><td colspan=
  • Inference time is averaged over 300 instances, and VRAM is measured as peak FP32 memory usage for locally hosted models on a single NVIDIA A100 GPU. For API-based LLMs, we report wall-clock latency only, as server-side memory usage is not accessible
  • I mentioned a few weeks back that I didn't think we'd get a true gauge on Michigan State until the Notre Dame game
  • 4), yielding compatibility scores for each modulation target
  • Our use of the artifacts is consistent with their licenses and intended use
  • Top: cross-attention prefixes ($P_K, P_V$, first prefix position)
  • ><tr><td rowspan=
  • All artifacts are used consistent with their intended use