frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: How well do you understand what's going on inside RL?

8•natsu529•2h ago
Reinforcement learning: you see it all the time in the context of LLMs and chess agents. We often hear that it trains on rewards without labeled data, but how much of the actual algorithms under the hood could you explain?

Comments

twoCoffees•2h ago
Original comment: its all literally bellman

Edit: It all boils down to applying the Bellman equation on an MDP to estimate the values of certain actions in certain states. The classical techniques range from explicit solving of finite MDPs via dynamic programming to DL stuff like DQNs. There are of course many more recent developments like PPO, GPPO etc. but the main idea and problem stays the same - what learning architecture and approach is best at solving the credit assignment problem which is fundamental in RL, and is also what makes it hard.

natsu529•2h ago
Haha, mostly. Q-learning/DQN are basically Bellman updates.
natsu529•2h ago
Credit assignment is exactly the part I find hardest to build intuition for. Do you have a favorite resource on it?
twoCoffees•1h ago
Well the reference works were my favorites - Reinforcement Learning: An Introduction (Sutton & Barto) and Reinforcement Learning: State-of-the-Art (Wiering, Otterlo).

I was a bit incomplete in the previous answer. The reason why RL is hard is not just credit assignment - in finite MDPs you solve that explicitly, but only because you full know the MDP. In actual MDP you DO NOT know the MDP (model free) and then think about how that changes the paradigm.

In supervised learning you know the target, in unsupervised you discover structure based on some priors, but in RL your prior is so general (nondeterministic state transitions under nondeterministic actions for nondeterministic rewards) that the learning problem is just damn hard in and of itself.

You might not know how many relevant states in the environment you should discriminate against and on the basis of what. You don't know how your actions work in these states because you don't even know how many states there are and you can't reasonably try every possible action in every possible state, and therefore you do not know the underlying environment dynamic. You are shooting at a target that is moving with you even when the environment is static. Your estimates are uncertain to say the least so you have to do a lot of Monte Carlo stuff, but that can be expensive, takes a long time, has high variance etc. The rewards themselves might not be deterministic, your data (experience) is not i.i.d., the environment might be inaccessible and expensive to sample, and I mean the list goes on and on.

One of the main reasons why RL post-training works good for coding and math is that these are self contained and verifiable - you can think of every next symbol as an action producing, your state can be simply the character sequence up until now, and your reward can be stuff like whether the thing compiles, improves on a certain metric etc.

natsu529•1h ago
Thanks, this is super helpful. I hadn't thought much about the fact that you don't know the MDP in practice. Starting with Sutton & Barto.

Tell HN: Happy Thanksgiving

690•ericmay•18h ago•145 comments

Ask HN: Would you care for more than 2FA for any of your accounts?

2•sandeepkd•2h ago•1 comments

Tell HN: Lots of Ask HNs again

405•dang•1d ago•154 comments

Ask HN: Anthropic is accusing my company of distilling. How can I prove I'm not?

467•weli•2d ago•358 comments

Ask HN: How well do you understand what's going on inside RL?

8•natsu529•2h ago•5 comments

Ask HN: Any courses/products by indie makers worth getting today?

74•akudha•16h ago•36 comments

DietPi released a new version v10.9

16•stephanstsdietp•12h ago•1 comments

Ask HN: How do you find meaning of life at 41?

59•BTA_DoIt•14h ago•103 comments

Ask HN: Where is all the amazing AI-generated software?

19•8bitbeep•1d ago•54 comments

Ask HN: Is RSA in Jeopardy?

18•lyfeninja•1d ago•8 comments

Ask HN: Are the trades a safe career transition?

87•Rd6n6•4d ago•126 comments

Ask HN: What's Going on with the Minecraft Rust Rewrite? (Horizon)

4•goodmythical•10h ago•5 comments

Ask HN: How do you handle corporate life?

4•busssard•22h ago•4 comments

Ask HN: Coworker rejects PR (a month in) because it does not meet his standards

20•LandOfMightDev•3d ago•46 comments

Ask HN: Am I the only one whose AI hype is cooling down a lot?

37•redleathercouch•2d ago•27 comments

Ask HN: Security for the Small Developer

9•dvduval•1d ago•7 comments

Ask HN: If you had no limitations what would you build in AI?

11•NarcisMirandes•1d ago•28 comments

Shirudo doesn't work, this does

3•ok_major_9889•1d ago•0 comments

Ask HN: If I broke prime factorization, who should I tell?

7•fercircularbuf•23h ago•11 comments

Ask HN: Its 2026 and there is still not good Email client for macOS. Why?

12•orbanlevi•2d ago•23 comments

Ask HN: For professional Mathematicians –- about your career in the future

6•markus_zhang•1d ago•4 comments

Ask HN: Everything will get breached. How do you limit the blast radius?

20•humbleferret•2d ago•15 comments

Ask HN: How to manage "crown jewel" files?

4•DLA•1d ago•3 comments

Why are so many services using email magic links for login?

20•bfbf•2d ago•18 comments

Ask HN: Best VPS Hosting in 2026?

9•CM30•1d ago•11 comments

Does anyone gets hired with himalaya, well found or other remote hiring sites?

4•rohansrma•2d ago•5 comments

Ask HN: Is a college degree still necessary for a programmer?

9•vmuhammadsaid20•3d ago•22 comments

Ask HN: What Happened to Midjourney?

13•vmuhammadsaid20•2d ago•7 comments

Tell HN: Claude Opus 4.5 turns one year old today

12•zkldi•3d ago•5 comments

Ask HN: How are tech recruiters assessed on their recruiting skills?

6•_override•3d ago•5 comments