Scalable MatMul-free Language Modeling
2024/06/04 by Rui-Jie Zhu, Ruijie Zhu, Yu Zhang +19 · 14 voices · 2 citations
Computer Science · #Model-Driven Software Engineering Techniques
paper · pdf · doi:10.48550/arxiv.2406.02528
Abstract
Large Language Models (LLMs) have fundamentally altered how we approach scaling in machine learning. However, these models pose substantial computational and memory challenges, primarily due to the reliance on matrix multiplication (MatMul) within their attention and feed-forward (FFN) layers. We demonstrate that MatMul operations can be eliminated from LLMs while maintaining strong performance, even at billion-parameter scales. Our MatMul-free models, tested on models up to 2.7B parameters, are comparable to state-of-the-art pre-trained Transformers, and the performance gap narrows as model size increases. Our approach yields significant memory savings: a GPU-efficient implementation reduces memory consumption by up to 61% during training and over 10x during inference. When adapted for a multi-chip neuromorphic system, the model leverages asynchronous processing to achieve 4x higher throughput with 10x less energy than edge GPUs.
Cited by
Discussions
- Scalable MatMul-Free Language Modeling [hn, 205 points, 30 comments]
- LLM ASICs on USB sticks? [lemmy, 21 points, 14 comments]
- [Paper] LLM ASICs on USB sticks? [lemmy, 17 points, 1 comments]
- arxiv.org/abs/2406.02528 Feels momentous? Very cool, though I shudder at how much Despicable Me inspired nomenclature we might experience. [bsky, 7 points, 1 comments]
- Matritzenmultiplikation (MatMul) ist DIE basale Operation moderner KI und Treiber der explodierten Börsenbewertung von NVIDIA. "Scalable MatMul-free Language Modeling" verzichtet nun vollständig auf d [bsky, 3 points, 1 comments]
- Scalable MatMul-Free Language Modeling [hn, 3 points, 0 comments]
- Scalable MatMul-Free Language Modeling [hn, 3 points, 0 comments]
- keep coming back to "Scalable MatMul-free Language Modeling" arxiv.org/abs/2406.02528 full of fun ideas! am slowly mapping my FPGA audio rate cached casual dilated convolutions network to operate usi [bsky, 3 points, 1 comments]
- Scalable MatMul-free Language Modeling [lobsters, 3 points, 0 comments]
- Another ternary 1-bit LLM paper, this one they scaled up to a couple of billion parameters and implemented on FPGA and saw high performance. If this turns out to be the future, H100s gonna be cheap an [bsky, 2 points, 0 comments]
- arxiv.org/abs/2406.02528 これ面白そう 時間があったら読みたい(読まないだろうなあ [bsky, 1 points, 0 comments]
- Here's another example, trying to create roughly as high a quality output while vastly reducing computational complexity by removing matrix multiplication from the equation, at least for the most part [bsky, 1 points, 1 comments]
- Scalable MatMul-Free Language Modeling (arxiv.org) Main Link | Discussion [bsky, 0 points, 0 comments]
- arxiv.org/abs/2406.02528 [bsky, 0 points, 0 comments]
Related