Reinforcement Learning

Reinforcement learning trains a policy to choose actions that maximize reward over time. It is the learning framework behind many control, game, robotics, alignment, and agent optimization settings.

An agent interacts with an environment through states , actions , rewards , and transitions:

The objective is expected discounted return:

where is a trajectory and discounts future reward.

Key Ideas

  • RL optimizes sequential decisions, not just independent input-output labels.
  • The reward function defines what behavior is reinforced, so reward misspecification is a central failure mode.
  • Exploration matters because the policy only learns from states and actions it visits.
  • In language and agent systems, the environment may be a user, task suite, verifier, simulator, or reward model.
  • Many post-training pipelines combine supervised learning, reward modeling, and policy gradient methods.

MDP Contract

FieldQuestion
State What information is available to the policy?
Action What can the policy choose?
Transitionsimulator, user, tool, environment, or static dataset?
Reward task metric, learned reward, verifier, human feedback, or sparse success?
Episode boundarywhen does the trajectory end?
Policy classlanguage model, controller, search policy, agent planner, or molecular generator?
Evaluationreturn, success rate, win rate, safety, cost, or external metric?

If a paper does not specify these fields, the RL claim is underspecified.

Policy Gradient Sketch

For trajectories :

where is an advantage estimate. The estimator is stochastic, so sample count, rollout policy, and variance reduction matter.

Offline vs Online RL

SettingData SourceMain Risk
online RLcurrent policy interacts with environmentreward hacking and unsafe exploration
offline RLfixed logged datasetout-of-distribution actions
RLHF/RLAIFreward or preference modelproxy exploitation
verifier RLautomated checksoverfitting to verifier loopholes
agent RLtask environment with toolshidden cost, invalid actions, brittle reward

Paper Evidence Boundary

ClaimRequired Evidence
higher rewardindependent task metric or reward-model audit
better agent performanceheld-out tasks, tool-call validity, cost accounting
better safetyadversarial and slice-specific safety eval
better scientific designexternal property, assay, simulation, or expert review
sample efficiencyfixed environment interactions and compute budget

Practical Checks

  • What is the state, action, reward, and episode boundary?
  • Is the reward sparse, dense, delayed, learned, or human-provided?
  • Does the policy overfit to the evaluator or exploit loopholes?
  • Is evaluation done on held-out tasks with external checks rather than only reward score?
  • Are rollouts, seeds, environment versions, and action constraints reported?
  • Is cost measured in environment steps, tokens, tool calls, wall time, or compute?