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

面向可控文本生成的词元级反馈强化学习

Reinforcement Learning with Token-level Feedback for Controllable Text Generation

Ping An Property & Casualty Insurance company of China(中国平安财产保险股份有限公司);The Chinese University of Hong Kong(香港中文大学);Huazhong University of Science and Technology(华中科技大学);Joint Laboratory of HUST and Pingan Property & Casualty Research (HPL)(华中科技大学与平安财产保险研究联合实验室)

Wendi Li, Wei Wei, Kaihe Xu, Wenfeng Xie, Dangyang Chen, Yu Cheng

AI总结:

提出TOLE算法,利用词元级奖励和“先量化后噪声”范式,解决可控文本生成中粗粒度反馈导致的次优问题,在单/多属性控制任务上表现优越。

摘要:

为满足实际应用需求,对大型语言模型(LLMs)的生成进行控制至关重要。已有研究尝试将强化学习(RL)引入可控文本生成,但大多数现有方法存在过拟合问题(基于微调的方法)或语义崩溃(后处理方法)。然而,当前的强化学习方法通常由粗粒度(句子/段落级)反馈引导,这可能因句子内部的语义转折或递进而导致次优性能。为解决这一问题,我们提出了一种名为TOLE的新型强化学习算法,该算法为可控文本生成制定了词元级(Token-LEvel)奖励,并采用“先量化后噪声”范式来增强强化学习算法的鲁棒性。此外,TOLE可以灵活地扩展到多约束场景,且计算开销很小。实验结果表明,我们的算法在单属性和多属性控制任务上均能取得优越性能。我们已在https://github.com/WindyLee0822/CTG 发布了代码。

英文摘要:

To meet the requirements of real-world applications, it is essential to control generations of large language models (LLMs). Prior research has tried to introduce reinforcement learning (RL) into controllable text generation while most existing methods suffer from overfitting issues (finetuning-based methods) or semantic collapse (post-processing methods). However, current RL methods are generally guided by coarse-grained (sentence/paragraph-level) feedback, which may lead to suboptimal performance owing to semantic twists or progressions within sentences. To tackle that, we propose a novel reinforcement learning algorithm named TOLE which formulates TOken-LEvel rewards for controllable text generation, and employs a "first-quantize-then-noise" paradigm to enhance the robustness of the RL algorithm.Furthermore, TOLE can be flexibly extended to multiple constraints with little computational expense. Experimental results show that our algorithm can achieve superior performance on both single-attribute and multi-attribute control tasks. We have released our codes at https://github.com/WindyLee0822/CTG

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

↑