Unlocking More Granular Control of Memory-Efficient LLM Finetuning
Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 4985-4993.
https://doi.org/10.24963/ijcai.2026/555
Keywords
- Machine Learning: Matrix/tensor methods
- Machine Learning: Optimization
- Machine Learning: Other
Abstract
Low-rank gradient projection (LoRP) has recently emerged as a memory-efficient alternative to low-rank adapters (LoRA) for finetuning large language models. Existing LoRP methods, however, implicitly fix the projection unit to a single gradient row, leaving the effect of grouping multiple rows (or subdividing a row) largely unexplored. In this work, we systematically investigate the impact of the projection unit on LoRP methods. Specifically, we extend existing LoRP approaches by introducing an additional degree of freedom, projection granularity, beyond the traditional rank hyperparameter. This enables a framework capable of performing Various-grained Low-Rank Projection of gradients, which we term VLoRP. Using VLoRP, we observe that, under an identical memory budget, fine-grained projections consistently deliver superior performance. Moreover, VLoRP requires no extra computation and minimal code changes, effectively providing a no-cost accuracy boost to LoRP. Finally, we provide convergence analysis on VLoRP with either SGD or an Adam-based memory-efficient optimizer, and extensive experiments are conducted to validate our findings, covering tasks such as Commonsense Reasoning, MMLU, and GSM8K
- [Baydin et al., 2022] Atılım Günes ¸Baydin, Barak A Pearl- mutter, Don Syme, Frank Wood, and Philip Torr. Gradients without backpropagation. arXiv preprint arXiv:2202.08587, 2022.
- [Berahas et al., 2022] Albert S Berahas, Liyuan Cao, Krzysztof Choromanski, and Katya Scheinberg. A theoretical and empirical comparison of gradient approx- imations in derivative-free optimization. Foundations of Computational Mathematics, 22(2):507-560, 2022.
- [Bisk et al., 2020] Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. Piqa: Reason- ing about physical commonsense in natural language. In Thirty-Fourth AAAI Conference on Artificial Intelligence, 2020.
- [Chen et al., 2016] Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training deep nets with sublinear memory cost.(2016). arXiv preprint arXiv:1604.06174, 2016.
- [Chen et al., 2023] Lizhang Chen, Bo Liu, Kaizhao Liang, and Qiang Liu. Lion secretly solves constrained op- timization: As lyapunov predicts. arXiv preprint arXiv:2310.05898, 2023.
- [Chen et al., 2024a] Aochuan Chen, Yimeng Zhang, Jinghan Jia, James Diffenderfer, Konstantinos Parasyris, Jiancheng Liu, Yihua Zhang, Zheng Zhang, Bhavya Kailkhura, and Sijia Liu. Deepzero: Scaling up zeroth-order optimization for deep model training. In The Twelfth International Con- ference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024, 2024.
- [Chen et al., 2024b] Xi Chen, Kaituo Feng, Changsheng Li, Xunhao Lai, Xiangyu Yue, Ye Yuan, and Guoren Wang. Fira: Can we achieve full-rank training of llms under low- rank constraint? arXiv preprint arXiv:2410.01623, 2024.
- [Clark et al., 2018] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answer- ing? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018.
- [Clark et al., 2019] Christopher Clark, Kenton Lee, Ming Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. Boolq: Exploring the surprising difficulty of natural yes/no questions. In NAACL, 2019.
- [Cobbe et al., 2021] Karl Cobbe, Vineet Kosaraju, Moham- mad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Train- ing verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
- [Dasgupta and Gupta, 2003] Sanjoy Dasgupta and Anupam Gupta. An elementary proof of a theorem of johnson and lindenstrauss. Random Struct. Algorithms, 22(1):60-65, 2003.
- [Dean et al., 2012] Jeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Mark Mao, Marc'aurelio Ranzato, Andrew Senior, Paul Tucker, Ke Yang, et al. Large scale distributed deep networks. Advances in neural information processing systems, 25, 2012.
- [Dettmers et al., 2023] Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient finetun- ing of quantized llms. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural In- formation Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 -16, 2023, 2023.
- [Hao et al., 2024] Yongchang Hao, Yanshuai Cao, and Lili Mou. Flora: Low-rank adapters are secretly gradient com- pressors. In Forty-first International Conference on Ma- chine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, 2024.
- [Hayou et al., 2024] Soufiane Hayou, Nikhil Ghosh, and Bin Yu. Lora+: Efficient low rank adaptation of large models. In Forty-first International Conference on Machine Learn- ing, ICML 2024, Vienna, Austria, July 21-27, 2024, 2024.
- [Hendrycks et al., 2020] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask lan- guage understanding. arXiv preprint arXiv:2009.03300, 2020.
- [Hu et al., 2022] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022, 2022.
- [Hu et al., 2023] Zhiqiang Hu, Lei Wang, Yihuai Lan, Wanyu Xu, Ee-Peng Lim, Lidong Bing, Xing Xu, Sou- janya Poria, and Roy Ka-Wei Lee. Llm-adapters: An adapter family for parameter-efficient fine-tuning of large language models. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6-10, 2023, pages 5254-5276. Association for Computational Linguistics, 2023.
- [Indyk and Motwani, 1998] Piotr Indyk and Rajeev Mot- wani. Approximate nearest neighbors: Towards removing the curse of dimensionality. In Jeffrey Scott Vitter, editor, Proceedings of the Thirtieth Annual ACM Symposium on the Theory of Computing, Dallas, Texas, USA, May 23-26, 1998, pages 604-613. ACM, 1998.
- [Kingma and Ba, 2014] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
- [Liang et al., 2024] Kaizhao Liang, Bo Liu, Lizhang Chen, and Qiang Liu. Memory-efficient llm training with online subspace descent. arXiv preprint arXiv:2408.12857, 2024.
- [Loshchilov and Hutter, 2019] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, 2019.
- [Maddison et al., 2018] Chris J Maddison, Daniel Paulin, Yee Whye Teh, Brendan O'Donoghue, and Arnaud Doucet. Hamiltonian descent methods. arXiv preprint arXiv:1809.05042, 2018.
- [Malladi et al., 2023] Sadhika Malladi, Tianyu Gao, Eshaan Nichani, Alex Damian, Jason D Lee, Danqi Chen, and Sanjeev Arora. Fine-tuning language models with just for- ward passes. Advances in Neural Information Processing Systems, 36:53038-53075, 2023.
- [Matousek, 2008] Jirí Matousek. On variants of the johnson-lindenstrauss lemma. Random Struct. Algorithms, 33(2):142-156, 2008.
- [Mihaylov et al., 2018] Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a suit of armor conduct electricity? A new dataset for open book question answer- ing. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Bel- gium, October 31 -November 4, 2018, pages 2381-2391. Association for Computational Linguistics, 2018.
- [Nevel'son and Has' minskii, 1976] Mikhail Borisovich Nevel'son and Rafail Zalmanovich Has' minskii. Stochas- tic approximation and recursive estimation, volume 47. American Mathematical Soc., 1976.
- [Nguyen et al., 2024] Son Nguyen, Lizhang Chen, Bo Liu, and Qiang Liu. H-fac: Memory-efficient optimiza- tion with factorized hamiltonian descent. arXiv preprint arXiv:2406.09958, 2024.
- [Razdaibiedina et al., 2023] Anastasia Razdaibiedina, Yun- ing Mao, Madian Khabsa, Mike Lewis, Rui Hou, Jimmy Ba, and Amjad Almahairi. Residual prompt tuning: im- proving prompt tuning with residual reparameterization. In Findings of the Association for Computational Linguis- tics: ACL 2023, Toronto, Canada, July 9-14, 2023, pages 6740-6757, 2023.
- [Ren et al., 2022] Mengye Ren, Simon Kornblith, Renjie Liao, and Geoffrey Hinton. Scaling forward gradient with local losses. arXiv preprint arXiv:2210.03310, 2022.
- [Robbins and Monro, 1951] Herbert Robbins and Sutton Monro. A stochastic approximation method. The annals of mathematical statistics, pages 400-407, 1951.
- [Sakaguchi et al., 2019] Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. Winogrande: An adversarial winograd schema challenge at scale. arXiv preprint arXiv:1907.10641, 2019.
- [Sap et al., 2019] Maarten Sap, Hannah Rashkin, Derek Chen, Ronan LeBras, and Yejin Choi. Socialiqa: Com- monsense reasoning about social interactions. arXiv preprint arXiv:1904.09728, 2019.
- [Shazeer and Stern, 2018] Noam Shazeer and Mitchell Stern. Adafactor: Adaptive learning rates with sublinear memory cost. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stock- holmsmässan, Stockholm, Sweden, July 10-15, 2018, volume 80 of Proceedings of Machine Learning Research, pages 4603-4611, 2018.
- [Shen et al., 2024] Qianli Shen, Yezhen Wang, Zhouhao Yang, Xiang Li, Haonan Wang, Yang Zhang, Jonathan Scarlett, Zhanxing Zhu, and Kenji Kawaguchi. Memory- efficient gradient unrolling for large-scale bi-level opti- mization. arXiv preprint arXiv:2406.14095, 2024.
- [Silver et al., 2021] David Silver, Anirudh Goyal, Ivo Dani- helka, Matteo Hessel, and Hado van Hasselt. Learning by directional gradient descent. In International Conference on Learning Representations, 2021.
- [Smith et al., 2018] Samuel L. Smith, Pieter-Jan Kinder- mans, Chris Ying, and Quoc V. Le. Don't decay the learn- ing rate, increase the batch size. In 6th International Con- ference on Learning Representations, ICLR 2018, Vancou- ver, BC, Canada, April 30 -May 3, 2018, Conference Track Proceedings, 2018.
- [Spall, 1992] J.C. Spall. Multivariate stochastic approxi- mation using a simultaneous perturbation gradient ap- proximation. IEEE Transactions on Automatic Control, 37(3):332-341, 1992.
- [Wang et al., 2024] Shaowen Wang, Linxi Yu, and Jian Li. Lora-ga: Low-rank adaptation with gradient approxima- tion. arXiv preprint arXiv:2407.05000, 2024.
- [Wengert, 1964] R. E. Wengert. A simple automatic deriva- tive evaluation program. Commun. ACM, 7(8):463-464, 1964.
- [Zellers et al., 2019] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28-August 2, 2019, Volume 1: Long Papers, pages 4791-4800. Associ- ation for Computational Linguistics, 2019.
- [Zhao et al., 2024] Jiawei Zhao, Zhenyu Zhang, Beidi Chen, Zhangyang Wang, Anima Anandkumar, and Yuandong Tian. Galore: Memory-efficient LLM training by gradient low-rank projection. In Forty-first International Confer- ence on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, 2024.
- [Zhu et al., 2024] Hanqing Zhu, Zhenyu Zhang, Wenyan Cong, Xi Liu, Sem Park, Vikas Chandra, Bo Long, David Z. Pan, Zhangyang Wang, and Jinwon Lee. Apollo: Sgd-like memory, adamw-level performance. arXiv preprint arXiv:2412.05270, 2024.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Large Language Models (LLMs) are powerful but costly to finetune due to their substantial memory requirements. For example, finetuning an LLM with 7 billion parameters in the bfloat16 format [Dean et al., 2012] requires approximately 14 GB of memory for the parameters alone. The gradients demand a similar amount of memory, 1 and, with Adam/AdamW [Kingma and Ba, 2014; Loshchilov and Hutter, 2019] serving as the de facto optimizer, an additional 28 GB is needed for optimizer states. Including the activations required for backpropagation, the total memory footprint exceeds 60 GB, rendering such training prohibitively costly.
1 Techniques like layer-wise updates can mitigate this overhead, but gradient accumulation still necessitates storing gradients in practice.
To mitigate this training overhead, various parameterefficient finetuning (PeFT) techniques [Razdaibiedina et al., 2023] have been developed. Among the most notable are Low-Rank Adapters (LoRA) [Hu et al., 2022] and its variants [Dettmers et al., 2023; Hayou et al., 2024; Wang et al., 2024], which decompose matrix-shaped parameters into two low-rank matrices to enable more memory-efficient training. Recently, a novel family of methods, Low-Rank Gradient Projection (LoRP) [Hao et al., 2024; Zhao et al., 2024; Zhu et al., 2024], has emerged. LoRP methods also leverage low-rank properties during LLM training, but rather than operating at the parameter level, they focus on exploiting the low-rank structure within the gradient. Concretely, LoRP methods achieve memory reduction by projecting the gradient matrix G ∈ Rn×m into a low-dimensional subspace spanned by the columns of a projection matrix P ∈ Rm×r with r ≪ m. When required for parameter updates, the gradient is approximated as (GP )P ⊤ by projecting the stored lowdimensional gradient GP back to the original space. In general, LoRP can offer better memory efficiency than LoRA, as it only requires the storage of gradient information in a single low-dimensional subspace, whereas LoRA necessitates two.
An interesting observation is that LoRP can also be interpreted from the perspective of stochastic approximation, specifically in the form of the forward gradient method [Baydin et al., 2022]: when P is a random matrix sampled from Gaussian distribution N (0, 1r ), LoRP can be viewed as an unbiased stochastic approximation of the original gradient, applied row-wisely (elaborated in Sec.2):
where i = 1, . . . , n, vj ∼ N (0, Im) is the j-th column of √rP, and Gi,: is the i-th row of G, representing a segment of the gradient being approximated. In equation 1, r serves a dual role: it defines the dimensionality of the projected space in LoRP and also determines the number of samples used for stochastic approximation, akin to the query count in Monte Carlo estimation. From the lens of stochastic approximation, the effectiveness of estimation is highly influenced simultaneously by the target dimensionality (i.e., the size of Gi,:) and the number of samples r [Berahas et al., 2022; Shen et al., 2024]. If r increases, more independent samples can reduce variance in equation 1. Alternatively, keeping r fixed while decreasing the dimensionality of Gi,: improves accuracy by reducing the number of dimensions to estimate. This insight naturally leads to a new degree of freedom in LoRP methods: rather than fixing the dimensionality of Gi,:, we can adjust it with r to balance performance and memory efficiency.
Accordingly, we propose VLoRP (Various-Grained LowRank Projection of Gradients), a LoRP framework that introduces a new degree of freedom, projection granularity, defined as the length of each row segment in the gradient matrix G. Unlike existing LoRP methods that implicitly fix the projection unit to one gradient row, VLoRP reshapes the gradient matrix before projection, thereby jointly controlling projection granularity and rank. This enables a more flexible memory-performance trade-off and can be implemented with only lightweight reshaping operations, incurring no additional computational overhead.
To support Adam-style optimization under projectedgradient storage, we further propose ProjFactor, a memoryefficient Adam-like optimizer that avoids access to full-rank gradients. Leveraging VLoRP, we systematically study different granularity-rank configurations under a fixed memory budget, and observe that finer-grained projections consistently outperform coarser alternatives. We also provide theoretical guarantees: VLoRP with SGD achieves an O(1/T) convergence rate, and ProjFactor admits a monotonically decreasing Lyapunov function under the Hamiltonian descent framework [Maddison et al., 2018; Chen et al., 2023; Liang et al., 2024].
Our contributions are summarized as follows:
- We introduce VLoRP, which extends existing LoRP methods by jointly controlling projection granularity and rank.
- We propose ProjFactor, a memory-efficient Adam-like optimizer for VLoRP.
- We show that, under the same memory budget, finer projection granularity is more effective than increasing rank.
- We provide convergence guarantees for VLoRP with both SGD and ProjFactor.
2 Exploring Various Granularities of Low-Rank Gradient Projection
2.1 Understanding LoRPs Through the Lens of Stochastic Approximation
Given the gradient matrix G ∈ Rn×m and the projection matrix P ∈ Rm×r , LoRP approaches project the gradient into a low-dimensional subspace spanned by columns of projection matrix P, and project it back to the original space when gradient information is required for parameter update:
where we use Gs and Go to represent the projected gradient in the subspace and the project-backed rank-r approximation of the original gradient, respectively, and γ denotes the scaling coefficient and is usually set as 1. In practice, only the matrix Gs ∈ Rn×r needs to be stored with r ≪min{m, n}. Several strategies exist for constructing the projection matrix P. The classical choice is to extract the top singular vectors of the gradient matrix via Singular Value Decomposition (SVD) [Zhao et al., 2024]. However, recent studies [Hao et al., 2024] demonstrate that a matrix whose columns are sampled independently from a high-dimensional isotropic Gaussian distribution preserves the relevant geometric structure equally well-a result anticipated by the Johnson-Lindenstrauss lemma [Matousek, 2008; Dasgupta and Gupta, 2003; Indyk and Motwani, 1998] and corroborated by our experiments. Thus, we adopt Gaussian-random projections as the default. Nevertheless, the proposed framework readily accommodates projection matrices obtained by any other method.
Particularly, if each element of P is i.i.d. sampled from Gaussian distribution N(0, 1r ), then Go can be reformulated into
where vj ∼ N (0, Im) is the j-th column vector of √rP , and Gi,: ∈ R1×m is the i-th row of the gradient matrix G. Equation (3) highlights that: (a) Go can be represented as an average over r rank-one estimation, each involving one random direction vj; (b) Each row 1r ∑rj=1 (v⊤ j G⊤i,: )v⊤ j aligns with the formulation of the averaged forward gradients [Wengert, 1964; Silver et al., 2021; Baydin et al., 2022; Ren et al., 2022], belonging to the broader family of stochastic approximation methods [Robbins and Monro, 1951; Nevel'son and Has' minskii, 1976; Spall, 1992].
Observation 1. Equation equation 3 indicates that LoRP can be interpreted as a row-wise application of forward gradient estimation with r samples for each gradient matrix.
Motivation. When training an LLMparametrized by θ with an objective function L, the stochastic approximation of the gradient can be applied at different levels. Consider two extreme cases: (1) We can flatten the entire parameter set θ into a single vector θ′ ∈ RD , where D is the total number of parameters, and estimate the gradient using a single random vector v ∈ RD . This approach aligns with the spirit of the MeZO algorithm [Malladi et al., 2023]; (2) Alternatively, the estimation can be applied element-wise: for each onedimensional parameter ξ ∈ θ, the partial derivative ∇ξL can be approximated as 1 r′ ∑r′ i=1 vi∇ξLvi, where vi ∼ N(0, 1). Concatenating all such approximations yields an estimate of the full gradient matrix G, resembling the coordinate gradient estimation (CGE) approach [Chen et al., 2024a].
These cases demonstrate that stochastic approximation can be applied to parameters of varying sizes, leading to different methods. Naturally, according to Observation 1, the Projection Granularity, defined by the row size of G, can also be adjusted in LoRPs. This insight motivates our exploration of low-rank gradient projections with varying granularities.

