NeurIPS 2026 · LLM post-training

LoRA vs. Full-Parameter Training: Which Is Better? Gradient-Guided Optimizer Routing for LLM Adaptation

Haozhan Tang1,2Xiuqi Zhu1,*Xinyin Zhang1,*Boxun Li3Virginia Smith1Kevin Kuo1

1 Carnegie Mellon University2 Tsinghua University3 Infinigence AI

* Equal contribution

LoRA or Full Fine-tuning? Or can we have both?

TL;DRWe post-trained LLMs using full fine-tuning (FFT) and LoRA on three tasks and three models, and the winner depended on the task. Compressibility alone does not explain the split: on Qwen2.5-1.5B, the task where LoRA trails most has the most compressible FFT update. MoLF keeps a dense and a low-rank pathway in every linear projection and lets the optimizer update one of them per step, landing within 1.5 points of the better baseline in all nine settings.

Left: bar chart where FFT scores higher than LoRA on CounterFact for Gemma-3-1B and Qwen2.5-3B, and LoRA scores higher on MedMCQA. Right: the MoLF block, where the input feeds a dense FFT expert W and a LoRA expert s·B·A whose outputs are summed; full-batch gradients reach both experts, and the MoLF optimizer sends the update to one of them.

Figure 1 of the paper. Left: FFT scores higher on CounterFact, tuned LoRA on MedMCQA. Right: MoLF writes each linear projection as W + s·B·A. Both pathways get full-batch gradients through the dense forward pass, and the MoLF optimizer sends each update to one of them.

01 · LoRA or FFT?

The better method depends on the task

Ask whether LoRA or full fine-tuning (FFT) is better and you can find a paper for either answer. The LoRA paper reported matching or beating FFT, while Biderman et al. found that "LoRA learns less and forgets less." Those studies differ in models, tasks and tuning budgets, so we compared the two on the same models and tasks, sweeping the learning rate and scheduler for both and the LoRA rank from 8 to 128.

We used Gemma-3-1B, Qwen2.5-1.5B and Qwen2.5-3B on three tasks that ask for different things. CounterFact (Fact) trains on 21,919 counterfactual edits, like "The mother tongue of Danielle Darrieux is English," and scores those same edits with the Efficacy Score: the share where the model now prefers the new answer over the true one. So Fact measures how many new associations the model can absorb. MedMCQA (Med) trains on four-option medical exam questions and is scored on the held-out validation split. Gretel's synthetic Text-to-SQL (SQL) is scored on held-out test queries.

FFTLoRA at each rank (larger dot: best rank)

Efficacy Score (%) on Fact, accuracy (%) on Med and SQL. Each point is the best learning rate and scheduler for its method and rank, from one training run. From Table 1 of the paper.

Fact

FFT ahead by 4.17 to 5.69 points

FFT beats every swept LoRA rank on every model, and going up to rank 128 does not close the gap: on Qwen2.5-3B the LoRA score drops from rank 8 to rank 32 before recovering at 128. Absorbing about 22,000 new facts may need the dense update's capacity, or a training path that low-rank factors cannot follow. The size of the gap is less certain: in a separate five-seed study on Qwen2.5-1.5B, FFT led LoRA-128 by only 0.70 points on average, and LoRA scored higher on three of the five seeds.

Med

Tuned LoRA ahead by 2.27 to 4.04 points

Rank 128 is the best LoRA setting on all three models, and it beats FFT each time. A regularization story fits: low-rank factors filter and rescale what the gradient can change. We did not measure forgetting directly, so this stays a hypothesis.

SQL

Within 1.5 points at every rank

On every model the best LoRA rank lands within 0.83 points of FFT. That usually reads as a low-rank task, yet on Qwen2.5-1.5B the FFT update for SQL keeps a median 60% of its energy beyond rank 128, and every LoRA rank still comes within 0.86 points of it.

02 · Is it rank?

The most compressible update is where LoRA falls furthest behind

If the winner changes with the task, what decides it? A natural guess is rank: FFT wins on Fact because the Fact update needs more rank than LoRA has, and LoRA keeps up on SQL because the SQL update is nearly low rank. We checked this on the archived Qwen2.5-1.5B FFT checkpoints, taking the update ΔW = WFFT − Wbase for every projection matrix in all 28 layers (196 matrices per task). The data points the other way.

