Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Finite-budget group-relative policy update

Definition

Fix a nonempty finite ordered prompt list (q1,…,qM) with no repeated prompt. For each prompt qℓ, take the finite truncated response set Yqℓ, ordered policy support Bqℓ, and policy family πθ(⋅∣qℓ) from the generation protocol, with open parameter domain U. Fix a reference probability mass function πref(⋅∣qℓ) that is positive on exactly Bqℓ, a finite reward function rqℓ:Bqℓ→R, an initial parameter θ0∈U, group size G≥2, a positive integer number T of outer iterations, a positive integer number K of inner steps per outer iteration, a clipping threshold ϵ∈(0,1), a penalty weight β≥0, and positive step sizes ηt,k for 1≤t≤T and 1≤k≤K. The prompt weights are uniform. Response draws, reward and policy-mass evaluations, scalar arithmetic, square roots, logarithms and comparisons are supplied terminating exact operations with finite per-call costs. Draws return supported responses with the specified independent law. Also supply an exact total domain oracle MU:Rd→{0,1}, returning 1 exactly on U, and an exact objective-gradient oracle: given the frozen outer-iteration data and a parameter in U, it returns the Euclidean gradient of Ft when that total derivative exists and returns undefined-gradient otherwise. Both oracles terminate on every call with finite per-call cost. The gradient oracle includes the fixed finite objective data and any policy evaluations needed for its decision. This is a supplied-oracle model; it asserts neither an algorithm for deciding differentiability of arbitrary functions nor a general membership algorithm for arbitrary open sets.

At outer iteration t, freeze θt−1 and, for each prompt qℓ, draw G independent responses Yℓ,1,…,Yℓ,G from πθt−1(⋅∣qℓ). Compute the finite rewards Rℓ,i:=rqℓ(Yℓ,i), their mean

R‾ℓ:=1G∑i=1GRℓ,i,

and their population standard deviation

sℓ:=1G∑i=1G(Rℓ,i−R‾ℓ)2.

Set Aℓ,i:=(Rℓ,i−R‾ℓ)/sℓ when sℓ>0, and set Aℓ,i=0 for every i when sℓ=0. Hold the responses, rewards, and advantages fixed through the K inner steps. For a candidate parameter θ∈U, use the sequence-level ratio

ρℓ,i(θ):=πθ(Yℓ,i∣qℓ)πθt−1(Yℓ,i∣qℓ).

The denominator is positive. Define clip⁡(x,1−ϵ,1+ϵ):=min⁡(1+ϵ,max⁡(1−ϵ,x)), and use the exact finite-distribution forward KL penalty

DKL(πθ(⋅∣qℓ)∥πref(⋅∣qℓ)):=∑j=1nqℓπθ(bqℓ,j∣qℓ)log⁡πθ(bqℓ,j∣qℓ)πref(bqℓ,j∣qℓ),

where (bq,1,…,bq,nq) is the ordered support from the generation protocol. The empirical objective is

Ft(θ):=1M∑ℓ=1M[1G∑i=1Gmin⁡{ρℓ,i(θ)Aℓ,i,clip⁡(ρℓ,i(θ),1−ϵ,1+ϵ)Aℓ,i}−βDKL(πθ(⋅∣qℓ)∥πref(⋅∣qℓ))].

For each outer iteration, set θ(0):=θt−1. For each inner step k, call the supplied objective-gradient oracle at θ(k−1). If it returns a gradient, form the proposed update

θ(k):=θ(k−1)+ηt,k∇Ft(θ(k−1))

and call MU at that proposal. If MU returns 1, apply it; the stipulated fixed positive support then holds on U. If the gradient oracle returns undefined-gradient, stop and return the last valid parameter with status undefined-gradient. If MU returns 0, stop and return the last valid parameter with status invalid-update. After K successful inner steps set θt:=θ(K) and continue to the next outer iteration. After T successful outer iterations return θT with status complete. This procedure asserts no monotone improvement, unbiasedness, or convergence guarantee.

Depends on

Used by

Dependency tree · two levels

24 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources