Efficient Large Language Model Inference with Neural Block Linearization
On the map: Efficient LLM inference and serving → Early exit and edge inference
Abstract (arXiv)
The high inference demands of transformer-based Large Language Models (LLMs) pose substantial challenges in their deployment. To this end, we introduce Neural Block Linearization (NBL), a novel framework for accelerating transformer model inference by replacing self-attention layers with linear approximations derived from Linear Minimum Mean Squared Error estimators. NBL leverages Canonical Correlation Analysis to compute a theoretical upper bound on the approximation error. Then, we use this bound as a criterion for substitution, selecting the LLM layers with the lowest linearization error. NBL can be efficiently applied to pre-trained LLMs without the need for fine-tuning. In experiments, NBL achieves notable computational speed-ups while preserving competitive accuracy on multiple reasoning benchmarks. For instance, applying NBL to 12 self-attention layers in DeepSeek-R1-Distill-Llama-8B increases the inference speed by 32% with less than 1% accuracy trade-off, making it a flexible and promising solution to improve the inference efficiency of LLMs. The implementation is available at: https://github.com/LIONS-EPFL/NBL.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Early exit and edge inference, one of 12 directions in Efficient LLM inference and serving. Builds on 58 of its 75 references that are in the map. First posted on arXiv 27 May 2025.
Builds on
58 of 75 references.
Closest ancestors · 1
Same direction, newest first
Other references · 57
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2023Mistral 7Bcited by 3,164
38 more
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 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
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 2,031
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Similarity of Neural Network Representations Revisitedcited by 1,755
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2020Rethinking Attention with Performerscited by 1,601
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 843
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
- 2021Sparsity in Deep Learning: Pruning and growth for efficient inference and training in neural networkscited by 527
- 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 415
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 385
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 383
- 2024QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebookscited by 378
- 2018Efficient Attention: Attention with Linear Complexitiescited by 368
- 2021Random Feature Attentioncited by 354
- 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Testcited by 331
- 2018Insights on representational similarity in neural networks with canonical correlationcited by 324
- 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decodingcited by 269
- 2020Do Wide and Deep Networks Learn the Same Things? Uncovering How Neural Network Representations Vary with Width and Depthcited by 245
- 2024SVD-LLM: Truncation-aware Singular Value Decomposition for Large Language Model Compressioncited by 243
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
- 2023LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language Modelscited by 196
- 2022Language model compression with weighted low-rank factorizationcited by 195
- 2020Soft Threshold Weight Reparameterization for Learnable Sparsitycited by 151
- 2024Compact Language Models via Pruning and Knowledge Distillationcited by 148
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 122
- 2024SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blockscited by 97
- 2024What Matters in Transformers? Not All Attention is Neededcited by 84
- 2023ZeroQuant-V2: Exploring Post-training Quantization in LLMs from Comprehensive Study to Low Rank Compensationcited by 79
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 64
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024A Survey on Efficient Inference for Large Language Models
- 2025LLM Inference Acceleration via Efficient Operation Fusion
- 2024Block Transformer: Global-to-Local Language Modeling for Fast Inference
- 2024Star Attention: Efficient LLM Inference over Long Sequences
- 2024Accelerating Large Language Model Inference with Self-Supervised Early Exits
- 2024LLM Inference Unveiled: Survey and Roofline Model Insights
- 2023Revisiting Block-based Quantisation: What is Important for Sub-8-bit LLM Inference?
- 2025Speed Always Wins: A Survey on Efficient Architectures for Large Language Models