Re:GitHub Copilot is not infringing copyright
by nextaccountic on Tuesday July 06, 2021 @06:29PM
(#27755200)
The code is literally stored in the weights of the NN, in a weird codification. That's exactly why it can retrieved verbatim.
[ Parent
| on HN ]
> The code is literally stored in the weights of the NN, in a weird codification.
This is a massive simplification. It's adequate for most purposes, but when discussing at this level this simplification breaks down.
Tokens are stored, and the NN contains weights of likelihood of a token occurring after another, given a sequence of prior (and possibly post) tokens.
Verbatim retrieval usually means there is very little variation in the training data for that sequence, so the same set of weights gets stored.
So "retrieval" is actually the same generative process as unique code uses, but the NN hasn't seen any other versions.