cs.CLSep 26, 2026

PC-SubMax: Efficient Prompt Compression via Regularized Submodular Maximization

Authors: Ziyi Zhang, Shuang Cui, Haotian Zhang, Xiaoyu Wang

Organizations: Soochow University

Abstract

While large language models (LLMs) are increasingly deployed in long-context scenarios, lengthy prompts can increase inference costs and latency and exacerbate the ``lost-in-the-middle'' phenomenon. Selective prompt compression offers a model-agnostic approach to alleviating these issues. However, methods based on fixed token- or sentence-level importance scores may overlook how content contributions change with the selected subset, limiting their ability to account for inter-sentence redundancy. Compression procedures that rely on autoregressive LLM scoring can also introduce substantial overhead. We propose PC-SubMax, a theoretically grounded framework that formulates selective prompt compression as regularized monotone submodular maximization under a knapsack constraint. The objective is U(S)−ℓ(S)U(S)-\ell(S), where the monotone submodular utility UU combines information coverage, query relevance, and log-determinant diversity, and the non-negative modular penalty ℓ\ell captures token cost. Through diminishing marginal returns, the objective evaluates each sentence's contribution relative to the selected content. To optimize this objective, we develop the Regularized Greedy+Max (RGM) algorithm, which deterministically returns a feasible set QQ satisfying U(Q)−ℓ(Q)≥12U(O)−ℓ(O)U(Q)-\ell(Q)\geq \frac{1}{2}U(O)-\ell(O), where OO is an optimal feasible solution to the regularized problem. RGM uses O(nκ)O(nκ) value-oracle queries, where nn is the number of candidate sentences and κκ is the maximum feasible subset size. PC-SubMax uses encoder representations and avoids autoregressive LLM scoring during compression. Experiments across seven diverse benchmarks demonstrate competitive downstream performance with low compression overhead.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. DiffuMask: Diffusion Language Model for Token-level Prompt Pruning

    Apr 8, 2026Caleb Zheng, Jyotika Singh, Fang Tu +6Prompt CompressionLLM Context Compression

  2. Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inference

    Apr 3, 2026Cornelius Kummer, Lena Jurkschat, Michael Färber +1Prompt CompressionLLM Inference Efficiency