Interactive field guide / RL & sequence models
Decision
Models.
What can past decisions teach us about the next one? Follow a tiny world with two choices, then build up to the models that learn from entire trajectories.
01 / THE DECISION LOOP
One move changes the next choice.
Think of a model choosing a move, not just predicting a label. Here, take action 0 or 1. You collect a reward immediately, then land in a different state. Your second choice operates in the state your first choice created.
Try predicting: Path 11 pays 2 now and 6 later. At discount γ = ½, the return is 2 + ½ × 6 = 5. Is that also the value of the policy? No: it is one trajectory, not the average over everything the policy might do.
Bandit, MDP, POMDP, and the Bellman step
A contextual bandit chooses using a context and observes a one-step outcome; the objective does not model actions changing future contexts. An MDP models that change: p(s′, r | s, a). With partial observability (POMDP), the learner sees observations rather than the full state; history can help, but a short history is not automatically a correct belief state.
Qπ(s,a) = E[r + γVπ(s′)], Vπ(s) = Ea∼π[Qπ(s,a)]
These are policy-evaluation equations. At the second state after a first action of 1, our target takes 0 with probability ¼ and 1 with probability ¾. Its next-state value is ¼ × 2 + ¾ × 6 = 5, so the first action has value 2 + ½ × 5 = 4.5. Evaluating a fixed policy uses an average over its next actions; choosing the best in a discrete action set uses a maximum in the optimality equation. Sutton & Barto, Chs. 3–4
02 / EVALUATE FROM LOGS
What did the logger never try?
The logger generated the historical data. The target policy is the one you want to evaluate. The target picks first action 1 three quarters of the time; the logger picks it half the time. This changes which second states the target visits.
Start with just the first choice. If action 1 earns 2, its log contribution is (¾ ÷ ½) × 2 = 3. Multiply by the logger's ½ probability of taking it and you recover its target contribution, 1.5. This is one-step importance sampling. For the next reward, the target reached its state differently, so the first ratio still matters.
Lab 01 / policy evaluation
Trace a logged path
Mean of weighted path contributions
3.75Weight a reward using the product of ratios up through that decision.
| Path | Logger | Target | Logged return |
|---|
Exact population means in a four-path toy. An individual weighted path can exceed the possible return range; it is a contribution, not a payoff prediction. Verification notes
Equations, fitted values, and choosing a policy
Let ρt = π(at|ht) / μ(at|ht) be the ratio of target to logger at the actual history. Let Wt = ∏j≤tρj.
- Trajectory IS
- Wlast × G for each episode, then average. A later action reweights earlier rewards too.
- Per-decision IS
- Σt γt Wt rt. Using only the current ratio instead forgets how you got to this state.
- Doubly robust
- Start from a model of the policy value, then correct its residuals using known logging ratios: Dt = V̂(st) + ρt[rt + γDt+1 − Q̂(st,at)]. Correct ratios and overlap matter; a poor model need not reduce variance.
- FQE
- Fit a separate Q evaluator on logged transitions with r + γ Ea′∼π[Q̂(s′,a′)] targets (no continuation at true terminals). It uses the target policy's action distribution, not a maximizing backup. No logging probability field is required, but missing actions can force extrapolation.
- DualDICE
- Learn a discounted state-action occupancy ratio using logged transitions and initial states rather than multiplying logged action ratios down every trajectory. It still needs coverage and has a normalized discounted-return convention.
Train candidate policies on training logs. Rank frozen candidates on a separate selection split when feasible, then use independent episodes/users for final evaluation. Compare uncertainty and coverage, not just a scalar score. Jiang & Li §4 · FQE · DualDICE · Offline selection
03 / LEARN FROM LOGS
Imitate first. Then ask what breaks.
Behavior cloning fits a policy to recorded actions. A policy can look good on expert states, then make one unlucky choice and land somewhere the expert dataset never went. DAgger collects learner-visited states and asks the expert what to do there. It is not a fixed-data algorithm.
Lab 02 / compounding error
Can you recover from a slip?
No recovery learned
0.9049expected incorrect decisionsPerfect recovery learned
0.3719expected incorrect decisionsFour steps at 10% slip: a policy with no recovery stays off path; a second policy always recovers on its next move. This is a declared two-policy calculation, not a DAgger benchmark. Ross et al., §2.1 and Algorithm 3.1
If logged transitions have actual rewards, we can learn from consequences, not only copy the action. The danger is trusting a critic on actions absent from the log.
Lab 03 / in-data value
How hard should IQL lean toward good logged actions?
Fitted value V
3.923At τ = ½, squared error is symmetric, so the estimate is the mean (3). As τ approaches 1 it approaches 6, the largest logged value—not the best imaginable action. IQL §4, Eqs. 5–7
Where the other offline and online methods intervene
- Online RL
- DQN learns a discrete-action value with a max backup, replay and a target network. PPO fits a policy from recent experience with a clipped likelihood-ratio surrogate. SAC fits an entropy-regularized stochastic policy and critics from replay. See the atlas for their objectives.
- Constrain the actor
- BCQ samples plausible behavior actions and perturbs within a bound. BEAR constrains its policy to be close to the data action support via a kernel discrepancy. TD3+BC penalizes distance from the logged action.
- Constrain the value
- CQL(H) adds a
logsumexp(Q) − Q(logged actions)-style term to the critic loss. Its paper distinguishes bounds on policy averages from pointwise bounds for a different update. EDAC adds diversity to a minimum-of-critics ensemble. Cal-QL stops the pessimism term from pushing policy proposals further below a reference. - Fit inside the data
- IQL learns V from asymmetric squared errors in logged Q values, regresses Q toward r + γV(s′), and maximizes advantage-weighted log-likelihood to extract a policy. AWAC also weights logged actor targets but backs up using its current policy's next actions.
- Learn or sample actions
- Diffusion-QL differentiates through its action generator using Q guidance; IDQL clones a behavior sampler and applies Q at candidate selection. Do not equate either with a diffusion planner generating entire trajectories.
Open source-linked objectives and release settings in the atlas.
04 / DECISION TRANSFORMER
Put the intended outcome into the sequence.
Plain cloning asks: “What action did you see in this situation?” Decision Transformer adds a question: “What action did you see in this situation when the rest of the trajectory earned this much?” During training that number is computed from the log. During rollout you supply a target and update it from observed rewards. A target is a condition, not a promise.
Source-mapped architecture
From a training window to action predictions
Lab 04 / token microscope
Watch the state token predict an action
Causal readout · query st
Toy predicted action
Open the full mask and scalar equations
The toy uses one scalar per token: z = w × raw + 0.05t, with wR = .1, ws = .5, wa = .4; query, key and value weights are 1. Compute softmax of z(query) × z(key) over allowed keys, sum the weighted z(key), then take tanh(head × sum). Keys after the query or in padding are masked. The head starts at 0.8. The training button performs one gradient step on that scalar (step size 0.1) using the unpadded action MSE; your new weight carries into replay. Real weights, normalization, residuals, multiple attention heads, MLPs and full-network AdamW are not part of this toy.
Logged toy rewards: [1, 0, 2, 0, 3]. Replay gets its observations, past actions, and rewards from the fixed log. Your target changes the computed prediction, but that prediction is not executed or fed back into the next window. The window ends at the selected step in both modes. Left-padding here is a visualization convention, not a reproduction of every original sampler field.
End to end: sample, train, deploy, update
- Build trajectories. Split the offline log at terminal or timeout boundaries for the DT data recipe. Each trajectory has states, actions, and rewards. Compute undiscounted Rt = Σj≥trj. Importantly, calculate it over the remaining trajectory, not just inside the crop.
- Form a batch. In released Gym code, sample trajectories by length after any top-return filtering, start at a uniformly sampled position inside each chosen trajectory, crop up to K steps, mask padding, normalize states, divide returns by scale. The full batch sampler supplies K+1 RTG slots; the trainer slices the final slot away for the K-step model.
- Supervise the action only. Feed logged actions as history (teacher forcing); their own target positions are behind the corresponding state queries. Mask out padded predictions, then minimize mean squared action error on Gym. No Bellman target or policy gradient in this trainer. Atari uses categorical action prediction instead.
- Deploy. Enter initial desired R, encode the history and current state, and predict from the last state token. The Gym evaluator stores the chosen action in history and executes it to get rt and the next state. In the standard setting, update the raw target as Rt+1 = Rt − rt (subtract rt/scale if already scaled). Slide the window and repeat.
The released Gym model predicts one continuous action vector from the return and history, using a linear head with tanh in the default configuration. It does not sample a learned distribution. The Atari version instead predicts categorical action logits. Neither version guarantees the requested return: data may not cover it, or high returns in the log may reflect luck. Stochasticity and stitching evidence · Pinned batch and config · Pinned action loss
05 / DATA & CONFIGS
Read the dataset before believing the score.
A million transitions aren't a million independent trajectories. And changing the buffer, data version, target return or evaluation protocol changes what a reported score means.
Lab 05 / D4RL locomotion v2
Explore the measured trajectory files
Complete episodes end at terminal or timeout flags; tail transitions are included in file totals but not in complete episode averages. File measurements are not rollout performance. D4RL recount notes
Versioned evidence
Three parameter counts, not one
| Implementation | State / action | Max timestep table length | Parameters |
|---|---|---|---|
| Original Gym DT (Hopper shape) | 11 / 3 | 1,000 | 727,695 |
| Hugging Face 4.49.0 (matched Hopper) | 11 / 3 | 1,000 | 858,767 |
| Hugging Face 4.49.0 (defaults) | 17 / 4 | 4,096 | 1,256,854 |
The matched comparison has width 128, 3 layers, 1 head, and K = 20. The matched HF model includes a 1,024 × 128 position table (131,072 weights). Zero position IDs still add its learned row 0. In the matched-weights CPU check, outputs agreed after zeroing that table—not merely its IDs.
Measured HF Hopper forward, B = 64: state [64,20,11], interleaved [64,60,128], action predictions [64,20,3]. Clone-and-run shape notes
Released Gym defaults and benchmark cautions
Released Hopper recipe: batch 64, learning rate 10−4, AdamW weight decay 10−4, dropout .1, reward scale 1,000, eval targets 3,600 and 1,800 (raw). The CLI defaults to 10,000 warm-up updates; the paper prints 100,000. We don't infer which run setting produced a published table from either alone.
Atari uses discrete actions and a replay split; don't transfer the continuous action loss or Hopper hyperparameters. D4RL normalized scores use reference returns; transforming a score doesn't fix replay-version, seeds, or evaluation mismatches. Compare models within the same paper table and protocol. Pinned settings and source-reported results
06 / APPLICATION TRACKS
Different actions, different evidence.
An ad slot, a generated answer and a robot move all involve choosing. But their data, feedback and evaluation questions are not interchangeable.
Lab 06 / click logs
Was the result unhelpful, or never seen?
Same candidate set
Expected weighted rank loss
2Click if examined and relevant (toy assumption). Divide the candidate rank by examination probability at the logged rank. The outcome is a rank loss, not CTR. This observation propensity is not the probability that a logger chose a whole slate. Joachims et al., Eq. 5 · Bottou et al., system interventions
Lab 07 / language feedback
When optimizing a judge backfires
Each draw is neutral (30%; proxy/gold 0/0), good (60%; 1/1), or a trap (10%; 2/0). The proxy selects the best-looking answer. Gold is 1 only when there is a good draw and no trap, so E[gold] = .9ⁿ − .3ⁿ. This is not a fit to human preferences or a reproduction of Gao et al.'s gold-model experiment.
RLHF, RLAIF, DPO and GRPO are different choices
RLHF can fit a reward model to human preferences and optimize a policy using PPO. RLAIF changes the source of feedback; direct RLAIF uses the judge at RL time instead of fitting a separate reward model. DPO fits pairs directly by comparing preferred vs. dispreferred policy log odds relative to a reference. GRPO uses a group of sampled responses to form relative advantages, without a learned value baseline in the original proposal. None is a Decision Transformer merely because it handles sequences. Lee et al. · Objectives and version caveats
Lab 08 / action chunks
Where Octo's four actions come from
Octo is trained on demonstrations from an Open X-Embodiment subset. Compare RT-1-X's discretized controls and RT-2-X's action-as-text-token setup in the atlas. Here there are no predicted control values: this is an index view of the recipe's output, not inference. Unnormalize actions with compatible robot statistics; the controller decides when to observe and replan. See the official dataset mosaic · Octo architecture and §III · Pinned config
07 / MODEL ATLAS
Which decision problem are you solving?
Use the atlas as a reference, not a leaderboard. Filter by family or search terms like diffusion, cost, or expert. Each entry separates the training data, learned mechanism, decision-time behavior, and a limitation. Scope is the researched RL and Decision Transformer families, not every decision-making formalism.
51 entries
Contextual Bandit (LinUCB) Foundations
A contextual bandit learns which option to choose when feedback is available only for the chosen option.
- Data / architecture
- One feature vector per candidate and a reward for the chosen candidate; disjoint LinUCB keeps a separate linear reward model for each arm.
- Training
- After observing the reward, update the chosen arm's ridge regression with its features and outcome.
- At decision time
- Show the candidate with the highest predicted reward plus an uncertainty bonus, as in personalized news recommendation.
- Limits
- The linear model can be wrong, and the bandit objective does not account for how a choice changes future contexts.
Deep Q-Network (DQN) Foundations
DQN learns how much future reward to expect from each of a fixed set of actions.
- Data / architecture
- A network maps a state representation, such as a stack of Atari frames, to one Q-value per action; replay stores rewarded transitions and terminal flags.
- Training
- Collect experience with epsilon-greedy exploration and regress on replayed Bellman targets computed with a periodically copied target network.
- At decision time
- For greedy control, pick the action with the largest Q-value; evaluate the resulting policy on fresh episodes.
- Limits
- The output head assumes a discrete action set, and replay and target networks do not eliminate instability from bootstrapping.
- Config / protocol
- Atari, Methods section of the Nature paper: RMSProp, minibatch 32, frame skip 4.
Proximal Policy Optimization (PPO) Foundations
PPO improves a policy on fresh experience while discouraging large changes in action probabilities.
- Data / architecture
- A stochastic actor and value critic consume observations; rollouts supply actions, rewards, and the old actor's probabilities for the chosen actions.
- Training
- Estimate advantages from a fresh batch, fit the critic, and make several minibatch passes over a clipped policy-ratio objective before collecting again.
- At decision time
- Deploy the actor without the critic and estimate return on new rollouts.
- Limits
- Clipping is not a hard bound on policy change, and collecting fresh experience for each batch can be costly.
- Config / protocol
- Paper Table 3, MuJoCo: rollout length 2048, 10 epochs per batch, GAE lambda 0.95.
Soft Actor-Critic (SAC) Foundations
SAC learns a policy that seeks reward while keeping its action choices diverse.
- Data / architecture
- A replay buffer of continuous-control transitions, a squashed Gaussian actor, and two Q critics with target copies.
- Training
- Collect online transitions and reuse them for soft Bellman regression and entropy-regularized actor updates; the cited variant learns the entropy temperature.
- At decision time
- Sample from the actor during exploration or use its deterministic evaluation action at deployment.
- Limits
- An entropy bonus helps exploration during collection but cannot fill coverage gaps if SAC is trained on a fixed log.
- Config / protocol
- Continuous-control experiments, Table 1: 256-example minibatches and two 256-unit hidden layers.
Behavior Cloning (BC) Foundations
Behavior cloning learns to imitate demonstrated actions without a reward signal.
- Data / architecture
- A fixed set of expert observation-action pairs and a policy such as an MLP or causal sequence model.
- Training
- Use supervised action prediction, for example categorical negative log-likelihood or squared error for deterministic continuous actions.
- At decision time
- Feed new observations to the policy and measure behavior on full rollouts, not just prediction accuracy on demonstrations.
- Limits
- Small mistakes can take the learner to states the expert never visited, where it has not learned how to recover.
Dataset Aggregation (DAgger) Foundations
DAgger teaches recovery by asking an expert what to do in states the learner actually visits.
- Data / architecture
- A supervised policy, environment access, and an expert who can label observations even when the learner has gone off the demonstration path.
- Training
- Roll out a mixture of learner and expert, label visited states with expert actions regardless of who acted, and refit on the accumulated labels.
- At decision time
- Deploy the learner without the expert and test whether it recovers from its own errors.
- Limits
- Unlike fixed-data cloning, this requires new rollouts and expert queries on learner-visited states.
Generative Adversarial Imitation Learning (GAIL) Foundations
GAIL uses a discriminator to steer a policy toward the state-action patterns in demonstrations.
- Data / architecture
- Expert state-action pairs and new learner rollouts feed a discriminator; a stochastic policy acts in the environment.
- Training
- Alternate discriminator updates against expert and learner samples with policy optimization on a learned cost; the original algorithm uses TRPO.
- At decision time
- Run the resulting policy without the discriminator and evaluate it on independent rollouts.
- Limits
- Needs interaction during training, and matching which states and actions the expert visits does not identify a transferable reward.
Adversarial Inverse Reinforcement Learning (AIRL) Foundations
AIRL separates a candidate reward from shaping terms so the reward can be tested under different dynamics.
- Data / architecture
- Expert and learner transitions feed a discriminator with a reward component, a state-potential shaping term, and the learner's action probability.
- Training
- Alternate expert-versus-learner classification and reinforcement learning on the discriminator's log-odds.
- At decision time
- Deploy the trained policy, or retain the learned reward component and train a new policy to test transfer after a dynamics change.
- Limits
- Reward recovery in the cited analysis relies on structural assumptions, including deterministic dynamics and a state-only reward.
Inverse Soft Q-Learning (IQ-Learn) Foundations
IQ-Learn imitates demonstrations by fitting a soft action-value function instead of training a separate reward discriminator.
- Data / architecture
- The offline variant takes expert transitions and start states without reward labels; continuous control also uses a stochastic actor.
- Training
- Optimize an inverse soft Bellman objective to make expert actions likely; the online variant can also use collected learner transitions.
- At decision time
- Sample from the softmax over Q in discrete control, or use the learned actor in continuous control.
- Limits
- Expert coverage still matters on unfamiliar states. Unlike IQL, this is imitation without labeled task rewards.
Sequential OPE: Per-Decision IS and Doubly Robust Evaluation
These two estimators use logged trajectories to measure the return of a fixed policy without deploying it.
- Data / architecture
- Ordered episodes with rewards and logging probabilities for chosen actions, plus target-policy probabilities; sequential DR also takes a target-policy Q model.
- Training
- Per-decision importance sampling (PDIS) fits nothing; for doubly robust (DR) evaluation, fit the Q model on separate episodes and average its predictions under the target policy for state values.
- At decision time
- PDIS sums discounted rewards weighted by the product of policy ratios through each step. DR adds ratio-weighted residuals to model values in a backward recursion; both average over episodes.
- Limits
- Both need policy overlap, and long horizons can make the ratios noisy. An inaccurate Q model need not reduce variance.
Fitted Q Evaluation (FQE) Evaluation
FQE fits the value function of a fixed policy from logged transitions without needing the logger's action probabilities.
- Data / architecture
- Logged states, actions, rewards, next states and terminal information, plus the target policy, evaluation start states, and a Q regressor.
- Training
- Regress Q to reward plus, at nonterminal transitions, the discounted next Q averaged under the fixed policy. Repeat without maximizing over next actions.
- At decision time
- Average the final Q predictions over the target policy's actions and the intended start distribution to estimate return.
- Limits
- A weak regressor or poor coverage can bias bootstrapped values. Do not equate time-limit truncation with a true terminal state.
DualDICE Evaluation
DualDICE estimates how often a target policy visits each state-action pair relative to the data, rather than multiplying action ratios along a trajectory.
- Data / architecture
- Logged transitions and rewards, samples of target start states, and a fixed target policy; fit a state-action potential and an occupancy-ratio function.
- Training
- Solve a saddle-point problem that uses Bellman differences of the potential and a term for the initial distribution to fit the discounted ratio.
- At decision time
- Average the ratio-weighted logged rewards to estimate one minus the discount factor times the expected discounted return.
- Limits
- Logging probabilities are unnecessary, but the data still must cover the target occupancy. The normalized estimate is not an undiscounted episode total.
Batch-Constrained Q-Learning (BCQ) Offline RL
Continuous BCQ improves on logged behavior by searching over actions similar to those the data contains.
- Data / architecture
- Fixed continuous-control transitions, a state-conditioned variational autoencoder for actions, a bounded perturbation network, and two Q critics.
- Training
- Fit the autoencoder to logged actions, regress Q on backups over perturbed behavior proposals, and train the perturbation to raise Q.
- At decision time
- Sample candidate actions at the current state, perturb them within bounds, and choose the candidate with the highest estimated Q.
- Limits
- A weak behavior model can miss useful actions, and the perturbation bound limits how far the policy can improve beyond the batch.
Bootstrapping Error Accumulation Reduction (BEAR) Offline RL
BEAR limits where its policy can search by keeping its action samples close to those of the logging behavior.
- Data / architecture
- Fixed transitions, a stochastic actor, a Q ensemble, and a conditional behavior model that can sample several actions per state.
- Training
- Use target-actor proposals for Q backups and constrain actor improvement with maximum mean discrepancy between actor and behavior samples.
- At decision time
- The linked release samples actions from the actor and picks the highest-ranked candidate under a critic.
- Limits
- The sample-based proximity test depends on kernel and threshold choices and does not guarantee exact coverage.
Conservative Q-Learning (CQL) Offline RL
CQL discourages an offline policy from chasing inflated values on actions the log rarely or never took.
- Data / architecture
- Fixed rewarded transitions and a Q network; the continuous actor-critic version also samples proposed actions for the conservative penalty.
- Training
- Add a penalty comparing log-sum-exp of candidate Q-values with the logged action's Q-value to the Bellman regression.
- At decision time
- Deploy the learned actor in the continuous version or act greedily under the learned values in the discrete version.
- Limits
- Too much pessimism can suppress useful improvements, while too little leaves extrapolation error. It is not a pointwise guarantee for every learned Q-value.
Implicit Q-Learning (IQL) Offline RL
IQL learns from the better actions in the log without querying newly proposed actions in its value updates.
- Data / architecture
- Fixed rewarded transitions and separate action-value, state-value, and policy networks.
- Training
- Fit the state value to an upper expectile of logged-action Q estimates and bootstrap Q with the next state value. Fit the actor to logged actions weighted exponentially by advantage.
- At decision time
- Use the extracted actor directly; it does not need to sample candidate actions and rank them with Q.
- Limits
- The upper expectile reflects the actions the data covers, not a global maximum; the actor can still extrapolate at deployment.
- Config / protocol
- Paper locomotion settings: expectile 0.7 and actor weight exponent multiplier 3.
Advantage-Weighted Actor-Critic (AWAC) Offline RL
AWAC pretrains on old experience and adapts online by emphasizing recorded actions that outperform the current policy's baseline.
- Data / architecture
- Rewarded transitions seed a replay buffer for a stochastic actor and Q critic; newly collected transitions can be added later.
- Training
- Bootstrap the critic on next actions from the current policy, then fit the actor to replay actions with exponentially larger weight for higher advantage.
- At decision time
- Initialize online interaction with the pretrained actor, keep updating on replay that includes new experience, and evaluate the final actor.
- Limits
- The critic can query actions outside the log before any corrective online data arrive, and the weighting temperature controls how tightly the actor follows the data.
TD3+BC Offline RL
TD3+BC adds a cloning loss so a deterministic offline actor does not stray too far from recorded actions.
- Data / architecture
- Fixed continuous-control transitions, training-set observation statistics, a deterministic actor, and twin critics.
- Training
- Fit TD3's smoothed, clipped double-Q targets and update the actor less often to trade off estimated Q against squared distance to logged actions.
- At decision time
- Run the actor with the same observation normalization used in training.
- Limits
- Strong cloning can lock the policy to poor behavior; weak cloning leaves it more exposed to unreliable Q predictions.
- Config / protocol
- Paper Table 4: alpha 2.5. The linked release scales the Q term by the mean absolute Q at actor actions, not logged actions as in Eq. 5.
Reinforcement Learning via Supervised Learning (RvS) Offline RL
RvS shows how a feedforward policy can learn to choose actions for a desired outcome.
- Data / architecture
- An MLP consumes the current state and an outcome: an achieved future goal in RvS-G or average remaining reward in RvS-R.
- Training
- Label each logged decision with a hindsight outcome from its trajectory suffix, then maximize the logged action's likelihood under that condition.
- At decision time
- Supply a target goal or reward level at decision time and evaluate complete rollouts rather than using validation loss as a proxy for return.
- Limits
- The choice of outcome and model capacity matter; matching actions on low-quality data or at unfamiliar targets does not imply good control.
Offline SAC Ensembles (SAC-N and EDAC) Offline RL
SAC-N and EDAC use the lowest estimate from several critics to discourage actions whose value is uncertain.
- Data / architecture
- Fixed continuous-control transitions, a stochastic SAC actor, and an ensemble of Q networks.
- Training
- Use the minimum Q for both critic targets and actor updates. EDAC also penalizes alignment between critics' action gradients at logged actions.
- At decision time
- Deploy the trained actor; the critic ensemble is not needed to select actions.
- Limits
- Ensembles cost compute, and agreement can hide shared errors. Diversity is not a calibrated uncertainty interval.
- Config / protocol
- Paper Table 4, Hopper-medium: 500 critics in SAC-N; 50 critics and diversity weight 1 in EDAC.
Diffusion-QL Offline RL
Diffusion-QL trains a denoising policy to produce actions that both resemble the log and score well under a critic.
- Data / architecture
- Offline continuous-action transitions, twin Q critics, and a state-conditioned diffusion model that generates a single action vector.
- Training
- Combine action denoising with a Q-improvement term whose gradient flows through the reverse diffusion chain; fit critics on logged transitions.
- At decision time
- The linked release generates candidate actions and samples among them with softmax weights from the minimum target Q.
- Limits
- Denoising adds latency, and inaccurate critics can favor the wrong candidates.
- Config / protocol
- Paper §4 uses five diffusion steps; the linked sample_action draws 50 candidates.
Implicit Q-Learning with Diffusion Policies (IDQL) Offline RL
IDQL learns to sample actions from logged behavior and uses a separate value model to improve the choice among them.
- Data / architecture
- Fixed rewarded transitions, an in-sample Q and state-value estimator, and a state-conditioned diffusion behavior sampler.
- Training
- Fit an expectile state value on logged-action Q estimates and use it in Bellman backups. Separately fit the sampler by denoising logged actions without a Q gradient.
- At decision time
- Sample candidates and resample with policy-improvement weights or choose the maximum-Q candidate as the linked evaluation code does.
- Limits
- The selector cannot choose an action the sampler did not propose, and more draws cost more time.
ReBRAC Offline RL
ReBRAC discourages deviation from logged actions in both actor updates and critic targets.
- Data / architecture
- A deterministic TD3-style actor, twin critics, and ordered offline transitions or explicit next logged actions.
- Training
- Penalize squared deviation from logged actions in the actor loss and from the next logged action in the critic target. The linked release also floors the target at the logged Monte Carlo return.
- At decision time
- Deploy the deterministic actor; it does not look up logged actions at inference.
- Limits
- The backup needs correctly aligned next actions, and the recipe also changes architecture and training settings beyond the two penalties.
Calibrated Q-Learning (Cal-QL) Offline RL
Cal-QL tempers excessive pessimism in an offline critic so it can improve more readily with new data.
- Data / architecture
- Rewarded offline transitions, a SAC-style actor and critics, and a reference estimate of behavior value, such as discounted logged returns where appropriate.
- Training
- Floor the relevant proposed-action Q-values at the reference inside CQL's push-down penalty, leaving the logged-action term and Bellman target unfloored.
- At decision time
- After offline pretraining, collect fresh rollouts and fine-tune on mixed replay before deploying the actor.
- Limits
- The reference can be inaccurate, and flooring a penalty is not a safety guarantee or a bound on every output of the critic.
Decision Transformer (DT) Sequence models
Decision Transformer predicts the next action from recent experience and a requested return.
- Data / architecture
- A causal GPT reads K logged steps as 3K interleaved tokens: return-to-go (RTG), state, and action, with a shared time embedding within each step.
- Training
- Compute undiscounted RTG to the end of each episode and fit action predictions at state tokens, using masked squared error for continuous actions or cross-entropy for discrete actions.
- At decision time
- Set a target RTG, predict the action at the current state, and subtract each observed reward in the same units as the prompt while rolling the context window.
- Limits
- A requested return is not a promise: the data may not cover it, and high observed returns can reflect luck rather than controllable choices.
- Config / protocol
- Gym experiment.py defaults at the linked commit: context 20, width 128, 3 layers, 1 head.
Trajectory Transformer (TT) Sequence models
Trajectory Transformer predicts whole trajectories so a planner can search among possible futures.
- Data / architecture
- A GPT decoder reads per-coordinate bins for states and actions plus reward tokens; offline planning also predicts a reward-to-go token.
- Training
- Fit next-token likelihood across logged trajectory elements, feeding the actual preceding tokens during training.
- At decision time
- Use beam search to rank futures by predicted reward and continuation value, execute the first action, and replan; the continuation value is not a user-set return prompt.
- Limits
- Discretization sacrifices precision, and decoding many tokens per step makes beam search expensive.
- Config / protocol
- Linked offline config uses 100 bins per dimension; scripts/train.py combines 32 per head across 4 heads for width 128.
Online Decision Transformer (ODT) Sequence models
ODT adapts a return-conditioned policy by collecting new experience with a stochastic actor.
- Data / architecture
- A causal Transformer takes logged return-to-go, state, and action histories and outputs a diagonal Gaussian action distribution.
- Training
- Pretrain by entropy-constrained action likelihood. Collect rollouts at an exploratory target, relabel them with actual returns-to-go, and continue training on trajectory replay.
- At decision time
- Use a stochastic policy during collection; during evaluation, set an initial return target and decrement it as rewards arrive.
- Limits
- Fine-tuning needs environment access, and exploration and evaluation can be sensitive to the chosen return targets.
Elastic Decision Transformer (EDT) Sequence models
EDT chooses how much past context to keep instead of always using the same history length.
- Data / architecture
- Offline observation, return and action streams; the sequence model also estimates a high return available under a given history.
- Training
- Predict observations, return and actions, plus an expectile-trained high-return estimate.
- At decision time
- Score candidate history lengths, keep a history with high estimated achievable return, then predict the action.
- Limits
- Picking a useful prefix is an inference-time search heuristic, not a guarantee of combining trajectories or staying in distribution.
Prompting Decision Transformer (Prompt-DT) Sequence models
A short trajectory prompt tells the policy which task it should perform.
- Data / architecture
- Offline data across tasks and a few same-task demonstration segments, prepended to the return/state/action context.
- Training
- Train an action-prediction model using prompted windows from training tasks.
- At decision time
- Supply a trajectory prompt for the test task and predict actions without a gradient update.
- Limits
- The prompt needs to represent the task well; support for arbitrary novel tasks is not established by few-shot performance.
Q-learning Decision Transformer (QDT) Sequence models
QDT uses dynamic programming to compute alternative return labels before training a sequence policy.
- Data / architecture
- Offline reward-labeled trajectories and a separately learned value function.
- Training
- Relabel training windows' return-to-go with value-based estimates, then train DT on the relabeled trajectories.
- At decision time
- Use the trained return-conditioned policy; the value-based relabeling step is not a beam search at decision time.
- Limits
- Relabeling inherits errors of the value learner. Benefits depend on the dataset, rewards, and execution protocol.
Generalized Decision Transformer (GDT) Sequence models
GDT treats return as one possible description of the desired future, not the only one.
- Data / architecture
- Logged trajectories and an information statistic computed from a trajectory's future, such as a statistic of states.
- Training
- Pair each history with its hindsight statistic and fit a conditional action model.
- At decision time
- Give the model the desired statistic instead of assuming every deployment wants a scalar reward sum.
- Limits
- The statistic must capture the intended behavior. Its Categorical DT variant is not the Constrained DT safe-RL method.
Upside-Down Reinforcement Learning Sequence models
A precursor that asks a policy to achieve a supplied return over a supplied number of steps.
- Data / architecture
- State and a command containing desired reward and horizon; not necessarily a Transformer.
- Training
- Train on hindsight-labeled segments in replay; the practical algorithm also collects new episodes.
- At decision time
- Choose an initial command, subtract observed rewards from the remaining reward and decrement the horizon.
- Limits
- A command cannot make an unreachable outcome feasible, and logged correlations can reflect luck.
StARformer Sequence models
StARformer separates local relationships within a step from relationships across an image-based trajectory.
- Data / architecture
- Image-state patches, actions and rewards; local Step Transformer features are fused with global image features by a Sequence Transformer.
- Training
- Train the sequence model to predict actions from recorded evidence; the paper studies both offline RL and imitation.
- At decision time
- Embed the observation/history and predict the action with the trained model.
- Limits
- Its visual design and evaluated benchmarks do not establish that local step structure helps every dataset.
Critic-Guided Decision Transformer (CGDT) Sequence models
CGDT uses a critic during training to favor actions whose predicted returns agree with the policy's prompt.
- Data / architecture
- Logged trajectories feed a DT actor and a separate Transformer critic that predicts a Gaussian over returns given history, state, and action.
- Training
- Fit the critic to observed Monte Carlo returns using asymmetric likelihood, not a Bellman target. Add a critic-derived expectile penalty to the actor's action regression.
- At decision time
- Prompt and run the trained DT actor on its own; the critic is not a decode-time planner.
- Limits
- The critic can misjudge proposed actions outside the logged distribution, so its guidance does not ensure the requested return.
- Config / protocol
- Paper Table 6, Hopper-medium: critic expectile 0.5, policy expectile 0.9, guidance weight 0.2.
Waypoint Transformer Sequence models
Waypoint Transformer turns a distant goal into an intermediate target that helps the policy choose the next action.
- Data / architecture
- Offline trajectories with a goal or return condition; each policy token concatenates the state and a predicted waypoint rather than including a past-action token.
- Training
- Fit a waypoint regressor for a future state or intermediate reward proxy, freeze it, and train the causal policy by action likelihood.
- At decision time
- Compute a waypoint from the current state and the supplied goal or return, then act using the history of state-waypoint tokens.
- Limits
- The model still needs an external goal or return, and useful waypoints depend on coverage and the chosen waypoint horizon.
Constrained Decision Transformer (CDT) Sequence models
CDT conditions the next action on both a reward target and a cost budget.
- Data / architecture
- Offline trajectories with rewards and costs; a causal Transformer reads both remaining targets alongside states and past actions and outputs a Gaussian policy.
- Training
- Fit action likelihood with an entropy bonus and augment training near the reward-cost frontier by relabeling conditioning targets, not observed costs.
- At decision time
- Set initial reward and cost targets, query the policy, then subtract each realized reward and cost before querying again.
- Limits
- A cost prompt is not a hard safety controller, especially when the requested trade-off is poorly represented in the data.
- Config / protocol
- Linked OSRL recipe: context 10, width 128, 3 layers, 8 heads.
Multi-Agent Decision Transformer (MADT) Sequence models
MADT shares a policy across agents that each act from local observations.
- Data / architecture
- Logged multi-agent trajectories, local observation histories, and available-action masks for a parameter-shared causal policy.
- Training
- Pretrain by classifying logged actions, then optionally fine-tune with a PPO-style multi-agent actor-critic. The reported fine-tuning omits return tokens.
- At decision time
- Each agent applies the shared policy to its own observations and masks unavailable actions before choosing.
- Limits
- Parameter sharing does not make hidden state observable; transferring to new maps is a separate evaluation from fine-tuning on known maps.
- Config / protocol
- Linked SMAC entry point: state_only, context 1, 2 layers, 2 heads, width 32.
Hierarchical Decision Transformer (HDT) Sequence models
HDT predicts a subgoal state first and then uses it to choose a low-level action.
- Data / architecture
- Two causal Transformers use offline trajectories: the high level reads states and subgoals, and the low level also reads past actions.
- Training
- Label subgoals with future states favored by high intervening reward per step and jointly regress subgoals and actions.
- At decision time
- Query the high-level model before the low-level model at each step; the reported setup does not require an external goal or return prompt.
- Limits
- The hierarchy depends on whether the labeling rule finds useful subgoals in the available demonstrations.
Multi-Game Decision Transformer (MGDT) Sequence models
MGDT shares one Atari policy across games and samples its own high-return condition.
- Data / architecture
- A GPT-style model reads screen patches, binned returns, discrete actions, and clipped rewards from replay collected across games.
- Training
- Use cross-entropy to predict return, action, and reward tokens from fixed DQN replay, without predicting future observations.
- At decision time
- Bias the predicted return distribution toward larger values, sample a return, and then sample an action conditioned on it.
- Limits
- Biasing the sampler does not create good behavior absent from the model's training signal; the reported interface uses discrete Atari controls.
- Config / protocol
- Paper §3.4 and Appendix B: return tilt strength 10 and a four-frame context.
Diffuser Sequence models
Diffuser plans by denoising an entire future trajectory rather than generating one action at a time.
- Data / architecture
- A temporal U-Net reads a noisy window of joint states and actions and its diffusion step; a separate reward guide can score candidate trajectories.
- Training
- Learn to denoise logged state-action windows and, for learned reward guidance, fit a return predictor on noisy trajectories.
- At decision time
- Clamp the current state and optionally the goal during denoising, guide toward reward when needed, execute the first action, and replan.
- Limits
- Repeated denoising costs time, and the learned trajectory model and reward guide can both extrapolate poorly.
- Config / protocol
- Linked locomotion config: horizon 32, 20 diffusion steps, and clean-trajectory prediction rather than noise prediction.
Decision Diffuser Sequence models
Decision Diffuser plans future states and uses inverse dynamics to choose the action that should reach the next one.
- Data / architecture
- Logged transitions and return, skill, or constraint labels; a temporal U-Net denoises state windows, and an inverse model reads adjacent state pairs.
- Training
- Fit the denoiser with occasional condition dropout and regress the logged action from neighboring states.
- At decision time
- Combine conditional and unconditional predictions for guided sampling, turn the planned next state into an action with inverse dynamics, and replan after observing the result.
- Limits
- Iterative sampling adds latency, and errors in predicted states or inverse dynamics can yield ineffective actions.
Decision Mamba (Ota) Sequence models
Decision Mamba replaces Decision Transformer's self-attention with a selective state-space block.
- Data / architecture
- Interleaved return-to-go, state, and action tokens from offline trajectory windows feed a stack of Mamba blocks and channel-mixing MLPs.
- Training
- Predict the recorded action at each step using squared error in continuous control or cross-entropy in discrete control.
- At decision time
- Set a return target, predict the next action from the current window, and subtract the realized reward before the next prediction.
- Limits
- Changing the sequence mixer leaves the need to choose a meaningful return prompt, and the paper reports mixed results across tasks rather than a universal gain.
Q-Transformer (Robot Control) Applications
Q-Transformer uses offline reinforcement learning to choose a robot command one action coordinate at a time.
- Data / architecture
- Logged images, language instructions, binned actions, and rewards feed a Transformer that scores bins for the next coordinate given the preceding coordinates.
- Training
- Apply Bellman backups across coordinates, adding environment reward and discount at the last coordinate. Regularize values for out-of-data actions toward a lower reference.
- At decision time
- Choose each bin greedily in sequence, decode the completed vector, and execute it for language-conditioned manipulation.
- Limits
- Action binning trades precision for tractability, and sparse successes and limited action coverage can leave Q estimates unreliable.
Gato (A Generalist Agent) Applications
Gato uses one Transformer to produce text and imitate actions across games and robot tasks.
- Data / architecture
- Text tokens, image patches, and discrete or quantized continuous values form a shared sequence of observations and actions.
- Training
- Fit a decoder-only model by next-token likelihood on text and recorded actions, masking the loss on other observation tokens.
- At decision time
- For control, provide a task demonstration as context, append observations, and generate and decode action tokens autoregressively.
- Limits
- A demonstration prompt specifies behavior by example rather than a return target, and imitation alone does not optimize beyond the logged actions.
RT-X Robot Policies (RT-1-X and RT-2-X) Applications
RT-X trains robot policies on demonstrations from multiple robot designs to help skills transfer between platforms.
- Data / architecture
- Workspace images and language instructions produce binned controls, through a robot Transformer in RT-1-X or action text tokens in a vision-language model in RT-2-X.
- Training
- Train RT-1-X to classify action bins from the robot mixture. Co-fine-tune RT-2-X on robot actions and original vision-language data.
- At decision time
- Decode actions to the robot's end-effector and gripper conventions and evaluate on the intended hardware and task set.
- Limits
- A shared trajectory format does not standardize camera calibration or control frames, and cross-robot training does not improve every setting.
Octo Applications
Octo learns a reusable robot policy that predicts several continuous actions at once.
- Data / architecture
- Language or goal images, recent observations, and a time mask feed a Transformer whose readout conditions a diffusion action head.
- Training
- Pretrain by denoising demonstrated action chunks from compatible robot datasets; adapt tokenizers or heads with demonstrations for a new platform.
- At decision time
- Sample an action chunk, unnormalize it for the target robot, and execute a prefix before observing and predicting again.
- Limits
- A new sensor or action space can require adaptation, and a predicted chunk need not remain valid if the environment changes mid-execution.
- Config / protocol
- octo_pretrain_config.py at the linked commit: 2 observation frames, 4 predicted actions, 7 action dimensions.
PPO with Human Feedback (InstructGPT) Applications
InstructGPT improves a language policy on its own sampled responses using a reward model trained from human comparisons.
- Data / architecture
- Instructions, demonstration responses, and ranked model responses supply a language actor, a reference policy, a scalar reward model, and a separate value critic.
- Training
- Fine-tune on demonstrations and fit a reward model to comparisons. Use PPO on scored completions, with a penalty for drifting from the supervised reference.
- At decision time
- Generate with the trained actor alone and evaluate on held-out human judgments as well as capability tests.
- Limits
- Optimizing a learned proxy can overfit its judgments or degrade abilities not measured by the reward model.
Direct Preference Optimization (DPO) Applications
DPO learns from preferred and rejected responses directly rather than running reinforcement learning against a separate reward model.
- Data / architecture
- Fixed prompt, preferred answer, and rejected answer triples, plus a trainable language model and a fixed reference with response log-probabilities.
- Training
- Compare how much each answer's log probability increased relative to the reference, and fit a logistic loss favoring a larger increase for the preferred answer.
- At decision time
- Generate with only the tuned model and evaluate preferences on new prompts; the reference is not needed at inference.
- Limits
- Preferences and responses outside the training distribution remain untested, and fitting deterministic labels too aggressively can suppress alternatives.
- Config / protocol
- Paper Appendix B uses beta 0.1 by default and beta 0.5 for TL;DR summarization.
Group Relative Policy Optimization (GRPO) Applications
GRPO estimates how well a response did by comparing it with other responses to the same prompt instead of fitting a value critic.
- Data / architecture
- Prompts, groups of freshly sampled completions, a scorer, and log-probabilities from the current, rollout, and reference policies for the original objective.
- Training
- For outcome-scored GRPO, standardize scores within each group and optimize a clipped token-probability ratio with a KL penalty to the reference.
- At decision time
- Generate with the updated actor and evaluate on independent problems using a clearly specified sample budget.
- Limits
- Equal scores give no relative learning signal, larger groups cost more generation, and optimization can exploit errors in the scorer.
- Config / protocol
- DeepSeekMath RL experiment: 64 completions per question and KL coefficient 0.04.
Reinforcement Learning from AI Feedback (RLAIF) Applications
RLAIF trains a policy using judgments from another model as the source of feedback.
- Data / architecture
- Prompts, sampled responses, and an AI judge with a task rubric; canonical RLAIF uses response pairs, while direct RLAIF scores current samples.
- Training
- In canonical RLAIF, fit a reward model to judge preferences and then optimize the policy against it. Direct RLAIF instead queries the judge for scalar rewards during RL.
- At decision time
- Serve the learned policy without the judge and separately check whether improvements hold under human evaluation.
- Limits
- Choices can reflect the judge's biases, including response order, and direct scoring trades a separate reward model for more judge calls.
Propensity-Weighted Learning to Rank Applications
Propensity-weighted ranking corrects for clicks being more likely on results users actually see.
- Data / architecture
- Queries, displayed results, logged positions and clicks, and estimated position examination probabilities; the cited learner is a Ranking SVM.
- Training
- Estimate relative examination propensities using randomized swaps, then minimize a rank loss that weights each click by the inverse propensity of its logged position.
- At decision time
- Sort candidates by their learned scores; the counterfactual loss uses the candidate ranks but still uses the logged positions' propensities.
- Limits
- This estimates relevance-weighted rank loss, not an offered slate's click rate or revenue. Zero exposure and a wrong examination model can defeat the correction.
No matches. Try a shorter search or clear the family filter.
08 / EVIDENCE ROOM
Open the evidence behind the diagrams.
The live diagrams are original teaching views. The figures below come from their authors. Some are linked instead of embedded where reuse permission was not established for the exact asset. The interactive lesson opens without the network; external source links need internet.
Waypoint Transformer — Figure 4
Anirudhan Badrinath, Yannis Flet-Berliac, Allen Nie and Emma Brunskill · CC BY 4.0 · Converted to WebP; no crop or label changes. · Official source · Original image
Open X-Embodiment — dataset mosaic
Open X-Embodiment Collaboration / DeepMind Technologies Limited · CC BY 4.0 · Downscaled to 1,120 pixels wide and converted to WebP; no crop. · Official source · Original image
Decision Transformer — architecture
Look straight up from sₜ, not aₜ, to the action output. The paper gives a game-image example; the chapter's shape contracts and continuous-action head are for the Gym release.
Lili Chen and coauthors · Official source
Linked: no CC BY reuse basis established for the exact figure (including the game image). The project code license is separate.
Decision Transformer — experiments and ablations
Figures 2 and 6 illustrate the graph task and its walk lengths; Figures 3–5 report evaluation curves, return conditioning, and a Key-to-Door diagnostic. The tables span different environments and baselines; keep the task and protocol with each score.
Lili Chen and coauthors · Official source
Linked: the paper's arXiv deposit license is not an image reuse grant.
Offline policy selection — Figure 2
A point is one candidate policy. Read the scatter twice: once for value accuracy, once for ranking candidates. Those are different tests of an evaluator.
Tom Le Paine and coauthors · Official source
Linked: no reusable Figure 2 license established.
Constrained DT — Figure 2
Follow reward and cost conditioning separately. Changing a cost condition is not equivalent to adding a shield that enforces a hard constraint.
Zuxin Liu and coauthors · Official source
Linked: code license does not establish figure reuse rights.
Octo — architecture and training mixture
The readout token feeds a separate action head. Look for causal masking across observation time and for the mixture chart below it; Octo's subset is not the whole OXE release.
Octo Model Team · Official source
Linked: the MIT repository license does not by itself clear the website's graphics.
Reward overoptimization — Figures 1 and 2
The gold scorer is a fixed reward model. Compare PPO and best-of-n against their distance axes; this is not the same experiment as our hand-built proxy/gold curve.
Leo Gao, John Schulman and Jacob Hilton · Official source
Linked: exact figure reuse basis not established.
RLAIF and direct RLAIF — Figures 2 and 4
Ask where the AI judge is called: before fitting the reward model in the canonical version, during policy optimization in the direct version.
Harrison Lee and coauthors · Official source
Linked: exact figure reuse basis not established.
Counterfactual ad placement — Figure 13
Look at the intervals as proposed reserves move beyond the randomized range, and locate the separate validation bucket. This is a system intervention, not an examination-propensity estimator.
Léon Bottou and coauthors · Official source
Linked: published figure is not rehosted.
How to read the badges
Measurements, settings, and illustrations
- Toy Reproducible small arithmetic with declared inputs; never a model score.
- CPU / file check Number recorded in a saved local run. A randomly initialized forward is not a trained policy.
- Config-derived A shape or choice read in the linked version. It does not imply inference ran.
- Paper An author result, setting, or explanation; not an independent training reproduction.
Research index · Seven-gap research report · Source clones and CPU checks · Media and provenance registry