HackerPapers

arXiv:2305.17190cs.LG

Multiplication-Free Transformer Training via Piecewise Affine Operations

Atli Kosson, Martin Jaggi

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

Multiplications are responsible for most of the computational cost involved in neural network training and inference. Recent research has thus looked for ways to reduce the cost associated with them. Inspired by Mogami (2020), we replace multiplication with a cheap piecewise affine approximation that is achieved by adding the bit representation of the floating point numbers together as integers. We show that transformers can be trained with the resulting modified matrix multiplications on both vision and language tasks with little to no performance impact, and without changes to the training hyperparameters. We further replace all non-linearities in the networks making them fully and jointly piecewise affine in both inputs and weights. Finally, we show that we can eliminate all multiplications in the entire training process, including operations in the forward pass, backward pass and optimizer update, demonstrating the first successful training of modern neural network architectures in a fully multiplication-free fashion.

arXiv comments
Accepted to the 37th Conference on Neural Information Processing Systems (NeurIPS 2023)
Journal reference
DOI
Subjects
cs.LGMachine Learning

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Jun 2024 to Jun 2024.

Comments linking this paper, per year.

Discussed in comments1 thread

    • There was another matmul-free language model paper released a year ago FYI: https://arxiv.org/abs/2305.17190

      jph00View on HNParent context

Submitted to Hacker News

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