语言模型解码即直接指标优化
Language Model Decoding as Direct Metrics Optimization
AI总结:
本文将语言模型解码构建为多指标优化问题,通过序列级能量函数缩放模型分布获得解析解,并利用Sampling-Importance-Resampling技术实现可处理采样,实验证明该方法在多领域和模型规模上均优于强基线。
摘要:
尽管语言建模取得了显著进展,当前主流解码方法仍难以在不同方面生成与人类文本对齐的文本。具体而言,基于采样的方法生成的文本重复性较低,但在话语上往往缺乏连贯性,而基于搜索的方法以增加重复性为代价维持主题连贯性。总体而言,这些方法在实现跨多方面的整体对齐方面存在不足。在本工作中,我们将语言模型解码构建为一个优化问题,目标是在多个期望方面的指标下,将预期性能与人类文本严格匹配。由此产生的解码分布具有解析解,该解析解通过由这些指标定义的序列级能量函数对输入语言模型分布进行缩放。最重要的是,我们证明该诱导分布能够改善人类文本的困惑度,这表明它更好地近似了人类文本的潜在分布。为了便于从这一全局归一化分布中进行可处理的采样,我们采用了Sampling-Importance-Resampling技术。在多个领域和模型规模上的实验表明,我们的方法在指标对齐和人类评估方面均优于强基线。
英文摘要:
Despite the remarkable advances in language modeling, current mainstream decoding methods still struggle to generate texts that align with human texts across different aspects. In particular, sampling-based methods produce less-repetitive texts which are often disjunctive in discourse, while search-based methods maintain topic coherence at the cost of increased repetition. Overall, these methods fall short in achieving holistic alignment across a broad range of aspects. In this work, we frame decoding from a language model as an optimization problem with the goal of strictly matching the expected performance with human texts measured by multiple metrics of desired aspects simultaneously. The resulting decoding distribution enjoys an analytical solution that scales the input language model distribution via a sequence-level energy function defined by these metrics. And most importantly, we prove that this induced distribution is guaranteed to improve the perplexity on human texts, which suggests a better approximation to the underlying distribution of human texts. To facilitate tractable sampling from this globally normalized distribution, we adopt the Sampling-Importance-Resampling technique. Experiments on various domains and model scales demonstrate the superiority of our method in metrics alignment with human texts and human evaluation over strong baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。