arXiv:2604.22191cs.CRcs.CL2026-04

用行为特征检测大模型微调中是否违规使用受保护文本

Behavioral Canaries: Auditing Private Retrieved Context Usage in RL Fine-Tuning

  • 在偏好数据中嵌入特定风格触发词,监测训练时是否响应
  • 在1%注入率下实现67%检测率,假阳性率10%,AUROC达0.756
  • 适合监管机构或审计方验证RL微调中的数据合规性

在智能体工作流中,大语言模型常处理受法律保护、禁止用于后续训练的检索上下文。然而,当前审计手段难以验证提供方是否通过强化学习(RL)微调违规使用此类数据,因传统方法依赖逐字记忆或成员推断,对以行为风格变化为主导的RL模型无效。为此,我们提出行为蜜罐(Behavioral Canaries)机制:通过将文档触发词与奖励特定风格响应的反馈配对,在偏好数据中植入可检测的行为信号。若这些数据被用于训练,模型会形成隐含的触发条件偏好。实验表明,在1%蜜罐注入率下,该方法在10%假阳性率下实现67%检测率,AUROC为0.756。结果证明,行为蜜罐可有效识别未经许可的文档条件训练,即使影响表现为分布级行为改变而非事实记忆。代码已开源。

原文摘要 · Abstract (English)

In agentic workflows, LLMs frequently process retrieved contexts that are legally protected from further training. However, auditors currently lack a reliable way to verify if a provider has violated the terms of service by incorporating these data into post-training, especially through Reinforcement Learning (RL). While standard auditing relies on verbatim memorization and membership inference, these methods are ineffective for RL-trained models, as RL primarily influences a model's behavioral style rather than the retention of specific facts. To bridge this gap, we introduce Behavioral Canaries, a new auditing mechanism for RLFT pipelines. The framework instruments preference data by pairing document triggers with feedback that rewards a distinctive stylistic response, inducing a latent trigger-conditioned preference if such data are used in training. Empirical results show that these behavioral signals enable detection of unauthorized document-conditioned training, achieving a 67% detection rate at a 10% false-positive rate (AUROC = 0.756) at a 1% canary injection rate. More broadly, our results establish behavioral canaries as a new auditing mechanism for RLFT pipelines, enabling auditors to test for training-time influence even when such influence manifests as distributional behavioral change rather than memorization. We release our code at: https://github.com/CRChenCode/behavioral_canary.

模型审计RL微调数据合规行为检测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。