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

kNN-BOX:最近邻生成的统一框架

kNN-BOX: A Unified Framework for Nearest Neighbor Generation

National Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室)

Wenhao Zhu, Qianfeng Zhao, Yunzhe Lv, Shujian Huang, Siheng Zhao, Sizhe Liu, Jiajun Chen

摘要:

用标记级符号化的神经元模型扩充基本神经元模型是一种新的生成范式,在机器翻译(MT)中取得了可喜的成果。在本文中,我们介绍了一个统一的框架kNN-BOX,它可以快速开发和交互式分析这种新的范式。kNN-BOX将数据库扩充方法分解为三个模块:检索器,检索器和组合器,从而将不同的kNN生成方法统一起来。目前,kNN-BOX已经提供了七种流行的kNN-MT变体的实现,涵盖了从性能增强到效率优化的研究。用户可以很容易地复制这些现有的作品或定制自己的模型。此外,用户可以使用kNN-BOX与他们的kNN生成系统进行交互,以便以可视化的方式更好地理解底层的推理过程。在实验部分,我们将kNN-BOX应用于机器翻译和其他三个seq 2seq生成任务,即文本简化,释义生成和问题生成。实验结果表明,使用kNN-BOX增强基本神经模型导致所有这些任务的性能大幅提高。kNN-BOX的代码和文档可在https://github.com/NJUNLP/knn-box上获得。

英文摘要:

Augmenting the base neural model with a token-level symbolic datastore is a novel generation paradigm and has achieved promising results in machine translation (MT). In this paper, we introduce a unified framework kNN-BOX, which enables quick development and interactive analysis for this novel paradigm. kNN-BOX decomposes the datastore-augmentation approach into three modules: datastore, retriever and combiner, thus putting diverse kNN generation methods into a unified way. Currently, kNN-BOX has provided implementation of seven popular kNN-MT variants, covering research from performance enhancement to efficiency optimization. It is easy for users to reproduce these existing works or customize their own models. Besides, users can interact with their kNN generation systems with kNN-BOX to better understand the underlying inference process in a visualized way. In the experiment section, we apply kNN-BOX for machine translation and three other seq2seq generation tasks, namely, text simplification, paraphrase generation and question generation. Experiment results show that augmenting the base neural model with kNN-BOX leads to a large performance improvement in all these tasks. The code and document of kNN-BOX is available at https://github.com/NJUNLP/knn-box.

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

↑