by KyleBerezin · 2y ago · 0 comments
Everything was going great and I had a working example, so I decided to look online for some example code to verify I was doing things correctly, and not making any glaring mistakes. It was then that I found an exact line by line copy of what chat gpt had given me. This was before it had the ability to google things, and the code predated openAI. It had even brought across spelling errors in the variables, the only thing it changed was it translated the comments from Spanish to English.
I had always been under the impression that chat gpt just learned from sources, and then gave you a new result based roughly on its sources. I think some of the confounding variables here were, 1. this was a very specific use case and not many examples existed, and 2. all opengl code looks similar, to a point.
The worst part was, there was no license provided for the code or the repo, so it was not legal for me to take the code wholesale like that. I am now much more cautious about asking chat gpt for code, I only have it give me direction now, and no longer use 'sample code' that it produces.
If I’ve understood the transformer paper correctly, these things probabilistically guess words based on what they’ve been trained on, with the probabilities weighted dynamically by the prompt, by what they’ve already generated, and by what they “think” they might generate for the next few tokens (they look ahead somewhat), with another set of probability-weight adjustments applied to all that by a statistical guess at which tokens or words are most-significant or important.
None of that would prevent them from spitting out exactly what they’ve seen in training data. Keeping them from doing that a lot requires introducing “noise” to all the statistics stuff above, and maybe a gate after generation that tries to check if what’s been generated is too similar to training data and forces another run (maybe with more noise) if it is, similar to how they prevent them from saying racist stuff or whatever.
Technically speaking, it is of course, far more complex. There is some incredible vector math and token rerouting going on; But in terms of how you get output from input - it's still "how often have I seen x in relation to y" at the core level.
They do not learn, they do not think, they do not reason. They are probability engines. If anyone tells you their LLM is not, it has just been painted over in snake oil to appear otherwise.
Having played with Markov models since I was a kid*, LLMs are really not just that.
All that stuff you acknowledge but then gloss over, that is the actual learning, which tells it which previous tokens are relevant and how much attention to pay to them. This learning creates a world model which is functionally (barely but functionally) performing something approximately reasoning.
Statistics and probability is the mechanism it uses to do this, but that alone doesn't make it a Markov chain, those are a very specific thing that's a lot more limited.
For example: consider a context window of 128k tokens where each token has 64k possible discrete values. If implemented as a Markov chain, this would need a transition matrix of (2^16)^(2^17) by (2^16) entries (unless I've gotten one of the numbers backwards, but you get the idea regardless). This is too many, and because it is too many you have to create a function to approximate those transitions. But even then, that only works as a Markov chain if it's a deterministic function, and the actual behaviour is not deterministic due to the temperature setting not (usually) being zero.
* Commodore 64 user guide aged 6 or so, so I didn't really understand it at the time but that's what it was
The fact that AI seems to be so reasoned is not that they are doing reasoning, but because there is a phenomenal amount of reasoning inherently embedded in their training data.
AI actually thinks in the same way that the figures on a movie screen actually move. It's a trick, and the difference may be pedantic, but it's very important in order to have a real discussion about the ramifications of it.
Counterexample: using genetic algorithms to write corewars programs: http://www.corewars.org/docs/evolving_warriors.html
> You can't tactfully respond to emotional expression without the ability to think.
Counterexample: ELIZA.
Of course you can.
https://en.wikipedia.org/wiki/Chinese_room
They’re not responding “tactfully”, you’re projecting emotion to a bunch of words written coldly.
It’s like writing a program that has a number of fixed strings like “I feel sad” or “I’m depressed” and when it sees those it outputs “I’m sorry to hear that. I’m here for you and love you”. The words may be comforting and come at the right time, but there’s no feeling or thought put into them.
Its the same thing we humans do, just a lot faster and focused on the content we give it.
'think' what is thinking? Recalling what you learned?
Wiki says: "Their most paradigmatic forms are judging, reasoning, concept formation, problem solving, and deliberation. But other mental processes, like considering an idea, memory, or imagination, are also often included"
Talk to an LLM, it will reflect these concepts very well.
'reason': even people don't reason. I had plenty of discussions with people who do not act logical. And there have been plenty of good examples of LLMs leanring to reason. Look at Grok2 and just wait for GPT 5.
You put the achievement of LLM down as its nothing despite the fact that it could mean a lot more. How big is the chance that we are also just probaiblity engines?
We as humans are more individual than a LLM and we do have more mechanism in our brains like time components, emotional interactions, social systems.
And not even your mentioning of "Markov chain" is correct: A LLM Architecture is not how a markov chain works otherwise we wouldn't have the scaling issues we have with the LLMs...
The output can contain words that are only in the prompt and not the training set. (I asked the Bing chatbot about a "word" I got from /dev/urandom)
I don't think a proper Markov chain can handle that sort of thing?
All this latest ML growth is built on massive copyright violations.
Maybe not myself, but many averagely-talented artists can draw Mickey Mouse.
They might even draw one for me if I ask! Or I can just find it on Google… (technically my computer is producing it on the screen…)
That in itself is not a copyright violation. But if I use it, in a commercial manner, then it becomes a copyright violation.
Producing copyrighted things isn’t illegal. It’s on the user to not use copyrighted things, in a way that’s illegal (not fair use or licenced).
ML models are not "learning" in the same way as human do, and while they use the misleading word "learning" is has completely different meaning; also, ML models are not humans and therefore they are not subject of laws; the engineers who perform calculations are.
So comparing calculation of ML model parameters to a person studying art is incorrect; you should compare engineers performing calculations with data from copyrighted material to a person studying art. It is immediately obvious that there cases are not equivalent. And those engineers are not learning anything in the process so the cannot use the analogy as an excuse.
There's no difference between producing and copying. Let's take a real world example: music samples. There's an entire clearinghouse process for music sampling, more or less forged after the 80s/90s when sampling blew up. Record companies and artist were like, "hey that's my song", courts agreed, a market was created.
This is pretty analogous to what's happening now, which is code samples. Developers are like, "hey that's my code". But that's where we're diverging, and this is probably because big companies aren't involved. People were sampling Atlantic Records' stuff. People aren't sampling Microsoft's stuff, they're sampling random GitHub OSS project guy's stuff.
But to your point, you're basically arguing that it's fine as long as no one listens to "Bitter Sweet Symphony". Most people think it's not the end user (listener) who's infringing copyright, but the party doing the copying (The Verve). Even if we accept your principle here, you're putting way too heavy a burden on people who use services like Copilot. Am I supposed to check that everything I autocomplete is properly licensed? You more or less said "shut these services down" in so many words.
That isn't true, strictly speaking. The right to reproduce work is covered by copyright law, irrespective of whether the reproduction is commercial or not.
> But if I use it, in a commercial manner, then it becomes a copyright violation.
No, that's incorrect. Commercial use has nothing to do with it. Any act of distribution, regardless of whether or not it's for commercial or personal use, regardless of whether you charge $100,000 or $0, falls under copyright law.
The U.S. Copyright Office has some guidelines about fair use, and non-commercial as well as personal use are listed as considerations that courts take into account when judging whether an unlicensed copy constitutes an infringement:
But enforcement-wise, Disney won't bother going after every copyright potential. They will focus on the biggest money makers or the biggest potential to brand damage. So it's not a worry for most people who will just draw some mickey mouse for a friend, or even private client as long as they aren't stupid.
My point being that lots of OpenGL is practically boilerplate.
Interesting - I assume any code that's not licensed as "free to use for whatever purpose I want"
This doesn't stop you getting yourself a legal headache though, of course.
Do you wanna life in fear as a software developer because you did the same thing as others? Even if the problem has basically not an unlimited way of doing it?
Do you want a certain amout of code being (c) and patent?
I personally don't. I see an advantage of limited patents for complex magical algorithms were someone was really sitting there and solving a hard problem to reap the benefits for a short period of time, but otherwise no.
I do not want to check every code block for some (c) or patent.
This would also imply that this specific question is a rare one, with few examples online for it to train on.
Yeah, that's why I wouldn't trust AI right now with much except the most basic renderin boilerplate. I'd be so brazen to wager that 90% of the most vauable rendering recipes are prorietary code within some real time rendering studio. Of the remaining, half of that is in some text book and may or may not even be available to scrape online.
LLM's still needs a training set, and I'm not convinced the information even exists to be scraped on the public internet for this kind of stuff (if years of googling has taught me anything).