Recording some materials about LLM.
[Arxiv 2024] Turbo Sparse: Achieving LLM SOTA Performance with Minimal Activated Parameters. Simply replacing these functions with ReLU fails to achieve sufficient sparsity. Moreover, inadequate training data can further increase the risk of performance degradation. To address these challenges, this work proposes a novel dReLU function (add relu to both gate and up modules rather than original only gate module in ffn), which is designed to improve LLM activation sparsity, along with a high-quality training data mixture ratio to facilitate effective sparsification. Code
[Arxiv 2024] ReLU2 Wins: Discovering Efficient Activation Functions for Sparse LLMs. Introducing a general method that defines neuron activation through neuron output magnitudes and a tailored magnitude threshold, demonstrating that non-ReLU LLMs also exhibit sparse activation. To find the most efficient activation function for sparse computation, proposing a systematic framework to examine the sparsity of LLMs from three aspects: the trade-off between sparsity and performance, the predictivity of sparsity, and the hardware affinity.
[Arxiv 2024] ProSparse: Introducing and Enhancing Intrinsic Activation Sparsity within Large Language Models. This paper introduces an effective sparsification method named "ProSparse" to push LLMs for higher activation sparsity without decreasing model performance. Specifically, after substituting the activation function of LLMs with ReLU, ProSparse adopts progressive sparsity regularization with a factor smoothly increasing along sine curves in multiple stages. ProSparse obtain high sparsity of 89.32% and 88.80% for LLaMA2-7B and LLaMA2-13B, respectively, achieving comparable performance to their original Swish-activated versions. Code1 Code2
[Arxiv 2024] CATS: Contextually-Aware Thresholding for Sparsity in Large Language Models. Introducing a new framework for sparsifying the activations of base LLMs and reducing inference costs, dubbed Contextually Aware Thresholding for Sparsity(CATS). Mainly setting threshold for non-relu activation function to obtain sparsity.
[Arxiv 2024] HiRE: High Recall Approximate Top-k Estimation for Efficient LLM Inference. To improve the sparsity prediction, HiRE use a compression scheme to cheaply predict top-k rows/columns with high recall, followed by full computation restricted to the predicted subset.
[Arxiv 2024] SADMoE: Exploiting Activation Sparsity with Dynamic-k Gating. Proposing a more effective dynamic-k expert selection rule that adjusts the number of executed experts on a per-token basis, while normal moe use fix-k expert selection for all tokens. Code
[Arxiv 2023] Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Time. DEJAVU uses a low-cost algorithm to predict contextual sparsity on the fly given inputs to each layer, along with an asynchronous and hardwareaware implementation that speeds up LLM inference. Code
[Arxiv 2023] PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU. Major neurons in weigt matrix of LLM are cold. PowerInfer exploits such an insight to design a GPU-CPU hybrid inference engine: hot-activated neurons are preloaded onto the GPU for fast access, while cold-activated neurons are computed on the CPU, thus significantly reducing GPU memory demands and CPU-GPU data transfers. Code
[Arxiv 2023] LLM in a flash: Efficient Large Language Model Inference with Limited Memory. Reducing offloading parameter number by considering the activation sparsity in FFN module.
[Arxiv 2023] ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Models. ReLU activation function has a negligible impact on convergence and performance while significantly reducing computation and weight transfer when comparing with other activation functions, such as GELU, SiLU.
[Arxiv 2022] The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformers. Studying the curious phenomenon for machine learning models with Transformer architectures that their activation maps are sparse.
[Arxiv 2024] The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bits. Introduce a 1-bit LLM variant, namely BitNet b1.58, in which every single parameter (or weight) of the LLM is ternary {-1, 0, 1}.
[Arxiv 2023] BitNet: Scaling 1-bit Transformers for Large Language Models. Introduce BitLinear as a drop-in replacement of the nn.Linear layer in order to train 1-bit weights (-1 or 1) from scratch.
17 commits
Recording some materials about LLM.
[Arxiv 2024] Turbo Sparse: Achieving LLM SOTA Performance with Minimal Activated Parameters. Simply replacing these functions with ReLU fails to achieve sufficient sparsity. Moreover, inadequate training data can further increase the risk of performance degradation. To address these challenges, this work proposes a novel dReLU function (add relu to both gate and up modules rather than original only gate module in ffn), which is designed to improve LLM activation sparsity, along with a high-quality training data mixture ratio to facilitate effective sparsification. Code
[Arxiv 2024] ReLU2 Wins: Discovering Efficient Activation Functions for Sparse LLMs. Introducing a general method that defines neuron activation through neuron output magnitudes and a tailored magnitude threshold, demonstrating that non-ReLU LLMs also exhibit sparse activation. To find the most efficient activation function for sparse computation, proposing a systematic framework to examine the sparsity of LLMs from three aspects: the trade-off between sparsity and performance, the predictivity of sparsity, and the hardware affinity.
[Arxiv 2024] ProSparse: Introducing and Enhancing Intrinsic Activation Sparsity within Large Language Models. This paper introduces an effective sparsification method named "ProSparse" to push LLMs for higher activation sparsity without decreasing model performance. Specifically, after substituting the activation function of LLMs with ReLU, ProSparse adopts progressive sparsity regularization with a factor smoothly increasing along sine curves in multiple stages. ProSparse obtain high sparsity of 89.32% and 88.80% for LLaMA2-7B and LLaMA2-13B, respectively, achieving comparable performance to their original Swish-activated versions. Code1 Code2
[Arxiv 2024] CATS: Contextually-Aware Thresholding for Sparsity in Large Language Models. Introducing a new framework for sparsifying the activations of base LLMs and reducing inference costs, dubbed Contextually Aware Thresholding for Sparsity(CATS). Mainly setting threshold for non-relu activation function to obtain sparsity.
[Arxiv 2024] HiRE: High Recall Approximate Top-k Estimation for Efficient LLM Inference. To improve the sparsity prediction, HiRE use a compression scheme to cheaply predict top-k rows/columns with high recall, followed by full computation restricted to the predicted subset.
[Arxiv 2024] SADMoE: Exploiting Activation Sparsity with Dynamic-k Gating. Proposing a more effective dynamic-k expert selection rule that adjusts the number of executed experts on a per-token basis, while normal moe use fix-k expert selection for all tokens. Code
[Arxiv 2023] Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Time. DEJAVU uses a low-cost algorithm to predict contextual sparsity on the fly given inputs to each layer, along with an asynchronous and hardwareaware implementation that speeds up LLM inference. Code
[Arxiv 2023] PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU. Major neurons in weigt matrix of LLM are cold. PowerInfer exploits such an insight to design a GPU-CPU hybrid inference engine: hot-activated neurons are preloaded onto the GPU for fast access, while cold-activated neurons are computed on the CPU, thus significantly reducing GPU memory demands and CPU-GPU data transfers. Code
[Arxiv 2023] LLM in a flash: Efficient Large Language Model Inference with Limited Memory. Reducing offloading parameter number by considering the activation sparsity in FFN module.
[Arxiv 2023] ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Models. ReLU activation function has a negligible impact on convergence and performance while significantly reducing computation and weight transfer when comparing with other activation functions, such as GELU, SiLU.
[Arxiv 2022] The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformers. Studying the curious phenomenon for machine learning models with Transformer architectures that their activation maps are sparse.
[Arxiv 2024] The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bits. Introduce a 1-bit LLM variant, namely BitNet b1.58, in which every single parameter (or weight) of the LLM is ternary {-1, 0, 1}.
[Arxiv 2023] BitNet: Scaling 1-bit Transformers for Large Language Models. Introduce BitLinear as a drop-in replacement of the nn.Linear layer in order to train 1-bit weights (-1 or 1) from scratch.
17 commits