English

Scalable MatMul-free Language Modeling

Computation and Language 2025-07-29 v7

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.

Keywords

Cite

@article{arxiv.2406.02528,
  title  = {Scalable MatMul-free Language Modeling},
  author = {Rui-Jie Zhu and Yu Zhang and Steven Abreu and Ethan Sifferman and Tyler Sheaves and Yiqiao Wang and Dustin Richmond and Sumit Bam Shrestha and Peng Zhou and Jason K. Eshraghian},
  journal= {arXiv preprint arXiv:2406.02528},
  year   = {2025}
}
R2 v1 2026-06-28T16:53:18.314Z