atlas

Research map / Large language models / Instruction and fine-tuning

HydraLoRA: An Asymmetric LoRA Architecture for Efficient Fine-Tuning

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Low-rank adaptation variants · 24 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes HydraLoRA, a LoRA variant with one shared A matrix and multiple B matrices routed by a trainable MoE router, with clusters of training data (k-means) initializing the B heads, to handle heterogeneous data without domain knowledge.

Problem

LoRA underperforms full fine-tuning on complex, heterogeneous datasets because a single low-rank adapter suffers interference across intrinsic sub-domains or tasks, and prior multi-LoRA methods rely on domain knowledge.

Approach

An asymmetric LoRA with a shared A matrix for commonalities and multiple B matrices for distinct intrinsic components, combined through a learned MoE router; observations show A matrices converge across heads while B matrices diverge, motivating this split.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use HydraLoRA instead of LoRA MoELLaMA2-7B · BBHaverage performance: 40.3 -> 41.5Helped
Use HydraLoRA instead of LoRA MoELLaMA2-13B · BBHaverage performance: 43.7 -> 44.1Helped
Replace LoRA (r=32) with LoRA-Split (4 × 8) (ablation)LLaMA2-7B · MMLUscore: 46.59 -> 46.94Helped
Replace LoRA (r=32) with LoRA-Split (4 × 8) (ablation)LLaMA2-7B · Medicalscore: 44.32 -> 45.28Helped
Replace LoRA (r=32) with LoRA-Split (4 × 8) (ablation)LLaMA2-7B · Lawscore: 40.81 -> 41.35Helped
Replace LoRA (r=32) with LoRA-Split (4 × 8) (ablation)LLaMA2-7B · HumanEvalP@1: 17.12 -> 18.20Helped
Replace LoRA (r=32) with LoRA-Split (4 × 8) (ablation)LLaMA2-7B · HumanEvalP@10: 25.89 -> 26.85Helped
Replace LoRA (r=32) with LoRA-Split (4 × 8) (ablation)LLaMA2-7B · GSM8Kscore: 20.67 -> 21.92Helped
Add the MoE architecture (ablation)HydraLoRA · language understanding domainsperformanceHelped
Add the trainable gate function instead of uniform expert weights (ablation)HydraLoRA · language understanding domainsperformanceHelped
Use 4 clusters instead of 3 (ablation)HydraLoRA · MMLUperformance: 0.42%Helped
Use k-means instead of DBSCAN for corpus clustering (ablation)HydraLoRA · MMLUperformanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: databricks-dolly-15k GenMedGPT ChatDoctor clinic-10k Lawyer-Instruct US-Terms GSM8K CodeAlpaca Flan v2 subset

Benchmarks: MMLU GSM8K HumanEval Big-Bench Hard

Metrics: accuracy pass@1 pass@10 % trainable parameters energy consumption training latency

Baselines: Full fine-tuning Prompt Tuning P-Tuning Prefix Tuning IA3 AdaLoRA LoRA LoraHub LoRA MoE

Builds on: LoRA Mixture-of-Experts LoRAMoE LoraHub AdaLoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy