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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Language Modeling | WikiText-2 | Perplexity (PPL)6.06 | 2320 | |
| Image Classification | ImageNet-1K 1 (val) | Top-1 Accuracy86.22 | 149 | |
| Image Classification | iNaturalist 2019 | Top-1 Acc77.69 | 122 | |
| Language Modeling | C4 | Perplexity8.1 | 72 | |
| Image Classification | Pets | Top-1 Accuracy94.52 | 52 | |
| Multiple-Choice Classification | OpenBookQA ARC-Easy WinoGrande HellaSwag PIQA MathQA | Accuracy (OpenBookQA)33 | 11 | |
| Question Answering | TruthfulQA | BLEU Score46 | 10 |