2.2 Various-Grained Low-Rank Projection of Gradient
In this section, we present the details of our framework, termed VLoRP, which introduces a novel degree of freedom-namely, the Projection Granularity-beyond the conventional hyperparameter rank to balance memory efficiency and training performance in LoRP approaches.
The core idea is straightforward: because gradient projection is typically applied row-wisely, one can reshape the gradient matrix to modify the row size and correspondingly adjust the shape of the projection matrix generated, leading to the adjustment of the Projection Granularity naturally. Concretely, given an LLM, we introduce the granularity factor c, which reshapes any gradient G ∈ Rn×m into ˜G ∈ Rnc×(m/c) . Analogous to the rank r, which globally sets the projection rank for all matrix-shaped parameters, c similarly serves as a global hyperparameter that controls the granularity of projection. Then, we formally have:
where the projection matrix ˜ P is of shape mc ×r, with each element i.i.d. sampled fromN(0, 1r ). Under this setting, Equation (2) emerges as a special case with c = 1. Decreasing c < 1 horizontally compresses G, thereby coarsening the Projection Granularity, whereas increasing c > 1 does the opposite. In practice, c is chosen to be a power of two, and both mc and nc must be integers.
The overall framework is illustrated on the left of Figure 1: at each iteration, VLoRP first reshapes the original gradient matrix G (from Rn×m to Rnc×(m/c) ) to adjust the Projection Granularity. The reshaped ˜G is then projected into the subspace to obtain ˜Gs which needs to be stored. During the parameter update, ˜Gs will be projected back to the original space to obtain ˜Go , after which we reshape ˜Go back to update the parameter. Notably, in practice, the only substantive distinction between VLoRP and existing LoRP variants is an additional pair of tensor-reshaping operations, which imposes no extra computational overhead.
2.3 Optimization: Adam-basedMemory-Efficient Schemes
Since our problem setting focuses on memory-efficient finetuning, the original full-rank gradients are not stored in principle. However, the Adam optimizer requires access to the full-rank gradients to update its states, making it memory inefficient if directly applied in this context. Therefore, in this section, we first investigate two potential Adam-based optimization schemes for VLoRP, and subsequently introduce a memory-efficient variant, ProjFactor, for the superior one. We enable gradient accumulation [Smith et al., 2018] for the projected gradient by default, which means at each update stage, we can only access ˜Gs = ∑Ki=1 ˜Gsi /K, where K is the number of accumulation substeps.
Optimization Schemes: SS vs. OS Broadly, with access only to ˜Gs , there are two typical schemes for storing the optimization states of Adam and performing the associated updates for VLoRP, as illustrated on the left of Figure 2: (1) Subspace Scheme (SS) retains the optimization states ms and vs and computes the adapted gradient ˜∆st = ˜mst /√˜ vs t within the subspace, while (2) Original Space Scheme (OS) projects ˜Gs back to the original space, where the optimization states ˜mo and ˜ vo are stored and the adapted gradient is computed directly. Mathematically, the update rules for both schemes are defined as follows 2 :

