Table of Contents
Fetching ...

Covert Prompt Transmission for Secure Large Language Model Services

Ruichen Zhang, Yinqiu Liu, Shunpu Tang, Jiacheng Wang, Dusit Niyato, Geng Sun, Yonghui Li, Sumei Sun

TL;DR

This work addresses covert prompt transmission for secure LLM services over wireless networks by jointly optimizing prompt compression and transmit power under fidelity and detection constraints. It introduces the PCAE framework, which uses surprisal-guided, head-tail token selection via a local SLM and permutation-based encryption to reduce payload while preserving inference quality; and the GPPO approach, which learns transmission policies with group-wise action sampling and KL-regularized updates to minimize latency under covertness requirements. Key results show PCAE reduces preprocessing latency by orders of magnitude while maintaining fidelity across backbones (e.g., DeepSeek-32B, Qwen-32B), and GPPO achieves up to a 38.6% reduction in covert transmission latency compared with baselines, with latency improving as power and sampling diversity increase. Collectively, the work enables real-time edge deployment of secure, undetectable LLM services, offering practical benefits for privacy-preserving and stealthy cloud-edge AI applications, while providing a principled framework for integrating semantic compression, lightweight encryption, and DRL-based covert optimization. $L_T$ denotes end-to-end latency; $F_{min}$ the fidelity threshold; and $\xi^*$ the optimal Willie's detection error, which must satisfy $\xi^* \ge 1 - \epsilon$ for covertness, all of which are handled within the PCAE-GPPO design.

Abstract

This paper investigates covert prompt transmission for secure and efficient large language model (LLM) services over wireless networks. We formulate a latency minimization problem under fidelity and detectability constraints to ensure confidential and covert communication by jointly optimizing the transmit power and prompt compression ratio. To solve this problem, we first propose a prompt compression and encryption (PCAE) framework, performing surprisal-guided compression followed by lightweight permutation-based encryption. Specifically, PCAE employs a locally deployed small language model (SLM) to estimate token-level surprisal scores, selectively retaining semantically critical tokens while discarding redundant ones. This significantly reduces computational overhead and transmission duration. To further enhance covert wireless transmission, we then develop a group-based proximal policy optimization (GPPO) method that samples multiple candidate actions for each state, selecting the optimal one within each group and incorporating a Kullback-Leibler (KL) divergence penalty to improve policy stability and exploration. Simulation results show that PCAE achieves comparable LLM response fidelity to baseline methods while reducing preprocessing latency by over five orders of magnitude, enabling real-time edge deployment. We further validate PCAE effectiveness across diverse LLM backbones, including DeepSeek-32B, Qwen-32B, and their smaller variants. Moreover, GPPO reduces covert transmission latency by up to 38.6\% compared to existing reinforcement learning strategies, with further analysis showing that increased transmit power provides additional latency benefits.

Covert Prompt Transmission for Secure Large Language Model Services

TL;DR

This work addresses covert prompt transmission for secure LLM services over wireless networks by jointly optimizing prompt compression and transmit power under fidelity and detection constraints. It introduces the PCAE framework, which uses surprisal-guided, head-tail token selection via a local SLM and permutation-based encryption to reduce payload while preserving inference quality; and the GPPO approach, which learns transmission policies with group-wise action sampling and KL-regularized updates to minimize latency under covertness requirements. Key results show PCAE reduces preprocessing latency by orders of magnitude while maintaining fidelity across backbones (e.g., DeepSeek-32B, Qwen-32B), and GPPO achieves up to a 38.6% reduction in covert transmission latency compared with baselines, with latency improving as power and sampling diversity increase. Collectively, the work enables real-time edge deployment of secure, undetectable LLM services, offering practical benefits for privacy-preserving and stealthy cloud-edge AI applications, while providing a principled framework for integrating semantic compression, lightweight encryption, and DRL-based covert optimization. denotes end-to-end latency; the fidelity threshold; and the optimal Willie's detection error, which must satisfy for covertness, all of which are handled within the PCAE-GPPO design.

Abstract

This paper investigates covert prompt transmission for secure and efficient large language model (LLM) services over wireless networks. We formulate a latency minimization problem under fidelity and detectability constraints to ensure confidential and covert communication by jointly optimizing the transmit power and prompt compression ratio. To solve this problem, we first propose a prompt compression and encryption (PCAE) framework, performing surprisal-guided compression followed by lightweight permutation-based encryption. Specifically, PCAE employs a locally deployed small language model (SLM) to estimate token-level surprisal scores, selectively retaining semantically critical tokens while discarding redundant ones. This significantly reduces computational overhead and transmission duration. To further enhance covert wireless transmission, we then develop a group-based proximal policy optimization (GPPO) method that samples multiple candidate actions for each state, selecting the optimal one within each group and incorporating a Kullback-Leibler (KL) divergence penalty to improve policy stability and exploration. Simulation results show that PCAE achieves comparable LLM response fidelity to baseline methods while reducing preprocessing latency by over five orders of magnitude, enabling real-time edge deployment. We further validate PCAE effectiveness across diverse LLM backbones, including DeepSeek-32B, Qwen-32B, and their smaller variants. Moreover, GPPO reduces covert transmission latency by up to 38.6\% compared to existing reinforcement learning strategies, with further analysis showing that increased transmit power provides additional latency benefits.
Paper Structure (29 sections, 1 theorem, 48 equations, 10 figures, 1 table, 3 algorithms)

This paper contains 29 sections, 1 theorem, 48 equations, 10 figures, 1 table, 3 algorithms.

Key Result

Theorem 1

Considering the log-uniform noise uncertainty model in our work, the optimal detection threshold $\tau^*$ that minimizes Willie's detection performance is given by At this threshold, the minimum total detection error probability is given by

Figures (10)

  • Figure 1: System model of covert prompt transmission, where Alice compresses and encrypts the input prompt via an SLM before covertly transmitting it to Bob, while evading detection by Willie. We present prompt encryption to protect data security. Additionally, GPPO is trained to optimize compression rate and transmission power, thus realizing the covert transmission.
  • Figure 2: Illustration of the PCAE framework, which combines surprisal-based prompt compression and lightweight token-level encryption to enable secure and efficient prompt transmission.
  • Figure 3: Illustration of the proposed GPPO method, which integrates group-wise action sampling and critic-guided advantage estimation for stable and efficient covert transmission policy learning.
  • Figure 4: Comparison between the original prompt and the compressed-and-encrypted prompt generated by the proposed PCAE framework.
  • Figure 5: LLM response fidelity under different model sizes and compression ratios using PCAE.
  • ...and 5 more figures

Theorems & Definitions (6)

  • Theorem 1
  • proof
  • Remark 1
  • Remark 2
  • Example 1
  • Remark 3