Investigating Low-Rank Training in Transformer Language Models: Efficiency and Scaling Analysis

Xiuying Wei, Skander Moalla, Razvan Pascanu, Caglar Gulcehre
7/13/2024
cs.CL

Official code: CLAIRE-Labo/StructuredFFN (20 stars, last commit 2024-07-24).

Abstract

State-of-the-art LLMs often rely on scale with high computational costs, which has sparked a research agenda to reduce parameter counts and costs without significantly impacting performance. Our study focuses on Transformer-based LLMs, specifically applying low-rank parametrization to the computationally intensive feedforward networks (FFNs), which are less studied than attention blocks. In contrast to previous works, (i) we explore low-rank parametrization at scale, up to 1.3B parameters; (ii) within Transformer language models rather than convolutional architectures; and (iii) starting from training from scratch. Experiments on the large RefinedWeb dataset show that low-rank parametrization is both efficient (e.g., 2.6$\times$ FFN speed-up with 32\% parameters) and effective during training. Interestingly, these structured FFNs exhibit steeper scaling curves than the original models. Motivated by this finding, we develop the wide and structured networks surpassing the current medium-sized and large-sized Transformer in perplexity and throughput performance. Our code is available at https://github.com/CLAIRE-Labo/StructuredFFN/tree/main.

View on arXivView PDF

Code Implementations(1)

The official code of "Building on Efficient Foundations: Effectively Training LLMs with Structured Feedforward Layers"

203Shell, PythonJun 23, 20242 years ago

Similar Papers

Cite this paper

@article{wei2024investigating,
  title  = {Investigating Low-Rank Training in Transformer Language Models: Efficiency and Scaling Analysis},
  author = {Xiuying Wei and Skander Moalla and Razvan Pascanu and Caglar Gulcehre},
  year   = {2024},
  eprint = {2407.09835},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.09835v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.09835.svg)](https://codeofpaper.com/paper/2407.09835)

Discussion