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

基于网格束搜索的序列生成中的词汇约束译码

Lexically Constrained Decoding for Sequence Generation Using Grid Beam Search

ADAPT Centre(ADAPT中心);Dublin City University(都柏林城市大学)

Chris Hokamp, Qun Liu

摘要:

我们提出了网格束搜索(GBS),一种算法,它扩展了束搜索,允许列入预先指定的词汇约束。该算法可以与通过最大化$ p(\mathbf{y} | \mathbf{x}) = \prod\limits_{t}p(y_{t} | \mathbf{x}; \{y_{0} \ldots y_{t-1}\}) $来生成序列$ \mathbf{\hat{y}} = \{y_{0}\ldots y_{T}\} $的任何模型一起使用。词汇约束采用必须出现在输出序列中的短语或单词的形式。这是一种非常通用的方法,可以将额外的知识合并到模型的输出中,而不需要对模型参数或训练数据进行任何修改。我们通过对神经交互预测翻译和神经机器翻译的领域自适应进行实验,证明了词汇约束解码的可行性和灵活性。实验表明,GBS可以在交互式场景中提供翻译质量的大幅度提高,并且即使没有任何用户输入,GBS也可以用于在领域自适应场景中实现显著的性能增益。

英文摘要:

We present Grid Beam Search (GBS), an algorithm which extends beam search to allow the inclusion of pre-specified lexical constraints. The algorithm can be used with any model that generates a sequence $ \mathbf{\hat{y}} = \{y_{0}\ldots y_{T}\} $, by maximizing $ p(\mathbf{y} | \mathbf{x}) = \prod\limits_{t}p(y_{t} | \mathbf{x}; \{y_{0} \ldots y_{t-1}\}) $. Lexical constraints take the form of phrases or words that must be present in the output sequence. This is a very general way to incorporate additional knowledge into a model's output without requiring any modification of the model parameters or training data. We demonstrate the feasibility and flexibility of Lexically Constrained Decoding by conducting experiments on Neural Interactive-Predictive Translation, as well as Domain Adaptation for Neural Machine Translation. Experiments show that GBS can provide large improvements in translation quality in interactive scenarios, and that, even without any user input, GBS can be used to achieve significant gains in performance in domain adaptation scenarios.

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

↑