Jump to text
On this page
Copy and source
Published source confirmed at last check

Source changed 2026-11-23 00:01:58 UTC · snapshot created 2026-11-23 00:02:28 UTC · last check 2026-11-23 06:20:10 UTC

Engineering.Reference:26.4.3.2 - Construct the two learning comparisons

Let R_ij be execution j’s reward under strategy i, and B_i its chosen strategy statistic. Standardize the N values B to obtain strategy advantages A_strategy_i. Separately standardize the M rewards within each strategy to obtain A_action_ij. This application uses population standard deviations and zero advantages when dispersion is at most 1e-12. A group with no variation supplies no relative preference; obtain discriminating experience when that missing preference matters.

For each recorded decision, divide its current probability by its fixed old probability, conditional on the same history. The strategy history contains the initial task. An execution history also contains its fixed strategy and any observations already received. Future outcomes enter the learning signal after execution, not the earlier decision input. Use the observation mask and historical conditioning of 26.4.1.

The finite construction below has one generated strategy position and one action position. Its complete surrogate is:

f(r, A) = min(r*A, clip(r, 0.8, 1.2)*A)
J = mean_over_N_strategies[f(strategy_ratio, A_strategy)]
  + mean_over_N_strategies[
      mean_over_M_executions[f(action_ratio, A_action)]
    ]

Maximize J, keeping the two groupings intact. Their coefficients are both 1 here, with no reference-policy penalty. For a token implementation of this application, replace each strategy term by the mean of f over that strategy’s generated tokens, and each execution term by the mean over all its generated action tokens. External observations condition later tokens and contribute no optimized position. This reduction gives each strategy and each of its completed executions the stated weight. The source trainer’s per-step, token-sum reduction is a different choice when lengths vary; use the weighting of the implementation you select for the comparison.