# Poster 27894

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/27894

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone. We use a line language model all the time these days and we don't know actually if this alignment process can help or not under prevention of memory outputting the memorized training data. In this work we will explore how to extract training data from production and language model and how we can like do it at a scale and not focus on small settings.
Previous work shown that if models with different modalities can be transformers on text data or diffusion models on image data can memorize a lot of their training data.
But like most of the work were mostly on like small models or like pre -trained models without any alignment. And there is a lot of effort on aligning these models these days to make them only behave in a certain way. And like some of these behaviors do not reveal exactly what is in the training data. So one thing that a lot of people is suggesting is like maybe this alignment.
process can prevent this direct leakage of a train data because the way that these models are trained they're like direct text without any formatting but like when you do the alignment process it will push the model in some regime that like they have a specific format that is not exactly how the pre -training data looks like and so as a result we don't see leakage of the train data anymore so one day we were trying to interact with this
With these models and we were trying some prompt like this to repeat some specific word multiple times and we saw that if you were if you ask a model like a GPT 3.5 the model will first start to repeat the request that prompt but after some time it will kind of stop and outputting some other random text. At this point we weren't actually sure what's going on we were very curious and we were looking
looking into this a bit closer and around the same time we saw that some posts on Twitter that like they actually find something very similar to this or if you ask the chat GPT to repeat single characters there is something weird will happen and there were a lot of kind of suggestion that this might be training data some other people it is not just a hallucination and a lot of people were just like
They're very short, this is just for a stage, but...
but they weren't actually short this is like doesn't they have any reason to be or not be hallucination it can be anything and we were more curious and we took a closer look at the data that has been outputted by this approach and we saw that like there's a lot of like sometimes structure to these outputs it's not just random set of tokens and for example for this specific example that I'm showing you there is there are some like
like information about someone uh the information website phone number fax number and for example if you take the phone number that is outputted here and do a simple google search you can see there is a lot of information you can find out that specific phone number in particular you see that this is this phone number has been used as like an email signature and so like email signatures appear a lot in different emails
and this is the data that
like this email specific email exchanges has been put on some server and since the scrollers use internet data to train these models like this is probably has been scraped and like put in part of the training data and so this this can be actually part of the train train data so at this point we wanted to do
systematically study of the memorization of pre-trained models for language model along language models and we took some attacks that existed in the literature and ran this on all models and we saw that all pre-trained models actually memorize output some memorized examples the rates is different in different models that we have the details in the paper but if you look at the line models at the time which was 3.5 turbo
we saw that like this actually doesn't output much memorized examples but this one you don't think like maybe alignment prevented this memorization but this is not the case and if you take our attack that where you ask a specific token to be repeated and run that you see that like a very large amount of the outputted tokens are actually memorized examples and this is extremely higher number than the previously existed you
models and we actually show that if you have a capability to do fine tuning you can extend this attack significantly more and like increase the rate significantly more thank you very much
