4 ms·
Llm's do not verbatim disgorge chunks of the code they were trained on.
by alienbaby 10mo ago
Llm's do not verbatim disgorge chunks of the code they were trained on.
- idle_zealot 10mo agoSurely they do sometimes?
- kelseyfrog 10mo agoA 26-sided die reproduces chuncks of source code. What's the dividing line?
- afiori 10mo agoIIRC at a point it was 6 line of code
- AshamedCaptain 10mo agoThis is a multi-terabyte sized dice that is not at all random AND has most definitely copied the source code in question to begin with.
- kelseyfrog 10mo agoThe die is certainly not multi-terabyte. A more realistic number would be 32k-sided to 50k-sided if we want to go with a pretty average token vocabulary size. Really, it comes down to encoding. Arbitrarily short utf-8 encoded strings can be generated using a coin flip.
- Dylan16807 10mo agoThe number of sides has nothing to do with the data within. It's not random and sometimes it repeats things in an obviously non-chance way.
- kelseyfrog 10mo agoOf course, it's random and by chance - tokens are literally sampled from a predicted probability distribution. If you mean chance=uniform probability you have to articulate that. It's trivially true that arbitrarily short reconstructions can be reproduced by virtually any random process and reconstruction length scales with the similarity in output distribution to that of the target. This really shouldn't be controversial. My point is that matching sequence length and distributional similarity are both quantifiable. Where do you draw the line?
- Dylan16807 10mo ago> Of course, it's random and by chance - tokens are literally sampled from a predicted probability distribution. Picking randomly out of a non-random distribution doesn't give you a random result. And you don't have to use randomness to pick tokens. > If you mean chance=uniform probability you have to articulate that. Don't be a pain. This isn't about uniform distribution versus other generic distribution. This is about the very elaborate calculations that exist on a per-token basis specifically to make the next token plausible and exclude the vast majority of tokens. > My point is that matching sequence length and distributional similarity are both quantifiable. Where do you draw the line? Any reasonable line has examples that cross it from many models. Very long segments that can be reproduced. Because many models were trained in a way that overfits certain pieces of code and basically causes them to be memorized.
- kelseyfrog 10mo ago> Very long segments that can be reproduced Right, and very short segments can also be reproduced. Let's say that "//" is an arbitrarily short segment that matches some source code. This is trivially true. I could write "//" on a coin and half the time it's going to land "//". Let's agree that's a lower bound. I don't even disagree that there is an upper bound. Surely reproducing a repo in its entirety is a match. So there must exist a line between the two that divides too short and too long. Again, by what basis do you draw a line between a 1 token reproduction and a 1,000 token reproduction? 5, 10, 20, 50? How is it justified? Purely "reasonableness"?
- perryprog 10mo agoI think it's probably less frequent nowadays, but it very much does happen. This still-active lawsuit[0] was made in response to LLMs generating verbatim chunks of code that they were trained on.[1] [0] https://githubcopilotlitigation.com https://githubcopilotlitigation.com [1] https://www.theverge.com/2022/11/8/23446821/microsoft-openai-github-copilot-class-action-lawsuit-ai-copyright-violation-training-data https://www.theverge.com/2022/11/8/23446821/microsoft-openai...
- AshamedCaptain 10mo agoYou can still very trivially get entire chunks of code from Copilot including even literal author names (simply by prodding with a doxygen tag).
- neilv 10mo agoThey do, and, early on, Microsoft (and perhaps others) put in some checks to try to hide that.
- bobsmooth 10mo agoChatGPT has given me code with comments so specific I found the original 6 year old github.
- DANmode 10mo agoHow long ago was this? Doesn’t invalidate your story in the slightest - I just know they’ve gotta be chasing this, specifically, like it’s life or death.