RAP: Runtime Adaptive Pruning for LLM Inference
On the map: Efficient LLM inference and serving → Early exit and edge inference
Abstract (arXiv)
Large language models (LLMs) excel at language understanding and generation, but their enormous computational and memory requirements hinder deployment. Compression offers a potential solution to mitigate these constraints. However, most existing methods rely on fixed heuristics and thus fail to adapt to runtime memory variations or heterogeneous KV-cache demands arising from diverse user requests. To address these limitations, we propose RAP, an elastic pruning framework driven by reinforcement learning (RL) that dynamically adjusts compression strategies in a runtime-aware manner. Specifically, RAP dynamically tracks the evolving ratio between model parameters and KV-cache across practical execution. Recognizing that FFNs house most parameters, whereas parameter -light attention layers dominate KV-cache formation, the RL agent retains only those components that maximize utility within the current memory budget, conditioned on instantaneous workload and device state. Extensive experiments results demonstrate that RAP outperforms state-of-the-art baselines, marking the first time to jointly consider model weights and KV-cache on the fly.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Early exit and edge inference, one of 12 directions in Efficient LLM inference and serving. Builds on 60 of its 74 references that are in the map. First posted on arXiv 22 May 2025.
Builds on
60 of 74 references.
References · 60
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2023Qwen Technical Reportcited by 3,273
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
38 more
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2024Qwen2 Technical Reportcited by 2,076
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2021Carbon Emissions and Large Neural Network Trainingcited by 561
- 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 536
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2024SpinQuant: LLM quantization with learned rotationscited by 446
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 378
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
- 2024A Survey on Knowledge Distillation of Large Language Modelscited by 276
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2023Outlier Weighed Layerwise Sparsity (OWL): A Missing Secret Sauce for Pruning LLMs to High Sparsitycited by 163
- 2022On-Device Training Under 256KB Memorycited by 158
- 2022A Review of Sparse Expert Models in Deep Learningcited by 147
- 2023Fluctuation-based Adaptive Structured Pruning for Large Language Modelscited by 110
- 2024DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiencycited by 106
- 2024LISA: Layerwise Importance Sampling for Memory-Efficient Large Language Model Fine-Tuningcited by 88
- 2024BurstGPT: A Real-world Workload Dataset to Optimize LLM Serving Systemscited by 84
- 2024What Matters in Transformers? Not All Attention is Neededcited by 83
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunitiescited by 46
- 2024SlimGPT: Layer-wise Structured Pruning for Large Language Modelscited by 43
- 2023LoRAShear: Efficient Large Language Model Structured Pruning and Knowledge Recoverycited by 37
- 2024BlockPruner: Fine-grained Pruning for Large Language Modelscited by 35
- 2024Investigating Layer Importance in Large Language Modelscited by 35
- 2023Beyond Size: How Gradients Shape Pruning Decisions in Large Language Modelscited by 30
- 2024APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inferencecited by 29
- 2024FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Modelscited by 26
- 2023Mobile Foundation Model as Firmwarecited by 25
- 2024DISP-LLM: Dimension-Independent Structural Pruning for Large Language Modelscited by 24
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025Beyond Manually Designed Pruning Policies with Second-Level Performance Prediction: A Pruning Framework for LLMscited by 0
- 2026GRASP LoRA: GRPO Guided Adapter Sparsity Policy for Cross Lingual Transfercited by 0
- 2026POP: Online Structural Pruning Enables Efficient Inference of Large Foundation Modelscited by 0
- 2026POP: Online Structural Pruning Enables Efficient Inference of Large Foundation Models6 Feb 2026
- 2026GRASP LoRA: GRPO Guided Adapter Sparsity Policy for Cross Lingual Transfer10 Jan 2026
- 2025Beyond Manually Designed Pruning Policies with Second-Level Performance Prediction: A Pruning Framework for LLMs4 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2023Compresso: Structured Pruning with Collaborative Prompting Learns Compact Large Language Models
- 2025Pruning Laws for Large Language Models
- 2026RAP: KV-Cache Compression via RoPE-Aligned Pruning
- 2026Beyond FLOPs: Benchmarking Real Inference Acceleration of LLM Pruning under a GEMM-Centric Taxonomy
- 2026LLMs can Compress LLMs: Adaptive Pruning by Agents
- 2025Towards Efficient Automatic Self-Pruning of Large Language Models
- 2026Compressed-Sensing-Guided, Inference-Aware Structured Reduction for Large Language Models
- 2026DepthKV: Layer-Dependent KV Cache Pruning for Long-Context LLM Inference