MpSub: A Momentum -Dimensional Subspace Trust-Region Method for Derivative-Free Fine-Tuning of Large Language Models
Abstract
Full-parameter fine-tuning of large language models has substantial memory costs because backpropagation stores activations and gradients. Zeroth-order optimization avoids this by estimating update directions from loss evaluations, but existing methods require tuning a sensitive learning rate for each model and task. We propose the momentum -dimensional subspace trust-region method (MpSub). At each iteration, MpSub searches within a -dimensional subspace: one direction preserves historical momentum from the most recent accepted step, while the remaining directions explore via fresh random sampling. The subspace gradient is estimated by central differences, a trial step is computed from a linear trust-region model, and the trust-region radius adapts according to the agreement between predicted and observed loss reduction, eliminating the learning rate. For LLM fine-tuning, evaluations within an iteration share a minibatch, and directions are regenerated in place from seeds, using forward passes alone. For smooth deterministic objectives under unorthogonalized Gaussian directions, we bound the finite-difference error, quantify gradient energy captured by the subspace, and prove that almost surely under a safeguarded radius update. Under a matched budget of 8,400 training-objective forward passes, we fine-tune OPT-125M and OPT-350M on CommitmentBank. With the same preset parameters at both model sizes, MpSub attains mean test accuracies of 0.673 and 0.690 over three seeds, matching tuned MeZO (0.685) without any learning-rate search.
Create a lesson
Metadata
- Categories
- cs.LG, math.OC
- Comments
- 16 pages, 2 figures, 2 tables
Related papers
Risk-Conditioned Fine-Tuning of Large Language Models
Shared title terminologycs.LGZixuan Liu, Fangzheng Wu, Brian Summa et al.
CAMFT: Conflict-Aware Mergeable Fine-Tuning for Large Language Models
Shared title terminologycs.LGJingang Zhou, Haiyang Guo, Yuan Ma et al.
Predicting End-to-End Fine-Tuning Time for Generative Language Models
Shared title terminologycs.LGBreno Beleza, Felipe Lima, Isis Carvalho et al.
What Predicts Forgetting in LoRA Fine-Tuning Across Optimizers
Shared title terminologycs.LGZhiyong Jin
Privacy-Preserving Split Learning for Federated LLM Fine-Tuning
Shared title terminologycs.LGHeng Jin, Chaoyu Zhang, Hexuan Yu et al.
Fine-Tuning a KV Cache Concatenation-Aware Model or Recomputing KV Caches? Why Not Both?
Shared title terminologycs.LGFumihiko Tachibana, Daisuke Miyashita, Jun Deguchi