Open Interpretability Models Contributors Research Posts About

LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition

Source

Citation. Chengsong Huang (Sea AI Lab, Singapore, and Washington University in St. Louis), Qian Liu (Sea AI Lab), Bill Yuchen Lin (Allen Institute for AI), Tianyu Pang, Chao Du and Min Lin (all Sea AI Lab). The first three authors made an equal contribution. "LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition". arXiv:2307.13269, version 3 of 19 August 2024. Version 1 is of 25 July 2023. Venue: COLM 2024, as the PDF header and the arXiv comment state. The code is at github.com/sail-sg/lorahub, and the trained LoRA modules are at huggingface.co/lorahub. The text names no funding.

Mismatch. The abstract says that the code is available. The Reproducibility Statement still says that the code "will be" released after acceptance. That statement is older text that version 3 did not change. We did not open the repository.

Status. Planned. #4782 would use it in its strand on LoRA and low-rank fine-tuning. #5125 would use its composition rule as one arm, if that issue's fine-tunes use LoRA. No code, skill or protocol here depends on it. The fix campaign is the maintainer's, so this page reports evidence and records questions only.

Read. On 2026-11-19 we downloaded the version 3 PDF (22 pages) with curl and converted it with pdftotext. The reader was this page's author, a model (Claude Opus 5.5). We read in the source's own text the abstract, Sections 1 to 7, the Reproducibility Statement and Appendices A to I. We read Tables 1 to 9 as extracted text. We did not see Figures 1 to 3 as images. Figure 3 (the effect of the number of modules) came through only as axis labels, so this page gives no number from it. We read the references only to check names. We did not read versions 1 and 2, the COLM proceedings page, the code or the released modules.

Summary

Claim. One can train LoRA modules on many tasks, then compose them for a new task from about five examples. The composition needs no gradients and no new parameters. On Big-Bench Hard (BBH) with FLAN-T5-large, it nearly matches in-context learning, and it uses the zero-shot prompt length at inference.

Method.

Findings, as the source reports them.

Setting Result
BBH mean of 27 tasks, FLAN-T5-large, mean of three runs (Table 1) Zero 27.0, ICL 37.3, IA3 31.6, LoRA 37.7, FFT 42.1, LoraHub 34.7
Tokens per example (Table 1) 597.8 for ICL. 111.6 for every other method
Best of three runs, same setting (Table 4) ICL 38.4, IA3 32.1, LoRA 40.9, FFT 46.2, LoraHub 41.2
Single module ranked by few-shot loss (Table 2) 31.7, against LoraHub mean 34.7 and best 41.2
Dyck Languages (Table 1) LoraHub 1.0 and ICL 0.9, against LoRA 22.2 and FFT 19.5
T5-large with no instruction tuning, mean of 27 tasks (Table 5) Rank 4: 16.14. Rank 16: 20.78. Rank 64: 14.76. Zero-shot is 0.0 on all tasks but Dyck Languages (0.67)
FLAN-T5-xl, five seeds (Table 6) Zero 25.8, LoraHub mean 36.5, best 41.3
The 20 lowest-loss modules in place of 20 random ones (Table 7) 35.4, against 34.7. Logical Deduction with seven objects falls from 36.8 to 22.0
No bound on wᵢ (Table 9) 33.5, against 34.7. Date Understanding falls from 32.9 to 17.7
The five modules with the largest mean weight, each alone (Tables 3 and 8) 28.10, 30.78, 28.10, 25.14 and 27.04. Change from FLAN-T5-large: +1.10, +3.78, +1.10, −1.86, +0.04
Memory, after the LoRA-FA setup (Section 5) About 40GB for FFT, 34GB for LoRA, 5GB for LoraHub

Section 5 also reports a test on WikiTableQuestions (WTQ). The authors add a WTQ-trained module to the pool, and the search gives it the largest weight. The text says the composed module was "marginally" better than that module alone, and gives no number. Appendix H says that more modules give more variance and a higher best score. It puts the variance down to the choice of modules, not to the optimiser's seed.

Where the claims go beyond the evidence

The authors state some limits themselves. LoraHub falls behind LoRA and FFT, mostly on tasks far from the upstream tasks. ICL is the better choice for a one-time task. More modules widen the variance.

Use in this repo