I think the problem might be in the training data. Famous code examples are probably copied a lot and therefore appear multiple times in the training data, prompting the neural network to memorise it completely.
Copilot regurgitating Quake code, including sweary comments
31–40 of 672 posts
Re: Copilot regurgitating Quake code, including sweary comments
#32This is utterly damning. I have already instructed my team that Copilot can never be used for our projects. Compromising the product because of unknowable license demands isn't acceptable in the professional world of software engineering. But if we put the licensing to one side for a moment... 1/ Everything I've seen it generate so far is 'imperative hell'. It is practically a 'boilerplate generator'. That might be u…
Re: Copilot regurgitating Quake code, including sweary comments
#33Nope. Game over. Play again?
Re: Copilot regurgitating Quake code, including sweary comments
#34Re: Copilot regurgitating Quake code, including sweary comments
#35This does make me wonder if this is susceptible to the same form of trolling as that MS AI got. Commit a load of grossly offensive material to multiple repos, and wait for Copilot to start parroting it. I think they're going to need some human moderation.
Offensive code is the least of my worries. What about vulnerable/exploitable code?
Re: Copilot regurgitating Quake code, including sweary comments
#36I’m really dumbfounded by the Copilot team decision to not exclude GPL licensed code. Why was this direction chosen? Is the inclusion of GPL really worth the risk and potential Google v. Oracle lawsuit? I’d like to know the reasoning.
Isn't it entirely possible that they did exclude GPL licensed code, but somebody somewhere has violated copyright and copy-pasted that snippet into non-GPL-licensed code that they trained on? They could try to trace every single code snippet they train on to its "true source" and use the license for that, but that's not very well-defined, and is a lot harder, and it's never going to be 100%.
> Once, GitHub Copilot suggested starting an empty file with something it had even seen more than a whopping 700,000 different times during training -- that was the GNU General Public License.
https://docs.github.com/en/github/copilot/research-recitatio...
Re: Copilot regurgitating Quake code, including sweary comments
#37Re: Copilot regurgitating Quake code, including sweary comments
#38Re: Copilot regurgitating Quake code, including sweary comments
#39This is utterly damning. I have already instructed my team that Copilot can never be used for our projects. Compromising the product because of unknowable license demands isn't acceptable in the professional world of software engineering. But if we put the licensing to one side for a moment... 1/ Everything I've seen it generate so far is 'imperative hell'. It is practically a 'boilerplate generator'. That might be u…
My question is would Copilot be useful if you could choose the codebase it would be drawing from? Almost as an internal company tool?
Re: Copilot regurgitating Quake code, including sweary comments
#40What causes this in a net? I’m guessing the RNN gets in a catastrophic state..
I mean, if you wrote an autocomplete system for written english and asked it to complete the sentence "O Romeo, Romeo" what would you expect to happen?
You'd expect it to complete to "O Romeo, Romeo, wherefore art thou Romeo?" - a very famous quote.
How else could you produce the single right output for that unique input, other than memorising and regurgitating?