arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.00475cs.CL
收藏

基于kNN语言模型的可控生成中的风格局部性

Style Locality for Controllable Generation with kNN Language Models

University of Marburg(马尔堡大学);University of Bonn(波恩大学)

Gilles Nawezi, Lucie Flek, Charles Welch

AI总结:

本文提出在kNN语言模型中引入风格局部性层级,用于可控文本生成,并在礼貌性、正式性、支持性和毒性数据上验证其在流畅性与风格控制之间取得更好平衡。

摘要:

近期语言模型通过引入外部记忆得到了改进。最近邻语言模型检索相似上下文以辅助词语预测。局部性层级的加入使模型能够根据邻居在源文档中相对于当前文本的位置来学习如何对其加权,并已被证明能进一步提升模型性能。最近邻模型已被探索用于可控生成,但尚未考察局部性层级的使用。我们为此提出了一种新方法,并在礼貌性、正式性、支持性和毒性文本数据上使用自动评估和人工评估对其进行评价。我们发现,我们的模型能够成功地控制风格,并比先前工作提供了更好的流畅性与风格之间的权衡。

英文摘要:

Recent language models have been improved by the addition of external memory. Nearest neighbor language models retrieve similar contexts to assist in word prediction. The addition of locality levels allows a model to learn how to weight neighbors based on their relative location to the current text in source documents, and have been shown to further improve model performance. Nearest neighbor models have been explored for controllable generation but have not examined the use of locality levels. We present a novel approach for this purpose and evaluate it using automatic and human evaluation on politeness, formality, supportiveness, and toxicity textual data. We find that our model is successfully able to control style and provides a better fluency-style trade-off than previous work.

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

↑