atlas

Research map / Large language models / Language, safety and interpretability

Towards Modular LLMs by Building and Reusing a Library of LoRAs

ICML 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 0 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.

Builds LoRA libraries from Flan-v2 tasks via MBC (clustering tasks by LoRA weight similarity) and reuses them zero-shot via Arrow routing (per-token, per-layer routing by SVD-derived prototypes), evaluated on Phi-2 and Mistral-7B.

Problem

How to build a library of parameter-efficient adapters (LoRAs) from multi-task data and reuse it for zero-shot and supervised generalization to new tasks without jointly training the router and experts.

Approach

MBC clusters tasks using cosine similarity of privately trained LoRA weights and trains one adapter per cluster; Arrow routes each token and layer to LoRA experts using the top right singular vector of each expert's A_i B_i^T as a prototype, requiring no training or training data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Cluster tasks using LoRA parameter similarity rather than random example grouping (ablation)Phi-2 MBC library · 10 held-out tasksaccuracy: 64.8 -> 67.1Helped
Cluster whole tasks rather than randomly partitioning task examples (ablation)Phi-2 library · 10 held-out tasksaccuracy: 64.8 -> 66.4Helped
Use task representation embeddings instead of LoRA parameter similarity for clustering (ablation)Phi-2 library · 10 held-out tasksaccuracy: 66.1 -> 67.1Hurt
Use Arrow rather than uniform routingPhi-2 Private library · 10 held-out tasksaccuracy: 64.8 -> 66.6Helped
Use Arrow rather than uniform routingPhi-2 MBC library · 10 held-out tasksaccuracy: 67.1 -> 67.4Helped
Use Arrow rather than uniform routingMistral 7B Private library · 10 held-out tasksaccuracy: 2.5%Helped
Use Arrow rather than uniform routingMistral 7B MBC library · 10 held-out tasksaccuracy: 64.6 -> 63.9Hurt
Use MBC clustering rather than private per-task adaptersPhi-2 library with uniform routing · 10 held-out tasksaccuracy: 64.8 -> 67.1Helped
Use MBC clustering rather than private per-task adaptersMistral 7B library with uniform routing · 10 held-out tasksaccuracy: 61.9 -> 64.6Helped
Use MBC-Poly instead of randomly grouped tasks with Poly routingPhi-2 · 12 SNI tasks, 100% dataRouge-L: 76.7 -> 78.9Helped
Use MBC-Poly rather than MBC-μ, enabling supervised routingPhi-2 · 12 SNI tasks, 10% dataRouge-L: 67.0 -> 68.2Helped
Tune expert parameters as well as routing coefficients (ablation)MBC-Poly adaptation · 12 SNI tasks, 0.5% dataRouge-L: 44.8 -> 50.2Helped

Surprising findings

Limitations

Experimental setup

Datasets: Flan-v2 Super-NaturalInstructions (SNI) WinoGrande HellaSwag PIQA BoolQ OpenbookQA ARC-easy ARC-challenge HumanEval MBPP BBH

Benchmarks: PIQA BoolQ WinoGrande HellaSwag ARC-easy ARC-challenge HumanEval OpenbookQA BBH MBPP SNI (12 held-out tasks)

Metrics: accuracy Rouge-L

Baselines: Base FullFT Shared Poly MHR Private-mu LoraHub pi-tuning RandTask RandExamples Embeddings

Builds on: LoRA Polytropon Multi-Head Routing LoraHub Flan-v2

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