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

基于层次短语的序列到序列学习

Hierarchical Phrase-based Sequence-to-Sequence Learning

MIT(麻省理工学院);University of Edinburgh(爱丁堡大学);University of Amsterdam(阿姆斯特丹大学)

Bailin Wang, Ivan Titov, Jacob Andreas, Yoon Kim

摘要:

我们描述了一种神经传感器,它保持了标准序列到序列(seq2seq)模型的灵活性,同时将分层短语作为训练过程中的归纳偏差源和推理过程中的明确约束。我们的方法训练了两个模型:一个基于括号转换语法的判别式解析器,其派生树分层排列源和目标短语,以及一个神经seq2seq模型,学习逐个翻译对齐的短语。我们使用相同的seq2seq模型在所有短语尺度上进行翻译,这导致两种推理模式:一种模式是丢弃解析器,仅在序列级使用seq2seq组件,另一种模式是将解析器与seq2seq模型相结合。在后一种模式下的解码是用立方体修剪CKY算法完成的,该算法涉及更多,但可以在推理过程中使用新的翻译规则。我们将我们的模型形式化为一个源条件同步文法,并开发了一个有效的变分推理算法进行训练。当应用于随机初始化和预训练的seq2seq模型时,我们发现这两种推理模式与小规模机器翻译基准测试的基线相比表现良好。

英文摘要:

We describe a neural transducer that maintains the flexibility of standard sequence-to-sequence (seq2seq) models while incorporating hierarchical phrases as a source of inductive bias during training and as explicit constraints during inference. Our approach trains two models: a discriminative parser based on a bracketing transduction grammar whose derivation tree hierarchically aligns source and target phrases, and a neural seq2seq model that learns to translate the aligned phrases one-by-one. We use the same seq2seq model to translate at all phrase scales, which results in two inference modes: one mode in which the parser is discarded and only the seq2seq component is used at the sequence-level, and another in which the parser is combined with the seq2seq model. Decoding in the latter mode is done with the cube-pruned CKY algorithm, which is more involved but can make use of new translation rules during inference. We formalize our model as a source-conditioned synchronous grammar and develop an efficient variational inference algorithm for training. When applied on top of both randomly initialized and pretrained seq2seq models, we find that both inference modes performs well compared to baselines on small scale machine translation benchmarks.

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

↑