Research map / Large language models / Instruction and fine-tuning
C-LoRA: Contextual Low-Rank Adaptation for Uncertainty Estimation in Large Language Models
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes C-LoRA, a Bayesian LoRA fine-tuning method whose low-rank middle matrix E is sampled from an input-conditioned Gaussian posterior produced by lightweight contextual modules, improving calibration on LLaMA2-7B few-shot commonsense reasoning tasks.
Problem
LoRA fine-tuning of LLMs in data-scarce few-shot settings yields overconfident predictions, and existing uncertainty-aware LoRA methods ignore how input characteristics affect predictive (aleatoric/data) uncertainty.
Approach
Insert a small r×r matrix E between LoRA factors B and A, make E's Gaussian variational posterior conditioned on each input via per-layer contextual MLPs, and train with an amortized ELBO (BLoB-style mean-field VI with input-dependent posterior), so only E is stochastic and the cost is independent of hidden dimension d.
Key results
- C-LoRA (M=10) reaches ECE 6.86% on WG-S and 8.83% on ARC-C, lower than the baselines' best in those tasks' calibration comparisons, while accuracy stays within 1-2% of the best methods (e.g., ARC-C 67.79%).
- After temperature scaling, C-LoRA (M=0, tmp) achieves ECE 4.00% on WG-S and 3.86% on ARC-E, best or second-best in 4 of 6 datasets.
- Under OBQA-to-OOD shift, C-LoRA (M=10) obtains the lowest NLL on Chem (1.31) and Phy (1.42) among the compared methods.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add input-dependent contextual modules for E, rather than using non-contextual mean-field VI (ablation) | C-LoRA on LLaMA2-7B · Six common-sense reasoning tasks | ECE: FE (M=10): 18.12, 19.60, 9.54, 12.21, 8.42, 1.34; C-LoRA (M=10): 6.86, 8.83, 4.27, 3.71, 4.00, 1.62 | Helped |
| Add input-dependent contextual modules for E, rather than using non-contextual mean-field VI (ablation) | C-LoRA on LLaMA2-7B · Six common-sense reasoning tasks | NLL: FE (M=10): 0.78, 1.35, 0.65, 0.63, 0.60, 0.34; C-LoRA (M=10): 0.63, 0.88, 0.48, 0.57, 0.59, 0.35 | Helped |
| Add input-dependent contextual modules for E (ablation) | C-LoRA on LLaMA2-7B · OBQA fine-tuning, Chem OOD | accuracy: 46.00 to 41.00 | Hurt |
| Use a full stochastic E matrix instead of diagonal E (ablation) | Lightweight factorization on LLaMA2-7B · Six common-sense reasoning tasks | ECE | Helped |
| Use a full stochastic E matrix instead of diagonal E (ablation) | Lightweight factorization on LLaMA2-7B · ARC-C | accuracy | Mixed |
| Use posterior sampling (M=10) instead of posterior mean (M=0) (ablation) | C-LoRA · WG-S | ECE: 7.16 -> 6.86 | Helped |
| Apply temperature scaling to C-LoRA (M=0) (ablation) | C-LoRA · WG-S | ECE: 7.16% to 4.00% | Helped |
| Apply temperature scaling to C-LoRA (M=10) (ablation) | C-LoRA · OBQA | ECE: 4.00% to 6.27% | Hurt |
| Use contextual C-LoRA (M=10) instead of BLoB (M=10) | LLaMA2-7B · Six in-distribution reasoning tasks | accuracy | Hurt |
| Use contextual C-LoRA (M=10) instead of BLoB (M=10) | LLaMA2-7B · ARC-C | ECE: 10.77 -> 8.83 | Helped |
| Use contextual C-LoRA (M=10) instead of BLoB (M=10) | LLaMA2-7B fine-tuned on OBQA · Chem OOD | NLL: 1.35 -> 1.31 | Helped |
Surprising findings
- Temperature scaling can worsen ECE for C-LoRA (M=10) on some datasets (e.g., OBQA from 4.00% to 6.27%).
- C-LoRA trades a small amount of accuracy for better calibration, and in the OOD Chem setting it has subpar accuracy relative to baselines.
Limitations
- Experiments limited to LLaMA2-7B; scaling to larger models untested.
- No theoretical guarantee that the method disentangles aleatoric from epistemic uncertainty; variational Gaussian posterior is mode-seeking.
- Accuracy is slightly reduced relative to non-Bayesian baselines, a trade-off that is task-dependent.
Experimental setup
Datasets: WinoGrande-small WinoGrande-medium ARC-Challenge ARC-Easy OpenBookQA BoolQ Chem Phy MMLU
Benchmarks: WinoGrande-small WinoGrande-medium ARC-Challenge ARC-Easy OpenBookQA BoolQ Chem Phy
Metrics: ACC ECE NLL
Baselines: MAP Monte Carlo dropout Deep Ensemble Laplace-LoRA BLoB
Builds on: LoRA BLoB Laplace-LoRA Deep Ensemble Monte Carlo dropout
Closest papers by meaning
- Bayesian Low-rank Adaptation for Large Language Models (ICLR 2024 · similarity 0.93)
- QA-LoRA: Quantization-Aware Low-Rank Adaptation of Large Language Models (ICLR 2024 · similarity 0.92)
- Uni-LoRA: One Vector is All You Need (NeurIPS 2025 · similarity 0.91)
- Make LoRA Great Again: Boosting LoRA with Adaptive Singular Values and Mixture-of-Experts Optimization Alignment (ICML 2025 · similarity 0.91)
- Dynamic Low-Rank Sparse Adaptation for Large Language Models (ICLR 2025 · similarity 0.91)
- Beyond LoRA vs. Full Fine-Tuning: Gradient-Guided Optimizer Routing for LLM Adaptation (NeurIPS 2026 · similarity 0.91)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
