用于文体可控生成的最近邻语言模型
Nearest Neighbor Language Models for Stylistic Controllable Generation
摘要:
最近的语言建模性能已大大提高了使用外部存储器。该存储器对上下文进行编码,以便在解码期间可以调用类似的上下文。这种相似性取决于模型如何学习编码上下文,可以更改上下文以包含其他属性,例如样式。我们为此目的构建和评估一个架构,使用语料库注释礼貌,正式和毒性。通过大量的实验和人工评估,我们证明了我们的方法在控制风格的同时生成文本的潜力。我们发现,特定于风格的数据存储提高了生成性能,尽管不同风格的结果差异很大,预训练数据和特定风格的影响应该在未来的工作中进行探索。
英文摘要:
Recent language modeling performance has been greatly improved by the use of external memory. This memory encodes the context so that similar contexts can be recalled during decoding. This similarity depends on how the model learns to encode context, which can be altered to include other attributes, such as style. We construct and evaluate an architecture for this purpose, using corpora annotated for politeness, formality, and toxicity. Through extensive experiments and human evaluation we demonstrate the potential of our method to generate text while controlling style. We find that style-specific datastores improve generation performance, though results vary greatly across styles, and the effect of pretraining data and specific styles should be explored in future work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。