Reusing Transferable Weight Increments for Low-resource Style Generation

Chunzhen Jin, Eliot Huang, Heng Chang, Yaqi Wang, Peng Cao, Osmar R. Zaïane

Abstract

Text Style Transfer (TST) aims to alter the stylistic attributes of text while preserving its semantic content. However, the field is significantly hindered by data scarcity, especially for niche or personalized styles where parallel datasets are difficult to construct. We introduce TWIST (reusing Transferable Weight Increments for Style Text generation), a novel framework that treats stylistic knowledge as modular, transferable "weight increments." By utilizing Low-Rank Adaptation (LoRA) to store style-specific parameters in a searchable pool and applying Singular Value Decomposition (SVD) to mitigate parameter interference, TWIST enables effective style transfer with as little as 1% of the typical training data. Our results demonstrate that TWIST consistently achieves state-of-the-art performance across diverse datasets and model architectures.

Introduction

The primary challenge in Text Style Transfer is the "data desert." While common tasks like sentiment flipping have ample data, niche styles—such as specific fictional character voices or rare dialects—lack the large-scale parallel corpora required for traditional fine-tuning. Existing methods like few-shot prompting with large language models (LLMs) are often expensive and unstable, while synthetic data generation can introduce unwanted biases. TWIST addresses this by "borrowing" stylistic DNA from well-resourced source styles to jumpstart learning for low-resource target styles.

Methodology

The TWIST framework operates in two distinct stages: the Preparation Stage and the Optimization Stage.

Preparation Stage: Building the Style Library

In the first stage, the system builds a Source Weight Pool. For each source style, the model learns a set of "weight increments" using Low-Rank Adaptation (LoRA). Unlike full fine-tuning, LoRA updates only a small fraction of parameters, making the style knowledge modular and lightweight. These increments are indexed in a Multi-Key Memory Network, which utilizes both task-level keys (e.g., formality) and instance-level keys (specific sentence context) to facilitate precise retrieval. To enhance efficiency, Spectral Clustering is employed to group similar styles within the pool.

Optimization Stage: Knowledge Reuse and Interference Mitigation

When presented with an unseen, low-resource target task, TWIST performs Adaptive Retrieval to identify the most relevant weight increments from the pool. To prevent "parameter interference"—where merging disparate style weights leads to performance degradation—the framework applies Singular Value Decomposition (SVD). SVD extracts the most significant signals from the source weights, effectively de-noising them before they are interpolated to initialize the parameters for the new style.

Overview of the TWIST framework architecture, showing the preparation of source weight increments and their adaptive retrieval for target tasks.

Experimental Setup

The framework was evaluated using four major datasets:

  • YELP: Sentiment transfer (Positive $\leftrightarrow$ Negative).
  • GYAFC: Formality transfer (Formal $\leftrightarrow$ Informal).
  • Shakespeare: Author style imitation (Modern $\leftrightarrow$ Shakespearean).
  • Genshin: A role-playing dataset featuring six distinct character personalities.

The experiments utilized both T5-Large and LLaMA2-7B as backbone models to test the framework's scalability and generalizability.

Results and Discussion

TWIST demonstrates remarkable efficiency in low-resource settings. As shown in the performance metrics, the framework consistently outperforms baseline methods across different data regimes.

Low-Resource Efficiency

In scenarios with only 10% of the training data, TWIST (based on T5-Large) achieved a 20.6% improvement in G-score on the Shakespeare dataset compared to standard fine-tuning. The G-score, which balances style accuracy and content preservation, remains high even as data availability drops to 1%.

Performance comparison (G-score) across Shakespeare, Genshin, and LLaMA2-7B datasets at varying data percentages (1% to 10%).

Scaling and Comparison with LLMs

When scaled to the LLaMA2-7B architecture, TWIST's performance in few-shot scenarios rivaled that of ChatGPT-4. Specifically, it trailed ChatGPT-4 by only 1.9% in style accuracy while maintaining superior content preservation. This suggests that modular weight reuse is a viable and more efficient alternative to prompting extremely large models for specialized style transfer tasks.

The Role of SVD and Dual-Level Retrieval

Ablation studies confirmed that SVD is critical for stability; simply adding weight matrices often led to performance degradation. Pruning weights via SVD singular vectors ensured that only the most transferable stylistic features were merged. Furthermore, the dual-level retrieval mechanism (task and instance) was found to be essential for maintaining high content preservation by selecting the most contextually appropriate source weights.

Conclusion

TWIST offers a robust solution to the data scarcity problem in Text Style Transfer by treating style as a modular add-on. By decoupling stylistic knowledge from general language capabilities and providing a mechanism for stable knowledge transfer, TWIST enables high-quality style generation even in "data desert" conditions. Future work will explore the framework's applicability to non-English languages and other parameter-efficient fine-tuning (PEFT) architectures.

Summary updated

BibTeX
@inproceedings{jin2024reusing,
  author = {Chunzhen Jin and Eliot Huang and Heng Chang and Yaqi Wang and Peng Cao and Osmar R. Zaïane},
  title = {{Reusing Transferable Weight Increments for Low-resource Style Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.145},
}
Figure