Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Learning Fine-grained Parameter Sharing via Sparse Tensor Decomposition

About

Large neural networks achieve state-of-the-art performance on many tasks, yet their sheer size hinders deployment on resource-constrained devices. Among existing compression approaches, cross-layer parameter sharing remains relatively unexplored for transformer models. In this paper, we introduce Fine-grained Parameter Sharing (FiPS), a unified framework for compressing transformer Multi-Layer Perceptrons (MLPs) that combines cross-block parameter sharing, low-rank factorization, and sparsity in a single optimization. FiPS concatenates MLP weight matrices across a group of transformer blocks and factorizes them into a shared basis and sparse, layer-specific projection matrices. Both factors are initialized via singular value decomposition (SVD) and jointly optimized by block-wise reconstruction error minimization. FiPS compresses Vision Transformers (ViTs) by up to 33% with less than 1% top-1 accuracy loss on ImageNet-1k, and by up to 57% when combined with fine-tuning. It also compresses Large Language Models (LLMs) by up to 20% while outperforming existing SVD-based methods in perplexity and downstream benchmarks at matched compression. Combined with Quantization-Aware Training (QAT), 3-bit FiPS on Gemma-2-2B achieves lower perplexity than 2-bit QAT alone while matching the same 8x compression. These results establish fine-grained parameter sharing as a practical and effective approach for transformer MLP compression.

Cem \"Uy\"uk, Mike Lasby, Mohamed Yassin, Utku Evci, Yani Ioannou• 2024

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-2
Perplexity (PPL)6.06
2320
Image ClassificationImageNet-1K 1 (val)
Top-1 Accuracy86.22
149
Image ClassificationiNaturalist 2019
Top-1 Acc77.69
122
Language ModelingC4
Perplexity8.1
72
Image ClassificationPets
Top-1 Accuracy94.52
52
Multiple-Choice ClassificationOpenBookQA ARC-Easy WinoGrande HellaSwag PIQA MathQA
Accuracy (OpenBookQA)33
11
Question AnsweringTruthfulQA
BLEU Score46
10
Showing 7 of 7 rows

Other info

Follow for update