Energy outside the best rank-128 approximation

median T128

Lower means more compressible. Fact's update is the most compressible of the three, and its stable rank is 20.9, against 44.6 for Med and 70.4 for SQL.

Score lost when the update is cut to rank 128

Paired matrix by matrix, the median Fact-minus-SQL difference in tail energy is −0.109 (95% layer-bootstrap interval −0.127 to −0.099), so a few odd layers do not explain the ordering. Two explanations are still standing. The score may depend on low-energy directions, the ones a rank cut discards first. And training low-rank factors constrains every step of the optimization path, which is a different thing from compressing a finished FFT run. These measurements cannot tell the two apart, but for choosing a method the lesson is the same: the spectrum of a finished FFT run is a poor guide.

Qwen2.5-1.5B with one archived FFT checkpoint per task, so the intervals reflect variation across layers, not training seeds. T128 is the fraction of squared Frobenius energy outside the best rank-128 approximation, as a median over 196 matrices. From Section 3 and Appendix C of the paper (Tables 2 and 8).

03 · MoLF

Keep both pathways, update one

So the better parameterization depends on the task, and the spectrum of a finished FFT run is a poor guide to which one it is. MoLF, short for Mixture of LoRA and Full fine-tuning, moves that choice into the optimizer, so one method can get close to the better of the two without picking one in advance. We still tuned its dense learning rate and scheduler in each setting, as we did for the baselines. We call the two pathways experts, but nothing is routed per token: both process the whole batch, and only the weight update is sparse.

1

A dense and a low-rank pathway in every linear projection

The dense weight W is the FFT pathway. Each (A, B) pair is a rank-r LoRA pathway with RS-LoRA scaling. Standard MoLF uses one rank-128 pathway, and because B starts at zero, training starts from exactly the pretrained model.

\[ y = W_{\text{base}}\,x + \sum_{i=1}^{N} \frac{\alpha_i}{\sqrt{r_i}}\, B_i A_i\big(\mathrm{Dropout}(x)\big) \]
2

Both pathways keep their optimizer state current

Every pathway gets the batch gradient and updates its Adam moments at every step, selected or not, and the step counters advance together. A pathway that sat out for many steps resumes from current moments instead of cold ones.

\[ \begin{aligned} m_t^{(i)} &= \beta_1 m_{t-1}^{(i)} + (1-\beta_1)\, g_t^{(i)} \\ v_t^{(i)} &= \beta_2 v_{t-1}^{(i)} + (1-\beta_2)\big(g_t^{(i)}\big)^2 \end{aligned} \]
3

Score by expected preconditioned descent

AdamW steps along m/√v, so the raw gradient norm misses the per-coordinate scaling that sets the actual step. EPD estimates, to first order, how much the loss would drop if this pathway took its Adam step, divided by its parameter count. It is a heuristic, and it moves with the learning rate, the parameter count and the LoRA scale.

\[ S_t^{(i)} = \frac{\eta_t^{(i)}}{N^{(i)}_{\text{params}}} \sum_{\theta\in\Theta_i} \frac{\big(m_t^{(i)}\big)^2}{\sqrt{v_t^{(i)}}+\epsilon} \]
4

Update the winner, merge at the end

Within each module, the pathway with the higher score takes the AdamW step, weight decay included, and the other keeps its weights; we call this Top-1 routing. Every projection decides on its own. After training the LoRA pathway folds into the dense weight, so you ship a plain checkpoint with no adapter and no router.

\[ W_{\text{final}} = W_{\text{base}} + \sum_{i=1}^{N} \frac{\alpha_i}{\sqrt{r_i}}\, B_i A_i \]
MoLF overview: the input feeds the FFT expert W and the LoRA expert s·B·A; their outputs are summed. The loss gradient flows back to both experts. Inside the MoLF optimizer, momentum and learning-rate tracking feed the EPD score function, and a winner-select block sends the update to one expert.

Figure 2 of the paper. Both pathways run forward and backward and accumulate AdamW moments at every step. The selector acts only on the physical weight update. Routing happens after the backward pass.

04 · Results

Within 1.5 points of the better baseline in every setting

MoLF stays close to FFT on Fact and to tuned LoRA on Med without choosing a method in advance, and it has the top score of the three in three of the nine settings.

