Rescriber: Smaller-LLM-Powered User-Led Data Minimization for LLM-Based Chatbots

Tianshi Li, Jijie Zhou, Eryue Xu, Yaoyao Wu, Tianshi Li 0006

TL;DR

Rescriber is a novel browser extension that empowers users to practice "data minimization" by automatically detecting and sanitizing sensitive information in chatbot prompts before they are sent to the cloud. By leveraging a small, locally hosted LLM (Llama3-8B), Rescriber provides on-device privacy control that matches the user satisfaction of state-of-the-art cloud models without sacrificing the utility of the chatbot's response.

What Problem Does This Paper Address?

When interacting with LLM-based chatbots like ChatGPT, users frequently disclose excessive personal or sensitive information—ranging from names and addresses to health conditions and financial details. This behavior exposes users to severe privacy threats, including data breaches and data extraction attacks that exploit the memorization vulnerabilities of LLMs.

While model-centric mitigation strategies (like post-hoc data sanitization or differentially private training) exist, they operate in a concealed manner and fail to account for individual context and privacy-utility tradeoffs. Manual sanitization by users is tedious and error-prone. The authors address this gap by designing a user-led, real-time data minimization tool that gives users granular control over what information leaves their devices.

Methods

The authors developed Rescriber, a Chrome extension that intercepts user prompts to detect, highlight, and sanitize sensitive data.

A snapshot of Rescriber user experience when using ChatGPT for data analysis.

Rescriber offers two primary data minimization modes:

  1. Redaction/Replacement: Replaces sensitive terms with entity placeholders (e.g., "James Williams" becomes [NAME4]).
  2. Abstraction: Rewrites detailed information into generalized, context-preserving alternatives (e.g., "153 W 57th St, New York" becomes "near Central Park").

A key feature of Rescriber is Write-back. To maintain response utility and readability, the extension locally maps the placeholders back to the original sensitive data once the chatbot returns a response, ensuring a seamless user experience.

The authors implemented and compared two backend versions of the system:

  • Rescriber-GPT-4o: A cloud-based baseline representing an upper-bound for accuracy.
  • Rescriber-Llama3-8B: A local, 4-bit quantized model running on consumer hardware via the Ollama framework to guarantee complete on-device privacy.

To make the local model viable, they implemented input segmentation (chunking long text) and a streaming mode that displays detected entities incrementally to reduce perceived latency.

Datasets

The system's performance was evaluated using two primary resources:

  • Ai4Privacy PII Masking 200K Dataset: The authors randomly selected 240 samples (covering 229 discussion subjects) to benchmark Rescriber's detection accuracy against Microsoft Presidio, a standard traditional NLP-based PII detection SDK.
  • ShareGPT Dataset: Used to inspire three realistic, hypothetical scenarios (email response, data analysis, and writing a therapist thank-you letter) for a counterbalanced usability study with 12 real ChatGPT users.

Key Insights and Ideas

  • Subjective Parity Despite Objective Disparity: Interestingly, users rated the local Llama3-8B model and the cloud-based GPT-4o model similarly regarding adoption intention and perceived privacy protection. This occurred even though GPT-4o objectively achieved much higher recall. For users, having an on-device privacy layer was a "massive step up" from the status quo, making them highly tolerant of the smaller model's limitations.
  • Asymmetric Trust (Recall > Precision): In privacy tools, false negatives are catastrophic to user trust, whereas false positives (flagging non-sensitive info) are easily tolerated.
  • The Value of Taxonomy-Free Flexibility: Strict, predefined PII taxonomies often miss what users personally deem sensitive. The local Llama3 model occasionally hallucinated categories outside the strict taxonomy (like height or weight), which users actually preferred over GPT-4o's strict adherence to standard PII definitions.
  • The "Write-back" Utility Bridge: Data minimization inherently threatens the utility of an LLM's response. Local "write-back" resolves this tension, allowing the cloud model to process safe, anonymized text while the user receives a fully contextualized, ready-to-use output.

Key Results

  • Efficacy: Across all user study attempts, 84% led to a satisfactory response from ChatGPT using sanitized prompts.
  • Accuracy Benchmarking: Both Rescriber models significantly outperformed Microsoft Presidio. GPT-4o achieved the highest recall (0.88), while Llama3-8B achieved a recall of 0.63. Both models maintained high precision (0.94).
  • Latency Optimization: Implementing streaming mode for Rescriber-Llama3-8B reduced the time to display the first detected entity from 3.40 seconds to 2.01 seconds (a 69% reduction) on an M2 chip with 24GB memory. On an M1 Max machine, the local model's full response latency was 1.09 seconds, making it faster than the cloud-based GPT-4o API (1.41 seconds).

Limitations and Future Work

While promising, smaller local LLMs still struggle with long prompts and complex instruction-following, occasionally failing to maintain consistent abstraction granularity. Furthermore, commercial chatbots sometimes propagate placeholders into their final responses (e.g., generating text like [Your Full Name]), which slightly degrades formatting quality.

Future work will explore introducing stricter constrained decoding mechanisms during response generation, utilizing in-context learning to stabilize abstraction outputs, and developing multi-model verification techniques to boost local model recall.

Summary updated

BibTeX
@inproceedings{li2025rescriber,
  author = {Tianshi Li and Jijie Zhou and Eryue Xu and Yaoyao Wu and Tianshi Li},
  title = {{Rescriber: Smaller-LLM-Powered User-Led Data Minimization for LLM-Based Chatbots}},
  booktitle = {CHI},
  year = {2025},
  doi = {10.1145/3706598.3713701},
}
Figure