HackerPapers

arXiv:2012.03458cs.LG

Deep Neural Network Training without Multiplications

Tsuguo Mogami

Abstract

Is multiplication really necessary for deep neural networks? Here we propose just adding two IEEE754 floating-point numbers with an integer-add instruction in place of a floating-point multiplication instruction. We show that ResNet can be trained using this operation with competitive classification accuracy. Our proposal did not require any methods to solve instability and decrease in accuracy, which is common in low-precision training. In some settings, we may obtain equal accuracy to the baseline FP32 result. This method will enable eliminating the multiplications in deep neural-network training and inference.

arXiv comments
6 pages, 1 figure, accepted as a workshop paper at NeurIPS2020
Journal reference
DOI
Subjects
cs.LGMachine Learning

On Hacker News

Linked by 2 identifiable commenters in 2 comments across 2 threads, from Sep 2021 to May 2024.

Comments linking this paper, per year.

Discussed in comments2 threads

  1. Reproducing GPT-2 in llm.c 1 comment
    • There's work on replacing multiplication. Here's four examples: https://openaccess.thecvf.com/content_CVPR_2020/papers/Chen_... https://arxiv.org/abs/2012.03458 https://openaccess.thecvf.com/content/CVPR2021W/MAI/papers/E... https://arxiv.org/pdf/2106.10860

      nickpsecurityView on HNParent context

    • There's been some work on doing adds instead of multiplies (e.g., https://arxiv.org/abs/2012.03458). And I think float8 will roughly be doing this under the hood. Personally, I'm not sure whether this is the path to go down or not. Doing everything in log space could help from a…

      ffast-mathView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.