跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

数学 > 数值分析

arXiv:1909.03469 (math)
[提交于 2019年9月10日]

标题:Accurate Computation of the Log-Sum-Exp and Softmax Functions

作者:Pierre Blanchard, Desmond J. Higham, Nicholas J. Higham
查看论文《Accurate Computation of the Log-Sum-Exp and Softmax Functions》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Evaluating the log-sum-exp function or the softmax function is a key step in many modern data science algorithms, notably in inference and classification. Because of the exponentials that these functions contain, the evaluation is prone to overflow and underflow, especially in low precision arithmetic. Software implementations commonly use alternative formulas that avoid overflow and reduce the chance of harmful underflow, employing a shift or another rewriting. Although mathematically equivalent, these variants behave differently in floating-point arithmetic. We give rounding error analyses of different evaluation algorithms and interpret the error bounds using condition numbers for the functions. We conclude, based on the analysis and numerical experiments, that the shifted formulas are of similar accuracy to the unshifted ones and that the shifted softmax formula is typically more accurate than a division-free variant.
主题: 数值分析 (math.NA); 数值分析 (cs.NA)
报告编号: MIMS EPrint 2019.19
引用方式: arXiv:1909.03469 [math.NA]
  (或者 arXiv:1909.03469v1 [math.NA] 对于此版本)
  https://doi.org/10.48550/arXiv.1909.03469

提交历史

来自:Desmond Higham J
[v1] 2019年9月10日 星期二 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

math
< 上一篇   |   下一篇 >
最新 | 近期 | 2019-09
切换浏览方式为:
math.NA
cs.NA

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站