Cuttlefish: Low-Rank Model Training without All the Tuning

Hongyi Wang, Saurabh Agarwal, Pongsakorn U.-Chupala, Yoshiki Tanaka, Eric P. Xing, Dimitris S. Papailiopoulos

Abstract

Training massive neural networks is computationally expensive and memory-intensive. While low-rank factorization offers a path to compression and speedup, it typically requires manual tuning of complex hyperparameters, including layer-wise ranks and transition timing. We present Cuttlefish, an automated framework that eliminates this "black magic" by monitoring the stable rank of layers during training. Cuttlefish automatically determines the optimal compression for each layer and the ideal moment to switch to low-rank training, delivering models up to 10.8× smaller and 1.2× faster without sacrificing accuracy.

Introduction

Low-rank factorization decomposes large weight matrices into smaller, thinner components to reduce FLOPs and memory footprints. However, its adoption is hindered by a significant usability gap. Researchers must manually decide the rank for every layer, the number of full-rank warm-up epochs, and which specific layers to factorize. Incorrect choices lead to either accuracy degradation or negligible performance gains. Cuttlefish addresses these challenges by automating these decisions on-the-fly through a set of heuristics based on the mathematical concept of stable rank.

Methodology

Cuttlefish utilizes Stable Rank as a proxy for the effective rank of a layer, observing how singular values are distributed rather than just counting non-zero values. The workflow consists of three automated stages:

  1. Lightweight Profiling: Cuttlefish measures hardware runtime to identify layers where factorization overhead (e.g., kernel launch times) outweighs FLOP savings, keeping those layers full-rank.
  2. Automated Warm-up: Training begins in full-rank mode. Cuttlefish tracks the derivative of the stable rank for each layer. As shown in Figure 4, these ranks fluctuate during early feature learning but eventually plateau.
  3. Automatic Rank Selection: Once stabilization is detected, Cuttlefish triggers the transition to low-rank mode, setting dimensions based on the converged Scaled Stable Rank to preserve accuracy on complex datasets like ImageNet.
Figure 4: The stabilization phenomenon where layer-wise rank ratios plateau after an initial learning phase, indicating the optimal transition point for low-rank training.

Experimental Evaluation

We evaluated Cuttlefish across diverse tasks including computer vision (CIFAR-10/100, ImageNet) and natural language processing (GLUE benchmark with BERT). The framework was tested on architectures ranging from ResNets and VGG-19 to Vision Transformers (DeiT) and ResMLP.

Key Results

Cuttlefish consistently matched or outperformed both vanilla full-rank models and state-of-the-art manually tuned low-rank methods like Pufferfish.

  • Compression and Accuracy: On VGG-19 (CIFAR-10), Cuttlefish produced a model 10.8× smaller than the vanilla version while improving validation accuracy. On ImageNet, it achieved 76.44% Top-1 accuracy on ResNet-50, surpassing the manually tuned Pufferfish baseline (76.36%) with fewer parameters.
  • Efficiency: The framework achieved up to 1.2× end-to-end training speedups on ResNet-18 and VGG-19 by skipping low-intensity layers.
  • Automation: As illustrated in Figure 5, Cuttlefish (represented by the pentagon) automatically finds a high-accuracy, low-parameter configuration that would otherwise require an extensive grid search over the number of full-rank layers ($K$).
Figure 5: Validation accuracy vs. model parameters. Cuttlefish (pentagon) automatically identifies an optimal configuration that matches or exceeds the performance of various manually tuned baselines.

Discussion and Limitations

While Cuttlefish significantly simplifies low-rank training, some considerations remain. The transition points and final ranks can vary slightly between random seeds, though the authors found this variance to be minimal. Additionally, while effective for Transformers, attention mechanisms often exhibit higher ranks than CNN layers, suggesting that future work could refine rank selection specifically for multi-head attention. Finally, because the profiling step is hardware-dependent, the optimal configuration for a high-end GPU like an A100 may differ from that of an edge device.

Summary updated

BibTeX
@inproceedings{wang2023cuttlefish,
  author = {Hongyi Wang and Saurabh Agarwal and Pongsakorn U.-Chupala and Yoshiki Tanaka and Eric P. Xing and Dimitris S. Papailiopoulos},
  title = {{Cuttlefish: Low-Rank Model Training without All the Tuning}},
  booktitle = {MLSys},
  year = {2023},
  doi = {10.48550/arxiv.2305.02538},
}
Figure