arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.02164cs.CLcs.AIcs.DCcs.LGcs.PF
收藏

一种高效的批量束搜索流方法

A Streaming Approach For Efficient Batched Beam Search

UC Berkeley(加州大学伯克利分校)

Kevin Yang, Violet Yao, John DeNero, Dan Klein

摘要:

我们提出了一种有效的可变长度解码的GPU架构上的并行处理策略。在解码过程中,当候选项终止或根据算法被修剪时,我们的流方法在继续进行所选的候选项子集之前定期地“重新填充”批次。我们将我们的方法应用于最先进的机器翻译模型上的可变宽度束搜索。与固定宽度的束搜索基线相比,我们的方法将运行时间减少了71%,与可变宽度基线相比减少了17%,同时匹配基线的BLEU。最后,实验表明,我们的方法可以加快解码在其他领域,如语义和句法分析。

英文摘要:

We propose an efficient batching strategy for variable-length decoding on GPU architectures. During decoding, when candidates terminate or are pruned according to heuristics, our streaming approach periodically "refills" the batch before proceeding with a selected subset of candidates. We apply our method to variable-width beam search on a state-of-the-art machine translation model. Our method decreases runtime by up to 71% compared to a fixed-width beam search baseline and 17% compared to a variable-width baseline, while matching baselines' BLEU. Finally, experiments show that our method can speed up decoding in other domains, such as semantic and syntactic parsing.

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

↑