r/AskComputerScience • • 1d ago

Will large language models degrade in quality over time?

LLMs were trained on data created by humans. Over time, the amount of AI-generated content will grow dramatically, so LLMs will have no choice but to learn from the data they themselves produced, which obviously (or maybe not...?) isn't as high quality as human-made data. So, will LLMs get worse over time, or do I have some gaps in my understanding of this matter?

12 Upvotes

48 comments sorted by

13

u/milo-trujillo 1d ago

I wrote a blog post about model collapse a while back! Yes, it's a problem:

  • You could freeze a current LLM without issue, but we often want to train LLMs on contemporary text so that, for example, they'll generate code that uses modern libraries and frameworks
  • Training an ML model on the outputs of other ML models can over-emphasize errors and degrade performance. In this case, if Claude Code learns from a bunch of buggy code, it's more likely to reproduce those bugs. If it's learning from code that's been generated by Claude Code, it will double down on the mistakes it already makes.
  • We can try to filter training data so the LLM only learns from 'good' text, but this adds significant labor, too

1

u/ComfortablyBalanced 1d ago

Besides, good code could be subjective.

1

u/milo-trujillo 1d ago

I don't find that a useful train of thought here. Even if we focus on more objective measures (introducing bugs like division by zero or use-after-free, using hallucinated methods that don't exist, copying a typo'd package name and amplifying typo-squatting-attacks), model collapse remains a clear problem.

1

u/Fearfultick0 1d ago

Requires significant labor, aka clock cycles in a data center

1

u/milo-trujillo 1d ago

What clock cycles would those be? What's the calculation you run to decide whether a piece of text is good for training or will reinforce negative behavior?

1

u/uusu 22h ago

For tasks that have a clearly defined success criteria, it's much easier to verify the output than to produce the output. This means you can reasonably use an earlier LLM to prepare the data for the new LLM.

1

u/milo-trujillo 21h ago

But how many tasks have such clearly defined criteria? For example, we can write unit tests to verify that a code's output is correct, but those tests don't prove that the code doesn't contain a use-after-free or race condition or various other bugs. Verifying output is inadequate to guarantee that training data isn't corrupting behavior.

-3

u/Embarrassed_Range356 1d ago edited 1d ago

This isn't true when there is verifiable outputs to these prompts. If Claude produces code, checks it, and it is valid, viola it found an easier path to the problem. Likewise, if you prompt through a bunch of solutions with claude and in the end get your project working, viola thats valuable training data. Even on things it failed to do are training data.

Were going to get an explosion of training data.

1

u/milo-trujillo 1d ago

I disagree. Say you've produced a unit test to validate that Claude-generated code produces desired output. That's great! Does your test also verify that there's no use-after-free bugs, or race conditions, or that it never produces a division-by-zero for any input? Getting a valid output does not guarantee correct behavior, and can't ensure that your training data isn't reinforcing bad patterns through model collapse.

1

u/Embarrassed_Range356 1d ago

Thats a fair point but Im not talking about unit tests. And I can't be certain how the big labs are using training data exactly, or if they're doing exactly this but they're absolutely definitely harnessing a TON of useful data from recording all the traces of every single prompt.

What I meant is that Claude can literally see the output of everything its doing, your feedback, and additionally you giving it your corrections, ideas, etc. Because these models are now doing verifiable things in the real world (valid was the wrong word), there are many cases for them to gather data on their own.

For example, say you wanted to create a voice changer. It may pull a few open source models, train it, encounter a few issues, try a few approaches, find what works against some calculated metrics and give you the results. There's some training data there already, just as if you had done that task yourself, the next iteration of the model now knows which models give what results, what approaches in training them perform better, or what reasoning errors it made in that process.

Second, on user's feedback: To use your example, if it had created a unit test, or some feature, and you said "no, you forgot about x" and claude looks it over and says "Oh you're right, I ran the test and it doesn't work for input 0". That's training data.

Its a matter of having good criteria for finding these kinds of cases and filtering out the rest.

1

u/milo-trujillo 1d ago

I think we're talking past one another a little. You're describing a mechanism by which we can improve the behavior of a model after initial training through a series of corrections. I'm describing a mechanism by which model performance degrades when it trains on LLM-generated text. One does not preclude the other.

1

u/spectrumero 23h ago

What have the two violas got to do with it? Why not two violins or cellos?

18

u/gigayoink 1d ago

LLMs will have no choice but to learn from the data they themselves produced

They can choose not to train on new web content. Anthropic had that book scanning project for example.

12

u/DTux5249 1d ago

True, though it's arguable that curating strictly human made content is gonna prove difficult as time progresses.

The whole reason they were cracking open old books is because they can't trust the quality of online data anymore with the presence of bots using their LLMs.

They've already hit a point where reliable data is difficult to get - and it's not getting any easier

3

u/davvblack 1d ago

it would be funny to get into a situation where human culture has moved on, and AI exists in two states: really good models that act like 2020 humanity, and really shit models that are like "modern humans". so depending on your usecase you might interact with a "wise old one".

