ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Models

Abstract

Large Language Models (LLMs) with billions of parameters have drastically transformed AI applications. However, their demanding computation during inference has raised significant challenges for deployment on resource-constrained devices. Despite recent trends favoring alternative activation functions such as GELU or SiLU, known for increased computation, this study strongly advocates for reinstating ReLU activation in LLMs. We demonstrate that using the ReLU activation function has a negligible impact on convergence and performance while significantly reducing computation and weight transfer. This reduction is particularly valuable during the memory-bound inference step, where efficiency is paramount. Exploring sparsity patterns in ReLU-based LLMs, we unveil the reutilization of activated neurons for generating new tokens and leveraging these insights, we propose practical strategies to substantially reduce LLM inference computation up to three times, using ReLU activations with minimal performance trade-offs.

Cite

Text

Mirzadeh et al. "ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Models." International Conference on Learning Representations, 2024.

Markdown

[Mirzadeh et al. "ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Models." International Conference on Learning Representations, 2024.](https://mlanthology.org/iclr/2024/mirzadeh2024iclr-relu/)

BibTeX

@inproceedings{mirzadeh2024iclr-relu,
  title     = {{ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Models}},
  author    = {Mirzadeh, Seyed Iman and Alizadeh-Vahid, Keivan and Mehta, Sachin and del Mundo, Carlo C and Tuzel, Oncel and Samei, Golnoosh and Rastegari, Mohammad and Farajtabar, Mehrdad},
  booktitle = {International Conference on Learning Representations},
  year      = {2024},
  url       = {https://mlanthology.org/iclr/2024/mirzadeh2024iclr-relu/}
}