Stochastic atoms #
A stochastic atom represents a deterministic number, such as a matrix entry, as the conditional mean of a bounded table over a random retained set. The table has few nonzero entries in each row on every draw. This is idea 6 in issue #474: the dense atoms of the OpenAI preprint [OpenAI2026LogSpace, Section 5.1–5.2].
The dense atom. Fix a row x of a nonnegative matrix G, a scale a > 0, and two retention
channels on one seed space κ: a rank channel Y, over whose retained set the row gate ranks
the row, and a usage channel Yt, which masks the table. In the preprint, Y and Yt retain at
rates a and t ≤ a. For a draw s, the row gate is R = ρ (rank_K {G x w / a : Y s w})
(Matrix.rowGate). The preparatory value is h (G x y / a) · R (Matrix.atomPrep), and its
conditional mean given Yt(y) is the normalizer q_y (Matrix.atomNormalizer). The atom is
1{Yt s y} · k (G x y / a) · R / c(q_y), with the clipped denominator c(q) = max (1/2) (min 1 q)
(Matrix.denseAtom) [OpenAI2026LogSpace, (5.10), (5.11)].
The identity [OpenAI2026LogSpace, Lemma 5.1]. Suppose h = 1 wherever k ≠ 0, the row has
mass at most M, ρ ∈ [0, 1] is one through η > 0, each vertex w ≠ y is retained by Y
on at most a c a fraction of the draws with Yt(y), and K ≥ 2 (1 + c M / η). Then the gate
is full on at least half of these draws (Matrix.card_filter_rowGate_lt_one_mul_le), so
q_y ≥ 1/2. The clipping does nothing, and the conditional mean of the atom is exactly
k (G x y / a) (Matrix.expect_denseAtom). The atom is bounded by 2 |k (G x y / a)|
(Matrix.abs_denseAtom_le). The preprint takes K larger, so that the gate fails with
probability at most 1/8 and q_y ≥ 7/8; the identity only needs q_y ≥ 1/2.
Row support [OpenAI2026LogSpace, Lemma 5.5, first part]. If k vanishes through e ≥ 0, ρ
vanishes from g ≤ e on, and Yt ⊆ Y, then on every draw the row has fewer than K nonzero
atom entries (Matrix.card_filter_denseAtom_ne_zero_lt). The same holds for the preparatory
values and any other m (G x y / a) · R (Matrix.card_filter_mul_rowGate_ne_zero_lt). This
holds for every real matrix, with no sign or accuracy hypothesis.
Bins [OpenAI2026LogSpace, (5.6), (5.7)]. For a switch χ, zero through 1/2 and one from
1, and decreasing scales b, the weights ω₀(w) = χ (w / b₀) and
ω_{k+1}(w) = χ (w / b_{k+1}) − χ (w / b_k) (Cslib.binWeight) telescope
(Cslib.sum_range_binWeight). So w = ∑_{k ≤ n} w ω_k(w) once w ≥ b_n
(Cslib.sum_range_mul_binWeight). The weight ω_{k+1} is supported in (b_{k+1}/2, b_k)
(Cslib.binWeight_succ_ne_zero). A dense entry is split into these bins before the atoms are
formed.
Main definitions #
Matrix.atomPrep,Matrix.atomNormalizer,Matrix.denseAtom: the dense atom.Cslib.binWeight: the bin weights.
Main results #
Finset.expect_mul_div_clip_eq,Cslib.abs_mul_div_clip_le: bias removal and magnitude bound for dividing by a clipped gate normalizer.Matrix.denseAtom_nonneg: nonnegativity from nonnegative cutoffs and gates.Matrix.expect_denseAtom,Matrix.expect_denseAtom_of_retentionChannels: the dense atom identity.Matrix.abs_denseAtom_le: the atom is bounded.Matrix.card_filter_mul_rowGate_ne_zero_lt,Matrix.card_filter_denseAtom_ne_zero_lt: row support.Cslib.sum_range_binWeight,Cslib.sum_range_mul_binWeight,Cslib.binWeight_nonneg,Cslib.binWeight_succ_ne_zero: the bins.
References #
- OpenAI, Exact Derandomization of Logarithmic Space: L = RL = BPL, Sections 5.1–5.2 (preprint, not peer reviewed)
The normalization principle [OpenAI2026LogSpace, Section 5.1]. Let a gate γ take values
in [0, 1] on a nonempty finite set S of draws, and be below one on at most half of them. Then
dividing by its clipped mean c(q) = max (1/2) (min 1 q) removes the gate's bias:
𝔼_S [m · γ / c(𝔼_S γ)] = m.
Row support [OpenAI2026LogSpace, Lemma 5.5]: if m vanishes through e ≥ 0 and the
gate function ρ vanishes from g ≤ e on, then fewer than K > 0 retained entries y ∈ T have
m (G x y / a) · rowGate x ≠ 0. Indeed K such entries would all exceed e, so the K-th
largest value would exceed g and close the gate.
The normalizer q_y of a dense atom: the conditional mean of the preparatory value given
that the usage channel retains y [OpenAI2026LogSpace, (5.10)].
The dense atom at (x, y) on the draw s:
1{Yt s y} · k (G x y / a) · rowGate x / c(q_y), with c(q) = max (1/2) (min 1 q)
[OpenAI2026LogSpace, (5.11)].
The dense atom is bounded: |B(x, y)| ≤ 2 |k (G x y / a)| on every draw, when
ρ ∈ [0, 1] [OpenAI2026LogSpace, Lemma 5.1].
Row support of the dense atom [OpenAI2026LogSpace, Lemmas 5.1 and 5.5]: if k vanishes
through e ≥ 0, ρ vanishes from g ≤ e on, and the usage channel retains only vertices that
the rank channel retains, then on every draw fewer than K > 0 atoms of a row are nonzero.
The dense atom identity [OpenAI2026LogSpace, Lemma 5.1]. Let h = 1 wherever k ≠ 0,
let row x of G ≥ 0 have mass at most M, let ρ ∈ [0, 1] be one through η > 0, and let
K ≥ 2 (1 + c M / η). Suppose the usage channel retains y on some draw, and every vertex
w ≠ y is retained by the rank channel on at most a c a fraction of those draws. Then the
conditional mean of the dense atom given Yt(y) is exactly k (G x y / a).
The dense atom identity for retention channels [OpenAI2026LogSpace, Lemma 5.1], when the
usage channel is the rank channel Y at the atom's scale f, as for corrections and detector
scores. With RetentionChannels at rate f > 0 and c_π > 0, the pair bound supplies the
retention hypothesis with c = C_pair.
Nonnegative cutoff and gate values give a nonnegative atom.
Bin support [OpenAI2026LogSpace, (5.8)]: if χ is zero through 1/2 and one from 1
on, then ω_{k+1}(w) ≠ 0 forces b_{k+1} / 2 < w < b_k, for decreasing positive scales.