文本生成中集束搜索与穷举搜索之间的深度研究
On the Depth between Beam Search and Exhaustive Search for Text Generation
AI总结:
针对文本生成中搜索深度仅研究集束搜索和穷举搜索两个极端的问题,提出前瞻集束搜索LBS并验证深度提升的效果,进而提出计算可行的后顾启发式集束搜索,在机器翻译和摘要任务上优于普通集束搜索。
摘要:
集束搜索(Beam Search)和穷举搜索是文本解码算法在搜索深度维度上的两个极端。集束搜索在搜索宽度和深度上均受限制,而穷举搜索是一种不受此类限制的全局搜索。令人意外的是,尽管集束搜索的搜索误差更高,但它不仅计算成本更低,性能还优于穷举搜索。大量研究探究了从小到大的一系列集束宽度,发现既不太大也不太小的集束宽度是最优的。然而,在搜索深度方面,只有集束搜索和穷举搜索这两个极端得到了深入研究。本文中,我们研究了这两个极端之间的一系列搜索深度,以发现最优的搜索深度。为此,我们提出了前瞻集束搜索(Lookahead Beam Search,LBS),这是一种多步前瞻搜索,在考虑固定数量未来步长的情况下优化目标函数。集束搜索和穷举搜索都是LBS的特例,其前瞻深度分别设为$0$和$\u221e$。我们通过实验评估了LBS的性能,发现它在机器翻译任务上整体优于集束搜索。该结果表明,通过加深搜索深度,集束搜索仍有提升空间。受该分析启发,我们提出了后顾启发式集束搜索(Lookbehind Heuristic Beam Search),这是一种计算上可行的搜索算法,通过启发式方式模拟单步前瞻的LBS。实验结果表明,所提方法在机器翻译和文本摘要任务上均优于 vanilla 集束搜索。
英文摘要:
Beam search and exhaustive search are two extreme ends of text decoding algorithms with respect to the search depth. Beam search is limited in both search width and depth, whereas exhaustive search is a global search that has no such limitations. Surprisingly, beam search is not only computationally cheaper but also performs better than exhaustive search despite its higher search error. Plenty of research has investigated a range of beam widths, from small to large, and reported that a beam width that is neither too large nor too small is desirable. However, in terms of search depth, only the two extreme ends, beam search and exhaustive search are studied intensively. In this paper, we examine a range of search depths between the two extremes to discover the desirable search depth. To this end, we introduce Lookahead Beam Search (LBS), a multi-step lookahead search that optimizes the objective considering a fixed number of future steps. Beam search and exhaustive search are special cases of LBS where the lookahead depth is set to $0$ and $\infty$, respectively. We empirically evaluate the performance of LBS and find that it outperforms beam search overall on machine translation tasks. The result suggests there is room for improvement in beam search by searching deeper. Inspired by the analysis, we propose Lookbehind Heuristic Beam Search, a computationally feasible search algorithm that heuristically simulates LBS with 1-step lookahead. The empirical results show that the proposed method outperforms vanilla beam search on machine translation and text summarization tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。