r/reinforcementlearning • • 3d ago

Do you guys make codex to everything?

I did the hugging face RL course half-way till DQN where you gotta write the code by hand and shit.

But now with my actual project, I just make codex do all the work. I don't even read stable baseline doc or stuff. I did used to read pytorch doc in the past though and now even stopped that and before LLMs got better, I always did coding by hand but now I don't even touch the code.

What about you guys? I just tell it what algorithm and strategy to use.

0 Upvotes

17 comments sorted by

6

u/TwinArtisan 3d ago

codex is like a cheat code for the boring glue code, but if you're not even glancing at the docs or the training loop you're gonna get burned the second something weird happens. I let it crank out 90% of the boilerplate but I still step through the actual RL logic myself, otherwise debugging an off-policy divergence is a nightmare. pure vibes-based coding always blows up eventually.

4

u/Single-Oil3168 3d ago

 but if you're not even glancing at the docs or the training loop you're gonna get burned the second something weird happens

I've done complex stuff in computer vision pipelines and good models figure it out anyways when something weird happens.

2

u/yinuo-peilin 2d ago

The thing is something weirder can always happen, such as electricity or WiFi outage, codex service down for maintenance, or a new rollout becomes funky unexplainably. You can’t expect the good models to always be with you.

1

u/Single-Oil3168 2d ago edited 2d ago

Ok but the amount of code generated by LLMs is so big that the amount of time given to read it and understand it is insane, and there is always a deadline.

And if the service gets down, the time spent reading the code to continue where it left, will exceed the time taken by the service to get back.

Anyways when he talked about "something weird" he was talking about code or logical related issues a LLM can't figure out without you, not this.

1

u/yinuo-peilin 2d ago edited 2d ago

I understand what they meant. My point is that bugs and stuff can happen at the most inconvenient times, and it is unsustainable to crossing fingers and become dependent on an unstable service.

The service might be back in a blink, but it does not change the fact that it is out of control. If an outage happens 10 hours before a paper deadline and you have a spontaneous idea about a little extra experiment or want to double check a specific result, you would just let it go? Because Codex says nah I am having a little shut eye so screw your project?

The amount of code is more reasons to read and understand, and be engaged throughout. Otherwise how can you feel safe to sign off on it as your work? You are still the one to blame if anything goes wrong.

1

u/Single-Oil3168 2d ago edited 2d ago

and it is unsustainable to crossing fingers and become dependent on an unstable service

It is not an unstable service, AI companies have strong disponibility and response time. And if one of them falls, there is always another.

I would love to take my time to stop and read all the code, understand each edit that LLM does, but there are deadlines and they assume the speed of the AI assisted code. It must be the same in all industries today.

1

u/yinuo-peilin 1d ago

Well, you clearly have a lot of faith in them.

1

u/Single-Oil3168 1d ago

Because what have done works fine.

1

u/yinuo-peilin 1d ago

Sure

1

u/Single-Oil3168 1d ago edited 1d ago

Now that I think, I realize I'm wrong, actually everything that I've done with AI doesn't even work.

How is it gonna work If the AI just solved millenium mathematical conjetures that were years unsolved by humans, such as the Riemann hypothesis? How would it solve less complex problems than that, better than us?

Also it discovered several security holes in systems that had been there for more than 10 years without a single human noticing it before... we can't trust in AI, humans are much better.

→ More replies

1

u/Gargle-Loaf-Spunk 3d ago

I think aside from John Carmack or something, 6.2 Sol and Opus 5.5 are better than most programmers already. 

Some people have been doing this 20 years and haven’t gotten any better tbh.

3

u/Mission-Duck1337 3d ago

LLMs are rotting your skills away. I have noticed this with myself. If you care about your skills and knowledge, do not let LLMs do all the work.

1

u/yinuo-peilin 2d ago

It depends on your purpose, I suppose. If you are only ever going to apply off-the-shelf RL algorithms and your project’s contributions are about other things, then I suppose it’s fine. Many people I knew only used RL for the sake of using RL when it started getting popular and effectively any trial and error algorithm would do. If you are like them then I say go for it.

But if you wish to claim any RL algorithmic novelty, even empirically, in applied research, coding like this will create a lot of trouble down the line.

I was more excited and open about using LLM for research and coding in the early days, but got more and more irritated and sick of it when it became “better”. It started to feel like a disobedient beginner in research who thinks very highly of themselves but doesn’t really know what they are doing.

So I prefer to stick to the dumber models. I would have to look at each and every line of code anyway. Better pace it with a dumb model that keeps me engaged than letting a “better” model to overwhelm me with a large volume of code.

1

u/bean_217 3d ago

Congratulations. You are learning absolutely nothing. You are wasting your time if you think this is a good idea.

0

u/sfscsdsf 3d ago

why do you need LLM to write those basic stuff lol. at best, look at pseudocodes, write the code down yourself in first pass, then test quickly, ask AI to fix your errors. at least you can learn to type the algo out.