FFTLoRA, best rankMoLFwithin 1.5 pts of the better baseline

8B math reasoning

+10.93 vs. LoRA-128

Meta-Llama-3-8B, trained for one epoch on 34,702 ODA-Mixture-100k examples, with every method at learning rate 5e-5 and one training run each. On MATH-500, averaged over three generation seeds, MoLF beats LoRA-128 by 10.93 points (95% interval over evaluation problems: 8.40 to 13.40) and trails FFT by 1.40 (MoLF minus FFT: −3.87 to 1.00, which includes zero). LoRA hits the 7,168-token generation cap in 70.2% of generations, against 58.5% for FFT and 60.1% for MoLF, so part of its gap may come from not finishing within the window.

Five training seeds on CounterFact

74.57 ± 0.87

These are separate runs on Qwen2.5-1.5B with fixed settings, not repeats of the runs charted above. Over five seeds (mean ± SD), MoLF scores 74.57 ± 0.87, FFT 71.04 ± 2.58 and LoRA-128 70.35 ± 0.49. MoLF beats LoRA-128 on all five paired seeds and FFT on four of five, but the paired 95% interval against FFT (−0.24 to +7.29) includes zero, and FFT runs at a different learning rate. A rank-256 LoRA, whose key and value adapters can reach full rank, scores 74.59 ± 0.87, close to MoLF. That is compatible with capacity, rather than routing alone, driving MoLF's lead over LoRA-128.

05 · Inside the router training dynamics

Most projections commit to one pathway early

The router can switch any module at any step, but it rarely does. The aggregate mix usually settles within about 500 steps, and most modules stay with one pathway for the rest of training. In the two settings we broke down by projection type, four of the seven types send at least 99% of their updates to one pathway.

Update went to FFTUpdate went to LoRA

Key and value projections take the dense update every time. Gate and up projections take the LoRA update more than 99% of the time. Down projections mostly go dense and output projections mostly LoRA, while the LoRA share of query projections moves with the setting: 77 to 83% on Med, 96 to 97% on Fact. The ranges span five EPD seeds per setting. EPD depends on parameter count and gradient scale, so part of this pattern can come from the shapes of the matrices rather than the task.

Nine heatmaps of per-module router decisions over training, for Gemma-3-1B, Qwen2.5-1.5B and Qwen2.5-3B on SQL, Med and Fact. Each row is a module and each column an optimizer step. Rows form horizontal bands of a single color, showing that modules commit to one pathway early.

Figure 6 of the paper. Each row is one module, each column an optimizer step, and the color is the pathway that took the update (darker: FFT, lighter: LoRA). The horizontal bands mean modules commit early. Med leans LoRA on Gemma-3-1B and Qwen2.5-1.5B and splits about evenly on Qwen2.5-3B; Fact and SQL vary with the backbone.

Does the choice matter?

Two ablations pull apart the two things MoLF does. Updating both pathways at every step (K = 2) removes the restriction to one update, which also doubles the number of weight updates; a coin flip keeps one update per module but picks it at random.

Updating both pathways

Update both (K = 2)Top-1, PFN scoreTop-1, EPD score

EPD against a fair coin

EPD ahead on 4 of 5 seeds
EPDCoin flip

On Qwen2.5-3B MedMCQA, with the update count matched at one pathway per module per step and the same initialization and data order, a coin flip lands within 1.9 points of EPD on four of five seeds and collapses to 33.44 on seed 44. EPD is ahead on four of five seeds and leads by 5.90 points on average; without seed 44, the lead is 0.68 points, with EPD ahead on three of four. The results favor the informed choice in this setting, but the size of its gain is uncertain, and one collapse is not enough to call EPD more stable.

06 · Limits

What MoLF costs, and what is still open

Top-1 routing skips a pathway's weight update, not its computation. Standard MoLF keeps FFT's dense gradients and Adam state and adds a rank-128 pathway, so it stores at least FFT's training state and gives none of LoRA's memory savings. Inference costs nothing extra, because the LoRA pathway merges into the dense weights.

Overhead over FFT, Qwen3-8B-Base on eight H100s

19.6% → 9.4% step time
Step timePeak memory

