Chain-of-Sanitized-Thoughts: Plugging PII Leakage in CoT of Large Reasoning Models

Arghyadeep Das, Sai Sreenivas Chintha, Rishiraj Girmal, Kinjal Pandey, Sharvi EndaitarXiv 2026

TL;DR

Large Language Models (LLMs) using Chain-of-Thought (CoT) reasoning can inadvertently leak sensitive Personally Identifiable Information (PII) in their internal thought processes, even if the final output is clean. This paper introduces "Chain-of-Sanitized-Thoughts" (CoST), a framework and benchmark to train and evaluate LLMs to think privately, significantly reducing PII leakage without sacrificing task performance.

What Problem Does This Paper Address?

Modern LLMs, especially Large Reasoning Models (LRMs), leverage Chain-of-Thought (CoT) to break down complex problems into intermediate reasoning steps. While this enhances performance and interpretability, it creates a significant privacy risk. These intermediate "thoughts" often contain sensitive PII (names, addresses, medical details, etc.) that can be logged or exposed, even if the final answer is scrubbed. Existing methods often rely on post-hoc redaction, which doesn't address the root cause: the model's internal reasoning process. This paper tackles the challenge of making LRMs think privately from the outset, preventing PII leakage at the source.

Methods

The authors propose "Chain-of-Sanitized-Thoughts" (CoST), a privacy-first reasoning framework. Instead of external redaction, CoST focuses on two primary intervention strategies:

  • Prompt Engineering (PE): Crafting specific system prompts that explicitly instruct the model to avoid PII in its reasoning and final output. These prompts emphasize internal use of PII only when absolutely necessary and strict adherence to privacy.
  • Supervised Fine-Tuning (SFT): Training models on a new dataset (PII-CoT-Bench) that provides examples of private reasoning traces. This method aims to instill privacy-preserving habits directly into the model's parameters.

The core idea is to teach models to "think privately" by either guiding their reasoning through prompts or by fine-tuning them on examples of private thought processes.

Datasets

  • PII-CoT-Bench (New Dataset): A supervised dataset of 350 question-answer pairs with privacy-aware CoT annotations. It spans medical and financial domains and provides examples of how a reasoning system should internalize intermediate steps without exposing sensitive attributes. This dataset is designed for training and fine-tuning models for privacy-preserving reasoning.
  • Evaluation Dataset (New Benchmark): A dedicated dataset with prompts designed to elicit specific PII leakage failure modes across six categories (e.g., incidental PII, task-critical PII, adversarial attempts, cross-domain reasoning). This benchmark is intentionally distribution-shifted from the training data to provide a fine-grained diagnosis of privacy vulnerabilities.

Key Insights and Ideas

  • CoT is a Double-Edged Sword: While CoT boosts reasoning capabilities, it simultaneously expands the attack surface for PII leakage.
  • Internal Reasoning is the Real Risk: Even if final outputs are clean, logged CoT traces can expose sensitive information, creating a significant privacy blind spot.
  • Capability Matters: State-of-the-art, highly capable models benefit more from prompt engineering, suggesting their strong instruction-following abilities can internalize privacy directives. Weaker models, however, require parameter-level adaptation through SFT to achieve substantial privacy improvements.
  • Privacy-First Thinking is Achievable: Both PE and SFT can significantly reduce PII leakage with minimal impact on task utility, demonstrating that private reasoning doesn't have to come at a steep performance cost.
  • Prompt Engineering is a Lightweight Solution: For advanced models, PE offers a practical and effective way to inject privacy awareness without extensive retraining.

Key Results

  • Significant PII Reduction: Both PE and SFT substantially reduced PII leakage across various models and evaluation categories. For instance, models like LLaMA-3.3-70B saw a privacy score increase of over 25% with SFT.
  • Minimal Utility Degradation: Despite privacy improvements, utility scores remained high (often above 95%), indicating that task performance was largely preserved.
  • Model Dependency: Stronger models (e.g., GPT-OSS-20B) showed marked improvements with PE, while weaker models (e.g., LLaMA-3.3-70B, DeepSeek-R1-Qwen-7B) benefited more from SFT.
  • Baseline Models Leak: All evaluated models, in their baseline configuration, exhibited a tendency to leak PII when prompted with sensitive contexts.

Limitations and Future Work

  • Fixed PII Categories and Weights: The evaluation uses predefined PII types and sensitivity weights, which might not cover all real-world privacy risks or domain-specific nuances.
  • Subjectivity in Questions: The complexity and nature of PII-based reasoning questions can be subjective.
  • LLM-as-a-Judge Biases: While useful, LLM-based evaluation metrics can inherit biases from the judge model.
  • Quantized Models: Fine-tuning experiments were conducted on quantized open-source models, which might limit the full potential gains compared to full-precision models.
  • Short Reasoning Traces: The analysis primarily focuses on short to medium-length reasoning traces; the dynamics of very long or multi-turn reasoning remain underexplored.
  • No Access to Internal Representations: The study analyzes observable CoT outputs, not internal model states, limiting causal conclusions about how privacy is encoded.

Future Work: The authors suggest extending the framework to privacy-first Reinforcement Learning from Human Feedback (RLHF) or GRPO, penalizing privacy leakage at the trajectory level. They also plan to investigate privacy at the model level (architecture, pretraining) and explore inference-time intervention techniques like activation steering.

Summary updated

BibTeX
@misc{das2026chain,
  author = {Arghyadeep Das and Sai Sreenivas Chintha and Rishiraj Girmal and Kinjal Pandey and Sharvi Endait},
  title = {{Chain-of-Sanitized-Thoughts: Plugging PII Leakage in CoT of Large Reasoning Models}},
  year = {2026},
  url = {https://openreview.net/forum?id=j2YREUCyWC},
}
Figure