OS Performs Better For momentum-based SGD optimizers, where the second moment v is excluded, the Subspace Scheme (SS) and Original Space Scheme (OS) are equivalent, since ˜mot = ˜mst ˜ P ⊤. However, when the nonlinear second moment is incorporated, SS and OS become different. An intuition is that the dynamics of OS are closer to Adam's, as (1) both OS and Adam adapt the gradient directly in the original space, and (2) previous works [Zhao et al., 2024; Hao et al., 2024] have shown that the gradient of LLMs exhibits a low-rank structure, implying that ˜G˜ P ˜ P ⊤ is capable of preserving the primary information of ˜G. To substantiate it, we finetune a LLaMA2-7B on three different benchmarks and compare the loss curves of SS, OS, and the vanilla Adam. As depicted in Figure 2 (right, top rows, panels a-c), while all three schemes reduce the loss, SS exhibits a noticeably slower and less effective convergence compared to OS and Adam. In contrast, OS closely tracks the loss curve of Adam.
2 Appendix A provides a comprehensive explanation of notations.
ProjFactor: a Memory-Efficient Optimizer for VLoRP While OS achieves superior performance, it generally requires more memory during training compared to SS, as it does not reduce the memory usage of optimization states, which still occupy O(nm) space. To address this, we propose ProjFactor which (1) maintains ˜ms instead of ˜mo in the subspace and project it back to the original space when calculating ∆ot , which is justified by the fact ˜mo = ˜ms ˜ P ⊤; (2) follows the spirit of Adafactor [Shazeer and Stern, 2018] by applying rank-1 decomposition on ( ˜Gst ˜ P ⊤)⊙2 , which only requires the storage of two vectors, significantly reducing memory consumption while preserving effective second-moment estimates. Compared to Adafactor, which applies the rank-1 decomposition directly on the gradient, our method applies the rank-r approximation of ˜G first before the squaring and decomposition. The final algorithm for VLoRP optimized with Projfactor is outlined in Appendix B. We showcase the performance comparison between ProjFactor and OS in Figure 2(d-f), which aligns with our expectations.
3 Convergence Analysis
Incorporating Projection Granularity into LoRP approaches offers clear benefits, but it is crucial to ensure that variousgrained projections do not compromise the convergence of model training. This section provides such theoretical guarantees. The detailed proofs are deferred to Appendix D.
Convergence of VLoRP under SGD We consider a loss function L : Rn×m → R defined over matrix parameters W ∈ Rn×m. Fix a memory budget M, a granularity factor c, rank r, and G = ∇WL(W), we have
Theorem 1. Let L be an L-smooth function with respect to the matrix-shaped parameter W. Assume the parameter updates are given by Wt+1 = Wt - η Got , where the step size is defined as η = M (m+c+M)L := C. Then, for any T ≥ 1:

