arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.15586cs.CL
收藏

TinyStyler:基于作者嵌入的高效少样本文本风格迁移

TinyStyler: Efficient Few-Shot Text Style Transfer with Authorship Embeddings

Columbia University(哥伦比亚大学);University of Pennsylvania(宾夕法尼亚大学)

Zachary Horvitz, Ajay Patel, Kanishk Singh, Chris Callison-Burch, Kathleen McKeown, Zhou Yu

AI总结:

TinyStyler利用小型语言模型和预训练作者嵌入实现高效少样本文本风格迁移,在作者风格和属性风格迁移任务上优于GPT-4等强基线。

摘要:

文本风格迁移的目标是在保留原始含义的同时转换文本风格,通常仅需目标风格的少量示例。现有的风格迁移方法通常依赖大型语言模型的少样本能力,或采用复杂且效率低下、在流畅性指标上表现不佳的可控文本生成方法。我们提出了TinyStyler,一种轻量但有效的方法,利用小型语言模型(8亿参数)和预训练的作者嵌入来实现高效、少样本的文本风格迁移。我们在具有挑战性的作者风格迁移任务上进行了评估,发现TinyStyler优于GPT-4等强基线方法。我们还通过自动化和人工评估评估了TinyStyler执行文本属性风格迁移(正式↔非正式)的能力,发现该方法优于最近的可控文本生成方法。我们的模型已在https://huggingface.co/tinystyler/tinystyler 公开发布。

英文摘要:

The goal of text style transfer is to transform the style of texts while preserving their original meaning, often with only a few examples of the target style. Existing style transfer methods generally rely on the few-shot capabilities of large language models or on complex controllable text generation approaches that are inefficient and underperform on fluency metrics. We introduce TinyStyler, a lightweight but effective approach, which leverages a small language model (800M params) and pre-trained authorship embeddings to perform efficient, few-shot text style transfer. We evaluate on the challenging task of authorship style transfer and find TinyStyler outperforms strong approaches such as GPT-4. We also evaluate TinyStyler's ability to perform text attribute style transfer (formal $\leftrightarrow$ informal) with automatic and human evaluations and find that the approach outperforms recent controllable text generation methods. Our model has been made publicly available at https://huggingface.co/tinystyler/tinystyler .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