paper-with-me

Papers

Revisiting BFloat16 Training

2020-10-13 · Pedram Zamirai, Jian Zhang, Christopher R. Aberger, Christopher De Sa

State-of-the-art generic low-precision training algorithms use a mix of 16-bit and 32-bit precision, creating the folklore that 16-bit hardware compute units alone are not enough to maximize model accuracy. As a result, deep learning accelerators are forced to support both 16-bit and 32-bit floating-point units (FPUs), which is more costly than only using 16-bit FPUs for hardware design. We ask: can we train deep learning models only with 16-bit floating-point units, while still matching the model accuracy attained by 32-bit training? Towards this end, we study 16-bit-FPU training on the widely adopted BFloat16 unit. While these units conventionally use nearest rounding to cast output to 16-bit precision, we show that nearest rounding for model weight updates often cancels small updates, which degrades the convergence and model accuracy. Motivated by this, we study two simple techniques well-established in numerical analysis, stochastic rounding and Kahan summation, to remedy the model accuracy degradation in 16-bit-FPU training. We demonstrate that these two techniques can enable up to 7% absolute validation accuracy gain in 16-bit-FPU training. This leads to 0.1% lower to 0.2% higher validation accuracy compared to 32-bit training across seven deep learning applications.

📄 PDF Abstract BibTeX arXiv:2010.06192

Code (1)

eole-nlp/eole pytorch

Tasks

Deep Learning

Similar Papers 제목 키워드 기반

A Study of BFLOAT16 for Deep Learning Training

2019-05-29 · Dhiraj Kalamkar, Dheevatsa Mudigere, Naveen Mellempudi, Dipankar Das 외

This paper presents the first comprehensive empirical study demonstrating the efficacy of the Brain Floating Point (BFLOAT16) half-precision format for Deep Learning training across image classification, speech recogniti…

Deep Learningimage-classificationImage ClassificationLanguage Modeling+4

When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Training

2024-11-20 · Haonan Wang, Qian Liu, Chao Du, Tongyao Zhu 외

Extending context window sizes allows large language models (LLMs) to process longer sequences and handle more complex tasks. Rotary Positional Embedding (RoPE) has become the de facto standard due to its relative positi…

Computational EfficiencyPosition

Revisiting BFfloat16 Training

2021-01-01 · Pedram Zamirai, Jian Zhang, Christopher R Aberger, Christopher De Sa

State-of-the-art generic low-precision training algorithms use a mix of 16-bit and 32-bit precision, creating the folklore that 16-bit precision alone is not enough to maximize model accuracy. As a result, deep learning …

The Effects of Approximate Multiplication on Convolutional Neural Networks

2020-07-20 · Min Soo Kim, Alberto A. Del Barrio, HyunJin Kim, Nader Bagherzadeh

This paper analyzes the effects of approximate multiplication when performing inferences on deep convolutional neural networks (CNNs). The approximate multiplication can reduce the cost of the underlying circuits so that…

Compressed Real Numbers for AI: a case-study using a RISC-V CPU

2023-09-11 · Federico Rossi, Marco Cococcioni, Roger Ferrer Ibàñez, Jesùs Labarta 외

As recently demonstrated, Deep Neural Networks (DNN), usually trained using single precision IEEE 754 floating point numbers (binary32), can also work using lower precision. Therefore, 16-bit and 8-bit compressed format …

CPU