Memory-efficient backpropagation through large linear layers
Daniel Bershatsky, Aleksandr Mikhalev, Alexandr Katrutsa, Julia Gusak, Daniil Merkulov, Ivan Oseledets
Alltech (United States) · Université de Bordeaux
Key points
From the paper's conclusion- We demonstrate the benefits of the proposed method on the fine-tuning of the pre-trained RoBERTa model on GLUE tasks.
Abstract
In modern neural networks like Transformers, linear layers require significant memory to store activations during backward pass. This study proposes a memory reduction approach to perform backpropagation through linear layers. Since the gradients of linear layers are computed by matrix multiplications, we consider methods for randomized matrix multiplications and demonstrate that they require less memory with a moderate decrease of the test accuracy. Also, we investigate the variance of the gradient estimate induced by the randomized matrix multiplication. We compare this variance with the variance coming from gradient estimation based on the batch of samples. We demonstrate the benefits of the proposed method on the fine-tuning of the pre-trained RoBERTa model on GLUE tasks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Know What You Need: Efficient Activation CheckpointingarXiv · 2026
- Randomized matrix sketching for neural network training and gradient monitoringMathematical Models and Methods in Applied Sciences · 2026
- Local proxies for memory-efficient trainingarXiv · 2026
- BitSparse: Compact Activation Storage for ReLU Feed-Forward NetworksarXiv · 2026
- Turnout: Adaptive Attention Switching for Efficient ReasoningarXiv · 2026
- Bridging KV-Cache Quantization and Linear Attention: From Theory to Pretrained Weight MigrationarXiv · 2026