LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition

Published on Jul 25, 2023
ยท Submitted by akhaliq on Jul 26, 2023
#2 Paper of the day


Low-rank adaptations (LoRA) are often employed to fine-tune large language models (LLMs) for new tasks. This paper investigates LoRA composability for cross-task generalization and introduces LoraHub, a strategic framework devised for the purposive assembly of LoRA modules trained on diverse given tasks, with the objective of achieving adaptable performance on unseen tasks. With just a few examples from a novel task, LoraHub enables the fluid combination of multiple LoRA modules, eradicating the need for human expertise. Notably, the composition requires neither additional model parameters nor gradients. Our empirical results, derived from the Big-Bench Hard (BBH) benchmark, suggest that LoraHub can effectively mimic the performance of in-context learning in few-shot scenarios, excluding the necessity of in-context examples alongside each inference input. A significant contribution of our research is the fostering of a community for LoRA, where users can share their trained LoRA modules, thereby facilitating their application to new tasks. We anticipate this resource will widen access to and spur advancements in general intelligence as well as LLMs in production. Code will be available at


Paper author

LoraHub: Transforming Task Generalization with Dynamic LoRA Composition

Links ๐Ÿ”—:

๐Ÿ‘‰ Subscribe:
๐Ÿ‘‰ Twitter:
๐Ÿ‘‰ LMNT (Partner):

By Arxflix

Sign up or log in to comment

Models citing this paper 0

No model linking this paper

Cite in a model to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite in a dataset to link it from this page.

Spaces citing this paper 1

Collections including this paper 6