paper-with-me

Papers

Memory-Efficient Backpropagation through Large Linear Layers

2022-01-31 · Daniel Bershatsky, Aleksandr Mikhalev, Alexandr Katrutsa, Julia Gusak, Daniil Merkulov, Ivan Oseledets

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.

📄 PDF Abstract BibTeX arXiv:2201.13195

Code (2)

SkoltechAI/fewbit 공식 구현 pytorch
daskol/fewbit 공식 구현 pytorch

Tasks

Model Compression

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Adam 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

LCSB: Layer-Cyclic Selective Backpropagation for Memory-Efficient On-Device LLM Fine-Tuning

2026-02-13 · Juneyoung Park, Eunbeen Yoon, Seongwan Kim. Jaeho Lee arxiv

Memory-efficient backpropagation (MeBP) has enabled first-order fine-tuning of large language models (LLMs) on mobile devices with less than 1GB memory. However, MeBP requires backward computation through all transformer…

Training Implicit Networks for Image Deblurring using Jacobian-Free Backpropagation

2024-02-03 · Linghai Liu, Shuaicheng Tong, Lisa Zhao

Recent efforts in applying implicit networks to solve inverse problems in imaging have achieved competitive or even superior results when compared to feedforward networks. These implicit networks only require constant me…

DeblurringImage Deblurring

Low-memory stochastic backpropagation with multi-channel randomized trace estimation

2021-06-13 · Mathias Louboutin, Ali Siahkoohi, Rongrong Wang, Felix J. Herrmann

Thanks to the combination of state-of-the-art accelerators and highly optimized open software frameworks, there has been tremendous progress in the performance of deep neural networks. While these developments have been …

Semantic Segmentation

Lowering PyTorch's Memory Consumption for Selective Differentiation

2024-04-15 · Samarth Bhatia, Felix Dangel

Memory is a limiting resource for many deep learning tasks. Beside the neural network weights, one main memory consumer is the computation graph built up by automatic differentiation (AD) for backpropagation. We observe …

Reducing Fine-Tuning Memory Overhead by Approximate and Memory-Sharing Backpropagation

2024-06-24 · Yuchen Yang, Yingdong Shi, Cheems Wang, XianTong Zhen 외

Fine-tuning pretrained large models to downstream tasks is an important problem, which however suffers from huge memory overhead due to large-scale parameters. This work strives to reduce memory overhead in fine-tuning f…