NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Privacy-Preserving Text Sanitization for Distributed Agents Collaboration via Disentangled Representations

Xuan Liu, Hefeng Zhou, Sicheng Chen, Chao Yang, Xingcheng Xu, Jingjing Qu, Jiong Lou, Jie Li, Xia HuarXiv 2026

TL;DR

When AI agents collaborate across organizational boundaries, they leak private data not just through names and numbers, but through their unique writing styles and formatting. This paper introduces DiSan (Disentangled Sanitization), a framework that splits text into task-relevant "roles" and source-specific "styles," sharing only the sanitized content while keeping stylistic fingerprints local. It slashes PII exposure by 20× and dramatically reduces stylometric leakage while preserving high utility for retrieval-augmented generation (RAG).

What Problem Does This Paper Address?

In cross-organizational multi-agent systems—such as distributed question answering or federated retrieval-augmented generation (RAG)—agents must exchange text snippets to collaborate. Traditional privacy methods focus heavily on redacting explicit Personally Identifiable Information (PII) like names, dates, or account numbers.

However, text contains deeper, implicit privacy risks: distributional signatures. Every organization leaves unique stylistic fingerprints in its documents, including specific formatting conventions, vocabulary choices, and syntactic patterns. An adversary can use these stylometric features to identify the source organization or infer proprietary business processes. The authors show that simply masking text tokens is a half-measure that leaves these signatures intact while degrading downstream utility. The challenge is finding a way to strip both explicit PII and implicit stylistic signatures without destroying the semantic meaning required for collaboration.

Methods

The authors propose DiSan (Disentangled Sanitization), a privacy-preserving framework integrated into the Intern-Shannon agent operating system. DiSan introduces a two-stream encoder architecture that factorizes text into two distinct latent subspaces:

  1. Role Subspace ($Z_r$): Encodes source-invariant task semantics (entities, relations, events) necessary for downstream tasks.
  2. Style Subspace ($Z_s$): Captures agent-specific phrasing, style, and formatting. This stream remains strictly local and is discarded after decoding.

To force these spaces apart, DiSan applies an orthogonality loss ($\mathcal{L}_{orth}$), ensuring that role representations do not absorb stylistic cues.

Because agents train locally on non-IID (independent and identically distributed) data, their role spaces can naturally drift apart. DiSan resolves this using Federated Prototype Alignment, which allows agents to exchange compact, anonymized role prototypes to align their semantic spaces without centralizing raw text. To prevent the prototypes themselves from leaking identity, DiSan employs prototype-level adversarial training (via a Gradient Reversal Layer) and mild Gaussian noise injection before uploading them to a central coordinator.

Input Document ➔ [Two-Stream Encoder] ➔ 1. Role Subspace (Shared via Prototypes)
                                      ➔ 2. Style Subspace (Kept Local & Discarded)
                                                   ⬇
                                        [Sanitized Text Output]

Datasets

The framework was evaluated using two primary datasets:

  • Synthetic Finance Corpus (synthetic_pii_finance_multilingual): Used to simulate a 7-agent distributed collaboration setup. Each agent was assigned a disjoint inventory of document types (e.g., CorporateBank, AssetManager) to induce realistic data skews.
  • Enron Email Corpus: A real-world dataset featuring genuine human author variation. The authors sampled 500 emails from each of the top 7 senders to validate DiSan's ability to obfuscate real-world authorship and stylistic signatures.

Key Insights and Ideas

  • Masking is Insufficient: The paper reveals a striking baseline result: aggressively masking 19.2% of text tokens (using advanced NER models like GLiNER) reduces TF-IDF stylometric attribution by a meager 18.6%. Writing style is diffuse and cannot be completely scrubbed by token-level redaction.
  • Style as a Fluency Aid: Instead of completely ignoring style during generation, DiSan fuses the local style stream back into the decoder during training. This allows the model to generate highly fluent, natural-sounding sanitized text locally before discarding the style weights entirely prior to transmission.
  • Disentanglement vs. Differential Privacy (DP): Traditional DP methods for text text-generation often introduce heavy noise, causing severe utility degradation (30–50% coherence loss). DiSan demonstrates that representation-level disentanglement offers a much better utility-privacy trade-off for inference-time source attribution resistance.

Key Results

  • PII Exposure Slashed: On the multi-agent RAG benchmark, DiSan reduced answer-level PII exposure by 20× (dropping from 11.8% in the unprotected baseline to just 0.6%).
  • High Utility Preservation: While cutting privacy risks, DiSan maintained 83.17% answer faithfulness, coming remarkably close to the unprotected RAG baseline (86.10%) and outperforming LLM paraphrasing alternatives.
  • Stylometric Protection: On the real-world Enron corpus, DiSan reduced TF-IDF stylometric attribution by 73.2% and neural probe attribution by 70.6%, bringing author identification down near random baseline levels. It outperformed dedicated authorship-obfuscation baselines (like JAMDEC and StyleRemix) by up to 60×.

Limitations and Future Work

  • No Formal DP Guarantees: DiSan provides strong empirical privacy based on representation bottlenecking, but it does not offer formal mathematical differential privacy guarantees.
  • Synthetic Data Constraints: Due to legal and ethical restrictions surrounding real PII, the primary financial evaluation had to rely on synthetic data.
  • Honest-but-Curious Threat Model: The current framework assumes that agents and coordinators follow the protocol. It does not account for active, malicious adversaries attempting data poisoning, prompt injection, or multi-party collusion. The authors note that exploring adaptive adversaries and multi-turn repeated query settings is a crucial direction for future work.

Summary updated

BibTeX
@misc{liu2026privacy,
  author = {Xuan Liu and Hefeng Zhou and Sicheng Chen and Chao Yang and Xingcheng Xu and Jingjing Qu and Jiong Lou and Jie LI and Xia Hu},
  title = {{Privacy-Preserving Text Sanitization for Distributed Agents Collaboration via Disentangled Representations}},
  year = {2026},
  eprint = {2606.15335},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.15335},
}

Loading related content...

Figure