paper-with-me

홈 › Papers

Exploring the Benefit of Activation Sparsity in Pre-training

2024-10-04 · Zhengyan Zhang, Chaojun Xiao, Qiujieli Qin, Yankai Lin, Zhiyuan Zeng, Xu Han, Zhiyuan Liu, Ruobing Xie, Maosong Sun, Jie zhou

Pre-trained Transformers inherently possess the characteristic of sparse activation, where only a small fraction of the neurons are activated for each token. While sparse activation has been explored through post-training methods, its potential in pre-training remains untapped. In this work, we first study how activation properties change during pre-training. Our examination reveals that Transformers exhibit sparse activation throughout the majority of the pre-training process while the activation correlation keeps evolving as training progresses. Leveraging this observation, we propose Switchable Sparse-Dense Learning (SSD). SSD adaptively switches between the Mixtures-of-Experts (MoE) based sparse training and the conventional dense training during the pre-training process, leveraging the efficiency of sparse training and avoiding the static activation correlation of sparse training. Compared to dense training, SSD achieves comparable performance with identical model size and reduces pre-training costs. Moreover, the models trained with SSD can be directly used as MoE models for sparse inference and achieve the same performance as dense models with up to $2\times$ faster inference speed. Codes are available at https://github.com/thunlp/moefication.

📄 PDF Abstract BibTeX arXiv:2410.03440

Code (1)

thunlp/moefication 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

1x1 Convolution A 1 x 1 Convolution is a convolution with some special properties in that it can be used for dimensionality reduction,…
Non Maximum Suppression Non Maximum Suppression is a computer vision method that selects a single entity out of many overlapping entities (for example bounding boxes in object detection). The…
MoE 설명 없음
Convolution A convolution is a type of matrix operation, consisting of a kernel, a small matrix of weights, that slides over input data performing element-wise multiplication with the…
SSD SSD is a single-stage object detection method that discretizes the output space of bounding boxes into a set of default boxes over different aspect ratios and scales per…

Similar Papers 제목 키워드 기반

Sparsing Law: Towards Large Language Models with Greater Activation Sparsity

2024-11-04 · Yuqi Luo, Chenyang Song, Xu Han, Yingfa Chen 외

Activation sparsity denotes the existence of substantial weakly-contributed elements within activation outputs that can be eliminated, benefiting many important applications concerned with large language models (LLMs). A…

Bug or Feature$^2$: Weight Drift, Activation Sparsity and Spikes

2026-05-17 · Egor Shvetsov, Aleksandr Serkov, Shokorov Viacheslav, Redko Dmitry 외 arxiv

The design of modern neural architectures has converged through incremental empirical choices, yet the mechanisms governing their training dynamics remain only partially understood. We identify and analyze a negative wei…

Two Sparsities Are Better Than One: Unlocking the Performance Benefits of Sparse-Sparse Networks

2021-12-27 · Kevin Lee Hunter, Lawrence Spracklen, Subutai Ahmad

In principle, sparse neural networks should be significantly more efficient than traditional dense networks. Neurons in the brain exhibit two types of sparsity; they are sparsely interconnected and sparsely active. These…

Sparseout: Controlling Sparsity in Deep Networks

2019-04-17 · Najeeb Khan, Ian Stavness

Dropout is commonly used to help reduce overfitting in deep neural networks. Sparsity is a potentially important property of neural networks, but is not explicitly controlled by Dropout-based regularization. In this work…

General Classificationimage-classificationImage ClassificationLanguage Modelling

Accelerating Deep Neural Networks via Semi-Structured Activation Sparsity

2023-09-12 · Matteo Grimaldi, Darshan C. Ganji, Ivan Lazarevich, Sudhakar Sah

The demand for efficient processing of deep neural networks (DNNs) on embedded devices is a significant challenge limiting their deployment. Exploiting sparsity in the network's feature maps is one of the ways to reduce …

image-classificationImage Classificationobject-detectionObject Detection