arXiv:2510.12266cs.LGcs.AI2025-10被引 5

不训练即可提升模型跨领域泛化能力,通过动态选择LoRA模块实现。

HiLoRA: Adaptive Hierarchical LoRA Routing for Training-Free Domain Generalization

  • 基于秩-1组件构建分层路由机制,按输入自适应选择最相关LoRA
  • 在多个数据集上实现最高55%的准确率提升,且推理速度不变
  • 适合无标注数据、无法重新训练的部署场景,如医疗或金融应用

低秩适配(LoRA)因其模块化设计和平台广泛可用性,已成为大语言模型适配新领域的常用方法。现有方法多依赖显式任务标签或额外训练,难以实际部署,且通常固定激活整个LoRA模块,导致参数冗余或不足。本文提出 exttt{HiLoRA},一种无需训练的域泛化框架,通过在LoRA池中进行自适应分层路由。基于LoRA结构特性,将每个秩参数视为独立单元(即秩-1组件,ROCs)。对于给定输入序列, exttt{HiLoRA}首先根据序列级高斯似然自适应选择部分LoRA并分配其ROC;在令牌级进一步精细化路由,仅激活最具信息量的ROC。我们还提供了理论保证: exttt{HiLoRA}以高概率选择最相关LoRA。大量实验表明, exttt{HiLoRA}在域泛化性能上显著优于现有基线,最高准确率提升达55%,同时保持相近推理吞吐量。

原文摘要 · Abstract (English)

Low-Rank Adaptation (LoRA) has emerged as a widely used technique for adapting large language models (LLMs) to new domains, due to its modular design and broad availability on platforms such as HuggingFace. This availability has motivated efforts to reuse existing LoRAs for domain generalization. However, existing methods often rely on explicit task labels or additional training, which are impractical for deployment. Moreover, they typically activate a fixed number of entire LoRA modules, leading to parameter redundancy or insufficiency that degrade performance. In this paper, we propose \texttt{HiLoRA}, a training-free framework that performs adaptive hierarchical routing over LoRA pools. Drawing on structural properties of LoRA, we define rank-one components (ROCs), in which each rank parameter is regarded as an independent unit. For a given input sequence, \texttt{HiLoRA} first adaptively selects a subset of LoRAs and determines their ROC allocation based on Gaussian likelihoods at the sequence level. At the token level, it further refines routing by activating only the most informative ROCs. We further provide theoretical guarantees that \texttt{HiLoRA} selects the most relevant LoRAs with high probability. Extensive experiments show that \texttt{HiLoRA} achieves substantial improvements in domain generalization, with accuracy gains of up to {\small $55\%$} over state-of-the-art baselines, while maintaining comparable inference throughput.

LoRA域泛化零样本高效适配

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