mlsanityData to 7 Oct 2026

Compress, Then Prompt: Improving Accuracy-Efficiency Trade-off of LLM Inference with Transferable Prompt

arXiv 2305.11186 ↗First posted 17 May 2023cs.CL cs.LGcited by 28

Not on the map. Why?

Abstract (arXiv)

While the numerous parameters in Large Language Models (LLMs) contribute to their superior performance, this massive scale makes them inefficient and memory-hungry. Thus, they are hard to deploy on commodity hardware, such as one single GPU. Given the memory and power constraints of such devices, model compression methods are widely employed to reduce both the model size and inference latency, which essentially trades off model quality in return for improved efficiency. Thus, optimizing this accuracy-efficiency trade-off is crucial for the LLM deployment on commodity hardware. In this paper, we introduce a new perspective to optimize this trade-off by prompting compressed models. Specifically, we first observe that for certain questions, the generation quality of a compressed LLM can be significantly improved by adding carefully designed hard prompts, though this isn't the case for all questions. Based on this observation, we propose a soft prompt learning method where we expose the compressed model to the prompt learning process, aiming to enhance the performance of prompts. Our experimental analysis suggests our soft prompt strategy greatly improves the performance of the 8x compressed LLaMA-7B model (with a joint 4-bit quantization and 50% weight pruning compression), allowing them to match their uncompressed counterparts on popular benchmarks. Also, we demonstrate that these learned prompts can be transferred across various datasets, tasks, and compression levels. Hence with this transferability, we can stitch the soft prompt to a newly compressed model to improve the test-time accuracy in an ``in-situ'' way.

Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). Builds on 30 of its 47 references that are in the map. First posted on arXiv 17 May 2023.

Builds on

30 of 47 references.

References · 30

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  8. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  10. 2016Pointer Sentinel Mixture Modelscited by 2,992
  11. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  12. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
18 more
  1. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  2. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  3. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  4. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
  5. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  6. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  7. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
  8. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  9. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
  10. 2018AMC: AutoML for Model Compression and Acceleration on Mobile Devicescited by 375
  11. 2023Data-centric Artificial Intelligence: A Surveycited by 202
  12. 2022A Fast Post-Training Pruning Framework for Transformerscited by 161
  13. 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
  14. 2023Fast Distributed Inference Serving for Large Language Modelscited by 143
  15. 2021Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N:M Transposable Maskscited by 103
  16. 2022Decentralized Training of Foundation Models in Heterogeneous Environmentscited by 87
  17. 2021On Transferability of Prompt Tuning for Natural Language Processingcited by 74
  18. 2022RSC: Accelerating Graph Neural Networks Training via Randomized Sparse Computationscited by 12

Built on by

Cited by year

Citing papers per year: 2023: 8; 2024: 16; 2025: 4.

28 papers.

Sort:

By area:

  1. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  2. 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memorycited by 170
  3. 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
  4. 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
  5. 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
  6. 2023Norm Tweaking: High-performance Low-bit Quantization of Large Language Modelscited by 33
  7. 2024Probing the limitations of multimodal language models for chemistry and materials researchcited by 31
  8. 2023Visual Prompting Upgrades Neural Network Sparsification: A Data-Model Perspectivecited by 23
  9. 2023PokeMQA: Programmable knowledge editing for Multi-hop Question Answeringcited by 23
  10. 2024Is C4 Dataset Optimal for Pruning? An Investigation of Calibration Data for LLM Pruningcited by 19
  11. 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compressioncited by 18
  12. 2024CliqueParcel: An Approach For Batching LLM Prompts That Jointly Optimizes Efficiency And Faithfulnesscited by 12
16 more
  1. 2023Sweeping Heterogeneity with Smart MoPs: Mixture of Prompts for LLM Task Adaptationcited by 10
  2. 2023Winner-Take-All Column Row Sampling for Memory Efficient Adaptation of Language Modelcited by 9
  3. 2024QUITO: Accelerating Long-Context Reasoning through Query-Guided Context Compressioncited by 7
  4. 2023Do Compressed LLMs Forget Knowledge? An Experimental Study with Practical Implicationscited by 6
  5. 2024Enhancing Embedding Performance through Large Language Model-based Text Enrichment and Rewritingcited by 6
  6. 2024FFSplit: Split Feed-Forward Network For Optimizing Accuracy-Efficiency Trade-off in Language Model Inferencecited by 4
  7. 2024Composable Interventions for Language Modelscited by 4
  8. 2024Governance of Generative Artificial Intelligence for Companiescited by 2
  9. 2024SMART: Automatically Scaling Down Language Models with Accuracy Guarantees for Reduced Processing Feescited by 2
  10. 2025Efficient Visual Appearance Optimization by Learning from Prior Preferencescited by 2
  11. 2025VeriLLM: A Lightweight Framework for Publicly Verifiable Decentralized Inferencecited by 2
  12. 2024Context Matters: Pushing the Boundaries of Open-Ended Answer Generation with Graph-Structured Knowledge Contextcited by 0
  13. 2024(PASS) Visual Prompt Locates Good Structure Sparsity through a Recurrent HyperNetworkcited by 0
  14. 2024Task-oriented Prompt Enhancement via Script Generationcited by 0
  15. 2025Enhancing Collective Intelligence in Large Language Models Through Emotional Integrationcited by 0
  16. 2025An item is worth one token in Multimodal Large Language Models-based Sequential Recommendationcited by 0