Online normalizer calculation for softmax

By Maxim Milakov, Natalia Gimelshein. 2018

201 citations recorded by the source corpus.

The Softmax function is ubiquitous in machine learning, multiple previous works suggested faster alternatives for it. In this paper we propose a way to compute classical Softmax with fewer memory accesses and hypothesize that this reduction in memory accesses should improve Softmax performance on actual hardware. The benchmarks confirm this hypothesis: Softmax accelerates by up to 1.3x and Softmax+TopK combined and fused by up to 5x.

Subfields: Artificial Intelligence, Computational Theory and Mathematics, Hardware and Architecture, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Stefano Ermon
  2. Christopher R'e
  3. Pieter Abbeel
  4. Sergey Levine
  5. Tri Dao
  6. Atri Rudra
  7. Matei A. Zaharia
  8. Percy Liang

In Computational Theory and Mathematics

  1. Matei A. Zaharia
  2. Pieter Abbeel
  3. Atri Rudra
  4. Christopher R'e
  5. Hao Liu
  6. Tri Dao
  7. Stefano Ermon
  8. Daniel Y. Fu

In Hardware and Architecture

  1. Tri Dao
  2. Christopher R'e
  3. Atri Rudra
  4. Stefano Ermon
  5. Daniel Y. Fu
  6. Matei A. Zaharia
  7. Pieter Abbeel
  8. Hao Liu

In Optimization & Training

  1. Stefano Ermon
  2. Tri Dao
  3. Christopher R'e
  4. Atri Rudra
  5. Pieter Abbeel
  6. Matei A. Zaharia
  7. Hao Liu
  8. Daniel Y. Fu

Citations in the corpus