1

u/Fearfultick0 1d ago

There will still be content like NYTimes articles or academic journals or Judicial opinions that are edited and reviewed by humans prior to publication

5

u/DTux5249 1d ago

Issue: even those are getting infested with AI agents. With companies jamming AI into all editing software, it's impossible to trust those.

2

u/Fearfultick0 1d ago

It’s not like AI being part of the process of creating text renders the text poisonous

5

u/DTux5249 1d ago

But it does remove certainty that it's safe - and when you're working a game of averages over a foreseeably long period of time, you have to pick your sources carefully.

2

u/Fearfultick0 1d ago

If we’re talking about quality of text there’s no certainty that a random sampling of text will be good. There are heuristics for estimating text quality. At scale they can assess quality trends from authors, sources, individual redditors, or whatever it may be.

So i really don’t think it will cause model collapse because there are clearly so many factors that are important, independent of the extent to which a string of text is AI generated.

2

u/currentscurrents 1d ago

Also, the majority of training is now reinforcement learning in simulated environments rather than scraped web data. 

This is how it is able to e.g. solve novel math problems or find new exploits in software. 

1

u/Fearfultick0 1d ago

They also have models that can judge writing quality regardless of its source.

5

u/Warwipf2 1d ago

Synthetic data is not always worse, but even accurate synthetic data can sometimes become a problem if you train the model that produced it on it, because it can contain some hidden patterns that itself degrade quality in the trained model. The data will "just" have to be curated very well though. The phenomenon is a real problem that has to be dealt with though, we call that "model collapse".

1

u/ComfortablyBalanced 1d ago

It may be not worse but it's not genuinely fresh.

1

u/Warwipf2 1d ago edited 1d ago

