Reproduce “Unsupervised Text Style Transfer via LLMs and Attention Masking with Multi-way Interactions” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Lei Pan, Yunshi Lan, Yang Li, Weining Qian

This paper explores multi-way interaction strategies between large language models and attention masking to enhance unsupervised text style transfer. The proposed Prompt-then-AM pipeline, which first uses LLM prompting for style transfer and then refines content with attention masking, achieves state-of-the-art performance on sentiment transfer benchmarks by effectively balancing style transfer accuracy, content preservation, and fluency.

Key insights

  • Combining large language models (LLMs) and attention masking consistently improves performance compared to using either method alone in unsupervised text style transfer.
  • The order of operations in pipeline approaches significantly impacts performance, with the Prompt-then-AM pipeline outperforming AM-then-prompt.
  • A control parameter (α) in the attention masking component provides flexible control over the trade-off between style transfer accuracy and content preservation.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.