Skip to main content
QUICK REVIEW

[Paper Review] ReLoRA: High-Rank Training Through Low-Rank Updates

Vladislav Lialin, Namrata Shivagunde|arXiv (Cornell University)|Jul 11, 2023
Advanced Neural Network ApplicationsComputer Science11 citations
TL;DR

ReLoRA trains high-rank transformer networks by accumulating multiple low-rank updates with restarts, achieving comparable performance to full-rank training while reducing GPU RAM usage and speeding up training.

ABSTRACT

Despite the dominance and effectiveness of scaling, resulting in large networks with hundreds of billions of parameters, the necessity to train overparameterized models remains poorly understood, while training costs grow exponentially. In this paper, we explore parameter-efficient training techniques as an approach to training large neural networks. We introduce a novel method called ReLoRA, which utilizes low-rank updates to train high-rank networks. We apply ReLoRA to training transformer language models with up to 1.3B parameters and demonstrate comparable performance to regular neural network training. ReLoRA saves up to 5.5Gb of RAM per GPU and improves training speed by 9-40% depending on the model size and hardware setup. Our findings show the potential of parameter-efficient techniques for large-scale pre-training.

Motivation & Objective

  • Motivate parameter-efficient pre-training of very large transformer models.
  • Investigate whether high-rank updates can be achieved through sequential low-rank updates.
  • Develop ReLoRA with restarts, jagged learning rate schedules, and partial optimizer resets.
  • Demonstrate ReLoRA on transformers up to 1.3B parameters and compare to LoRA and full-rank training.

Proposed method

  • Start from a warm-start full-rank training baseline.
  • Apply LoRA-style low-rank updates to linear layers with rank r=128.
  • Use multiple restarts that merge low-rank updates into the base weights (sum of updates).
  • Employ a jagged cosine learning rate schedule with zero warmup after each merge-and-reinit.
  • Partially reset the optimizer state via magnitude pruning to avoid stale gradient moments guiding updates.
  • Maintain embeddings and normalization in full rank while updating linear layers via ReLoRA.
Figure 1: Training loss for 250M models. ReLoRA learns a high-rank network through a sequence of low-rank updates. It outperforms networks with the same trainable parameter count and achieves similar performance to training a full network at 100M+ scale. The efficiency of ReLoRA increases with the m
Figure 1: Training loss for 250M models. ReLoRA learns a high-rank network through a sequence of low-rank updates. It outperforms networks with the same trainable parameter count and achieves similar performance to training a full network at 100M+ scale. The efficiency of ReLoRA increases with the m

Experimental results

Research questions

  • RQ1Can high-rank networks be effectively trained through sequences of low-rank updates?
  • RQ2How do ReLoRA's performance and efficiency compare to LoRA and full-rank training across model sizes?
  • RQ3What training techniques (restarts, optimizer resets, warm starts) are essential for ReLoRA’s success?
  • RQ4Does ReLoRA scale in efficiency and performance with larger transformer models (up to 1.3B parameters)?

Key findings

  • ReLoRA saves up to 5.5 GB of RAM per GPU and speeds up training by 9-40% depending on model size and hardware.
  • ReLoRA achieves perplexities close to full-rank training and outperforms LoRA, with the 1.3B model reaching 17.27 perplexity versus 16.83 for full training at the end.
  • Singular value analyses show ReLoRA’s updates distribute more like high-rank/full training, unlike LoRA’s predominantly zero/low-rank spectrum.
  • For 1.3B models, ReLoRA with a warm start and restarts achieves better performance than LoRA throughout training and narrows the gap with full-rank training (final perplexity 17.27 vs 16.83).
  • Training speedups vary by hardware; in an 8x A100 setup, ReLoRA yields about 9% wall-clock speedup, with larger gains on cheaper hardware.
  • Online ReLoRA (very frequent resets) did not improve results compared to standard ReLoRA in this study.
Figure 2: Jagged cosine scheduler used in ReLoRA. As a base for our scheduler we follow a standard cosine decay schedule as in Touvron et al. ( 2023 ) . On every optimizer reset, we set the learning rate to zero and perform a quick (50-100 steps) learning rate warm-up back to the cosine schedule.
Figure 2: Jagged cosine scheduler used in ReLoRA. As a base for our scheduler we follow a standard cosine decay schedule as in Touvron et al. ( 2023 ) . On every optimizer reset, we set the learning rate to zero and perform a quick (50-100 steps) learning rate warm-up back to the cosine schedule.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.