Part II / Reinforcement Learning

The reinforcement-learning atlas

"What kind of RL is this?" rarely has one answer. The field is a coordinate system: horizon, data source, policy relationship, learned object, world model, observability, feedback, hierarchy, and number of agents.

09
Goal

Locate methods by design choices instead of acronym memory.

Rule

Axes combine; they are not one exclusive taxonomy.

Payoff

Ask architecture questions before naming an algorithm.

Use coordinates, not drawers

A whale is a mammal, an ocean animal, warm-blooded, social, and a filter feeder. Those descriptions answer different questions. RL labels work the same way. PPO is on-policy, model-free, policy-gradient, commonly actor-critic, and usually online. SAC is off-policy, model-free, actor-critic, and maximum-entropy. Offline RL names the data regime, not whether the method learns values or policies.

Mental model

Every label should answer a full question: online or offline data? On- or off-policy relative to which policy? Model-based with what model? Multi-agent with what coordination problem?

Place the reasoning engine on each axis

Concrete example

Our incident-reasoning engine has sequential tool actions, partial observations, long episodes, a mixture of verifiable and rubric feedback, one primary agent, and replayable environments. We can train it from fixed historical traces, generate fresh rollouts, or combine both.

AxisSide ASide BReasoning-engine question
HorizonContextual banditSequential RLDoes today's action change later observations and options?
Data collectionOnline RLOffline RLCan the candidate interact, or only learn from a fixed trace corpus?
Policy relationshipOn-policyOff-policyDid the current policy generate the trajectories?
Learned objectValue-basedPolicy-based / actor-criticLearn scores for actions, a direct policy, or both?
World predictionModel-freeModel-basedDoes the learner explicitly predict transitions and plan?
VisibilityMDPPOMDPDoes the observation expose enough state?
FeedbackOutcome-levelProcess-levelIs only the final diagnosis scored, or are checkable intermediate actions scored too?
ControlFlat actionsHierarchical RLAre "investigate path" and "verify cause" learned skills or token sequences?
ParticipantsSingle agentMulti-agent / self-playDo agents cooperate, compete, critique, or change each other's environment?

Bandits versus sequential RL

A contextual bandit sees context, chooses one action, and receives reward; the action does not create a meaningful future state for later decisions. Choosing which prompt variant to show once can be a bandit. An investigation is sequential because a topology query changes the information available for the next decision. Treating a sequential problem as a bandit can optimize the final response while ignoring the tool path that made it possible.

Bandits are valuable when the simpler contract is true. They offer lower-variance feedback and easier experimentation. Do not build a long-horizon RL system when the product chooses one ranking or route and observes an immediate outcome.

Online versus offline RL

Online RL collects new experience while learning. It can explore and adapt data toward the current policy. Offline RL learns from a fixed dataset, which is safer when interaction is expensive or risky but creates distribution shift: the learned policy may choose actions poorly covered by the data.[source] Historical incident traces are offline data. Seeded candidate rollouts are online interaction within a simulator. Production feedback may be online data collection without online parameter updates.

On-policy versus off-policy

On-policy methods learn about the policy that generated their experience. Off-policy methods learn about a target policy from data produced by another behavior policy, often using replay and correction. This axis is not identical to online/offline. An online system can store replay and learn off-policy; an offline dataset is necessarily generated by earlier behavior, but offline algorithms add special machinery for fixed-data distribution shift.

LabelQuestion it answersPractical meaningReasoning-engine example
On-policyWhich policy produced the experience?Update a policy from fresh trajectories generated by that policy, or a recent frozen version of it.The candidate generates new investigations, then PPO or GRPO performs a limited set of updates from those rollouts.
Off-policyWhich policy produced the experience?Learn about a target policy from trajectories generated by a different or older behavior policy.A new policy learns from replayed investigations collected from older agents, using an algorithm designed for that mismatch.
OnlineCan training collect more experience?Generate new environment interaction during the training process, allowing the data distribution to change with the learner.Training continually launches the current candidate against seeded incident simulators and adds the resulting traces.
OfflineCan training collect more experience?Learn from a fixed snapshot of logged experience without gathering new trajectories during training.Train only from a versioned corpus of historical investigations containing observations, actions, and feedback.
Keep the axes separate

Online versus offline describes how the dataset is collected over time. On-policy versus off-policy describes the relationship between that data and the policy being learned. Static internet text is offline data, but ordinary pretraining or supervised fine-tuning on it is not offline RL. Offline RL needs logged decisions and an RL learning signal such as rewards, returns, or an equivalent objective.

Value, policy, and actor-critic

Value-based methods such as Q-learning learn action values and choose high-valued actions. Policy-based methods optimize action probabilities directly. Actor-critic learns a policy and a value estimator. Discrete toy actions make max-Q selection natural; token distributions and continuous control often favor direct policies. SAC demonstrates an off-policy actor-critic that also rewards policy entropy.[source]

Model-free versus model-based

Model-based RL plans with known or learned transition and reward models. A chess engine uses known rules; AlphaGo Zero combined a learned policy and value network with search in a known game.[source] A learned incident simulator could predict how faults produce telemetry, while a replay sandbox can execute fixed scenario logic. "The LLM reasons about consequences" does not by itself tell you whether the RL training method is model-based.

Single-agent, multi-agent, and self-play

With multiple learning agents, each policy changes the environment faced by the others, creating non-stationarity. Agents may cooperate, compete, communicate, or share rewards. Self-play generates opponents or partners from the policy population. A generator that designs incidents and a solver that investigates them resembles adversarial curriculum generation, but calling it self-play is useful only if both sides adapt and their objectives are explicit.

Hierarchical, inverse, and imitation learning

Hierarchical RL introduces temporally extended actions or skills: "compare redundant paths" can invoke several lower-level tool calls. The options framework formalizes an initiation set, internal policy, and termination rule.[source] Hierarchy can shorten effective horizons and improve reuse, while creating a second credit problem over which skill to invoke.

Imitation learning learns from demonstrated actions. Supervised fine-tuning of tool traces is behavioral cloning. It can be powerful but inherits demonstrator coverage and compounds errors when the learned policy reaches unfamiliar states. Inverse RL infers a reward that could explain demonstrations, then learns a policy. Preference learning infers relative desirability rather than a full environment reward. These areas touch RL without making every demonstration dataset "RL."

Curriculum learning changes the task distribution over time. Intrinsic motivation supplies rewards for novelty, prediction error, or information. Risk-sensitive RL optimizes more than average return, such as tail risk or constraints. Constrained RL represents costs and safety budgets separately from reward. For high-stakes agents, these distinctions are often more important than the fashionable optimizer name.

Misconception: RLHF, DPO, and RLVR are peer algorithms

RLHF names a pipeline and feedback source, DPO names a direct preference objective, and RLVR names reinforcement learning using verifiable rewards. A system can use PPO inside RLHF, GRPO for RLVR, or DPO on AI-ranked preferences. Keep feedback, data regime, and optimizer on separate axes.

References