mlsanityData to 14 Oct 2026

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

arXiv 2411.10606 ↗First posted 15 Nov 2024cs.LG cs.AIcited by 12

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  5. 2023GPT-4 Technical Reportcited by 18,396
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  7. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  8. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  9. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  10. 2020Scaling Laws for Neural Language Modelscited by 6,586
  11. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  12. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
38 more
  1. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  2. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  3. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  4. 2016Pointer Sentinel Mixture Modelscited by 3,096
  5. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  6. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  8. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  9. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  10. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  11. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  12. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  13. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
  14. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  15. 2020Gradient Surgery for Multi-Task Learningcited by 1,256
  16. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
  17. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
  18. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
  19. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
  20. 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 800
  21. 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 787
  22. 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 737
  23. 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
  24. 2021Knowledge Neurons in Pretrained Transformerscited by 601
  25. 2021Conflict-Averse Gradient Descent for Multi-task Learningcited by 459
  26. 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 415
  27. 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 372
  28. 2018Slimmable Neural Networkscited by 305
  29. 2023Specializing Smaller Language Models towards Multi-Step Reasoningcited by 251
  30. 2024Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?cited by 232
  31. 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
  32. 2019Universally Slimmable Networks and Improved Training Techniquescited by 221
  33. 2020BigNAS: Scaling Up Neural Architecture Search with Big Single-Stage Modelscited by 188
  34. 2022Scaling Up Models and Data with textttt5x and textttseqiocited by 187
  35. 2021Learning N:M Fine-grained Structured Sparse Neural Networks From Scratchcited by 179
  36. 2024A Comprehensive Study of Knowledge Editing for Large Language Modelscited by 163
  37. 2024MixLoRA: Enhancing Large Language Models Fine-Tuning with LoRA-based Mixture of Expertscited by 147
  38. 2023Fluctuation-based Adaptive Structured Pruning for Large Language Modelscited by 111

50 most cited of 62 All 62 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 5; 2026: 6.

12 papers.