arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.05707cs.CL
收藏

CAT-LLM:面向中文文章风格迁移的带文本风格定义的风格增强大语言模型

CAT-LLM: Style-enhanced Large Language Models with Text Style Definition for Chinese Article-style Transfer

Renmin University of China(中国人民大学);Shanghai University of Finance and Economics(上海金融学院);Institute for Advanced Algorithms Research(先进算法研究所)

Zhen Tao, Dinghao Xi, Zhiyu Li, Liumin Tang, Wei Xu

AI总结:

本文提出中文文章风格迁移框架 CAT-LLM,通过可插拔的文本风格定义模块在词级和句级建模文章风格,并结合 GPT-3.5-Turbo 在多个平行数据集上取得最优风格迁移与内容保留性能。

摘要:

文本风格迁移在网络娱乐和社交媒体中发挥着重要作用。然而,现有模型难以处理中文长文本的复杂性,例如修辞、结构和文化,这限制了它们的更广泛应用。为弥合这一差距,我们提出了一个中文文章风格迁移(CAT-LLM)框架,以应对复杂中文长文本中的风格迁移挑战。CAT-LLM 的核心是一个定制的可插拔文本风格定义(TSD)模块,该模块集成机器学习算法,在词级和句级两个层面分析和建模文章风格。该模块充当桥梁,使大语言模型能够更好地理解并适应中文文章风格的复杂性。此外,它支持内部风格树的动态扩展,使框架能够无缝纳入新的多样化风格定义,从而增强其适应性和可扩展性,以服务于未来的研究和应用。另外,为便于稳健评估,我们利用 ChatGPT 与多种中文文本相结合,创建了十个平行数据集,每个数据集对应不同的写作风格,显著提高了模型评估的准确性,并为文本风格迁移研究建立了新的范式。大量实验结果表明,CAT-LLM 与 GPT-3.5-Turbo 结合后达到了最先进的性能,在《围城》数据集上的迁移准确率 F1 分数为 79.36%,内容保留 F1 分数为 96.47%。这些结果凸显了 CAT-LLM 对风格迁移研究的创新贡献,包括其在不同中文文本领域中实现精确且灵活的风格迁移的同时保持内容完整性的能力。基于这些贡献,CAT-LLM 在推动中文数字媒体发展和促进自动化内容创作方面展现出巨大潜力。

英文摘要:

Text style transfer plays a vital role in online entertainment and social media. However, existing models struggle to handle the complexity of Chinese long texts, such as rhetoric, structure, and culture, which restricts their broader application. To bridge this gap, we propose a Chinese Article-style Transfer (CAT-LLM) framework, which addresses the challenges of style transfer in complex Chinese long texts. At its core, CAT-LLM features a bespoke pluggable Text Style Definition (TSD) module that integrates machine learning algorithms to analyze and model article styles at both word and sentence levels. This module acts as a bridge, enabling LLMs to better understand and adapt to the complexities of Chinese article styles. Furthermore, it supports the dynamic expansion of internal style trees, enabling the framework to seamlessly incorporate new and diverse style definitions, enhancing adaptability and scalability for future research and applications. Additionally, to facilitate robust evaluation, we created ten parallel datasets using a combination of ChatGPT and various Chinese texts, each corresponding to distinct writing styles, significantly improving the accuracy of the model evaluation and establishing a novel paradigm for text style transfer research. Extensive experimental results demonstrate that CAT-LLM, combined with GPT-3.5-Turbo, achieves state-of-the-art performance, with a transfer accuracy F1 score of 79.36% and a content preservation F1 score of 96.47% on the "Fortress Besieged" dataset. These results highlight CAT-LLM's innovative contributions to style transfer research, including its ability to preserve content integrity while achieving precise and flexible style transfer across diverse Chinese text domains. Building on these contributions, CAT-LLM presents significant potential for advancing Chinese digital media and facilitating automated content creation.

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

↑