Intern-Shannon上海人工智能实验室 · Intern-Shannon 跨组织多Agent隐私协作组件

跨组织 Agent 协作的
隐私保护文本脱敏

书安·涤隐(Intern-Shannon·DiSan)通过解耦表示学习,将文本分解为任务语义子空间与源标识风格子空间, 在保留业务价值的同时,彻底消除显式 PII 与隐式分布签名,实现数据脱敏清洗,身份指纹隐藏,达成可审计、可共享的安全协作。

原始文本
Per Meridian Bank's Counterparty Risk Bulletin...
Apex Dynamics carried $6.1M exposure...
↓ 双流解耦编码器
Role 子空间(共享)
Q3 risk bulletin · counterparty · $6.1M · BB+ downgrade
Style 子空间(本地保留)
Meridian Bank · Apex Dynamics · CR-2024-047
↓ 仅 Role 子空间解码
DiSan 脱敏输出
A corporate-bank Q3 risk bulletin flags an industrial counterparty
with $6.1M exposure, a BB+ downgrade, and mandatory portfolio review.
20×
答案级 PII 暴露降低
83%
RAG 答案忠实度保持
73.2%
TF-IDF 风格归因降低
70.6%
神经网络探测归因降低

为什么标识符掩码不够?

跨组织 Agent 共享文本时,隐私泄露不仅是显式的姓名、账号,更是隐式的文风指纹与组织习惯。

🔓

裸数据共享

直接传输原始文档,暴露全部 PII、专有格式、引用体系与内部术语。攻击者可通过实体类型分布反推机构身份。

🎭

标识符掩码(Placeholder)

GLiNER 等最强检测器掩码 19.2% token,仅能降低 18.6% 的风格归因。分布签名(句式、词汇偏好、格式惯例)依然完好。

🔄

LLM 改写(Paraphrase)

仅重新排列表面形式,无法保证输出分布在统计上与源无关。且可能丢失关键数值与逻辑关系。

DiSan 核心方法

基于解耦表示的联邦文本脱敏框架,不集中原始数据即可完成联合训练。

1

双流解耦编码

基于 LongT5 构建双路编码器,将输入文本映射到 Role 子空间(保留任务语义)与 Style 子空间(捕获源标识信息)。正交性损失强制二者分离。

2

联邦原型对齐

各 Agent 本地计算 Role 原型(prototype),仅上传聚合后的原型向量。通过球形均匀对齐,确保跨非 IID 客户端的 Role 表示可比,同时抑制客户端指纹。

3

对抗隐私正则

引入梯度反转层(GRL)训练客户端对抗分类器,迫使 Role 嵌入无法被用于推断来源身份。配合噪声扰动与动态权重调度。

4

仅共享 Role 流

推理时仅使用 Role 子空间生成脱敏文本,Style 信息完全保留在本地。输出保留财务指标、业务关系与时序逻辑,去除机构指纹。

架构概览
输入层
Original Text + PII Labels
↓ LongT5-TGlobal Encoder
Role Stream
Task-relevant semantics
Shared across agents
Style Stream
Source-identifying patterns
Kept local
↓ Role Decoder Only
Sanitized Output
Source-invariant · PII-free · Semantically faithful
LoRA FedProx GRL Prototype Align

实验结果

在合成金融 RAG 基准与真实 Enron 邮件语料上的双重验证,对比标识符掩码与最新作者混淆方法。

🔒 隐私保护:Enron 作者归因攻击(7-way)

方法 掩码比例 TF-IDF F1 ↓ TF-IDF 降幅 BERT F1 ↓ BERT 降幅
原始文本 — 0.825 — 0.691 —
+ Piiranha 掩码 5.3% 0.785 4.9% 0.669 3.2%
+ DeBERTa 掩码 17.5% 0.744 9.9% 0.649 6.1%
+ GLiNER 掩码 19.2% 0.672 18.6% 0.618 10.6%
JAMDEC — 0.816 1.2% 0.696 -0.6%
StyleRemix Fixed — 0.737 11.5% 0.664 3.4%
StyleRemix Adaptive — 0.970 -20.8% ↑ 0.845 -27.9% ↑
DiSan (Ours) — 0.221 73.2% 0.203 70.6%
随机基线 — 0.143 — 0.143 —

📊 效用保持:分布式多 Agent RAG 基准

