Saved in:
Bibliographic Details
Main Authors: Sun, Han, Sun, Zhen, Zhang, Zongmin, Jia, Linzhao, Shao, Wei, Zhang, Min
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.12821
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912381951541248
author Sun, Han
Sun, Zhen
Zhang, Zongmin
Jia, Linzhao
Shao, Wei
Zhang, Min
author_facet Sun, Han
Sun, Zhen
Zhang, Zongmin
Jia, Linzhao
Shao, Wei
Zhang, Min
contents Large Language Models (LLMs) are emerging as dominant forces for textual style transfer. However, for arbitrary style transfer, LLMs face two key challenges: (1) considerable reliance on manually-constructed prompts and (2) rigid stylistic biases inherent in LLMs. In this paper, we propose a novel Synthesize-then-Decode (SynDec) approach, which automatically synthesizes high-quality prompts and amplifies their roles during decoding process. Specifically, our approach synthesizes prompts by selecting representative few-shot samples, conducting a four-dimensional style analysis, and reranking the candidates. At LLM decoding stage, the TST effect is amplified by maximizing the contrast in output probabilities between scenarios with and without the synthesized prompt, as well as between prompts and negative samples. We conduct extensive experiments and the results show that SynDec outperforms existing state-of-the-art LLM-based methods on five out of six benchmarks (e.g., achieving up to a 9\% increase in accuracy for modern-to-Elizabethan English transfer). Detailed ablation studies further validate the effectiveness of SynDec.
format Preprint
id arxiv_https___arxiv_org_abs_2505_12821
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Models
Sun, Han
Sun, Zhen
Zhang, Zongmin
Jia, Linzhao
Shao, Wei
Zhang, Min
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) are emerging as dominant forces for textual style transfer. However, for arbitrary style transfer, LLMs face two key challenges: (1) considerable reliance on manually-constructed prompts and (2) rigid stylistic biases inherent in LLMs. In this paper, we propose a novel Synthesize-then-Decode (SynDec) approach, which automatically synthesizes high-quality prompts and amplifies their roles during decoding process. Specifically, our approach synthesizes prompts by selecting representative few-shot samples, conducting a four-dimensional style analysis, and reranking the candidates. At LLM decoding stage, the TST effect is amplified by maximizing the contrast in output probabilities between scenarios with and without the synthesized prompt, as well as between prompts and negative samples. We conduct extensive experiments and the results show that SynDec outperforms existing state-of-the-art LLM-based methods on five out of six benchmarks (e.g., achieving up to a 9\% increase in accuracy for modern-to-Elizabethan English transfer). Detailed ablation studies further validate the effectiveness of SynDec.
title SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2505.12821