AmoebaLLM: Constructing Any-Shape Large Language Models for Efficient and Instant Deployment
Not on the map. Why?
Abstract (arXiv)
Motivated by the transformative capabilities of large language models (LLMs) across various natural language tasks, there has been a growing demand to deploy these models effectively across diverse real-world applications and platforms. However, the challenge of efficiently deploying LLMs has become increasingly pronounced due to the varying application-specific performance requirements and the rapid evolution of computational platforms, which feature diverse resource constraints and deployment flows. These varying requirements necessitate LLMs that can adapt their structures (depth and width) for optimal efficiency across different platforms and application specifications. To address this critical gap, we propose AmoebaLLM, a novel framework designed to enable the instant derivation of LLM subnets of arbitrary shapes, which achieve the accuracy-efficiency frontier and can be extracted immediately after a one-time fine-tuning. In this way, AmoebaLLM significantly facilitates rapid deployment tailored to various platforms and applications. Specifically, AmoebaLLM integrates three innovative components: (1) a knowledge-preserving subnet selection strategy that features a dynamic-programming approach for depth shrinking and an importance-driven method for width shrinking; (2) a shape-aware mixture of LoRAs to mitigate gradient conflicts among subnets during fine-tuning; and (3) an in-place distillation scheme with loss-magnitude balancing as the fine-tuning objective. Extensive experiments validate that AmoebaLLM not only sets new standards in LLM adaptability but also successfully delivers subnets that achieve state-of-the-art trade-offs between accuracy and efficiency.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 62 of its 79 references that are in the map. First posted on arXiv 15 Nov 2024.
Builds on
62 of 79 references.
References · 62
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023GPT-4 Technical Reportcited by 18,396
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
38 more
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2020Gradient Surgery for Multi-Task Learningcited by 1,256
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 800
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 787
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 737
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
- 2021Knowledge Neurons in Pretrained Transformerscited by 601
- 2021Conflict-Averse Gradient Descent for Multi-task Learningcited by 459
- 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 415
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 372
- 2018Slimmable Neural Networkscited by 305
- 2023Specializing Smaller Language Models towards Multi-Step Reasoningcited by 251
- 2024Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?cited by 232
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
- 2019Universally Slimmable Networks and Improved Training Techniquescited by 221
- 2020BigNAS: Scaling Up Neural Architecture Search with Big Single-Stage Modelscited by 188
- 2022Scaling Up Models and Data with textttt5x and textttseqiocited by 187
- 2021Learning N:M Fine-grained Structured Sparse Neural Networks From Scratchcited by 179
- 2024A Comprehensive Study of Knowledge Editing for Large Language Modelscited by 163
- 2024MixLoRA: Enhancing Large Language Models Fine-Tuning with LoRA-based Mixture of Expertscited by 147
- 2023Fluctuation-based Adaptive Structured Pruning for Large Language Modelscited by 111
50 most cited of 62 All 62 (JSON)
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 6.
12 papers.
- 2025Small Language Models are the Future of Agentic AIcited by 270
- 2024AD-LLM: Benchmarking Large Language Models for Anomaly Detectioncited by 26
- 2025Modality-Aware Neuron Pruning for Unlearning in Multimodal Large Language Modelscited by 26
- 2026Nemotron-Labs-Diffusion: A Tri-Mode Language Model Unifying Autoregressive, Diffusion, and Self-Speculation Decodingcited by 24
- 2025SwiReasoning: Switch-Thinking in Latent and Explicit for Pareto-Superior Reasoning LLMscited by 22
- 2026Behavior Knowledge Merge in Reinforced Agentic Modelscited by 11
- 2025LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Modelscited by 9
- 2025Overcoming Multi-step Complexity in Multimodal Theory-of-Mind Reasoning: A Scalable Bayesian Plannercited by 5
- 2026TraceNAS: Zero-shot LLM Pruning via Gradient Trace Correlationcited by 1
- 2026Compressing LLMs with MoP: Mixture of Prunerscited by 0
- 2026FlexMoE: One-for-All Nested Intra-Expert Pruning for MoE Language Modelscited by 0
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decodingcited by 0
- 2026Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding29 Aug 2026
- 2026Nemotron-Labs-Diffusion: A Tri-Mode Language Model Unifying Autoregressive, Diffusion, and Self-Speculation Decoding7 Jul 2026
- 2026FlexMoE: One-for-All Nested Intra-Expert Pruning for MoE Language Models26 Jun 2026
- 2026Compressing LLMs with MoP: Mixture of Pruners5 Feb 2026
- 2026TraceNAS: Zero-shot LLM Pruning via Gradient Trace Correlation2 Feb 2026
- 2026Behavior Knowledge Merge in Reinforced Agentic Models20 Jan 2026
- 2025SwiReasoning: Switch-Thinking in Latent and Explicit for Pareto-Superior Reasoning LLMs6 Oct 2025
- 2025LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Models14 Jul 2025
- 2025Small Language Models are the Future of Agentic AI2 Jun 2025
- 2025Overcoming Multi-step Complexity in Multimodal Theory-of-Mind Reasoning: A Scalable Bayesian Planner2 Jun 2025
- 2025Modality-Aware Neuron Pruning for Unlearning in Multimodal Large Language Models21 Feb 2025
- 2024AD-LLM: Benchmarking Large Language Models for Anomaly Detection15 Dec 2024