MoDification: Mixture of Depths Made Easy
Not on the map. Why?
Abstract (arXiv)
Long-context efficiency has recently become a trending topic in serving large language models (LLMs). And mixture of depths (MoD) is proposed as a perfect fit to bring down both latency and memory. In this paper, however, we discover that MoD can barely transform existing LLMs without costly training over an extensive number of tokens. To enable the transformations from any LLMs to MoD ones, we showcase top-k operator in MoD should be promoted to threshold-p operator, and refinement to architecture and data should also be crafted along. All these designs form our method termed MoDification. Through a comprehensive set of experiments covering model scales from 3B to 70B, we exhibit MoDification strikes an excellent balance between efficiency and effectiveness. MoDification can achieve up to ~1.2x speedup in latency and ~1.8x reduction in memory compared to original LLMs especially in long-context applications.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 40 of its 48 references that are in the map. First posted on arXiv 18 Oct 2024.
Builds on
40 of 48 references.
References · 40
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
28 more
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
- 2023Llemma: An Open Language Model For Mathematicscited by 388
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 288
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
- 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 234
- 2015Conditional Computation in Neural Networks for faster modelscited by 167
- 2021MoEfication: Transformer Feed-forward Layers are Mixtures of Expertscited by 152
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 152
- 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelismcited by 69
- 2023Towards the Law of Capacity Gap in Distilling Language Modelscited by 44
- 2023Lifting the Curse of Capacity Gap in Distilling Language Modelscited by 25
- 2022Sparse Teachers Can Be Dense with Knowledgecited by 11
- 2022MiniDisc: Minimal Distillation Schedule for Language Model Compressioncited by 5
- 2023Task-agnostic Distillation of Encoder-Decoder Language Modelscited by 4
Built on by
Citing papers per year: 2024: 1.
1 paper.