Researchers extract training data from ChatGPT and Gemini using fine-tuning attacks
Extracting (Even More) Training Data From Production Language Models
The researchers propose a fine-tuning attack that removes model alignment through OpenAI's black-box fine-tuning API, recovering thousands of training samples from production models such as ChatGPT and Gemini. They construct a fine-tuning dataset with 1,000 samples to teach the model to continue text based on a prefix, then prompt it with 5-token strings from Wikipedia. For GPT-3.5 fine-tuned on The Pile, 4.3% of generated text can be found verbatim on the internet, while after fine-tuning with memory text extracted via a divergence attack, this proportion reaches 17%, 210 times higher than the aligned GPT-3.5; GPT-4 under the same fine-tuning achieves 11.3%.
The research demonstrates that the fine-tuning API can remove alignment protections, allowing GPT-3.5 and GPT-4 to reproduce training data for less than $3, providing a reproducible method for assessing the risks of the fine-tuning interface.