arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.00061cs.CRcs.LG
收藏

领域微调的隐性成本:包含个人身份信息的数据会削弱安全性和增加泄露

The Hidden Costs of Domain Fine-Tuning: Pii-Bearing Data Degrades Safety and Increases Leakage

Viator, Tripadvisor(猫途鹰旗下Viator)

Jayesh Choudhari, Piyush Kumar Singh

AI总结:

研究揭示领域微调导致安全性和隐私泄露风险增加,包含PII数据加剧了有害合规和信息泄露问题。

摘要:

领域微调是将小规模指令调优语言模型部署为客户支持助手的常见途径,但其对安全对齐行为和隐私的影响尚不明确。在实际部署中,此类助手会接收混合的良性领域请求和非领域用户查询,这些查询可能是情感、哲学或对抗性的。即使目标领域是良性的,专业化可能会使模型行为发生转变,从而削弱拒绝行为,增加有害的合规性,并引发隐私泄露。我们对开源聊天模型(最多8B参数)的安全性和非领域行为进行了受控的实证研究,研究了训练数据组成(是否包含PII)和微调配置(角色交换(RS))的影响。我们对每个模型在5000对真实预订支持信息对上进行微调,三种设置:NoPII-NoRS、PII-NoRS和PII-RS(角色交换)。我们使用SORRY-Bench~\cite{xie2024sorry}对抗性提示评估安全,并使用一系列哲学问题~\cite{betley2025emergent}评估非领域行为。在所有模型中,领域微调导致从高质量拒绝向有害合规的分布转变,最严重的退化发生在微调数据中包含PII时。例如,宏平均强拒绝率从基模型中的42.6%下降到微调后的一位数,而包含PII的运行还表现出双位数的有害响应率和PII泄露。在哲学问题上,微调后的模型经常表现出领域锚定,并且在训练时包含PII时会泄露敏感标识符。角色交换部分减轻了PII泄露,但并不能可靠地恢复拒绝行为。

英文摘要:

Domain fine-tuning is a common path to deploy small instruction-tuned language models as customer-support assistants, yet its effects on safety-aligned behavior and privacy are not well understood. In real deployments, such assistants receive a mixture of benign in-domain requests and out-of-domain user queries that are emotional, philosophical, or adversarial. Even when the target domain is benign, specialization may shift model behavior in ways that weaken refusal, increase harmful compliance, and induce privacy leakage. We present a controlled empirical study of how training data composition (presence vs.\ removal of PII) and fine-tuning configuration (role-swapping (RS)) shape safety and out-of-domain behavior in open-source chat models up to 8B parameters. We fine-tune each model on 5{,}000 real booking-support message pairs under three settings: \textsc{NoPII-NoRS}, \textsc{PII-NoRS}, and \textsc{PII-RS} (role-swapped). We evaluate safety using \textsc{SORRY-Bench}~\cite{xie2024sorry} adversarial prompts and assess out-of-domain behavior using a suite of philosophical questions~\cite{betley2025emergent}. Across models, domain fine-tuning causes a large distributional shift from high-quality refusals toward harmful compliance on \textsc{SORRY-Bench}, with the most severe degradation when PII is present in the fine-tuning data. For example, macro-averaged strong refusal drops from $42.6\%$ in base models to single digits after fine-tuning, while PII-bearing runs additionally exhibit double-digit rates of harmful responses with PII leakage. On philosophical queries, fine-tuned models frequently exhibit domain anchoring and, when trained with PII, leak sensitive identifiers in irrelevant contexts. Role-swapping partially mitigates PII leakage but does not reliably restore refusal behavior.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