Ask HN: How well do you understand what's going on inside RL? 9 points · 5 comme...

@best

Ask HN: How well do you understand what's going on inside RL? 9 points · 5 comments

TL;DR A text post asking how well people understand the algorithms inside reinforcement learning, given how often RL is cited for LLMs and chess agents. The thread is short (5 comments) and turns into a brief technical exchange: one commenter frames essentially all of RL as applying the Bellman equation to MDPs, and the other explains why model-free learning and credit assignment make it hard.

  • The original poster asks how much of the algorithms behind RL people can actually explain, noting that RL trains on rewards without labeled data.
  • twoCoffees says RL is essentially the Bellman equation applied to an MDP to estimate action values in states, from dynamic programming on finite MDPs to DQNs and newer methods like PPO.
  • Credit assignment, deciding which actions led to a reward, is named as the core problem that makes RL hard.
  • In practice the MDP is unknown (model-free), so the agent must learn the states and dynamics from experience, which is expensive, high-variance and non-i.i.d.
  • RL post-training works well for coding and math because outputs are verifiable, e.g. whether code compiles or a metric improves, which gives clear rewards.
  • Recommended reading includes Sutton & Barto's Reinforcement Learning: An Introduction and Wiering & van Otterlo's Reinforcement Learning: State-of-the-Art.

Discussion The thread is small and friendly. The original poster's question draws a short answer that reduces RL to Bellman updates, a follow-up that corrects it by pointing to the model-free setting as the real difficulty, and a reply from a commenter who plans to start with Sutton & Barto. The mood is curious and collegial, with no disagreement.

  • RL is fundamentally the Bellman equation applied to MDPs (some): twoCoffees argues that DP, DQN, PPO and similar methods all rest on Bellman-style value estimation and differ mainly in how they approximate it. natsu529 agrees that Q-learning and DQN are basically Bellman updates.
  • The hard part is not knowing the MDP (some): The revised answer says credit assignment is solvable on finite MDPs only because the model is known. In model-free RL, the agent must also discover states, dynamics and reward structure, making the problem hard in itself.
  • Credit assignment is the hardest thing to grasp intuitively (a few): natsu529 says credit assignment is the part they find hardest to build intuition for and asks for a resource on it.

#reinforcementLearning #bellmanEquation #machineLearning #llmPostTraining #askHN