Estimation
Assign actor advantages to collected trajectory segments. Implement Estimator.advantages(edges, values) or use DirectBranchTd or Grpo. Training-data preparation calls the estimator and computes critic targets separately.
Estimator
Section titled “Estimator”An actor recipe: assign a coefficient to every searched edge of a settled tree. Implement advantages(); the tree’s values are computed once and passed in.
This recipe uses each edge’s immediate reward as its coefficient. Return a float per edge, or an Advantage to attach diagnostics. Critic targets do not depend on the recipe.
Definition
Fields
Estimator.advantages
Section titled “Estimator.advantages”Required implementation.
Return one coefficient per edge, in order. values holds each checkpoint’s prior, backup, and refined value.
DirectBranchTd
Section titled “DirectBranchTd”Compute the paper’s segment TD advantages from refined state values. Preparation supplies the shared values; this recipe assigns an actor weight to each searched edge.
With direct continuations, , where is RewardConfig.value_prior_strength. An edge of steps with reward gets advantage . With , a prediction of 0.8 and two continuations returning 0 and 1 give a critic target of 0.5 and a refined value of 0.6. This is the collector’s default recipe. Critic targets are computed separately from the same tree values, so changing the actor recipe leaves those targets unchanged.
Definition
DirectBranchTd.advantages
Section titled “DirectBranchTd.advantages”Return the segment TD advantage of each edge from the tree’s refined values. Requires a critic prediction at every parent checkpoint.
Group-relative advantages: each edge’s mean finished return, centered and scaled within the prompt’s tree. Needs no critic prediction.
Use it as a baseline recipe on the same searched tree. Critic targets are still the direct-branch backups, so the critic trains the same way under either recipe.
Definition
Grpo.advantages
Section titled “Grpo.advantages”Return each edge’s normalized mean finished return.
Advantage
Section titled “Advantage”An actor coefficient with optional diagnostics. Diagnostics appear in exported records and Batch.describe() but never enter the loss.
Definition
Fields
One searched continuation, from a parent checkpoint to a child, with its weighted reward and its length in steps.
Definition
Fields