Token-Level Privacy in Large Language Models

Re'em Harel, Niv Gilboa, Yuval Pinter
3/5/2025
cs.CLcs.CR

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

The use of language models as remote services requires transmitting private information to external providers, raising significant privacy concerns. This process not only risks exposing sensitive data to untrusted service providers but also leaves it vulnerable to interception by eavesdroppers. Existing privacy-preserving methods for natural language processing (NLP) interactions primarily rely on semantic similarity, overlooking the role of contextual information. In this work, we introduce dchi-stencil, a novel token-level privacy-preserving mechanism that integrates contextual and semantic information while ensuring strong privacy guarantees under the dchi differential privacy framework, achieving 2epsilon-dchi-privacy. By incorporating both semantic and contextual nuances, dchi-stencil achieves a robust balance between privacy and utility. We evaluate dchi-stencil using state-of-the-art language models and diverse datasets, achieving comparable and even better trade-off between utility and privacy compared to existing methods. This work highlights the potential of dchi-stencil to set a new standard for privacy-preserving NLP in modern, high-risk applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{harel2025tokenlevel,
  title  = {Token-Level Privacy in Large Language Models},
  author = {Re'em Harel and Niv Gilboa and Yuval Pinter},
  year   = {2025},
  eprint = {2503.03652},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.03652v1}
}

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/2503.03652.svg)](https://codeofpaper.com/paper/2503.03652)

Discussion