Values
Compute each checkpoint’s critic prior, direct-branch backup, and refined value once per tree. Estimators and critic targets read these values.
RewardConfig
Section titled “RewardConfig”Define how outcome rewards, step rewards, discounting, and critic predictions are interpreted consistently throughout one collection batch.
This configuration uses undiscounted task returns and weights the critic prediction as one observation, the paper’s . beta_step scales step rewards against the outcome reward, and component_weights weights named reward components. Pass it to Collector(reward=...); search and preparation then read rewards the same way.
Definition
Fields
RewardConfig.train_reward
Section titled “RewardConfig.train_reward”Return the outcome reward plus beta_step times the step reward for one environment transition.
RewardConfig.shaping
Section titled “RewardConfig.shaping”Compute weighted reward components without advancing the task discount.
RewardConfig.configured_return
Section titled “RewardConfig.configured_return”Compute the discounted return over a sequence of turns, optionally beginning at start. Discounting advances once per environment transition. Compaction turns add any configured compaction penalty without adding a discount step.
NodeValues
Section titled “NodeValues”One checkpoint’s values: the critic prior , the number of direct branches , the direct-branch backup , and the refined value . Observed outcome counts live in the search’s evidence ledger.
Definition
Fields
TreeValues
Section titled “TreeValues”Values for every checkpoint of one tree, keyed by node id, with the tree and reward settings they were computed from.
Definition
Fields
TreeValues.getitem
Section titled “TreeValues.getitem”TreeValues.iter
Section titled “TreeValues.iter”TreeValues.len
Section titled “TreeValues.len”tree_values
Section titled “tree_values”Compute every checkpoint’s values once, deepest first: the direct-branch backup from its children’s returns, and the refined value that blends it with the critic prior.
root.backup is the root’s critic target and root.refined the value actor advantages are measured against. A checkpoint without a critic prediction has no refined value.
Definition