That depends. AI can work out new things and you can use specialized models to transform the data enough so it no longer cannibalizes on its output patterns it can be just as good as human data (this is obviously more complicated than this, but generally). But obviously this only extends to very theoretical fields or something like Computer Science. It is far less useful for something like Biology (i would assume?) or History (i'm pretty sure).

3

u/jhaluska 1d ago

They introduce water marking of text partly to prevent it from happening. It's not perfect, but dramatically helps.

1

u/AverageHot2647 1d ago

I’m not an expert, but I think the “gap” is that AI training is not simply a case of ingesting a bunch of text until the loss on the next token predicted plateaus at a local minimum. While this is the foundation of the training process, models trained only in this way are nearly useless in practice. A large portion of the value comes from the other steps in the training pipeline, such as supervised fine tuning, reinforcement learning (both RLHF and increasingly RLVR), and various other techniques.

1

u/green_meklar 1d ago

That's called 'model collapse' and has been raised as a concern for some time.

But, there are plenty of ways around it. We can rank and curate data in various ways. Modern LLMs already have reinforcement learning as part of their training runs (that is, they run in loops against problems with verifiable correct solutions, and have their weights updated to better solve those problems). We can also rank data based on user feedback, or success in real-world tasks. There's no particular reason why the curated data, even with lots of AI output already in it, can't be better than an unsorted mass of purely human-generated data.

Remember, evolution already solved this problem.

1

u/big_bad_brownie 23h ago

The ranking solutions both collide head on with alignment.

“Success at real-world tasks” hits the paper clip problem and hugging face.

User ranking ignores human incentives e.g.  you push a feature that generates zero exceptions, and users love it. Ranking shoots up. Turns out, it was a bug that allows them to bypass legal restrictions in your domain.

1

u/green_meklar 12h ago

Perhaps, but the OP didn't ask 'Will models designed with alignment as the #1 priority degrade over time?'. It's a different problem.

I for one don't really believe in 'alignment'. Humans aren't really aligned with each other as it is; often, we aren't even aligned with our own past or future selves. The notion of 'alignment' seems to belong in the realm of abstract game theory which is seldom nuanced enough for the real world.

1

u/TonySu 1d ago
  1. There’s no reason for them to ever degrade, if performance is measurably degrading, they can just freeze the weights. Weights, like code, don’t degrade.
  2. There’s some misconception about how LLMs learn from content. Training is based on information, not quantity of unique text. Do you think LLMs can learn more on Plato’s writings from reading Plato or 1000 high school book reports on Plato? Similarly, would it learn more from discovering another book from Plato or 500 more high school essays? LLM requires diversity and quality of information, not quantity on its own.
  3. It’s a mistake to believe humans generate higher quality information than LLMs. This becomes rapidly apparent when you watch LLMs make discoveries about systems they can actually interact with. For example during the hugging face breach, agent swarms probes for weaknesses and shared their findings with other agents until they had a successful breach. Enormous amounts of high quality knowledge that no human was aware of was generated and shared by these agents. In any system where LLMs can validate their idea against external truths, they can generate information faster and more accurately than humans. Riemann hypothesis solution is also an example of this.

1

u/EdwardBlizzardhands 1d ago

Frontier models are already largely trained on data intentionally generated by the previous generation of models.

They keep throwing more generated data and more compute power at training and they keep getting better models out. The rate of improvement as more compute is added shows no signs of slowing down.

1

u/Thick-Tower-7266 12h ago

LLMs tous au coude à coude

0

u/r2k-in-the-vortex 1d ago

Not necessarily. Just because something is AI generated does not mean it's low quality. Because usually, AI does not work alone, there are sources of truth in the loop. For example, code that doesn't compile, never gets past the CI and never gets commited. There is manual testing, there are bug reports, there are all sorts of feedbacks that contribute to quality of generated data. It's not raw unfiltered output of a model that the next models get trained on.

And training data is not selected blindly either, carefully curating the training corpus is the most important part of model development. Maybe early models were developed on fairly blindly crawled data, but current ones, no. Training corpuses need to be as high quality as they can be and optrimizing that is one of the most important parts of pushing the frontier.

0

u/minisculebarber 1d ago

You are overlooking that most text data is just assembled, tokenized natural data. This will definitely be automated to some extent, probably by AI tools too, which means there is another competing body of data.

I also wouldn't say that human synthesized data is obviously of a higher quality than LLM one. If you look at most human written text, it is mostly garbage anyway. Depending on the circumstances, AI could vastly improve in generating text that is better to learn from etc. than human generated ones. This, however, will have to be developed by humans too, LLMs currently don't have the capacity for large-scale structure reasoning like humans do.

0

u/StatisticalPikachu 1d ago

That’s why you use benchmarks.

0

u/huuaaang 1d ago edited 1d ago

Training data is just the beginning of frontier models. You can actually get a job that involves reviewing the output of the models, correcting it, and feeding it back in. Training modern LLMs is way more involved than just feeding it raw data.

I've personally done experiments that prove LLMs (specifically Opus) don't even need to be pre-trained on a programming language to write it. I invented a programming language and was able to produce programs with it using Opus. All I had to do was provide a language spec and some example code and it wrote programs in that language just as easily as it would Python. I even built a whole operating system in the language with an agent that runs on a Raspberry Pi.

0

u/PhilNEvo 1d ago

Depends on what you're training. Certain things you can train without data.

0

u/reality_boy 1d ago

For me, this is the fundamental reason that the current methods are not leading us towards AGI. Humans (the smart ones who are paid to do research at least) can be exposed to nonsense, and will filter it out based on the source and references.

For now, AI is just a probability machine. If you have more data than anyone else, you probably have the answer in your data set. That is powerful. But if you have no mechanism to flag mistakes and grow (without some external entity doing the flagging in an error prone and laborus process) then your not going to be able to zoom in on that correct answer reliably. And your certainly not going to grow smarter at an exponential rate.

1

u/Zombielisk 1d ago

counterexample: the RH proof was not in the train set

0

u/deong 1d ago

If you have more data than anyone else, you probably have the answer in your data set.

This is a gross underestimation of what modern AI is capable of. It's trivial to prove that AI can synthesize new information through a process of reasoning.

I just did the following:

Hi Claude, I want to prove a point here. Imagine a fictional programming language called nohtyp. It's just like Python, but all keywords are spelled backwards and indented backwards. That is, for any given block of source code, the innermost statements are aligned to the left margin, and then as you move outward in scope, statements are indented 4 spaces for each level.

In this language, please write me a program that prints all the negative integers between -931 and -6 where the coefficient of the imaginary part of their square root is an integer.

In about five seconds, it spit out the following:

        tropmi cmath

        rof n ni range(-930, -6):
    fi cmath.sqrt(n).imag.is_integer():
print(n)

Obviously, this is not in the training data anywhere. I made up a bonkers language and asked for a pointless exercise that's probably never been asked before. But it understands language, and from that, is able to generate something novel and correct.

0

u/reality_boy 1d ago

It did that by writing a script, behind the scenes, with the rules you laid out. Yes, that is amazing! But it did not learn your new language and can now converse in it.

2

u/LowerEntropy 1d ago

You're silly. In that first week of ChatGPT 3, I saw someone make up rules for a new programming language and generated code for it. One of the first things that got my attention about AI.

And it didn't use a script, not back then, not now.

1

u/currentscurrents 1d ago

No, it legit can learn a new language in-context and converse in it! There is no behind-the-scenes trickery.

In fact, researchers have trained language models purely on non-language data and they can still learn languages from context: https://arxiv.org/abs/2609.30063v1

1

u/deong 1d ago

It did that by writing a script, behind the scenes, with the rules you laid out.

This is word salad.

You've just started from the premise that "learning a new language" is a thing humans can do and tried to construct a definition that excludes AI. Functionally, there is no difference.

0

u/MaximumMeaning9728 1d ago

LLMs currently learn from vast amounts of synthetic data. The Riemann hypothesis was solved due to higher quality AI training data than human data.

1

u/stools_in_your_blood 1d ago

I'm always struck by the irony that LLMs are trained on the vast amount of high quality material human beings made and published in the golden age of their creativity and knowledge, and now the weaponised slop is drowning out and killing off the very thing that made LLMs possible in the first place.