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

大型语言模型的可控文本生成:综述

Controllable Text Generation for Large Language Models: A Survey

Renmin University of China(中国人民大学);Institute for Advanced Algorithms Research(高等算法研究院);China Telecom Research Institute(中国电信研究院)

Xun Liang, Hanyu Wang, Yezhaohui Wang, Shichao Song, Jiawei Yang, Simin Niu, Jie Hu, Dan Liu, Shunyu Yao, Feiyu Xiong, Zhiyu Li

AI总结:

本文综述了大型语言模型可控文本生成(CTG)的最新进展,将任务分为内容控制与属性控制,系统讨论了微调、强化学习、提示工程等关键方法及其优劣,并总结了评估方法、应用领域与未来挑战,旨在为相关研究提供指导。

摘要:

在自然语言处理(NLP)中,大型语言模型(LLMs)展现出了极高的文本生成质量。然而,在实际应用中,LLMs必须满足日益复杂的需求。除了避免误导性或不当内容外,LLMs还应迎合特定用户需求,例如模仿特定写作风格或生成富有诗意的文本。这些多样化需求推动了可控文本生成(CTG)技术的发展,该技术确保输出遵循预定义的控制条件——如安全性、情感、主题一致性和语言风格——同时保持高标准的帮助性、流畅性和多样性。本文系统回顾了LLMs在CTG方面的最新进展,提供了其核心概念的全面定义,并阐明了控制条件和文本质量的要求。我们将CTG任务分为两大主要类型:内容控制和属性控制。文中讨论了关键方法,包括模型重训练、微调、强化学习、提示工程、潜在空间操作和解码时干预。我们分析了每种方法的特征、优势和局限性,为实现生成控制提供了细致的见解。此外,我们回顾了CTG的评估方法,总结了其在各领域的应用,并探讨了当前研究中的关键挑战,包括流畅性和实用性的降低。我们还提出了若干呼吁,例如在未来的研究中更加重视实际应用。本文旨在为该领域的研究人员和开发者提供有价值的指导。我们的参考文献列表和中文版本已在 https://github.com/IAAR-Shanghai/CTGSurvey 开源。

英文摘要:

In Natural Language Processing (NLP), Large Language Models (LLMs) have demonstrated high text generation quality. However, in real-world applications, LLMs must meet increasingly complex requirements. Beyond avoiding misleading or inappropriate content, LLMs are also expected to cater to specific user needs, such as imitating particular writing styles or generating text with poetic richness. These varied demands have driven the development of Controllable Text Generation (CTG) techniques, which ensure that outputs adhere to predefined control conditions--such as safety, sentiment, thematic consistency, and linguistic style--while maintaining high standards of helpfulness, fluency, and diversity. This paper systematically reviews the latest advancements in CTG for LLMs, offering a comprehensive definition of its core concepts and clarifying the requirements for control conditions and text quality. We categorize CTG tasks into two primary types: content control and attribute control. The key methods are discussed, including model retraining, fine-tuning, reinforcement learning, prompt engineering, latent space manipulation, and decoding-time intervention. We analyze each method's characteristics, advantages, and limitations, providing nuanced insights for achieving generation control. Additionally, we review CTG evaluation methods, summarize its applications across domains, and address key challenges in current research, including reduced fluency and practicality. We also propose several appeals, such as placing greater emphasis on real-world applications in future research. This paper aims to offer valuable guidance to researchers and developers in the field. Our reference list and Chinese version are open-sourced at https://github.com/IAAR-Shanghai/CTGSurvey.

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

↑