Preempting Text Sanitization Utility in Resource-Constrained Privacy-Preserving LLM Interactions

Robin Carpentier, Benjamin Zi Hao Zhao, Hassan Jameel Asghar, Dali Kaafar
11/18/2024
cs.CRcs.LG

No official code found. Best implementation: inathwor/Preempting-Text-Sanitization (3 stars, last commit 2025-06-16).

Abstract

Interactions with online Large Language Models raise privacy issues where providers can gather sensitive information about users and their companies from the prompts. While textual prompts can be sanitized using Differential Privacy, we show that it is difficult to anticipate the performance of an LLM on such sanitized prompt. Poor performance has clear monetary consequences for LLM services charging on a pay-per-use model as well as great amount of computing resources wasted. To this end, we propose a middleware architecture leveraging a Small Language Model to predict the utility of a given sanitized prompt before it is sent to the LLM. We experimented on a summarization task and a translation task to show that our architecture helps prevent such resource waste for up to 20% of the prompts. During our study, we also reproduced experiments from one of the most cited paper on text sanitization using DP and show that a potential performance-driven implementation choice dramatically changes the output while not being explicitly acknowledged in the paper.

View on arXivView PDF

Code Implementations(1)

30Python, Jupyter NotebookOct 11, 20241 years ago

Similar Papers

Cite this paper

@article{carpentier2024preempting,
  title  = {Preempting Text Sanitization Utility in Resource-Constrained Privacy-Preserving LLM Interactions},
  author = {Robin Carpentier and Benjamin Zi Hao Zhao and Hassan Jameel Asghar and Dali Kaafar},
  year   = {2024},
  eprint = {2411.11521},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.11521v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.11521.svg)](https://codeofpaper.com/paper/2411.11521)

Discussion