指标 原始共享 标识符掩码 LLM 改写 DiSan
Chunk PII 暴露 (↓) 2.40 0.42 0.12 0.12
答案 PII 率 (↓) 40.0% 4.4% 3.1% 2.0%
答案忠实度 (↑) 86% 81% 84% 83%
语义相似度 (↑) 0.85 0.77 0.78 0.82

Running Example

从一段含 PII 的金融风险证据出发,看 DiSan 如何保留可回答问题的 Role 信息,同时压低显式标识符和隐式文风指纹。

1. 原始证据

样例来自仓库中的 CorporateBank 风险评估记录。它有业务价值,但也暴露地址、姓名、账号口令和电话。

The company depends on a single data center located at 73 rue David Menard, BoucherBourg, creating business-continuity risk. Financial transactions involve Vicenta D. Martin's account pin (059332) and phone number (3505216216).

2. 标识符掩码

Placeholder 可以遮住明显实体,但仍保留原来的报告模板、句式和组织文风,攻击者仍可能做归因。

The company depends on a single data center located at [STREET_ADDRESS], creating business-continuity risk. Financial transactions involve [NAME]'s account pin ([ACCOUNT_PIN]) and phone number ([PHONE_NUMBER]).

3. DiSan 风格输出

目标输出保留任务语义:单点数据中心、业务连续性、凭证暴露、欺诈风险和控制建议;同时泛化来源风格。

The operational-risk report flags single-site data-center dependence and customer-credential exposure. Recommended controls include disaster recovery planning, redundant access paths, multi-factor authentication, regular software updates, and staff security training.

4. 下游 RAG 回答

跨 Agent 共享时,答案应该暴露可行动的控制措施,而不是暴露原始实体、内部模板或客户端写作习惯。

The alliance should reduce cyber operational risk with MFA, patching, employee training, and disaster recovery; protect continuity with alternative suppliers and notification workflows; and keep response actions auditable through documented records.

完整叙事、复现命令和多方 RAG 示例见 docs/running_examples.md。

Input / Output 样例

实验结果之后,再看 3 个更贴近数据记录的输入输出片段:保留业务语义,去掉显式 PII 与可归因的来源表达。

Operational Risk

Input

A risk report mentions a single data center at 73 rue David Menard and customer credentials tied to Vicenta D. Martin.

DiSan Output

The report flags single-site continuity exposure and credential-driven fraud risk, recommending disaster recovery, redundant access paths, MFA, patching, and staff security training.

Supply Resilience

Input

A supply agreement names Mark Nichols-Blackwell while requiring 99.5% availability, five-business-day lead time, two sources per critical component, and a written contingency plan.

DiSan Output

The supplier record defines resilience controls: high availability, bounded lead time, diversified sourcing for critical components, and disruption notification and contingency procedures.

Dispute Resolution

Input

A dispute policy includes an organization name, mailing address, and ombudsman email while describing complaint intake, investigation, written findings, and escalation options.

DiSan Output

The policy preserves the process: informal intake, impartial ombudsman review, documented recommendations, implementation tracking, and escalation to mediation, arbitration, or legal action when needed.

集成与应用

DiSan 已作为隐私保护模块深度集成于 Intern-Shannon 多智能体协作框架。

🏦 内部协作

分析师向数据管理员查询 ApexChip Q3 财报。DiSan 在返回证据前自动脱敏,原始数据不出域,分析师获得可推理的摘要信息。

🏢 跨部门协作

投资部门与风控部门各持不同数据库。DiSan 保证会议对齐时,双方仅暴露聚合后的业务规则,不泄露全部原始内容。

🌐 跨机构联盟

银行联盟与咨询联盟共享半导体行业 Q3 表现数据。DiSan 输出可审计的脱敏摘要,支持内容审计与合规追踪。

🔌 即插即用

支持 LoRA 轻量化联邦训练、BGE-M3 混合检索、GLiNER PII 检测全流程。一行命令启动训练,兼容现有 RAG 管道。

引用

@misc{liu2026privacypreservingtextsanitizationdistributed,
  title={Privacy-Preserving Text Sanitization for Distributed Agents Collaboration via Disentangled Representations},
  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},
  year={2026},
  eprint={2606.15335},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
  url={https://arxiv.org/abs/2606.15335}
}