arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.20369cs.CLcs.AIcs.LG
收藏

DEL:用于大语言模型数值学习的数字熵损失

DEL: Digit Entropy Loss for Numerical Learning of Large Language Models

The Hong Kong Polytechnic University(香港理工大学);VCIP, College of Computer Science, Nankai University(南开大学计算机学院VCIP)

Zhaohui Zheng, Chenhang He, Shihao Wang, Yuxuan Li, Ming-Ming Cheng, Lei Zhang

AI总结:

本文提出Digit Entropy Loss (DEL)用于大语言模型的自回归数值学习,通过重新设计传统无监督熵优化,引入数字条件概率和二元交叉熵,使熵优化转向监督方式,同时推广整数基于的数值学习到浮点数优化,从而提升数值预测的准确性。

摘要:

数字预测是大语言模型(LLMs)在数学问题解决和代码生成中的基本能力。广泛采用的最大似然估计(MLE)用于LLM训练并不适合数字预测。最近,惩罚驱动的方法,例如数字标记损失和离散化距离损失,引入了数字距离的归纳偏置,但分别导致了数字分布过度锐化和过度扁平化。在本文中,我们深入分析了LLM的数值学习,并表明现有的数值学习方法在概念上遵循一个准则-距离公式,其中准则项代表优化模式,距离项灌输几何先验。因此,我们提出了Digit Entropy Loss (DEL)用于自回归数值学习,其重新设计传统无监督熵优化的三个关键设计:利用数字条件概率和二元交叉熵将熵优化引导为监督方式;舍弃距离项以避免数值距离的问题;并将整数基于的数值学习推广到浮点数优化,使数值预测更加准确。我们的DEL公式可以结合整数、小数和小数点,将学习目标从单个数字扩展到浮点数领域。在七个数学推理基准测试中使用四个代表性的LLM,包括CodeLlama、Mistral、DeepSeek和Qwen-2.5,进行实验,结果表明DEL在整体预测准确性和数值距离方面均优于其替代方法。源代码在https://github.com/PolyU-VCLab/DEL。

英文摘要:

Number prediction stands as a fundamental capability of large language models (LLMs) in mathematical problem-solving and code generation. The widely adopted maximum likelihood estimation (MLE) for LLM training is not tailored to number prediction. Recently, penalty-driven approaches, e.g., Number Token Loss and Discretized Distance Loss, introduce an inductive bias of numerical distance but induce over-sharpened and over-flattened digit distributions, respectively. In this paper, we make an in-depth analysis on LLM numerical learning, and show that existing numerical learning methods conceptually follow a criterion-distance formulation, where the criterion term represents optimization pattern and the distance term instills geometric prior. Consequently, we present Digit Entropy Loss (DEL) for auto-regressive numerical learning, which reformulates the conventional unsupervised entropy optimization in three key designs: leveraging digit conditional probability and binary cross-entropy to guide the entropy optimization into a supervised manner; deprecating the distance term to bypass the issue of numerical distance; and generalizing the integer-based numerical learning to floating-point number optimization, enabling more accurate number prediction. Our DEL formulation can incorporate integers, decimals, and decimal points, expanding the learning objective from a single digit to the floating-point number domain. Experiments conducted on seven mathematical reasoning benchmarks with four representative LLMs, including CodeLlama, Mistral, DeepSeek, and Qwen-2.5, demonstrate that DEL consistently outperforms its counterparts in both overall prediction accuracy and numerical distance. Source codes are at https://github.com/PolyU-VCLab/DEL

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

↑