基于严格适当评分规则的语言生成
Language Generation with Strictly Proper Scoring Rules
AI总结:
本文提出一种将任意严格适当评分规则适配到语言生成的策略,用布里尔评分和球形评分替代对数评分训练模型,在不调整超参数的情况下显著提升生成能力,并可扩展到LLaMA-7B和LLaMA-13B等大型语言模型。
摘要:
基于最大似然估计(MLE)的语言生成已成为文本生成的基本方法。最大似然估计通常通过最小化对数似然损失来实现,该损失在统计决策理论中也被称为对数评分。对数评分是严格适当的,因为它鼓励诚实的预测,只有当模型报告真实概率时,期望得分才达到最大。尽管存在许多严格适当的评分规则,但对数评分是其中唯一的局部评分规则,它仅依赖于观测样本的概率,从而能够处理自然语言中指数级庞大的样本空间。在这项工作中,我们提出了一种将评分规则适应于语言生成的直接策略,使得可以使用任何非局部评分规则进行语言建模。利用这一策略,我们使用两种经典的严格适当评分规则——布里尔评分(Brier score)和球形评分(Spherical score)——作为对数评分的替代方案来训练语言生成模型。实验结果表明,仅替换损失函数而不调整其他超参数,就能显著提升模型的生成能力。此外,这些改进可以扩展到大型语言模型(LLM),如LLaMA-7B和LLaMA-13B。源代码:\url{https://github.com/shaochenze/ScoringRulesLM}。
英文摘要:
Language generation based on maximum likelihood estimation (MLE) has become the fundamental approach for text generation. Maximum likelihood estimation is typically performed by minimizing the log-likelihood loss, also known as the logarithmic score in statistical decision theory. The logarithmic score is strictly proper in the sense that it encourages honest forecasts, where the expected score is maximized only when the model reports true probabilities. Although many strictly proper scoring rules exist, the logarithmic score is the only local scoring rule among them that depends exclusively on the probability of the observed sample, making it capable of handling the exponentially large sample space of natural text. In this work, we propose a straightforward strategy for adapting scoring rules to language generation, allowing for language modeling with any non-local scoring rules. Leveraging this strategy, we train language generation models using two classic strictly proper scoring rules, the Brier score and the Spherical score, as alternatives to the logarithmic score. Experimental results indicate that simply substituting the loss function, without adjusting other hyperparameters, can yield substantial improvements in model's generation capabilities. Moreover, these improvements can scale up to large language models (LLMs) such as LLaMA-7B and LLaMA-13B. Source code: \url{https://github.com/shaochenze/ScoringRulesLM}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。