Reproduce “SLTrain: a sparse plus low-rank approach for parameter and memory efficient pretraining” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Andi Han, Jiaxiang Li, Wei Huang, Mingyi Hong, Akiko Takeda, Pratik Jawanpuria, Bamdev Mishra

SLTrain proposes a reparameterization for pretraining large language models (LLMs) by representing weight matrices as a sum of low-rank and sparse components. This method, developed by researchers from RIKEN AIP, University of Minnesota, and Microsoft, reduces memory requirements by up to 73% for LLaMA 7B models and halves trainable parameters for LLaMA 1B while maintaining perplexity performance comparable to full-rank pretraining.

Key insights

  • Combining low-rank and sparse components offers complementary strengths, where the sparse component compensates for the expressivity limitations of pure low-rank structures, enabling high effective rank.
  • A fixed, uniformly random support for the sparse matrix is sufficient and effective for capturing residual information beyond low-rank approximations, simplifying implementation and ensuring memory efficiency.
  • Singular value analysis indicates the low-rank component drives top singular values while the sparse component augments the tail, collectively contributing to the overall expressivity akin to full-rank weights.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.