arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12757cs.CLcs.LG
收藏

StyleDistance:利用合成平行样例训练更强的内容无关风格嵌入

StyleDistance: Stronger Content-Independent Style Embeddings with Synthetic Parallel Examples

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

Ajay Patel, Jiacheng Zhu, Justin Qiu, Zachary Horvitz, Marianna Apidianaki, Kathleen McKeown, Chris Callison-Burch

AI总结:

StyleDistance 利用大语言模型生成风格受控的合成平行改写数据,围绕 40 种风格特征进行对比学习,训练出更强内容无关的风格嵌入,并在现实基准和下游任务中优于现有方法。

摘要:

风格表示旨在将写作风格相似的文本在嵌入空间中拉近,将风格不同的文本推远,且不受内容影响。然而,用于训练这些表示的对比三元组往往在风格和内容上同时发生变化,可能导致表示中出现内容泄漏。我们提出 StyleDistance,一种训练更强内容无关风格嵌入的新方法。我们使用大型语言模型构建一个合成数据集,其中包含风格变化受控的近精确改写句对,并围绕 40 种不同风格特征生成正例和负例,以实现精确的对比学习。我们通过人工评估和自动评估来检验合成数据和嵌入的质量。StyleDistance 增强了风格嵌入的内容无关性,使其能够泛化到现实世界基准,并在下游应用中优于领先的风格表示。我们的模型可在 https://huggingface.co/StyleDistance/styledistance 获取。

英文摘要:

Style representations aim to embed texts with similar writing styles closely and texts with different styles far apart, regardless of content. However, the contrastive triplets often used for training these representations may vary in both style and content, leading to potential content leakage in the representations. We introduce StyleDistance, a novel approach to training stronger content-independent style embeddings. We use a large language model to create a synthetic dataset of near-exact paraphrases with controlled style variations, and produce positive and negative examples across 40 distinct style features for precise contrastive learning. We assess the quality of our synthetic data and embeddings through human and automatic evaluations. StyleDistance enhances the content-independence of style embeddings, which generalize to real-world benchmarks and outperform leading style representations in downstream applications. Our model can be found at https://huggingface.co/StyleDistance/styledistance .

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

↑