MARLIN: Mixed-Precision Auto-Regressive Parallel Inference on Large Language Models
Elias Frantar, Roberto L. Castro, Jiale Chen, Torsten Hoefler, Dan Alistarh
摘要
As inference on Large Language Models (LLMs) emerges as an important workload in machine learning applications, weight quantization has become a standard technique for efficient GPU deployment. Quantization not only reduces model size, but has also been shown to yield substantial speedups for single-user inference, due to reduced memory movement, with low accuracy impact. Yet, it remains open whether speedups are achievable also in batched settings with multiple parallel clients, which are highly relevant for practical serving. It is unclear whether GPU kernels can be designed to remain practically memory-bound, while supporting the substantially increased compute requirements of batched workloads. This paper resolves this question positively by describing the design of Mixed-precision Auto-Regressive LINear kernels, called MARLIN. Concretely, given a model whose weights are compressed via quantization to, e.g., 4 bits per element, MARLIN shows that batchsizes up to 16-32 can be supported with close to maximum (4×) quantization speedup, and larger batchsizes up to 64-128 with gradually decreasing, but still significant, acceleration. MARLIN accomplishes this via a combination of techniques, such as asynchronous memory access, complex task scheduling and pipelining, and bespoke quantization support. Our experiments show that MARLIN's nearoptimal performance on individual LLM layers across different scenarios can also lead to endto-end LLM inference speedups (of up to 2.8×) when integrated with the popular vLLM serving engine. Finally, MARLIN is extensible to further compression techniques, like NVIDIA 2:4 sparsity, leading to additional speedups.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 17 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- MaverIQ: Fingerprint-Guided Extrapolation and Fragmentation-Aware Layering for Intent-Based LLM Serving 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- MaverIQ: Fingerprint-Guided Extrapolation and Fragmentation-Aware Layering for Intent-Based LLM Serving 引用了 FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
- MaverIQ: Fingerprint-Guided Extrapolation and Fragmentation-Aware Layering for Intent-Based LLM Serving 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs 引用了 FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
- QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Efficient Memory Management for Large Language Model Serving with PagedAttention 引用了 FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
- DecDEC: A Systems Approach to Advancing Low-Bit LLM Quantization 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- DecDEC: A Systems Approach to Advancing Low-Bit LLM Quantization 引用了 FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
- DecDEC: A Systems Approach to Advancing Low-Bit LLM Quantization 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- DecDEC: A Systems Approach to Advancing Low-Bit LLM Quantization 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- KTransformers: Unleashing the Full Potential of CPU/GPU Hybrid Inference for MoE Models 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
引用它的顶会 Paper17
- InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long AdaptationWeilin Zhao, Zihan Zhou, Zhou Su, Chaojun Xiao 等ICLR 2026 · 32 次引用
- MoNE: Replacing Redundant Experts with Lightweight Novices for Structured Pruning of MoEGeng Zhang, Yuxuan Han, Yuxuan Lou, Yiqi Zhang 等ICLR 2026 · 14 次引用
- DecDEC: A Systems Approach to Advancing Low-Bit LLM QuantizationYeonhong Park, Jake Hyun, Hojoon Kim, Jae W. LeeOSDI 2025 · 9 次引用
- KTransformers: Unleashing the Full Potential of CPU/GPU Hybrid Inference for MoE ModelsHongtao Chen, Weiyu Xie, Boxin Zhang, Jingqi Tang 等SOSP 2025 · 3 次引用
- MaverIQ: Fingerprint-Guided Extrapolation and Fragmentation-Aware Layering for Intent-Based LLM ServingDimitrios Liakopoulos, Prasoon Sinha, Tianrui Hu, Myungjin Lee 等SC 2025 · 2 次引用
它引用的 Paper8
- SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language ModelsGuangxuan Xiao, Ji Lin, Mickaël Seznec, Hao Wu 等ICML 2023 · 1,493 次引用
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng 等SOSP 2023 · 1,016 次引用
- QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMsSaleh Ashkboos, Amirkeivan Mohtashami, Maximilian L. Croci, Bo Li 等NeurIPS 2024 · 723 次引用
- FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUYing Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li 等ICML 2023 · 683 次引用
- QuIP: 2-Bit Quantization of Large Language Models With GuaranteesJerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De SaNeurIPS 2023 · 503 次引用
相关 Paper
- COMET: Towards Practical W4A4KV4 LLMs ServingLian Liu, Long Cheng, Haimeng Ren, Zhaohui Xu 等ASPLOS 2025 · 5 次引用
- Fast Matrix Multiplications for Lookup Table-Quantized LLMsHan Guo, William Brandon, Radostin Cholakov, Jonathan Ragan-Kelley 等EMNLP Findings 2024 · 5 次引用
- High-Throughput Non-uniformly Quantized 3-bit LLM InferenceYuAng Chen, Wenqi Zeng, Jeffrey Xu YuPPoPP 2026
- Tilus: A Tile-Level GPGPU Programming Language for Low-Precision ComputationYaoyao Ding, Bohan Hou, Xiao Zhang, Allan Lin 等ASPLOS 2026 · 1 次引用
- LiquidGEMM: Hardware-Efficient W4A8 GEMM Kernel for High-Performance LLM ServingHuanqi Hu, Bowen Xiao, Shixuan Sun, Jianian Yin 等SC 2025 · 2 次引用
