arXiv:2512.11366cs.CL2025-12AAAI被引 2

无需数据和训练,动态融合LoRA适配器提升多领域大模型性能

qa-FLoRA: Data-free query-adaptive Fusion of LoRAs for LLMs

  • 根据基模型与适配器的分布差异,动态计算每层融合权重
  • 在九个跨领域任务上,相比静态融合提升5%-10%性能
  • 适用于已有适配器集合,适合需要快速部署的多领域场景

将大语言模型应用于特定任务时,常需通过低秩适配(LoRA)模块实现参数高效微调。然而,如何有效融合多个适配器以应对复杂多领域复合查询仍是关键挑战。现有方法或采用静态权重(等权融合),或需为每种适配器组合进行数据密集型监督训练以获取最优融合权重。本文提出qa-FLoRA,一种无需数据和训练的查询自适应LoRA融合方法,通过度量基模型与各适配器间的分布差异,动态计算层级融合权重。该方法无需复合训练数据或领域代表性样本,可直接应用于现有适配器集合。在涵盖数学、编程、医学等领域的九个跨语言复合任务上的实验表明,qa-FLoRA在LLaMA-2上比静态融合提升约5%,在LLaMA-3上提升约6%;相比无训练基线,在LLaMA-2上提升约7%,在LLaMA-3上提升约10%,并显著缩小与监督基线的差距。进一步的层级分析揭示了可解释的融合模式,验证了该方法在鲁棒多领域适应中的有效性。

原文摘要 · Abstract (English)

The deployment of large language models for specialized tasks often requires domain-specific parameter-efficient finetuning through Low-Rank Adaptation (LoRA) modules. However, effectively fusing these adapters to handle complex, multi-domain composite queries remains a critical challenge. Existing LoRA fusion approaches either use static weights, which assign equal relevance to each participating LoRA, or require data-intensive supervised training for every possible LoRA combination to obtain respective optimal fusion weights. We propose qa-FLoRA, a novel query-adaptive data-and-training-free method for LoRA fusion that dynamically computes layer-level fusion weights by measuring distributional divergence between the base model and respective adapters. Our approach eliminates the need for composite training data or domain-representative samples, making it readily applicable to existing adapter collections. Extensive experiments across nine multilingual composite tasks spanning mathematics, coding, and medical domains, show that qa-FLoRA outperforms static fusion by ~5% with LLaMA-2 and ~6% with LLaMA-3, and the training-free baselines by ~7% with LLaMA-2 and ~10% with LLaMA-3, while significantly closing the gap with supervised baselines. Further, layer-level analysis of our fusion weights reveals interpretable fusion patterns, demonstrating the effectiveness of our approach for robust multi-domain adaptation.

LoRA融合多领域适配无监督融合大模型微调

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。