arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1708.00111cs.LGcs.CLcs.NE
收藏

连续松弛束搜索用于神经序列模型的端到端训练

A Continuous Relaxation of Beam Search for End-to-end Training of Neural Sequence Models

Carnegie Mellon University(卡内基梅隆大学);Deepmind

Kartik Goyal, Graham Neubig, Chris Dyer, Taylor Berg-Kirkpatrick

摘要:

束搜索是神经序列模型测试时解码算法的理想选择,因为它潜在地避免了由简单贪婪方法造成的搜索错误。然而,这些模型的典型交叉熵训练过程不直接考虑最终解码方法的行为。因此,对于交叉熵训练模型,与贪心解码相比,波束解码有时会产生降低的测试性能。为了训练模型,可以更有效地利用束搜索,我们提出了一个新的训练过程,侧重于最终的损失度量(例如汉明损失)评估的输出束搜索。虽然定义明确,但这一"直接损失"目标本身是不连续的,因此难以优化。因此,在我们的方法中,我们通过引入束搜索解码过程的新的连续近似来形成次可微代理目标。在实验中,我们表明,优化这个新的训练目标产生了更好的结果,在两个序列任务(命名实体识别和CCG超级标记)相比,交叉熵训练的贪心解码和交叉熵训练的波束解码基线。

英文摘要:

Beam search is a desirable choice of test-time decoding algorithm for neural sequence models because it potentially avoids search errors made by simpler greedy methods. However, typical cross entropy training procedures for these models do not directly consider the behaviour of the final decoding method. As a result, for cross-entropy trained models, beam decoding can sometimes yield reduced test performance when compared with greedy decoding. In order to train models that can more effectively make use of beam search, we propose a new training procedure that focuses on the final loss metric (e.g. Hamming loss) evaluated on the output of beam search. While well-defined, this "direct loss" objective is itself discontinuous and thus difficult to optimize. Hence, in our approach, we form a sub-differentiable surrogate objective by introducing a novel continuous approximation of the beam search decoding procedure. In experiments, we show that optimizing this new training objective yields substantially better results on two sequence tasks (Named Entity Recognition and CCG Supertagging) when compared with both cross entropy trained greedy decoding and cross entropy trained beam decoding baselines.

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

↑