Low Resource Style Transfer via Domain Adaptive Meta Learning

Xiangyang Li, Xiang Long, Yu Xia, Sujian Li

Abstract

Text Style Transfer (TST) is a critical task in Natural Language Processing that involves altering the stylistic attributes of a sentence while preserving its core semantic content. However, state-of-the-art models often struggle with data scarcity and domain shift, where a model trained on one domain (e.g., movie reviews) fails to generalize to another (e.g., restaurant reviews). This paper introduces DAML-ATM, a framework that integrates a domain-adaptive meta-learning (DAML) strategy with an adversarial transfer model (ATM). By leveraging pre-trained sequence-to-sequence models and a novel meta-learning task structure, DAML-ATM achieves superior performance in low-resource scenarios, requiring as little as 1% of target domain data to outperform existing benchmarks.

Introduction

Text Style Transfer (TST) has seen significant progress through the use of non-parallel datasets. Despite these gains, two primary challenges remain: Data Hunger and Domain Shift. Most high-performing models require massive amounts of data to learn stylistic nuances. Furthermore, when these models are deployed in a new domain, they often produce nonsensical results because they cannot distinguish between style-specific markers and domain-specific content. For instance, a model trained on movie reviews might use the word "dramatic" to express positive sentiment in a restaurant review, leading to unnatural outputs like "the food is dramatic."

When data is scarce in a target domain, standard fine-tuning often leads to a significant drop in both stylistic accuracy and content preservation. This paper addresses these limitations by proposing a meta-learning approach designed specifically for cross-domain adaptation.

The DAML-ATM Framework

The authors propose a two-tiered system designed to maximize the utility of available data while ensuring robust domain generalization.

Adversarial Transfer Model (ATM)

Traditional TST models often attempt to "disentangle" style and content in a latent space. The authors argue that this is often counterproductive and leads to a loss of meaning. Instead, the ATM leverages the rich prior knowledge of pre-trained sequence-to-sequence (S2S) models like T5 or BART.

To guide the transfer, the ATM employs an adversarial training regime. A style discriminator is used to provide feedback to the generator. To ensure training stability, the model avoids the common "Gumbel-softmax" trick, which can be volatile. Instead, it feeds the hidden states from the decoder directly into the style classifier, allowing for more consistent gradient backpropagation and better content retention through a reconstruction loss.

Domain Adaptive Meta-Learning (DAML)

The core innovation for handling low-resource scenarios is the DAML strategy. This builds upon Model-Agnostic Meta-Learning (MAML), which seeks an optimal model initialization for fast adaptation to new tasks.

In standard MAML, a task might contain a mixture of data from various sources. DAML introduces a domain-specific constraint: each meta-task is composed of data from a single domain, while the overall training batch includes tasks from multiple heterogeneous domains. This structure forces the model to prioritize "domain-invariant" features—linguistic patterns that signify style regardless of whether the subject is a movie, a product, or a meal. This makes the model uniquely prepared to "plug and play" into a previously unseen low-resource domain.

Experimental Evaluation

The researchers evaluated DAML-ATM using four diverse datasets: Yelp (restaurants), Amazon (products), IMDB (movies), and Yahoo! Answers (QA). They employed a "leave-one-out" strategy, where the model was meta-trained on three domains and then adapted to the fourth using a severely limited dataset (representing only 1% of the original data).

Key Results and Insights

The experimental results demonstrate that DAML-ATM sets a new standard for low-resource style transfer:

  • High Accuracy with Minimal Data: On the Yelp dataset with only 1% of target data, DAML-ATM achieved a Style Accuracy of 94.5%, significantly outperforming the previous state-of-the-art, DAST (88.3%).
  • Superior Content Preservation: The model maintained a BLEU score of 25.4, indicating that it preserves the original meaning far better than baselines, which often struggled to exceed a score of 20.0.
  • Human Validation: Blind human evaluations confirmed the quantitative findings, with participants rating DAML-ATM higher in both fluency and content retention compared to standard MAML and simple fine-tuning approaches.
  • Latent Space Separation: t-SNE visualizations confirmed that the model successfully learns to separate source and target domain features in the latent space as training progresses, validating the effectiveness of the domain-adaptive approach.

Conclusion

DAML-ATM demonstrates that explicit latent space disentanglement is not strictly necessary for effective style transfer when leveraging the power of pre-trained S2S models. The primary takeaway is that the structure of meta-learning tasks matters; by ensuring tasks are domain-specific, models can learn to ignore domain-specific noise and focus on universal stylistic markers.

While the model is highly effective for sentiment and formality transfer, future work will explore its application to more complex styles, such as author-specific prose or technical-to-layman translation. Additionally, the authors intend to investigate whether this domain-adaptive meta-learning framework can be extended to other low-resource NLP tasks like summarization and dialogue generation.

Summary updated

BibTeX
@inproceedings{li2022low,
  author = {Xiangyang Li and Xiang Long and Yu Xia and Sujian Li},
  title = {{Low Resource Style Transfer via Domain Adaptive Meta Learning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.220},
}
Figure