# LLM-Redactor: An Empirical Evaluation of Eight Techniques for Privacy-Preserving LLM Requests

Source: [LLM-Redactor: An Empirical Evaluation of Eight Techniques for Privacy-Preserving LLM Requests](<https://www.sota2.com/research/paper/69df1b9e7d0172140ec7b98d>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-04-16T05:00:04.684Z

Authors: Justice Owusu Agyemang, Jerry John Kponyo, Elliot Amponsah, Godfred Manu Addo Boakye, Kwame Opuni-Boachie Obour Agyekum

Published: 2026-04-13T21:05:42.000Z

## Abstract

Coding agents and LLM-powered applications routinely send potentially sensitive content to cloud LLM APIs where it may be logged, retained, used for training, or subpoenaed. Existing privacy tooling focuses on network-level encryption and organization-level DLP, neither of which addresses the content of prompts themselves. We present a systematic empirical evaluation of eight techniques for privacy-preserving LLM requests: (A) local-only inference, (B) redaction with placeholder restoration, (C) semantic rephrasing, (D) Trusted Execution Environment hosted inference, (E) split inference, (F) fully homomorphic encryption, (G) secret sharing via multi-party computation, and (H) differential-privacy noise. We implement all eight (or a tractable research-stage subset where deployment is not yet feasible) in an open-source shim compatible with MCP and any OpenAI-compatible API. We evaluate the four practical options (A, B, C, H) and their combinations across four workload classes using a ground-truth-labelled leak benchmark of 1,300 samples with 4,014 annotations. Our headline finding is that no single technique dominates: the combination A+B+C (route locally when possible, redact and rephrase the rest) achieves 0.6% combined leak on PII and 31.3% on proprietary code, with zero exact leaks on PII across 500 samples. We present a decision rule that selects the appropriate option(s) from a threat-model budget and workload characterisation. Code, benchmarks, and evaluation harness are released at https://github.com/jayluxferro/llm-redactor.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Privacy Leakage Analysis on WL2 Secrets](<https://www.sota2.com/research/sota/privacy-leakage-analysis-on-wl2-secrets.md>): Privacy Leakage Analysis; WL2 Secrets; Combined Leak Rate: 0.

- [Privacy Leakage Evaluation on WL1 PII](<https://www.sota2.com/research/sota/privacy-leakage-evaluation-on-wl1-pii.md>): Privacy Leakage Evaluation; WL1 PII; Combined Leak Rate: 0.

- [Privacy Leakage Evaluation on WL3 Implicit](<https://www.sota2.com/research/sota/privacy-leakage-evaluation-on-wl3-implicit.md>): Privacy Leakage Evaluation; WL3 Implicit; Combined Leak Rate: 0.

- [Privacy Leakage Evaluation on WL4 Code](<https://www.sota2.com/research/sota/privacy-leakage-evaluation-on-wl4-code.md>): Privacy Leakage Evaluation; WL4 Code; Combined Leak Rate: 0.

- [Privacy Leakage Analysis on WL1 PII](<https://www.sota2.com/research/sota/privacy-leakage-analysis-on-wl1-pii.md>): Privacy Leakage Analysis; WL1 PII; Exact Leak Rate: 0.

- [Privacy Leakage Analysis on WL3 Implicit](<https://www.sota2.com/research/sota/privacy-leakage-analysis-on-wl3-implicit.md>): Privacy Leakage Analysis; WL3 Implicit; Exact Leak Rate: 0.

- [Privacy Leakage Analysis on WL4 Code](<https://www.sota2.com/research/sota/privacy-leakage-analysis-on-wl4-code.md>): Privacy Leakage Analysis; WL4 Code; Exact Leak Rate: 12.3.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2604.12064>)

[PDF](<https://arxiv.org/pdf/2604.12064.pdf>)
