atlas

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

AmoebaLLM: Constructing Any-Shape Large Language Models for Efficient and Instant Deployment

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 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.

Proposes AmoebaLLM, a one-time fine-tuning framework that lets a pretrained LLM instantly yield depth- and width-shrunk subnets via DP-based layer selection, importance-based width pruning, a shape-aware mixture of LoRAs, and loss-magnitude-balanced in-place distillation.

Problem

Deploying pretrained LLMs efficiently across platforms with different resource constraints requires subnets of varied depth and width, but one-for-all training methods fail on pretrained LLMs and per-platform fine-tuning is costly.

Approach

Select knowledge-preserving layers via dynamic programming and neurons via importance scores, then one-for-all fine-tune with a shape-conditioned gated mixture of LoRAs (mergeable at deployment) and in-place distillation whose subnet losses are magnitude-normalized to the largest subnet.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use AmoebaLLM instead of FLAP at 80% remainingLLaMA2 7B compression · MMLU, 80% remainingaccuracy: 40.21 -> 40.70Helped
use AmoebaLLM instead of FLAP at 50% remainingLLaMA2 7B compression · MMLU, 50% remainingaccuracy: 27.67 -> 30.60Helped
use AmoebaLLM instead of the strongest baseline at 80% remainingVicuna 7B v1.5 compression · MMLU, 80% remainingaccuracy: 43.50 -> 47.40Helped
use AmoebaLLM instead of FLAP at 65% remainingVicuna 7B v1.5 compression · Average commonsense, 65% remainingaccuracy: 56.47 -> 55.93Hurt
use AmoebaLLM instead of per-subnet fine-tuningLLaMA2 7B, 32 layers · MMLUaccuracy: 46.4 -> 47.2Helped
replace full-model fine-tuning with SMoL (ablation)AmoebaLLM on LLaMA2 7B, 24 layers · MMLUaccuracy: 32.6 -> 45.1Helped
replace standard LoRA with SMoL (ablation)AmoebaLLM on LLaMA2 7B, 32 layers · MMLUaccuracy: 40.6 -> 47.2Helped
add loss-magnitude balancing (ablation)AmoebaLLM on LLaMA2 7B, 32 layers · MMLUaccuracy: 42.0 -> 47.2Helped
use DP-based layer selection instead of Shortened LLaMA (ablation)LLaMA2 7B layer pruning, 18 layers retained · Wikitext2perplexity: 71.80 -> 38.70Helped
use DP-based layer selection instead of Shortened LLaMA (ablation)LLaMA2 7B layer pruning, 18 layers retained · MMLUaccuracy: 33.7 -> 43.1Helped
calibrate layer selection on MMLU rather than Wikitext2 (ablation)LLaMA2 7B depth shrinking, 20 layers · MMLUaccuracy: 24.4 -> 41.2Helped
calibrate layer selection on MMLU rather than Wikitext2 (ablation)LLaMA2 7B depth shrinking, 20 layers, after fine-tuning · MMLUaccuracy: 23.6 -> 41.0Helped

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca MMLU Wikitext2 BookCorpus

Benchmarks: MMLU BoolQ PIQA HellaSwag WinoGrande ARC-easy ARC-challenge OpenbookQA

Metrics: accuracy average zero-shot accuracy latency perplexity

Baselines: LLM-Pruner FLAP Shortened LLaMA Unreasonable layer pruning

Builds on: BigNAS sandwich sampling in-place distillation noisy top-K gating LLM-Pruner FLAP

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