Unmasking the Secret Code: Using Canaries to Show How Masked Context Controls Memorization in SFT
Avi Schwarzschild, Om Thakkar, Sahra Ghalebikesabi, Congzheng Song, Vinnie Monaco
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Prior Aware Memorization: An Efficient Metric for Distinguishing Memorization from Generalization in Large Language ModelsOpen MIND · 2026
- Is Memorization Context-Sensitive? Prefix-Based Extraction Beyond Isolated PrefixesarXiv · 2026
- Inadvertent Context Leakage in Language ModelsarXiv · 2026
- A Unified Framework of Extractability in Large Language ModelsMachine Learning and Knowledge Extraction · 2026
- Frequency-Conditioned Privacy Auditing of Fine-Tuned Language ModelsarXiv · 2026
- The Memory Trap: Language Agents Overgeneralize from Benign InteractionsarXiv · 2026