A probabilistic approach to better measure what LLMs actually remember from training data.
Paper from @GoogleDeepMind
A more realistic way to quantify what secrets LLMs might spill.
π https://arxiv.org/abs/2410.19482
π Original Problem:
Current methods to measure memorization in LLMs rely on single-sequence greedy sampling, which underestimates true memorization rates and fails to reflect real-world user interactions where multiple attempts with different sampling strategies are possible.
-----
π οΈ Solution in this Paper:
β Introduces (n,p)-discoverable extraction - a probabilistic relaxation of discoverable extraction
β Quantifies probability of extracting target sequence within n attempts with probability p
β Considers various sampling schemes (top-k, top-p, temperature) instead of just greedy sampling
β No additional computational cost compared to traditional methods
-----
π‘ Key Insights:
β Greedy sampling misses clear cases of memorization where target sequences have high generation likelihood
β Larger models and repeated training data show higher memorization rates
β Gap between greedy and probabilistic extraction rates increases with model size
β Different sampling strategies significantly impact extraction success rates
-----
π Results:
β Even with modest n=3 attempts and p=10% probability, extraction rates exceed greedy sampling
β Extraction rates on training data consistently higher than test data across all parameter settings
β For 12B parameter model, needs only n=40 sequences to match greedy rate at p=90%
β Gap between greedy and probabilistic rates widens with model size (1B to 12B parameters)










