Papers › Train Small, Infer Large: Memory-Efficient LoRA Training for Large Language Models

Train Small, Infer Large: Memory-Efficient LoRA Training for Large Language Models

19 Feb 2025arXiv:2502.13533archive 2025-07-28

Jun Zhang, Jue Wang, Huan Li, Lidan Shou, Ke Chen, Yang You, Guiming Xie, Xuejian Gong, Kunlong Zhou

Large Language Models (LLMs) have significantly advanced natural language processing with exceptional task generalization capabilities. Low-Rank Adaption (LoRA) offers a cost-effective fine-tuning solution, freezing the original model parameters and training only lightweight, low-rank adapter matrices. However, the memory footprint of LoRA is largely dominated by the original model parameters. To mitigate this, we propose LoRAM, a memory-efficient LoRA training scheme founded on the intuition that many neurons in over-parameterized LLMs have low training utility but are essential for inference. LoRAM presents a unique twist: it trains on a pruned (small) model to obtain pruned low-rank matrices, which are then recovered and utilized with the original (large) model for inference. Additionally, minimal-cost continual pre-training, performed by the model publishers in advance, aligns the knowledge discrepancy between pruned and original models. Our extensive experiments demonstrate the efficacy of LoRAM across various pruning strategies and downstream tasks. For a model with 70 billion parameters, LoRAM enables training on a GPU with only 20G HBM, replacing an A100-80G GPU for LoRA training and 15 GPUs for full fine-tuning. Specifically, QLoRAM implemented by structured pruning combined with 4-bit quantization, for LLaMA-3.1-70B (LLaMA-2-70B), reduces the parameter storage cost that dominates the memory usage in low-rank matrix training by 15.81× (16.95×), while achieving dominant performance gains over both the original LLaMA-3.1-70B (LLaMA-2-70B) and LoRA-trained LLaMA-3.1-8B (LLaMA-2-13B).

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="2502.13533")

Code

Syntology Ran 5 of 13 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 4 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

junzhang-zj/LoRAM officialmentioned on GitHubpytorch 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

13 samples harvested; 5 ran; 0 honoured the contract we drafted; 8 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.

1ran · our draft was wrong
4ran
8unverified

Licence: 1 of the 13 samples is 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 junzhang-zj/LoRAM. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

LlamaMLP junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · f96dedc8894ebbab · report
LlamaPreTrainedModel junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 1ecb31573990e76e · report
LlamaRMSNorm junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 9f7bd959c5fde990 · report
LlamaRotaryEmbedding junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · c9f2757f0827b802 · report
LlamaAttention junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository unverified Apache-2.0 (permissive) · 9dee9df76b1fdd21 · report
LlamaDecoderLayer junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository unverified Apache-2.0 (permissive) · d4a037311f926e1a · report
LlamaFlashAttention2 junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository unverified Apache-2.0 (permissive) · f2e37ec2f6d5b640 · report
LlamaForCausalLM junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository unverified Apache-2.0 (permissive) · 23f836d2c7d15352 · report
LlamaModel junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository unverified Apache-2.0 (permissive) · 85f06bba96f8ecb0 · report
LlamaSdpaAttention junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository unverified Apache-2.0 (permissive) · 275b5715a473b63a · report
main junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository unverified Apache-2.0 (permissive) · 1382890bcd6d3bc9 · report
print_trainable_parameters junzhang-zj/LoRAM/loram/2_pruned_low_rank_matrix_training.py official repository unverified Apache-2.0 (permissive) · 55ec6efd6c53c278 · report
apply_rotary_pos_emb identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 583539efd6fd01fb · report

Tasks

Quantization

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdapterPruning

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