IGU-LoRA: Adaptive Rank Allocation via Integrated Gradients and Uncertainty-Aware Scoring
Organizations: Chongqing Technology and Business University · Shanghai Jiao Tong University
Abstract
As large language models (LLMs) scale to billions of parameters, full-parameter fine-tuning becomes compute- and memory-prohibitive. Parameter-efficient fine-tuning (PEFT) mitigates this issue by updating only a small set of task-specific parameters while keeping the base model frozen. Among PEFT approaches, low-rank adaptation (LoRA) is widely adopted; however, it enforces a uniform rank across layers despite substantial variation in layer importance, motivating {layerwise} rank allocation. Recent adaptive-rank variants (e.g., AdaLoRA) allocate ranks based on importance scores, yet typically rely on instantaneous gradients that capture only local sensitivity, overlooking non-local, pathwise effects within the same layer, which yields unstable and biased scores. To address this limitation, we introduce IGU-LoRA, an adaptive-rank LoRA that (i) computes within-layer Integrated Gradients (IG) sensitivities and aggregates them into a layer-level score for rank allocation, and (ii) applies an uncertainty-aware scheme using exponential moving averages with deviation tracking to suppress noisy updates and calibrate rank selection. Theoretically, we prove an upper bound on the composite trapezoidal rule approximation error for parameter-space IG under a pathwise Hessian-Lipschitz condition, which informs the quadrature budget. Across diverse tasks and architectures, IGU-LoRA consistently outperforms strong PEFT baselines at matched parameter budgets, improving downstream accuracy and robustness. Ablations confirm the contributions of pathwise within-layer sensitivity estimates and uncertainty-aware selection to effective rank allocation. Our code is publicly available at https://github.com/withyou12/igulora.git
Figures & tables
| Method | # Params | CoLA | SST-2 | MRPC | QQP | STS-B | MNLI | QNLI | RTE | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|
| (mcc) | (acc) | (acc-f1) | (acc-f1) | (corr) | (acc) | (acc) | (acc) | |||
| Full FT | 355M | 69.19 | 95.63 | 89.46 | 91.10 | 91.60 | 90.01 | 94.03 | 86.94 | 88.50 |
| Housbly-Adapter | 0.35M | 67.80 | 94.38 | 89.75 | 89.41 | 91.08 | 90.28 | 93.52 | 84.36 | 87.57 |
| P-tuning v2 | 0.31M | 67.35 | 93.13 | 88.49 | 88.63 | 90.41 | 89.19 | 91.94 | 82.42 | 86.45 |
| (IA) 3 | 0.33M | 68.62 | 93.82 | 89.54 | 89.78 | 90.84 | 89.87 | 92.60 | 82.75 | 87.23 |
| SSP | 0.36M | 69.89 | 94.96 | 90.08 | 90.14 | 91.37 | 90.42 | 94.16 | 84.88 | 88.24 |
| Method | # Params | BoolQ | ARC-e | ARC-c | GSM8K | AQuA | Avg. |
|---|---|---|---|---|---|---|---|
| (acc) | (acc) | (acc) | (acc) | (acc) | |||
| Full FT | 494.0M | 81.74 | 74.82 | 54.98 | 34.64 | 48.72 | 58.98 |
| Housbly-Adapter | 9.0M | 78.36 | 71.04 | 53.26 | 28.67 | 42.85 | 54.84 |
| LoRA | 8.8M | 78.94 | 72.78 | 54.38 | 31.42 | 45.33 | 56.57 |
| AdaLoRA | 8.9M | 80.32 | 73.90 | 54.23 | 33.27 | 46.58 | 57.67 |
| GoRA | 8.8M | 79.24 | 71.20 | 51.91 | 32.07 | 45.81 | 56.04 |
| Llama-2-7B | |||||||
|---|---|---|---|---|---|---|---|
| Method | # Params | SST-2 | RTE | QNLI | BoolQ | COPA | Avg. |
| Full FT | 6738M | 95.83 | 92.11 | 92.54 | 87.30 | 93.01 | 92.16 |
| Adapter | 21.2M | 94.15 | 82.12 | 93.10 | 87.03 | 91.10 | 89.50 |
| P-tuning v2 | 20.9M | 93.42 | 79.62 | 92.64 | 84.73 | 90.30 | 88.14 |
| SSP | 40.0M | 94.14 | 83.11 | 93.10 | 87.11 | 91.65 | 89.82 |
| LoRA | 20.0M | 94.12 | 83.37 | 93.10 | 87.34 | 91.33 | 89.85 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | learning rate | batch size | Max. Sequence Length | # epochs | ||||
|---|---|---|---|---|---|---|---|---|
| MNLI | ||||||||
| RTE | ||||||||
| QNLI | ||||||||
| MRPC | ||||||||
| QQP | ||||||||
| SST-2 |
| Hyperparameter | |||||
|---|---|---|---|---|---|
| Value |
| Module Removed | Rank | Boolq | |
| 1 | L3_K | 10 | 81.15 (-1.30) |
| 2 | L10_V | 10 | 81.12 (-1.33) |
| 3 | L3_K / L10_V | 10 / 10 | 80.44 (-2.01) |
| 4 | L1_K | 5 | 82.40 (-0.05) |
| 5 | L3_V | 5 | 82.35 (-0.10) |
| 6 | L1_K / L3_V | 5 / 5 | 82.30 (-0.15) |
| Method | Humanities | STEM | Social. | Other | Avg. |
|---|---|---|---|---|---|
| Full FT | 49.91 | 41.70 | 57.53 | 57.02 | 51.54 |
| LoRA | 46.15 | 40.84 | 56.63 | 56.23 | 49.94 |
| IGU-LoRA | 47.33 | 41.71 | 58.12 | 57.10 | 51.07 |
| Method | VQAv2 | GAQ | COCO Captioning | Avg. | |
|---|---|---|---|---|---|
| Full FT | 66.91 | 56.72 | 73.71 | 112.04 | 77.35 |
| LoRA | 64.32 | 54.10 | 71.25 | 109.56 | 74.31 |
| DoRA | 65.81 | 54.71 | 73.14 | 115.93 | 77.40 |
| IGU-LoRA | 65.78 | 55.32 | 73.42 | 115.36 | 77.47 |
| Batch Size | Seed 1 | Seed 2 | Seed 3 | Seed 4 | Seed 5 |
|---|---|---|---|---|---|
| 2 | 82.46 | 82.47 | 82.45 | 82.46 | 82.45 |
| 4 | 82.45 | 82.46 | 82.44 | 82.45 | 82.44 |
| 8 | 82.44 | 82.45 | 82.43 | 82.44 | 82.43 |
| 16 | 82.45 | 82.46 | 82.44 | 82.45 | 82.44 |
| 32 | 82.40 | 82.41 | 82.39 | 82.40 | 82.39 |
| Datasets | # train | # dev | # test | Type | Metrics |
|---|---|---|---|---|---|
| Common-Sense reasoning tasks | |||||
| BoolQ | 9427 | - | 3270 | Common-Sense reasoning | Acc |
| ARC-e | 2251 | 570 | 2376 | Common-Sense reasoning | Acc |
| ARC-c | 1119 | 299 | 1172 | Common-Sense reasoning | Acc |
| COPA | 400 | 100 | 500 | Common-Sense reasoning | Acc |
| Mathematical reasoning tasks | |||||
LLM Fine-Tuning
LLM fine-tuning adapts pretrained large language models to tasks, domains, languages, and behaviors through additional training.
See all 738 papers