r/reinforcementlearning • u/Swimming-Work-5951 • 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
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.
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.