Abstract
Parameter-Efficient Fine-Tuning (PEFT) methods have emerged as a widely adopted strategy for adapting pre-trained Large Language Models (LLMs) to downstream tasks, significantly reducing memory and computational costs. However, most existing PEFT techniques uniformly deploy LoRA adapters across all layers, disregarding the intrinsic heterogeneity of layer contributions and task-specific rank requirements. This uniform paradigm leads to redundant parameter allocation and suboptimal adaptation efficiency. To address these limitations, we propose FLoE, a novel PEFT framework that introduces two key innovations: (i) a Fisher information-guided importance scoring mechanism to dynamically identify task-critical transformer layers for MoE-based low-rank adaptation, enabling sparse adapter deployment; and (ii) a Bayesian optimization-driven rank allocator that automatically determines optimal LoRA ranks on specific datasets without exhaustive grid search. Extensive experiments across diverse LLMs and benchmarks reveal that FLoE achieves impressive efficiency-accuracy trade-offs, making FLoE particularly advantageous in resource-constrained environments that necessitate rapid adaptation.
Introduction
Adapting Large Language Models (LLMs) to specific domains typically relies on Parameter-Efficient Fine-Tuning (PEFT), with Low-Rank Adaptation (LoRA) being the most prominent technique. However, standard LoRA implementations often suffer from a "one-size-fits-all" inefficiency, where adapters are deployed uniformly across every layer of the transformer stack. This approach ignores the fact that different layers contribute unequally to specific tasks, leading to parameter redundancy and potential domain interference in multi-task scenarios.
FLoE (Fisher-Based Layer Selection) addresses these challenges by moving away from uniform deployment. By identifying task-critical layers and optimizing adapter ranks dynamically, FLoE achieves performance comparable to or better than full-layer tuning while significantly reducing the parameter footprint and inference latency.
Methodology
FLoE introduces a sparse adaptation strategy built upon a Mixture-of-Experts (MoE) LoRA architecture. The framework focuses on two primary optimizations: where to adapt and how much to adapt.
Fisher Information-Guided Selection
The core of FLoE is a mechanism to measure the "sensitivity" of each layer using the Fisher Information Matrix. Layers whose parameters are highly sensitive to the adaptation loss are deemed "critical." To identify these layers, FLoE employs a three-stage masking process:
- Determination: A greedy search initializes a binary mask to separate important components from unimportant ones.
- Refinement: A swapping protocol iteratively improves the mask under a fixed parameter budget.
- Tuning: A differentiable stage relaxes binary masks into continuous values to precisely measure parameter importance.
Dynamic Rank Allocation
Rather than manually selecting a fixed LoRA rank ($r$), FLoE utilizes Bayesian Optimization (specifically the Tree-structured Parzen Estimator). This allows the framework to automatically discover the optimal rank for a given dataset in fewer than 100 trials, bypassing the need for computationally expensive grid searches.
Experimental Setup
The authors evaluated FLoE across several state-of-the-art models, including LLaMA2-7B, Gemma2-2B, and Mistral-7B. The benchmarks spanned multiple domains:
- Single-Domain: MMLU (General), Clinic-10K (Medical), Lawyer-Instruct (Legal), CodeAlpaca (Code), and GSM8K (Math).
- Multi-Domain: FLANv2 evaluated on the Big-Bench Hard (BBH) benchmark.
Key Insights and Results
The "More Layers" Fallacy
A significant finding of the study is that adapting more layers does not linearly correlate with better performance. In several instances, adapting a subset of layers yielded superior results. For example, on medical tasks, adapting only 8 layers outperformed a full 32-layer adaptation. This suggests that "over-adapting" can lead to overfitting or the erasure of valuable pre-trained knowledge.
As shown in the figure above, while GPU memory consumption increases linearly with the number of layers, accuracy often peaks early or fluctuates. FLoE capitalizes on this by identifying the "sweet spot" where accuracy is maximized and resource consumption is minimized.
Performance and Efficiency
- Accuracy: By adapting only 25% of the layers, FLoE retained 93.1% of the accuracy of Full Fine-Tuning (FFT) on the MMLU benchmark.
- Interference Mitigation: FLoE achieved a 7.0% relative improvement over the best full-layer methods in mixed-domain adaptation. By isolating task-specific features to relevant layers, it effectively reduces the "noise" that occurs when different task requirements clash.
- Inference Speed: Due to the reduced number of active adapters, FLoE maintains high inference speeds. On Mistral-7B, FLoE's sparse approach performed nearly as fast as single-head LoRA, whereas full-layer MoE-LoRA variants showed significant latency.
Conclusion and Future Work
FLoE demonstrates that surgical, Fisher-guided layer selection is a more efficient path to LLM adaptation than uniform deployment. While the current framework uses a fixed number of experts per selected layer, future iterations could explore varying expert counts per layer to further refine performance. Additionally, while the initial Fisher Information calculation requires a small "warm-up" pass, the resulting gains in efficiency and accuracy make FLoE a powerful tool for resource-constrained environments.
Summary updated