arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.11366cs.CL
收藏

qa-FLoRA: 无数据查询自适应融合LoRAs用于大语言模型

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

Shreya Shukla, Aditya Sriram, Milinda Kuppur Narayanaswamy, Hiteshi Jain

AI总结:

qa-FLoRA通过动态计算层级融合权重,无需数据和训练,实现LoRA的查询自适应融合,有效提升多领域任务性能。

摘要:

在专门任务中部署大型语言模型通常需要通过低秩适应(LoRA)模块进行领域特定的参数高效微调。然而,有效融合这些适配器以处理复杂、多领域复合查询仍是一个关键挑战。现有LoRA融合方法要么使用静态权重,将相等的相关性分配给每个参与的LoRA,要么需要为每种可能的LoRA组合进行数据密集型监督训练以获得各自最优的融合权重。我们提出了qa-FLoRA,一种新的查询自适应、无数据和训练的方法,用于LoRA融合,通过测量基础模型与相应适配器之间的分布分歧动态计算层级融合权重。我们的方法消除了对复合训练数据或领域代表性样本的需求,使其能够轻松应用于现有的适配器集合。在九个跨语言复合任务上进行的广泛实验,涵盖数学、编码和医疗领域,显示qa-FLoRA在LLaMA-2上比静态融合高出约5%,在LLaMA-3上高出约6%;在无训练基准上,LLaMA-2上高出约7%,LLaMA-3上高出约10%,同时显著缩小了与监督基准之间的差距。此外,对融合权重的层级分析揭示了可解释的融合模式,证明了我们的方法在稳健的多领域适应中的有效性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