Built independently by an author, for readers. Read the story and support ChapterPal

keyword

low-rank decomposition

Low-rank decomposition is a mathematical technique that approximates a high-dimensional matrix or tensor by factoring it into a product of smaller, lower-rank matrices. By exploiting underlying redundancy and correlation within structured data, the method captures essential information using significantly fewer parameters and dimensions. In machine learning and numerical computation, it is widely utilized for data compression, dimensionality reduction, and accelerating deep neural networks by approximating parameter weights or activation features to reduce storage requirements and computational latency.

1 item

Compressing Transformers: Features Are Low-Rank, but Weights Are Not!

Compressing Transformers: Features Are Low-Rank, but Weights Are Not!

Hao Yu, Jianxin Wu

OrganizationsNanjing University

Why you should read this

Reveals that transformer activations are low-rank even when their weights are not, introducing an unsupervised, few-shot feature-mimicking framework that sharply reduces model parameters and increases throughput across vision and language tasks with minimal accuracy loss.

Transformer and its variants achieve excellent results in various computer vision and natural language processing tasks, but high computational costs and reliance on large training datasets restrict their deployment in resource-constrained settings. Low-rank approximation of model weights has been effective in compressing CNN models, but its application to transformers has been less explored and is less effective. Existing methods require the complete dataset to fine-tune compressed models, which are both time-consuming and data-hungry. This paper reveals that the features (i.e., activations) are low-rank, but model weights are surprisingly not low-rank. Hence, AAFM is proposed, which adaptively determines the compressed model structure and locally compresses each linear layer’s output features rather than the model weights. A second stage, GFM, optimizes the entire compressed network holistically. Both AAFM and GFM only use few training samples without labels, that is, they are few-shot, unsupervised, fast and effective. For example, with only 2K images without labels, 33% of the parameters are removed in DeiT-B with 18.8% relative throughput increase, but only a 0.23% accuracy loss for ImageNet recognition. The proposed methods are successfully applied to the language modeling task in NLP, too. Besides, the few-shot compressed models generalize well in downstream tasks.

Added

2026-09-26