arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21222cs.CLcs.AIcs.LG
收藏

基于向量数据库相似性检索的任务感知LoRA适配器组合

Task-Aware LoRA Adapter Composition via Similarity Retrieval in Vector Databases

Riya Adsul, Balachandra Devarangadi Sunil, Isha Nalawade, Sudharshan Govindan

AI总结:

本文提出基于向量数据库相似性检索的LoRA适配器组合框架,通过动态合并适配器实现多任务学习,线性合并方法在PIQA和RTE任务上取得显著性能提升。

摘要:

参数高效的微调方法如LoRA使大语言模型能够实现任务特定的适应,但高效地组合多个针对未见任务的专用适配器仍然具有挑战性。我们提出了一种新颖的动态LoRA适配器组合框架,该框架利用向量数据库中的相似性检索来实现跨多样自然语言处理任务的零样本泛化。我们的方法通过嵌入来自22个数据集的训练示例构建了任务感知的向量数据库,这些数据集涵盖了常识推理、问答、自然语言推理和情感分析。在推理过程中,我们检索最相似的训练示例,通过nucleus采样计算任务相似度分布,并使用检索加权融合策略动态合并相关LoRA适配器。我们评估了四种合并方法:线性、拼接、TIES和幅度剪枝,证明了我们的数据集中心检索方法往往与单独微调的任务专用适配器性能相当或更优。值得注意的是,线性合并在PIQA上达到70.95%,在RTE上达到77.62%,显著优于单任务基线(46%和52%)。我们的框架不需要额外的检索器训练,使用冻结的嵌入,并实现了高效且可解释的适配器组合。这些结果表明,基于检索的动态合并为可扩展、参数高效的多任务学习提供了一个有前景的方向,而无需为每个新任务重新训练完整模型。

英文摘要:

Parameter efficient fine tuning methods like LoRA have enabled task specific adaptation of large language models, but efficiently composing multiple specialized adapters for unseen tasks remains challenging. We present a novel framework for dynamic LoRA adapter composition that leverages similarity retrieval in vector databases to enable zero-shot generalization across diverse NLP tasks. Our approach constructs a task-aware vector database by embedding training examples from 22 datasets spanning commonsense reasoning, question answering, natural language inference, and sentiment analysis. At inference time, we retrieve the most similar training examples, compute task similarity distributions via nucleus sampling, and dynamically merge relevant LoRA adapters using retrieval weighted fusion strategies. We evaluated four merging methods Linear, Concatenation, TIES, and Magnitude Prune demonstrating that our dataset centric retrieval approach often matches or exceeds the performance of individually fine-tuned task-specific adapters. Notably, Linear merging achieves 70.95% on PIQA and 77.62% on RTE, substantially outperforming single-task baselines (46% and 52%, respectively). Our framework requires no additional retriever training, operates with frozen embeddings, and enables efficient, interpretable adapter composition. These results suggest that retrieval based dynamic merging offers a promising direction for scalable, parameter-efficient multitask learning without requiring full model retraining for each new task.

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

↑