Lune

AAAI2026顶会

Anti-adversarial Learning: Desensitizing Prompts for Large Language Model

Xuan Li, Zhe Yin, Xiaodong Gu, Beijun Shen

摘要

With the widespread use of LLMs, preserving privacy in user prompts has become crucial, as prompts risk exposing private and sensitive data to cloud LLMs. Conventional techniques like homomorphic encryption (HE), secure multi-party computation, and federated learning (FL) are not well-suited to this scenario due to the lack of control over user participation in remote model interactions. In this paper, we propose PromptObfus, a novel method for desensitizing LLM prompts. The core idea of PromptObfus is "anti-adversarial" learning. Unlike adversarial attacks that add imperceptible perturbations to mislead models, PromptObfus perturbs sensitive words to make them unrecognizable to humans while maintaining the model's original predictions. Specifically, PromptObfus frames prompt desensitization as a masked language modeling task, replacing privacy-sensitive terms with a [MASK] token. A desensitization model is utilized to generate candidate replacements for each masked position. These candidates are subsequently selected based on gradient feedback from a surrogate model, ensuring minimal disruption to task output. We demonstrate the effectiveness of our approach on three NLP tasks. Results show that PromptObfus effectively prevents privacy inference from remote LLMs while preserving task utility.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Large Language Models as Optimizers 引用了 Automatic Prompt Optimization with "Gradient Descent" and Beam Search
  • Large Language Models as Optimizers 引用了 Large Language Models are Human-Level Prompt Engineers
  • Automatic Prompt Optimization with "Gradient Descent" and Beam Search 引用了 Large Language Models are Human-Level Prompt Engineers
  • Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory 引用了 Large Language Models as Optimizers
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper10

  1. Large Language Models as OptimizersChengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu 等ICLR 2024 · 817 次引用
  2. Large Language Models are Human-Level Prompt EngineersYongchao Zhou, Andrei Ioan Muresanu, Ziwen Han, Keiran Paster 等ICLR 2023 · 297 次引用
  3. Iron: Private Inference on TransformersMeng Hao, Hongwei Li, Hanxiao Chen, Pengzhi Xing 等NeurIPS 2022 · 209 次引用
  4. Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity TheoryNiloofar Mireshghallah, Hyunwoo Kim, Xuhui Zhou, Yulia Tsvetkov 等ICLR 2024 · 198 次引用
  5. Automatic Prompt Optimization with "Gradient Descent" and Beam SearchReid Pryzant, Dan Iter, Jerry Li, Yin Tat Lee 等EMNLP 2023 · 137 次引用

相关 Paper

  1. TextObfuscator: Making Pre-trained Language Model a Privacy Protector via Obfuscating Word RepresentationsXin Zhou, Yi Lu, Ruotian Ma, Tao Gui 等ACL Findings 2023 · 21 次引用
  2. ObfusLM: Privacy-preserving Language Model Service against Embedding Inversion AttacksYu Lin, Ruining Yang, Yunlong Mao, Qizhi Zhang 等ACL 2025 · 2 次引用
  3. ProxyPrompt: Securing System Prompts against Prompt Extraction AttacksZhixiong Zhuang, Maria-Irina Nicolae, Hui-Po Wang, Mario FritzACL Findings 2026 · 1 次引用
  4. Prompt Obfuscation for Large Language ModelsDavid Pape, Sina Mavali, Thorsten Eisenhofer, Lea SchönherrUSENIX Security 2025
  5. TextMixer: Mixing Multiple Inputs for Privacy-Preserving InferenceXin Zhou, Yi Lu, Ruotian Ma, Tao Gui 等EMNLP Findings 2023 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