TL;DR
Merging multiple task-specific Low-Rank Adaptation (LoRA) adapters into a single model backbone often degrades performance due to "negative modules"—specific layers that introduce severe task interference. This paper introduces Evolutionary Negative Module Pruning (ENMP), a plug-and-play framework that uses evolutionary search to identify and remove these detrimental modules before merging. ENMP consistently boosts existing merging algorithms to achieve new state-of-the-art results across both language and vision tasks without adding any inference overhead.
What Problem Does This Paper Address?
As deep learning models scale, full-parameter fine-tuning becomes computationally unsustainable. Parameter-Efficient Fine-Tuning (PEFT) methods, particularly LoRA, have become the standard alternative. In practical production environments, serving multiple tasks efficiently often requires merging these independent LoRA "experts" into a single cohesive backbone.
However, existing model merging techniques (such as Task Arithmetic or TIES-Merging) operate under an idealized assumption: that every LoRA matrix contributes constructively to the final merged model. The authors uncover a counter-intuitive bottleneck: certain layers within task-specific adapters act as negative modules, actively exacerbating task interference and dragging down global performance upon merging.
Identifying which modules to prune is exceptionally difficult. The impact of any single module is conditionally dependent on the presence of others (cross-layer coupling), creating a highly complex, non-differentiable optimization landscape. Furthermore, evaluating every possible combination suffers from a combinatorial explosion ($2^N$ possible states for $N$ modules), making exhaustive search impossible.
Methods
The authors propose Evolutionary Negative Module Pruning (ENMP), a gradient-free framework executed as a preprocessing step before final model merging.
- Defining the Pruning Unit: Instead of pruning individual weights, ENMP treats the entire set of LoRA updates (query, key, value, and output projections) within a single Transformer layer as an indivisible whole to preserve semantic consistency.
- Continuous Latent Space Mapping: To bypass the discrete combinatorial search space, ENMP assigns each module a continuous, learnable "negativity score" ($z$). A higher score indicates a stronger tendency to be pruned.
- CMA-ES Optimization: ENMP leverages the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) to navigate this space. CMA-ES is uniquely suited here because it models the dependencies between decision variables via a covariance matrix, capturing the intricate cross-layer interactions that greedy methods miss.
- Pruning & Merging Loop: In each generation, candidate vectors are sampled, transformed into binary masks using a dynamic threshold (bounded by a maximum pruning ratio $k$), and applied to the adapters. The remaining modules are merged using standard algorithms and evaluated on a validation set to iteratively update the CMA-ES parameters.
Datasets
The framework was validated across two distinct modalities using established benchmarks:
- Natural Language Processing (NLP): 6 Natural Language Inference (NLI) tasks—SNLI, MNLI, SICK, QNLI, RTE, and SciTail—evaluated using a Llama-3-8B backbone.
- Computer Vision (CV): 8 image classification datasets—Cars, DTD, EuroSAT, GTSRB, MNIST, RESISC45, SUN397, and SVHN—evaluated using a ViT-B/32 CLIP vision encoder.
Key Insights and Ideas
- The Subtractive Paradigm Shift: While traditional model merging focuses almost entirely on additive interpolation or geometric alignment, this work highlights that subtractive mechanisms are equally critical to eliminate structural conflicts.
- Greedy Strategies Fail: A simple greedy approach that prunes modules independently based on isolated performance drops fails catastrophically (reducing average accuracy to 55.76%). This confirms that module interference is deeply interconnected across layers.
- Prune-then-Align Synergy: When combining ENMP with advanced subspace alignment methods (like CoreSpace), the execution order matters. Pruning negative modules before alignment prevents them from "polluting" the shared geometric subspace with interference directions during Singular Value Decomposition (SVD).
Key Results
- Universal Performance Boost: ENMP consistently improves the performance of all baseline merging algorithms (Task Arithmetic, TIES, DARE, TSV, KnOTS, and CoreSpace) across both language and vision domains.
- Synergy with Sparsification: Integrating ENMP with parameter-level sparsification yields massive gains, boosting TIES by +6.40% and DARE by +6.97% in average normalized accuracy on the NLP benchmark.
- Catastrophic Failure Recovery: On highly sensitive tasks like QNLI, where standard TIES and DARE baselines collapse, ENMP achieves a remarkable recovery of over +20%, restoring normalized accuracy to ~95%.
- High Search Efficiency: The evolutionary search converges rapidly. As shown in the optimization trajectory, ENMP captures the bulk of its performance gains (+2.72%) within the first 10 iterations (~23 minutes), fully converging in roughly 2.3 hours.
Limitations and Future Work
- Offline Computational Overhead: Unlike instant weight-averaging methods, ENMP requires an iterative evolutionary search phase. While this is a one-time offline cost that introduces zero additional inference latency, scaling it to ultra-large models (e.g., 70B+ parameters) with hundreds of tasks remains an open optimization challenge.
- Validation Data Dependency: ENMP relies on a small validation set to calculate fitness scores. While it demonstrates excellent data efficiency (achieving strong results with as few as 64 samples per task), it cannot operate in strictly data-free merging environments.
Summary updated