Step-time overhead falls from 19.6% at a 4K-token context to 9.4% at 32K as token compute grows, while peak memory overhead rises from 0.7% to 10.6%. In a separate benchmark on one H100, with a different model, precision and software stack (Qwen2.5-7B, 512 tokens per step), a MoLF step takes 63.8% longer than an FFT step. The two setups are not points on one curve, and both use the current implementation, which has not been optimized for speed.

Open problems

  1. An efficient MoLF is the biggest open problem: a version that keeps MoLF's accuracy at a LoRA-like memory cost. MoLF-E in the paper freezes the base model and routes between two LoRA adapters, which saves memory but drops the dense pathway, so it no longer chooses between FFT and LoRA.
  2. EPD is a first-order heuristic, and it is not rank-invariant. At equal learning rates and LoRA scaling constants, a rank-r pathway can get roughly a √(128/r) higher EPD score than a rank-128 one. Rank-aware scores, learning rates and routing priors are untested.
  3. Larger candidate pools could adapt more finely, for example several ranks, or coordinate-sparse updates that restrict which entries change instead of the rank. Each candidate adds forward and backward work and optimizer state.
  4. Can routing design the architecture? The overall routing mix usually settles within about 500 steps and most modules commit to one pathway early, so a short burn-in might already show which projections the router prefers to update densely and which with low rank. We think this is a very interesting direction, and it may reach past fine-tuning. Multi-head latent attention (MLA), from DeepSeek-V2, switches the key and value projections to low-rank factors that share one latent, a choice made by hand. A router like MoLF's could make the dense-or-low-rank part of that choice from gradients, one projection at a time, and perhaps reinvent MLA-style designs or find new ones. Several pieces are still missing: we have not shown that early routing predicts what works best, EPD needs a correction for matrix shape, a shared latent needs candidates that span several projections, and fine-tuning may answer a different question than architecture design. The evidence so far is mixed: in the two settings we broke down by projection type, the router kept every key and value update dense, while on Gemma-3-1B Med most key and value updates went to LoRA. MLA, by contrast, makes the key and value weights themselves low rank.

    MoLF x W dense low rank A B y router updates one MLA-style attention h W Q q A c cached B K B V k v attention
    A sketch of the idea. In MoLF, every projection has a dense pathway W and a low-rank pathway B·A, and the router updates one of them at each step. In MLA-style attention, the key and value projections become low-rank factors that share one down-projection A, so the cache holds the small latent c instead of full keys and values. The sketch leaves out two details of DeepSeek-V2: it compresses Q too, and it also caches a small decoupled RoPE key.

Code

Try it

The code is a small PyTorch package: the MoLF wrapper, the sparse AdamW optimizer, both score functions, and the FFT and LoRA baselines. One command fine-tunes, merges the LoRA pathway into the base linears and runs the evaluator.

git clone https://github.com/11785T23/molf.git && cd molf
pip install -e .
# train.py logs to Weights & Biases
export WANDB_ENTITY=<your-entity> WANDB_PROJECT=molf
torchrun --nnodes 1 --nproc_per_node=1 src/script/train.py \
    --model_name_or_path Qwen/Qwen2.5-1.5B --dataset_type med \
    --mode molf --molf_score_fn true_projected --molf_topk 1 \
    --molf_lora_ranks "[128]" --use_rslora True \
    --learning_rate 5e-5 --lora_learning_rate 5e-5 \
    --weight_decay 0.1 --lora_weight_decay 0.01 \
    --per_device_batch_size 8 --gradient_accumulation_steps 4 \
    --num_train_epochs 2 --lr_scheduler_type cosine --warm_up_ratio 0.1 \
    --ckpt_dir_root ckpts/molf

--dataset_type takes sql, med or fact, and --mode fft or --mode lora runs the baselines. The per-step routing log, molf_expert_selection.jsonl, lands next to the merged checkpoint.

Citation

@inproceedings{tang2026molf,
  title={Beyond {LoRA} vs. Full Fine-Tuning: Gradient-Guided Optimizer Routing for {LLM} Adaptation},
  author={Tang, Haozhan and Zhu, Xiuqi and Zhang, Xinyin and Li, Boxun and Smith, Virginia and Kuo, Kevin},
  booktitle={The Fortieth Annual Conference on Neural Information Processing Systems},
  year={2026},
  url={https://arxiv.org/abs/2605.07111}
}