TL;DR
This paper introduces LoRA-Curve, a framework that constructs continuous, low-loss paths between distinct optima in the LoRA weight space using segmented Bézier curves. By navigating these non-convex valleys, the method enables effective Bayesian Model Averaging (BMA) for Large Language Models, capturing rich functional diversity and improving uncertainty estimation without sacrificing downstream performance.
What Problem Does This Paper Address?
Parameter-efficient fine-tuning via Low-Rank Adaptation (LoRA) is the industry standard for adapting Large Language Models (LLMs) to downstream tasks. However, standard LoRA fine-tuning typically yields a single point estimate that can easily converge to sharp minima, leading to overconfident predictions and suboptimal generalization.
While probabilistic methods like Variational Inference (VI) or Deep Ensembles (DE) aim to mitigate this by capturing epistemic uncertainty, recent studies in the LoRA regime surprisingly suggested that discrete multi-mode ensembles offer little benefit over single-mode methods. This paper challenges that notion by exploring the loss landscape of LoRA. The authors investigate whether continuous low-loss structures link independent LoRA optima and whether marginalizing over these paths can unlock functional diversity that discrete ensembles or local variational methods miss.
Methods
The authors propose LoRA-Curve, which parameterizes continuous paths in the LoRA weight space using composite, segmented Bézier curves. The path is defined by two types of control points: anchors (segment boundaries that lie directly on the curve) and handles (intermediate points that shape the path).
The framework features two main configurations:
- Anchored LoRA-Curve (ALC): The anchors are frozen to the weights of independently fine-tuned LoRA models (e.g., members of a Deep Ensemble), and only the intermediate handles are optimized to find a non-linear, low-loss path connecting them.
- Free LoRA-Curve (FLC): All control points (both anchors and handles) are jointly optimized from scratch, allowing the curve to dynamically discover optimal low-loss valleys.
To ensure the curves settle into wide, robust regions, the authors incorporate Flat-LoRA perturbations (injecting noise during training). They also introduce a margin-based Jensen-Shannon Divergence (JSD) regularizer to explicitly penalize predictive similarity at distant points on the curve, forcing the path to explore functionally diverse regions. During inference, they perform BMA via uniform averaging along the curve ($T \to \infty$) to prevent the model from double-counting training data and collapsing back into a single-point estimate.
Datasets
The authors evaluated their approach using the Qwen2.5 7B model on several standard reasoning and classification benchmarks:
- ARC-Challenge and ARC-Easy
- OpenBookQA (OBQA)
- BoolQ
- Winogrande (Small and Medium splits)
Additionally, they curated a custom set of out-of-distribution (OOD) multi-label examples structurally aligned with the ARC-Challenge dataset to rigorously evaluate predictive smoothness under severe distributional shifts.
Key Insights and Ideas
- Linear Interpolation Fails: Simple linear interpolation between independent LoRA optima encounters distinct loss barriers. However, the segmented Bézier curve parameterization successfully bends around these barriers to find continuous, low-loss valleys.
- Continuous Traversal Maps to Smooth Functionality: Moving continuously along the LoRA-Curve results in smooth, continuous transitions in predictive class probabilities, bridging the functional gaps left open by isolated deep ensemble members.
- The Double-Counting Trap: Standard posterior weighting ($T=1$) over-prioritizes data contributions because the curve has already been optimized on the training set. Switching to uniform averaging ($T \to \infty$) effectively mitigates this overconfidence and yields superior empirical performance.
- Output-Space vs. Weight-Space Regularization: Forcing geometric distance directly in the weight space (via a repulsive regularizer) pushes control points into high-loss regions. Instead, regularizing the output space via JSD successfully drives functional diversity without distorting the underlying low-loss path.
Key Results
- Outperforming Deep Ensembles: The higher-order ALC(N, 2) configuration consistently matched or outperformed discrete Deep Ensembles (DE) in test log-likelihood across the benchmarks. For instance, on the ARC-Challenge dataset, ALC(9,2) achieved a log-likelihood of -0.267 compared to -0.287 for DE(9).
- Enhanced Mutual Information: Integrating JSD regularization significantly increased the mutual information of the predictive distribution (capturing higher epistemic uncertainty) without sacrificing accuracy or calibration error (ECE).
- FLC Generalization Gap: Although the Free LoRA-Curve (FLC) configuration optimizes much faster than the sequential training required for ALC, it exhibits a prominent generalization gap on certain datasets like Winogrande_m, showing a misalignment between training and test landscapes.
Limitations and Future Work
- One-Dimensional Trajectories: The analysis is strictly limited to one-dimensional, globally coupled paths. Extending this parameterization to higher-dimensional surfaces or assigning independent curves to individual LoRA adapters remains a challenge that could severely degrade interpretability.
- Scalability of Uniform Weighting: While uniform weighting bypasses the computational bottleneck of evaluating the full posterior in 1D, it would likely prove insufficient for higher-dimensional parameterizations.
- FLC Generalization: Resolving the optimization dynamics that cause the generalization gap in the Free LoRA-Curve configuration is a key open direction for future work.
Summary updated