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

用于更快最小贝叶斯风险解码的无超参数方法

Hyperparameter-Free Approach for Faster Minimum Bayes Risk Decoding

CyberAgent(赛博agent(CyberAgent))

Yuu Jinnai, Kaito Ariu

AI总结:

针对MBR解码计算昂贵且CBP依赖超参数调优的问题,本文提出无超参数的AMBR,利用CSH近似求解medoid识别,并在三类生成任务上达到与Oracle调参CBP相当的效果。

摘要:

最小贝叶斯风险(Minimum Bayes-Risk,MBR)解码已被证明是束搜索解码在广泛文本生成任务中的一种强有力替代方案。然而,MBR需要大量推理时间来计算MBR目标,这使得该方法在许多响应时间至关重要的场景中不可行。基于置信度的剪枝(Confidence-based Pruning,CBP)(Cheng和Vlachos,2023)最近被提出,用于减少机器翻译任务中的推理时间。尽管它已被证明能显著减少计算量,但要取得良好效果,仍需使用开发集进行超参数调优。为此,我们提出近似最小贝叶斯风险(Approximate Minimum Bayes-Risk,AMBR)解码,这是一种无需超参数即可近似运行MBR解码的方法。AMBR源于如下观察:计算基于样本的MBR目标这一问题就是medoid识别问题。AMBR使用Correlated Sequential Halving(CSH)算法(Baharav和Tse,2019)来计算基于样本的MBR目标,该算法是迄今为止用于medoid识别问题的最佳近似算法。我们在机器翻译、文本摘要和图像描述任务上评估了AMBR。结果表明,AMBR取得了与CBP相当的性能,而CBP是在每个给定计算预算下通过Oracle选择超参数的。

英文摘要:

Minimum Bayes-Risk (MBR) decoding is shown to be a powerful alternative to beam search decoding for a wide range of text generation tasks. However, MBR requires a huge amount of time for inference to compute the MBR objective, which makes the method infeasible in many situations where response time is critical. Confidence-based pruning (CBP) (Cheng and Vlachos, 2023) has recently been proposed to reduce the inference time in machine translation tasks. Although it is shown to significantly reduce the amount of computation, it requires hyperparameter tuning using a development set to be effective. To this end, we propose Approximate Minimum Bayes-Risk (AMBR) decoding, a hyperparameter-free method to run MBR decoding approximately. AMBR is derived from the observation that the problem of computing the sample-based MBR objective is the medoid identification problem. AMBR uses the Correlated Sequential Halving (CSH) algorithm (Baharav and Tse, 2019), the best approximation algorithm to date for the medoid identification problem, to compute the sample-based MBR objective. We evaluate AMBR on machine translation, text summarization, and image captioning tasks. The results show that AMBR achieves on par with CBP, with CBP selecting hyperparameters through an Oracle for each given computation budget.

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

↑