where W ∗ is a global minimizer of L.
Theorem 1 confirms that using random projection-based gradient estimation with VLoRP in conjunction with SGD achieves an O(1/T) convergence rate, regardless of the granularity factor c.
Convergence of VLoRP under ProjFactor To analyze the convergence of the proposed Adam-like memory-efficient optimization, ProjFactor, we adopt the Hamiltonian descent framework, following the line of work [Maddison et al., 2018; Chen et al., 2023; Liang et al., 2024; Nguyen et al., 2024]. The infinitesimal updates of Projfactor are defined as follows:
where a, b are constants. The corresponding Lyapunov function (Hamiltonian) is defined as
Then we have the following convergence guarantee:
Theorem 2. Suppose the functions in system equation 6 are continuously differentiable. Under mild assumptions (formally stated in Assumption 1 in Appendix D.2), we have
- For (Wt, ˜mst , ˜ vo rt , ˜ vo ct ) satisfying equation 6, we have d dt H(Wt, ˜mst , ˜ vo rt , ˜ vo ct ) ≤ 0.
- Any bounded solution (Wt, ˜mst , ˜ vo rt , ˜ vo ct )t of equation 6 converges to a stationary point of L(W) as t →∞.
Theorem 2 presents a Hamiltonian interpretation of Projfactor, indicating that the Lyapunov function, namely, the "energy" of the system, decreases monotonically over time. In addition, it ensures that ProjFactor stabilizes at a local optimum, provided the step sizes are sufficiently small.
4 Experimental Results
4.1 Fine-Grained Gradient Projection Improves Performance
VLoRP introduces a novel degree of freedom that extends beyond the rank parameter in LoRP approaches. This raises a critical question: Which level of the Projection Granularity is optimal for gradient projection?
To address this question, it is essential to first establish a fair basis for comparison: for a fixed granularity factor c, increasing the rank typically enhances performance while incurring additional memory costs; Similarly, for a fixed rank r, employing a finer-grained projection (larger c) also increases memory requirements, since the shape of the projected gradient ˜Gs is [nc, r]. We thereby denote a specific pair of (c, r) as a "configuration" of VLoRP, and define the "Memory Budget"Mas the product of c and r-for configurations sharing the sameM, the size of ˜Gs , which is needed to be stored, is the same.
Based on this, we conducted experiments on three representative benchmarks (Commonsense Reasoning, MMLU, GSM8K) to investigate how different configurations of projection granularity and rank affect finetuning performance under an identical memory budget.
The results are illustrated in Figure 3(a-c), where the yaxis represents performance (higher is better) and the x-axis indicates varying projection granularities defined by c = 45-i and r = 4i-1 . Thus, an increase in i corresponds to a smaller c and a larger r, with a smaller c representing coarser projection granularity. Notably, varying i does not change the product of c and r, thereby maintaining a constant overall memory cost. We observed that VLoRP configurations with finer projection granularity (i.e., larger c and smaller r) always yield higher performances. Specifically, the finest-grained VLoRP configuration (c = 44 , r = 40 ) achieves the highest accuracy scores of 61.40, 55.83, and 29.42 on three benchmarks, respectively, among all tested configurations sharing the same memory budget. These results suggest that projection granularity may have a more critical role than rank in balancing memory efficiency and performance. Furthermore, in Figure 3(d), we present the performance of VLoRP across different granularity factors under varying memory budgets.
| Methods | ARC C | ARC E | BoolQ | HellaSwag | OBQA | PIQA | SIQA | winogrande | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Llama2-7B | |||||||||
| Untuned Adam Adafactor | 42.26 ±1.45 47.12 ±1.46 48.06 ±1.46 | 75.26 ±0.87 78.55 ±0.83 79.22 ±0.82 | 76.86 ±0.73 82.27 ±0.65 80.50 ±0.68 | 56.17 ±0.49 56.08 ±0.49 56.24 ±0.49 | 30.40 ±2.08 33.60 ±2.13 34.20 ±2.14 | 77.91 ±0.97 77.45 ±0.96 77.56 ±0.96 | 45.11 ±1.13 52.53 ±1.13 52.02 ±1.13 | 58.78 ±1.30 71.69 ±1.25 71.22 ±1.26 | 58.84 62.41 62.38 |
| LoRA Galore fira APOLLO VLoRP | 44.23 ±1.46 44.13 ±1.45 44.06 ±1.45 44.28 ±1.45 45.56 ±1.46 50.86 ±1.46 51.96 ±1.44 51.89 ±1.45 | 76.66 ±0.85 76.65 ±0.87 76.63 ±0.87 76.26 ±0.87 77.78 ±0.85 | 80.21 ±0.68 78.23 ±0.72 78.12 ±0.73 77.74 ±0.73 80.58 ±0.69 | 55.79 ±0.49 57.59 ±0.49 57.69 ±0.49 57.00 ±0.49 57.59 ±0.49 | 33.00 ±2.13 32.00 ±2.09 32.40 ±2.09 31.40 ±2.08 34.00 ±2.12 33.00 ±2.10 | 76.57 ±0.97 77.95 ±0.97 77.78 ±0.97 77.97 ±0.97 77.86 ±0.97 | 47.94 ±1.13 46.01 ±1.13 46.21 ±1.13 46.11 ±1.13 48.16 ±1.13 | 69.69 ±1.27 69.71 ±1.29 69.89 ±1.29 69.46 ±1.29 69.69 ±1.29 | 60.51 60.28 60.35 60.03 61.40 |
| Llama3.1-8B | |||||||||
| Untuned Adam Adafactor LoRA | 51.54 ±1.46 | 81.44 ±0.80 80.85 ±0.84 80.94 ±0.84 81.65 ±0.85 | 82.20 ±0.67 83.44 ±0.70 83.12 ±0.71 | 59.93 ±0.49 61.36 ±0.49 61.37 ±0.49 | 34.80 ±2.10 34.00 ±2.09 | 79.94 ±0.93 81.94 ±0.98 81.03 ±0.94 | 46.84 ±1.13 49.32 ±1.13 49.31 ±1.13 | 73.76 ±1.24 76.72 ±1.25 76.79 ±1.26 | 63.18 65.05 64.91 |
| Galore | 51.62 ±1.45 | 82.54 ±0.73 | 60.21 ±0.49 60.40 ±0.49 | 33.20 ±2.07 33.80 ±2.11 | 80.14 ±0.96 ±0.95 | 46.72 ±1.13 | 73.80 ±1.29 74.35 ±1.28 75.06 ±1.28 | 63.73 63.90 | |
| fira APOLLO | 51.29 ±1.45 | 81.69 ±0.86 81.81 | 82.48 ±0.72 | 79.87 | 46.98 ±1.13 | ||||
| VLoRP | 51.09 ±1.46 52.65 ±1.46 | ±0.85 81.29 ±0.83 82.15 ±0.87 | 82.01 ±0.72 82.41 ±0.62 | 60.37 ±0.49 59.74 ±0.50 | 33.60 ±2.08 33.60 ±2.11 | 80.76 ±0.96 80.91 ±0.97 | 47.66 ±1.12 48.32 ±1.12 | 74.82 ±1.22 | 64.07 |
| 83.39 ±0.71 | 60.00 ±0.49 | 34.00 ±2.12 | 81.07 ±0.98 | 48.57 ±1.13 | 76.24 ±1.28 | 64.02 | |||
| 64.76 | |||||||||
| Qwen3-4B | |||||||||
| Untuned | 49.53 ±1.46 | 79.78 ±0.81 | 84.31 ±0.62 | 51.32 ±0.50 | 29.80 ±2.05 | 74.91 ±1.01 74.91 ±0.97 | 50.10 ±1.13 | 65.92 ±1.33 | 60.71 |
| Adam | 53.09 ±1.46 | 82.29 ±0.83 | 85.41 ±0.62 | 52.74 ±0.50 | 33.60 ±2.11 | 53.32 ±1.12 | 73.82 ±1.22 | 63.65 | |
| Adafactor LoRA Galore fira APOLLO VLoRP | 53.10 ±1.45 50.43 ±1.46 50.03 ±1.46 50.49 ±1.46 50.44 ±1.46 51.25 ±1.46 | 82.38 ±0.77 80.26 ±0.82 79.94 ±0.87 80.33 ±0.76 80.74 ±0.82 81.77 ±0.80 | 85.70 ±0.59 83.61 ±0.65 83.86 ±0.66 83.97 ±0.59 84.09 ±0.59 85.12 ±0.63 | 51.67 ±0.50 52.16 ±0.50 52.17 ±0.50 51.53 ±0.49 51.41 ±0.49 52.60 ±0.50 | 34.60 ±2.14 30.60 ±2.05 31.00 ±2.07 30.80 ±2.10 31.40 ±2.08 31.60 ±2.08 | 74.87 ±0.97 75.14 ±1.01 75.27 ±0.97 75.61 ±0.99 75.66 ±0.99 75.39 ±1.01 | 53.55 ±1.13 49.47 ±1.13 49.79 ±1.13 50.41 ±1.13 50.13 ±1.13 50.51 ±1.13 | 73.91 ±1.25 71.23 ±1.33 69.38 ±1.27 69.22 ±1.30 68.82 ±1.30 69.07 ±1.31 | 63.72 61.60 61.43 61.54 61.58 62.15 |
| Methods | Hum. | STEM | S. Sci. | Other | ALL |
|---|---|---|---|---|---|
| Untuned | 39.54 | 34.85 | 49.14 | 47.73 | 42.53 |
| Adafactor | 53.01 | 46.55 | 66.13 | 56.87 | 56.80 |
| Adam | 52.63 | 44.92 | 65.31 | 62.45 | 56.01 |
| LoRA | 50.74 | 43.61 | 60.93 | 59.73 | 53.55 |
| Galore | 50.22 | 42.61 | 60.25 | 59.52 | 52.93 |
| fira | 49.85 | 42.49 | 60.31 | 59.55 | 52.83 |
| APOLLO | 49.12 | 41.42 | 57.71 | 56.91 | 51.13 |
| VLoRP | 52.29 | 46.18 | 64.05 | 62.24 | 55.83 |
It is evident that finer-grained projections generally outperform coarser ones.
Beyond the performance advantages, finer-grained projection also offers several additional benefits: 1. Efficient Matrix Multiplication. Given the granularity factor c, the memory budget M and the reshaped gradient ˜G ∈ Rnc×(m/c) , the gradient projection operation ˜G˜ P leads to a computational complexity O ( nmM c ); 2. Faster Generation of Projection Matrix. Obviously, the efficiency of this generation process depends on the dimensions of the projection matrix ˜ P of the shape mc × Mc . As c increases, the projection granularity becomes finer, leading to a quadratic reduction in the size of the generated matrix and hence more efficient generation. The training runtimes reported in Table 4 empirically validate these, showing that the configuration with the finer granularity achieves the faster training speed. This improvement is the result of the two benefits described above; 3. Lower Numerical Error. As c increases, the numerical stability of the random projection tends to improve. As discussed above, a larger c reduces the number of floatingpoint arithmetic operations in matrix multiplications, which can help mitigate the accumulation of numerical errors. This is particularly important in low-precision training scenarios such as float16 or bfloat16, where limited mantissa precision can lead to instability. Furthermore, this numerical stability advantage is further amplified when using gradient accumulation or Adam-based optimizers, as these methods involve iteratively accumulating optimization states. We provide an analytical experiment in Appendix C.3 to support this claim.

