TL;DR
This paper introduces a novel method to reveal the "utilized rank" of neural network layers, showing that most networks use only a fraction of their available weight space. By projecting weights onto data-relevant subspaces, they demonstrate significant parameter and FLOP reduction with minimal accuracy loss, suggesting current large models are often overparameterized.
What Problem Does This Paper Address?
The capacity of neural networks is often thought of as simply the number of parameters. However, this doesn't capture how effectively those parameters are used in conjunction with the data. Most learned weight matrices appear "full rank," making traditional low-rank decomposition difficult and suggesting they utilize all available space. This paper questions this assumption, proposing that the interaction between the network's weights and the specific dataset it's trained on is crucial. They aim to quantify this interaction and show that it often reveals a much lower "utilized rank" than the intrinsic rank of the weights, opening doors for efficient model compression.
Methods
The core of the paper is a data-driven transformation that projects the weight matrix of a layer onto the subspace where the input data and the layer's output interact. This is achieved by:
- Input/Output Subspace Identification: Using Singular Value Decomposition (SVD) on the input data (X) and output activations (Y) of a layer, they identify the principal subspaces (S and T) that capture a significant portion of the data's spectral energy.
- Weight Transformation: They then transform the original weight matrix (W) into a new matrix (W') by projecting its column space onto the input subspace (S) and its row space onto the output subspace (T). This transformation, $W' = P_S W P_T$, where $P_S$ and $P_T$ are projection matrices, effectively isolates the data-relevant components of the weights.
- Utilized Rank Determination: The rank of this transformed matrix W' is defined as the "utilized rank" for that layer. This process is performed layer by layer, and an "accuracy drop tolerance" ($\epsilon$) is used to determine the optimal dimensions of S and T, ensuring the functional mapping is preserved with minimal error.
- Binary Search for Rank: A binary search is employed to find the utilized rank for each layer by iteratively adjusting the subspace dimensions and checking the resulting accuracy drop on a validation set.
Datasets
The paper uses several standard datasets for training and evaluation:
- CIFAR10 and CIFAR100: Used for experiments with VGG and ResNet architectures.
- ImageNet: Used for experiments with ViT, DeiT, and Swin Transformer architectures.
No new benchmarks were introduced; the focus was on analyzing existing architectures on established datasets.
Key Insights and Ideas
- "Utilized Rank" is Key: The paper convincingly argues that the "utilized rank" – the rank of weights projected onto data-relevant subspaces – is a more informative metric than the intrinsic rank of the weight matrix itself.
- Overparameterization is Pervasive: Most tested models, especially large ones like ViT variants on ImageNet, utilize only a small fraction (20-35%) of their available weight space. This suggests significant overparameterization.
- Data-Driven Compression: The proposed method allows for data-dependent low-rank decomposition, which is more effective than static factorization methods.
- Self-Supervised Pre-training Boosts Utilization: Models pre-trained with self-supervised learning exhibit much higher layer utilization (up to 70%), making them more efficient and adaptable for downstream tasks.
- Accuracy Recovery: The accuracy drop incurred by low-rank decomposition can be effectively recovered through fine-tuning, often with minimal effort.
Key Results
- Significant Compression: For ViT-16 on ImageNet, the method reduced parameters to 50% and FLOPs to 25% with less than 0.2% accuracy drop after fine-tuning. For ViTL-16, parameters were reduced to 25% and FLOPs to 13%.
- Mean Layer Utilization (MLU): ViT variants on ImageNet showed MLUs as low as 20-35%. In contrast, self-supervised pre-trained models achieved MLUs around 69%.
- VGG/ResNet on CIFAR: Even on smaller datasets like CIFAR, VGG models showed low utilized ranks (e.g., 32% for VGG19), with parameter reduction to as low as 11% of the original size and 38% of FLOPs.
- Accuracy Gains from Fine-tuning: In some cases, fine-tuning the decomposed models led to slight accuracy increases (e.g., up to 2% on CIFAR), potentially due to a regularization effect.
Limitations and Future Work
- Computational Cost: While SVD and projection are relatively efficient, the binary search for rank across all layers can still be computationally intensive, taking several hours on powerful hardware for large models.
- Hyperparameter Tuning: The accuracy drop tolerance ($\epsilon$) needs to be tuned per model and dataset, although the paper suggests 0.1% and 0.05% are good starting points.
- Future Work: The authors suggest exploring this metric for understanding generalization, comparing different architectures and training regimes, and further investigating the impact of dataset complexity on utilization. They also note that their approach is compatible with other compression techniques like LoRA and quantization.
Summary updated