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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Adsul, Riya, Sunil, Balachandra Devarangadi, Nalawade, Isha, Govindan, Sudharshan
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908851785170944
author Adsul, Riya
Sunil, Balachandra Devarangadi
Nalawade, Isha
Govindan, Sudharshan
author_facet Adsul, Riya
Sunil, Balachandra Devarangadi
Nalawade, Isha
Govindan, Sudharshan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2602_21222
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Task-Aware LoRA Adapter Composition via Similarity Retrieval in Vector Databases
Adsul, Riya
Sunil, Balachandra Devarangadi
Nalawade, Isha
Govindan, Sudharshan
Computation and Language
Artificial Intelligence
Machine Learning
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.
title Task-Aware LoRA Adapter Composition via Similarity Retrieval in Vector Databases
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2602.21222