Pixelated Butterfly: Simple and Efficient Sparse training for Neural Network Models
Preprint
Abstract
Overparameterized neural networks generalize well but are expensive to train. Ideally, one would like to reduce their computational cost while retaining their generalization benefits. Sparse model training is a simple and promising approach to achieve this, but there remain challenges as existing methods struggle with accuracy loss, slow training runtime, or difficulty in sparsifying all model components. The core problem is that searching for a sparsity mask over a discrete set of sparse matrices is difficult and expensive. To address this, our main insight is to optimize over a continuous superset of sparse matrices with a fixed structure known as products of butterfly matrices. As butterfly matrices are not hardware efficient, we propose simple variants of butterfly (block and flat) to take advantage of modern hardware. Our method (Pixelated Butterfly) uses a simple fixed sparsity pattern based on flat block butterfly and low-rank matrices to sparsify most network layers (e.g., attention, MLP). We empirically validate that Pixelated Butterfly is 3x faster than butterfly and speeds up training to achieve favorable accuracy--efficiency tradeoffs. On the ImageNet classification and WikiText-103 language modeling tasks, our sparse models train up to 2.5x faster than the dense MLP-Mixer, Vision Transformer, and GPT-2 medium with no drop in accuracy.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- Scaling Vision Transformers2022
- Deep double descent: where bigger models and more data hurt*Journal of Statistical Mechanics: Theory and Experiment, 2021
- Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet2021
- Highly accurate protein structure prediction with AlphaFoldNature, 2021
- CPM: A large-scale generative Chinese Pre-trained language modelAI Open, 2021
- Toward Moderate Overparameterization: Global Convergence Guarantees for Training Shallow Neural NetworksIEEE Journal on Selected Areas in Information Theory, 2020
- Reconciling modern machine-learning practice and the classical bias–variance trade-offProceedings of the National Academy of Sciences of the United States of America, 2019
- Perturbed Identity Matrices Have High Rank: Proof and ApplicationsCombinatorics, Probability and Computing, 2009
- The Penn Treebank: An Overview2003
- The diagonal decomposition technique applied to the dynamic programming solution of elliptic partial differential equationsJournal of Mathematical Analysis and Applications, 1971