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

语言生成的高效和免训练控制

Efficient and Training-Free Control of Language Generation

Central Conservatory of Music(中央音乐学院);Tsinghua University(清华大学)

Shangda Wu, Maosong Sun

摘要:

近年来,人们对能够生成具有可控属性的文本的语言模型的开发越来越感兴趣。虽然已经提出了几种方法,但其中许多方法需要特定条件的数据或大量的计算资源。在这项研究中,我们提出了一种新的方法,称为伽玛采样,使可控的语言生成,而不需要任何训练数据,并保持快速的生成速度。Gamma Sampling将属性相关信息合并到采样过程中,有效地指导语言模型生成具有所需属性的文本。我们的实验结果表明,伽马采样,当应用于GPT2,优于代表性的基线的多样性,属性相关性,和生成的样本的整体质量。

英文摘要:

In recent years, there has been a growing interest in the development of language models capable of generating text with controllable attributes. While several approaches have been proposed, many of these methods require condition-specific data or significant computational resources. In this study, we propose a novel method called Gamma Sampling, which enables controllable language generation without the need for any training data and maintains a fast generation speed. Gamma Sampling incorporates attribute-related information into the sampling process, effectively guiding the language model to produce text with desired attributes. Our experimental results demonstrate that Gamma Sampling, when applied to GPT2, outperforms representative baselines in terms of diversity, attribute relevance, and overall quality of the generated samples.

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

↑