我们提出熵自适应解码(EAD),这是一种用于高效语言模型推理的新方法,它基于预测不确定性在不同大小的模型之间动态切换。通过监测模型logit分布中的滚动熵,我们的方法识别出较小模型足够处理的文本区域,仅当预测不确定性超过阈值时才切换到较大模型。与通过验证保持完美输出保真度的推测解码方法不同,EAD接受可控的输出差异以换取计算效率。我们在MATH基准上的实验表明,不同模型家族均获得显著效率提升。使用LLaMA家族时,我们保持11B模型96.7%的性能(50.4% vs 52.1%),同时仅用其处理43%的token,计算成本降低41.5%。在Qwen家族中,模型大小差异更大时收益更明显:我们实现14B模型92.9%的性能(74.3% vs 80.0%),仅用其处理25%的token,计算成本降低67%。跨模型对的结果一致性表明,通过根据局部生成复杂度选择性部署模型容量,语言模型计算可显著优化。我们的研究结果表明,当前模型推理方法在追求完美输出保真度方面可能过于保守,接受轻微性能权衡可大幅降低计算成本。
英文摘要:
We present Entropy Adaptive Decoding (EAD), a novel approach for efficient language model inference that dynamically switches between different-sized models based on prediction uncertainty. By monitoring rolling entropy in model logit distributions, our method identifies text regions where a smaller model suffices and switches to a larger model only when prediction uncertainty exceeds a threshold. Unlike speculative decoding approaches that maintain perfect output fidelity through verification, EAD accepts controlled output divergence in exchange for computational efficiency. Our experiments on the MATH benchmark demonstrate remarkable efficiency gains across different model families. Using the LLaMA family, we maintain 96.7\% of the 11B model's performance (50.4\% vs 52.1\%) while using it for only 43\% of tokens, decreasing computational cost by 41.5\%. These gains become more pronounced with larger size differentials in the Qwen family, where we achieve 92.9\% of the 14B model's performance (74.3\% vs 80.0\%) while using it for just 25\% of tokens, decreasing computational cost by 67\%. The consistency of these results across model pairs suggests that language model computation can be significantly optimized by selectively deploying model capacity based on local generation complexity. Our findings indicate that current approaches to model inference may be unnecessarily conservative in their pursuit of perfect output fidelity, and that accepting minor performance trade-offs can enable dramatic reductions in computational costs.
Department of XXX, University of YYY, Location, Country(XXX系,YYY大学,地点,国家);School of ZZZ, Institute of WWW, Location, Country(ZZZ学院,WWW研究所,地点,国家);JP Morgan AI Research, London, UK(摩根大通AI研究,伦敦,英国);JP Morgan AI Research, New York, USA(摩根大通AI研究,纽约,美国)
Restoring Exploration after Post-Training: Latent Exploration Decoding for Large Reasoning Models
Gaoling School of Artificial Intelligence, Renmin University of China, Beijing, China(中国人民大学北京校区人工智能学院);MiLM Plus, Xiaomi Inc., Beijing, China(小米公司北京MiLM Plus团队);University of Modena and Reggio Emilia(莫德纳和雷吉奥艾米莉亚大学);University of Pisa, Italy(比萨大学)
When Should LLMs Reason? Adaptive Inference Routing via Entropy Dynamics
Samsung Research(三星研究院);State Key Laboratory of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(通用人工智能国家重点实验室,北京理工大学)
Entropy-Regularized Reinforcement Learning for Linear-Quadratic Stackelberg Differential Games in Regime-Switching Diffusion Models
School of Mathematics and Statistics, Anhui Normal University(安徽师范大学数学与统计学学院);School of Statistics, Key Laboratory of Advanced Theory and Application in Statistics and Data Science-MOE, Faculty of Economics and Management, East China Normal University(东华大学统计学院);School of Mathematics, Southeast University(东南大学数学学院)
R-Stitch: Dynamic Trajectory Stitching for Efficient Reasoning
Monash University, Australia(墨尔本大学,澳大利亚);School of Software, Beihang University, China(北航软件学院,中国);South China University of Technology, China(华南理工大学,中国);ZIP Lab, Zhejiang University, China(浙江大学ZIP实验室,中国)
Confidence-Based Decoding is Provably Efficient for Diffusion Language Models
Department of Industrial and Operations Engineering, University of Michigan(工业与运营工程系,密歇根大学);Department of Statistics and Data Science, The Chinese University of Hong Kong(统计与数据科学系,香港中文大学)
Entropy Regularized Reinforcement Learning for Zero-Sum Stochastic Differential Games in a Regime-Switching Jump-Diffusion Process
School of Mathematics and Statistics(数学与统计学学院);Department of Actuarial Studies and Business Analytics(精算学与商业分析系);School of Statistics, KLATASDS-MOE, China Inclusive Ageing Finance Research Center(统计学学院,KLATASDS-MOE,中国包容性老龄化金融研究中心);East China Normal University(华东师范大学)
Decoding Rewards in Competitive Games: Inverse Game Theory with Entropy Regularization
Department of Electrical and Computer Engineering, Duke University(杜克大学电气与计算机工程系);Department of Statistics and Data Science, University of Pennsylvania(宾夕法尼亚大学统计与数据科学系);Department of Biostatistics and Bioinformatics, Duke University(杜克大学生物统计与生物信息学系);Department of Statistics and Data Science, Yale University(耶鲁大学统计与数据科学系)