4.2 Comprehensive Experiments
In this section, we evaluate the effectiveness of VLoRP across multiple finetuning tasks, demonstrating its competitiveness with state-of-the-art baselines. More experimental studies and implementation details can be found in Appendix C.
Datasets We present a comprehensive evaluation of our proposed approaches using three benchmarks: (1) Commonsense Reasoning, which covers 8 reasoning tasks including BoolQ [Clark et al., 2019], PIQA [Bisk et al., 2020], SIQA [Sap et al., 2019], Hellaswag [Zellers et al., 2019], WinoGrande [Sakaguchi et al., 2019], ARC-e and ARCc [Clark et al., 2018], and OBQA [Mihaylov et al., 2018]; (2) The MMLU benchmark [Hendrycks et al., 2020], which encompasses a wide range of subjects including Humanities, STEM, Social Sciences, and Other fields; (3) Finally, the GSM8K dataset [Cobbe et al., 2021], which consists of 8.5K high-quality math problems.
Baselines We compare VLoRP with 7 state-of-the-art baselines, covering full-parameter finetuning, LoRA, and LoRP methods. Specifically, we compare with Untuned, which represents the basic performance of the pre-trained model without finetuning, Adam [Kingma and Ba, 2014], Adafactor [Shazeer and Stern, 2018], LoRA [Hu et al., 2022], Galore [Zhao et al., 2024], fira [Chen et al., 2024b], and APOLLO [Zhu et al., 2024].
Experimental Settings We test Llama2-7B, Llama3-3B, Qwen3-4B models with the bfloat16 data type. We ensure that for each tested method, every token in the training set is encountered at least once. Gradient accumulation and activation checkpointing [Chen et al., 2016] are enabled.
Results and Analysis We report the performance of all methods on: (1) commonsense reasoning tasks in Table 1, (2)
the MMLU benchmark in Table 2, and (3) the GSM8k task in Figure 4. Generally, every fine-tuning strategy confers substantial performance gains over the untuned model. Among the fine-tuning baselines, full-parameter updates with Adam or Adafactor consistently achieve the strongest results across tasks; nevertheless, the inherent nature of full-parameter fine-tuning precludes memory efficiency. Notably, Adafactor delivers comparable even superior results to Adam, consistent with previous findings [Shazeer and Stern, 2018; Hao et al., 2024]. Moreover, the proposed VLoRP not only outperforms all memory-efficient fine-tuning baselines but in many instances achieves results comparable to full-parameter fine-tuning. Given the difficulty of the benchmarks experimented with, this result is decidedly non-trivial.
| Methods | GPU Mem. |
|---|---|
| Adam | 67.46 GB |
| LoRA(r = 256) | 28.80 GB |
| GaLore(r = 256) | 25.69 GB |
| Fira(r = 256) | 36.64 GB |
| APOLLO(r = 256) | 36.20 GB |
| VLoRP(M= 256) | 24.13 GB |
Configurations Runtime
c = 4-2 , r = 46 183s/iter
c = 40 , r = 44 165s/iter
c = 42 , r = 42 161s/iter
c = 44 , r = 40 157s/iter
Table 4: Training speed for different configurations. We tested with Llama2-7B model, bfloat16 data type, 512 batch size, and 1024 input length.
Memory Analysis We illustrate the memory usage of various methods in Table 3, emphasizing that VLoRP achieves the most significant memory reduction compared to baseline approaches. Once gradient accumulation is enabled, certain LoRP-based schemes-most notably Fira and APOLLO-require substantially more VRAM than other low-rank approaches. This overhead stems from their reliance on the full-rank gradient during weight update: they compress only the optimiser states, leaving the gradient tensor itself untouched. By contrast, VLoRP intrinsically lowers memory usage by operating exclusively on projected gradients. Specifically, for a parameter matrix W ∈ Rn×m, the total memory required for VLoRP is O(mn+2nM+n+m), whereM = c · r is the memory budget. On the other hand, LoRA requires significantly more storage, O(mn + 4mM+ 4nM), due to its need for additional low-rank matrices and optimization states.
5 Conclusion
In this work, we introduce VLoRP, a memory-efficient finetuning method for LLMs, which implements low-rank gradient projections with varying granularities. By adjusting the projection granularity alongside rank, VLoRP offers a more nuanced control over the trade-off between memory efficiency and performance. Convergence analysis and extensive empirical results confirm the effectiveness of our approach, making it a promising solution for practical deployment in memory-constrained settings.
Acknowledgements
This material is based upon work supported by the Air Force Office of Scientific Research under award number FA238624-1-4011, and this research is partially supported by the Singapore Ministry of Education Academic Research Fund Tier 1 (Award No: T1 251RES2509).
@inproceedings{ijcai2026p555,
title = {Unlocking More Granular Control of Memory-Efficient LLM Finetuning},
author = {Wang, Yezhen and Yang, Zhouhao and Pu, Fanyi and Kawaguchi, Kenji},
booktitle = {Proceedings of the Thirty-Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-26}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Diego Calvanese},
pages = {4985--4993},
year = {2026},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2026/555},
url = {https://doi.org/10.24963/ijcai.2026/555},
}
TY - CPAPER TI - Unlocking More Granular Control of Memory-Efficient LLM Finetuning AU - Wang, Yezhen AU - Yang, Zhouhao AU - Pu, Fanyi AU - Kawaguchi, Kenji T2 - Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-26 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2026 SP - 4985 EP - 4993 DO - 10.24963/ijcai.2026/555 UR - https://doi.org/10.24963/ijcai.2026/555 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: