揭开秘密代码的面纱:利用金丝雀(Canaries)揭示掩码上下文如何控制SFT中的记忆行为
Unmasking the Secret Code: Using Canaries to Show How Masked Context Controls Memorization in SFT
AI总结:
该研究通过微调实验发现,金丝雀测量结果依赖于训练中秘密的呈现方式,提出审计需验证结论在不同呈现选择下的适用性。
摘要:
金丝雀(Canaries)是包含已知秘密的合成训练记录,被广泛用于评估语言模型是否会泄露训练数据中的信息。但这些测量结果在多大程度上依赖于金丝雀本身?我们通过对语言模型和视觉-语言模型进行受控微调实验来研究该问题,实验涵盖合成任务和训练可提升有用性能的任务。训练输入中是否提供秘密会强烈改变模型的学习内容;例如,模型可复现输入中的秘密,但在训练中经过大量重复后移除该秘密时,却无法回忆起它。当训练要求从周围上下文预测秘密时,后续回忆会变得可靠。因此,仅靠重复不足以表征记忆行为。我们还发现,改变金丝雀的出现时机或伴随的其他金丝雀,可在不增加该金丝雀重复次数的情况下大幅改变测得的记忆行为。这些结果表明,金丝雀测量结果依赖于训练期间和后续测试中秘密的呈现方式。审计工作应在将结论扩展到其他训练记录前,验证其在这些不同选择下是否成立。
英文摘要:
Canaries, or synthetic training records containing known secrets, are widely used to assess whether language models reveal information from their training data. But how much do these measurements depend on the canaries themselves? We study this question through controlled fine-tuning experiments with language and vision-language models, spanning synthetic tasks and tasks where training improves useful performance. Whether a secret is provided in the training input strongly changes what the model learns; for example, models can reproduce a secret in the input yet fail to recall it when it is removed, even after extensive repetition during training. When training instead requires predicting the secret from the surrounding context, later recall can become reliable. Repetition alone is therefore insufficient to characterize memorization. We also find that changing when a canary appears, or which other canaries accompany it, can substantially change measured memorization without increasing that canary's repetition count. These results show that canary measurements depend on how secrets are presented during training and tested afterward. Audits should test whether their conclusions hold across these choices before extending them to other training records.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。