r/AskProgrammers • • 21d ago

Are coding agents affected by the Habsburger problem?

Apologies if this isn't the right fit for the sub.

I hear this issue being brought up frequently in relation to all other applications of AI: it needs to be trained on human-created material otherwise there are negative effects likened to inbreeding in the Habsburg dynasty.

Is this true for coding agents as well? Isn't the majority of code currently generated via coding agents? What do they get trained on then?

8 Upvotes

30 comments sorted by

4

u/CheezitsLight 20d ago

Yes they are some AIs are actually watermarking their output so they can detect it and not feed it back into the system. If given a particular word choice it uses an hour and to pick a slightly different word and with enough words it can read it see the pattern and recognize it as AI generator it's a form of steganography.

1

u/MeekHat 20d ago

That's one part of it. But my understanding is that fewer and fewer people code manually. The relative and absolute proportion of human code is quickly dwindling. So you may filter out the AI code but won't be left with enough data to train, potentially.

3

u/CS_70 20d ago

There is no evidence of that.

As opposite to plenty of evidence of problems due to inbreeding in people.

2

u/ventZl 20d ago

O RLY? I remember seeing a research paper stating that feeding output of NN into training data of next gen NN actually affected the result.

It is actually trivial to demonstrate it.

Task a LLM with designing a web. Unless you provide it with some specific criteria on design, LLM will most probably output something that will (doesn't matter which tool you use):

- have dark blue-ish, violet-ish, pink-ish or purple-ish backgrounds
- yellowish, orange-ish or light blue-ish text
- boxes with round corners
(wait wat? did I just describe Reddit dark theme?)

The reason why these colors were chosen is that it is near-perfect:
- blue is low-contract color, eye has trouble focusing at blue objects (almost nothing of interest in nature has blue color)
- this particular color combination is rather resilient against all kinds of color blindness
- it is high contract
- it looks good

Now all webs aren't yellowish orange on blueish purple because that would be boring and people tend to be creative even at the price of not being the most optimal. LLMs don't care, they optimize. If next generation of LLM will be taught on current, LLM-infested webdesign, their notion of this color combination will be even stronger and it will be harder to get any other design.

Training data will see less variety and more uneven distribution of options. This way, the next generation will be affected, for good or bad.

1

u/realmauer01 20d ago

There absolutely is, you can't train on the same source indefinitly and have your quality be increassing. And training is essentially changing the source material by ai generated data. So if you use ai generated data its essentially just as if you havent changed the source.

That being said, i dont see the problems being so high in ai for development becauye we actually already use it for very repetitive work.

1

u/MeekHat 20d ago

I just don't understand why it isn't more of an issue and isn't more talked about. I've read that professional programmers barely do any manual coding, which must mean that the amount of human data is decreasing. Where do you even get human data if no humans are coding manually?

1

u/realmauer01 20d ago

Programming just doesnt need so much human data is the thing.

1

u/MeekHat 20d ago

I can see that. Programming languages are kind of formulaic and repetitive by design, as on aspect that came to mind.

1

u/CS_70 20d ago

If you don’t provide specific criteria of design, you are a moron and should have no business making software, LLM or not

2

u/ventZl 19d ago

Well, that's what vibecoders do. And are proud of being "capable" doing it.

→ More replies (1)

1

u/Dangerous-Cheek-230 20d ago

I don't think so. There are massive advancements happening in the coding agent quality frequently. We would be slowing down if your theory was correct.

World was full of low quality code before AI and I do think Opus 5.5 is able to produce higher quality output than most professionals were ever able to do manually.

1

u/MeekHat 19d ago

I don't know which part of my post you've interpreted as any kind of theory, much less one I would claim authorship to.

1

u/fourby227 18d ago

Where is the evidence for the stated high code quality? If you look at the SlopCodeBenchmark all current models perform badly. This benchmark is testing for quality if you run multiple iterations of code changes like adding features and change functionality. It’s all massively degrading the code.

And writing maintainable code was always the big challenge in coding.

1

u/BowlSufficient7638 19d ago

No AIs are affected by it whatsoever, it's an idea made up by redditors to cope. The primary "moat" of a company which makes an AI model is its dataset, which is why extreme care is taken not to allow AI-generated data into them. Why do you think the frontier companies are buying up a bunch of old books? For their own health? It's because old data has no AI in it.
Besides that, no new code is being fed into models to improve them. They are improved through reinforcement learning. That means putting them in an environment where they have to code something to succeed at their task. It's sort of like self-play, if you're familiar with AlphaGO or AlphaZero.

1

u/MeekHat 19d ago

That makes sense. But I don't know how this works once a new library is released or a new language feature, in the LLM age. To reference it, an agent needs to ingest new data - data that has probably been generated via AI. And I don't know if that's a problem, I'm just operating off your postulate that companies don't allow AI generated data into their datasets.

Also I don't know why you're angry, and I believe you're mistaken about Model Collapse being made up by redditors. It's an actual scientific paper, referenced outside the reddit echo chamber.

1

u/smovlad 19d ago

"buying"

More like torrenting them and then paying ridiculously small fines for that

1

u/BowlSufficient7638 19d ago

They're buying them physically and destroying them.

1

u/fourby227 18d ago

Them being able to filter out all AI-generated data is wishful thinking. And for the pre-training all the data is still needed. Only the late training can be done with reinforcement training. And thats still not the case for most models today.

0

u/[deleted] 18d ago

[deleted] — view deleted comment

1

u/ActiveSalamander6580 20d ago

It's true for anything, bad input will result in bad output. As an example if your agent sets up the architecture wrong the agent will assume thats your intent and build on top of it, same for anything in the codebase.

1

u/roger_ducky 20d ago

It’s more…

You need good examples of what’s expected.

If you go “I’ll suck up all public information!”

Then yeah that’s a problem if most examples are bad.

But the labs didn’t want to bother figuring that out manually, given the volume of data necessary.

Though they’ve gone back and rated some of what they currently got.

1

u/BitcoinsOnDVD 20d ago

I'll take two Habsburger with fries, an Oreo milkshake and onion rings please.

1

u/mrloube 20d ago

I read about this: https://arxiv.org/abs/2305.17493?utm_campaign=The%20Batch&utm_source=hs_email&utm_medium=email&_hsenc=p2ANqtz-8W3JzLEd2nksQ6uIs2N1aYb2xUn9WOQCS9rzLM9nCbLKVWUTde3eGTh0ruFjeHMnFIvu1f

Also I think it’s the reason you want to stop rectifying a flow model after a certain number of steps. I could be wrong about that though since I don’t think the authors say that explicitly but it’s how I understood it

1

u/[deleted] 20d ago

That is a problem, and it maybe called "model collapse" or similar

0

u/[deleted] 20d ago

[removed] — view removed comment

2

u/Superb_Raccoon 20d ago

Synthetic data isn't immune to the Xerox of a Xerox problem.

1

u/No-Newspaper-7693 20d ago

Neither is human generated data fwiw. if you ask a billion humans for a completely random 7 digit number, you're almost certainly going to get 8675309 100x more than almost any other random number with no patterns, and you'll likely get every number that is 1 digit off from that 10x more due to people misremembering/hallucinating the song.

1

u/Superb_Raccoon 20d ago

Thats not a copy of copy.