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

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

24 Jun 2024arXiv:2406.16282archive 2025-07-28

Yuchen Yang, Yingdong Shi, Cheems Wang, XianTong Zhen, Yuxuan Shi, Jun Xu

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 from perspectives of activation function and layer normalization. To this end, we propose the Approximate Backpropagation (Approx-BP) theory, which provides the theoretical feasibility of decoupling the forward and backward passes. We apply our Approx-BP theory to backpropagation training and derive memory-efficient alternatives of GELU and SiLU activation functions, which use derivative functions of ReLUs in the backward pass while keeping their forward pass unchanged. In addition, we introduce a Memory-Sharing Backpropagation strategy, which enables the activation memory to be shared by two adjacent layers, thereby removing activation memory usage redundancy. Our method neither induces extra computation nor reduces training efficiency. We conduct extensive experiments with pretrained vision and language models, and the results demonstrate that our proposal can reduce up to $\sim$$30\%$ of the peak memory usage. Our code is released at https://github.com/yyyyychen/LowMemoryBP.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.16282")

Code

Syntology Ran 10 of 21 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 2 ran · honoured contract; 8 ran with no contract checked.

By repository: official repository: 21 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yyyyychen/LowMemoryBP officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested; 10 ran; 2 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
8ran
11unverified

Licence: 0 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yyyyychen/LowMemoryBP. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

acc_and_f1 yyyyychen/LowMemoryBP/experiments/roberta_exp/metric.py official repository ran MIT (permissive) · 454817035cd7e70d · report
dgelu yyyyychen/lowmemorybp/search_act/sa_search.py official repository ran · honoured contract fingerprinted MIT (permissive) · 23d97b310f421cf4 · report
dgelu yyyyychen/LowMemoryBP/search_act/plot_results.py official repository ran fingerprinted MIT (permissive) · 5bab00057953eed3 · report
dgelu yyyyychen/LowMemoryBP/search_act/sa_search.py official repository ran fingerprinted MIT (permissive) · d166f5c139047d8f · report
gelu yyyyychen/lowmemorybp/search_act/sa_search.py official repository ran · honoured contract fingerprinted MIT (permissive) · 7fcedfc60ac103d5 · report
gelu yyyyychen/LowMemoryBP/search_act/plot_results.py official repository ran fingerprinted MIT (permissive) · 92d332f9f6d8d916 · report
get_gelu_truncate_bounds yyyyychen/LowMemoryBP/search_act/sgd_search.py official repository ran MIT (permissive) · bd4ce1c1da8ac7dd · report
get_silu_truncate_bounds yyyyychen/LowMemoryBP/search_act/sgd_search.py official repository ran MIT (permissive) · 9852f5e220563896 · report
pearson_and_spearman yyyyychen/LowMemoryBP/experiments/roberta_exp/metric.py official repository ran fingerprinted MIT (permissive) · e3e13638a674e4b1 · report
silu yyyyychen/LowMemoryBP/search_act/plot_results.py official repository ran fingerprinted MIT (permissive) · df56b7b4df2b7d62 · report
gelu yyyyychen/LowMemoryBP/search_act/sa_search.py official repository unverified MIT (permissive) · 55935d62b8500881 · report
layer_norm yyyyychen/LowMemoryBP/lomem/normalization.py official repository unverified MIT (permissive) · 24f25e03d2510fc4 · report
pack_bool_to_uint8 yyyyychen/LowMemoryBP/lomem/packing.py official repository unverified MIT (permissive) · 2e7e3714bf4747c5 · report
regelu2 yyyyychen/LowMemoryBP/lomem/activation.py official repository unverified MIT (permissive) · aa093de845df408e · report
replace_linear4bit yyyyychen/LowMemoryBP/experiments/llama_exp/qlora.py official repository unverified MIT (permissive) · 1eafd3b53f875c65 · report
resilu2 yyyyychen/LowMemoryBP/lomem/activation.py official repository unverified MIT (permissive) · 91254aa095e9a8e4 · report
rms_norm yyyyychen/LowMemoryBP/lomem/normalization.py official repository unverified MIT (permissive) · dd3123886d069aa0 · report
silu yyyyychen/lowmemorybp/search_act/sa_search.py official repository unverified MIT (permissive) · fc28c3f7ab3434fd · report
silu yyyyychen/LowMemoryBP/search_act/sa_search.py official repository unverified MIT (permissive) · fbb6daa55e3cf79c · report
simple_accuracy yyyyychen/LowMemoryBP/experiments/roberta_exp/metric.py official repository unverified MIT (permissive) · 83eba990d34db6a2 · report
unpack_uint8_to_bool yyyyychen/LowMemoryBP/lomem/packing.py official repository unverified MIT (permissive) · 2d38c0e161fa803b · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SiLU

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections