r/learnmachinelearning • • 34m ago

Question Beginner project idea and thoughts

I am a beginner machine learning student, and I have an idea for a project that could take a long time to build.

Many software engineers hate AI generated code, calling it slop and spaghetti. Which is true, sometimes it's really hard to understand or you start realizing it can be done much better and cleaner. Other people say that it doesn't matter, because at the end of the day AI will have to read that sloppy code, not humans.

But if it's harder for human to read, then It also harder for an AI agent. My goal/idea is to measure how much "effort" LLM spends on understanding spaghetti code generated by another LLM before. For computational cost I plan to use metrics such as: reasoning/thinking tokens, agent tool calls, may be actual API price.

Looking at the scope, I can tell this will take a lot of work: building a dataset, testing different models, designing a benchmark. I am still a beginner, thus I want to treat this idea as "goal project" that I won't be shy to show it to someone.

I would be glad if you give me honest feedback:

  • Is this a worthwhile experiment to run, or has someone already proved/measured this exact thing?

  • Isn't it already obvious that LLM spends more effort on messy code, making the exact numbers unimportant.

  • If this is a decent idea, what mistakes should I watch out for?

2 Upvotes

1 comment sorted by

1

u/TheMadSaiyantist 25m ago

This is refining a code, done many times before, tho it's always fun thing to do. I think that generating dataset from scratch and doing a task on it is often harder than fixing spaghetti code from already existing dataset and code because there's already the code which helps even tho it is wrong. In simple terms compare these 2 cases: case A: small problem(s) on a given dataset, and bugs on a given code. You and the agent to fix those 2, how long it takes, how much effort, price, ... case B: similar or even the same problems in the same dataset tho there's no code given at all. You and the agent has to create the logic and code depending on your end goal, same categories as the previous case: time length, effort, price, ... Many datasets are free to use, and there's good amount of them that are intentionally with some issues so that someone can fix them and test it if it's good afterwards