Dynamic Activation Pitfalls in LLaMA Models: An Empirical Study

Chi Ma, Mincong Huang, Chao Wang, Yujie Wang, Lei Yu
5/15/2024
cs.LG

No confident code implementation found for this paper.

Abstract

In this work, we systematically investigate the efficacy of dynamic activation mechanisms within the LLaMA family of language models. Despite the potential of dynamic activation methods to reduce computation and increase speed in models using the ReLU activation function, our empirical findings have uncovered several inherent pitfalls in the current dynamic activation schemes. Through extensive experiments across various dynamic activation strategies, we demonstrate that LLaMA models usually underperform when compared to their ReLU counterparts, particularly in scenarios demanding high sparsity ratio. We attribute these deficiencies to a combination of factors: 1) the inherent complexity of dynamically predicting activation heads and neurons; 2) the inadequate sparsity resulting from activation functions; 3) the insufficient preservation of information resulting from KV cache skipping. Our analysis not only sheds light on the limitations of dynamic activation in the context of large-scale LLaMA models but also proposes roadmaps for enhancing the design of future sparsity schemes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ma2024dynamic,
  title  = {Dynamic Activation Pitfalls in LLaMA Models: An Empirical Study},
  author = {Chi Ma and Mincong Huang and Chao Wang and Yujie Wang and Lei Yu},
  year   = {2024},
  eprint = {2405.09274},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.09274v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.09274.svg)](https://codeofpaper.com/paper/2405.09274)

Discussion