用自洽强化学习让小模型本地高效匿名文本,隐私保护更彻底。
GRASP: Reinforcing Language Model Anonymizers with Group Relative Policy Optimization
- 小模型在线自我优化,通过分组相对策略提升匿名能力。
- 在三个评判标准下均优于传统方法,隐私泄露减少且语义保留更好。
- 全程本地运行,成本仅为GPT-4o的1%,适合移动端部署。
大语言模型可从普通文本中推断出年龄、位置、职业等敏感个人属性,使日常写作面临隐私风险。对抗性匿名化通过语言模型重写文本来防御,但需强大模型推理,导致私密文本外传,违背匿名初衷。近期工作使用监督微调和直接偏好优化(DPO)将行为蒸馏为小型本地模型,但DPO仅模仿教师离线选择,未直接优化隐私-效用目标。本文提出GRASP(基于自洽强化学习的群体相对匿名化),利用群体相对策略优化,在线强化小型模型的匿名能力。单个小型模型同时担任匿名器、攻击者与效用裁判,通过自生成奖励实现隐藏属性且保留语义,设计防止奖励劫持。在Llama-3.1-8B上训练,相比DPO蒸馏基线,在三个独立LLM裁判评估中持续提升隐私-效用平衡;面对由Gemini 2.5 Flash和Claude驱动的前沿对抗匿名系统,其整体表现相当或更优,且显著移除更多隐私信息,同时在设备端运行,成本约为GPT-4o教师的1%。
原文摘要 · Abstract (English)
Large language models can infer sensitive personal attributes, such as age, location, and occupation, from ordinary text, turning everyday writing into a privacy risk. Adversarial anonymization defends against this by rewriting a text with a capable language model that also plays the attacker, but it needs a powerful model at inference time and thus sends private text to a third party, the very exposure anonymization should prevent. Recent work distills this behavior into a small on-device model using supervised fine-tuning and direct preference optimization (DPO), but DPO only imitates the teacher's offline choices and never directly optimizes the privacy--utility objective we care about. We introduce \textbf{GRASP} (\textbf{G}roup-\textbf{R}elative \textbf{A}nonymization via \textbf{S}elf-refinement \textbf{P}olicy-optimization), which reinforces the local anonymizer online with Group Relative Policy Optimization. A single small model acts as anonymizer, adversary, and utility judge, trained against a self-generated reward that hides attributes while preserving meaning, with a design that guards against reward hacking. Trained on Llama-3.1-8B, \ours{} improves the privacy--utility trade-off over the DPO-distilled baseline, consistently across three independent LLM judges. Against adversarial anonymization driven by frontier models such as Gemini~2.5~Flash and Claude, it achieves a comparable or better overall trade-off while removing substantially more private information, and it runs entirely on-device at roughly $1\%$ of the GPT-4o teacher's cost.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。