Lemma A.2: the empirical JEPA risk is unbiased
ProvedJEPAGeneralization.empirical_jepa_risk_unbiasedLet be an action-conditioned co-occurrence model on a finite observation space with positive marginals. Fix an encoder , a predictor , an action and . Let be i.i.d. from , and let
Then is an unbiased estimator of the population spectral loss:
with , and an independent .
Formalization Note In Definition A.1 the first term reads with unbound, and it is read as . The lemma's is not defined in the paper. It is taken to be the spectral loss, the form of the risk used in the proof of Theorem 4.4. This equals , and for normalized it equals . The pairs , , are ordered.
import Mathlib import Definitions.Def_JEPAGeneralization_Basic open Finset
namespace JEPAGeneralization
theorem empirical_jepa_risk_unbiased {X A : Type*} [Fintype X] {k : ℕ}
(pX : X → ℝ) (w : X → X → A → ℝ) (hw : IsCoOccurrence pX w)
(f : X → Fin k → ℝ) (g : (Fin k → ℝ) → A → Fin k → ℝ) (a : A) (n : ℕ) (hn : 2 ≤ n) :
∑ D : Fin n → X, datasetProb pX D * empRiskN pX w f g a D = spectralLoss pX w f g a := by sorry
end JEPAGeneralizationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite set of observations and an arbitrary set of actions. No finiteness or other structure is assumed on , though it is nonempty because an action is supplied. Let be a natural number; latent vectors live in . For , write for the Euclidean inner product. When this is the empty sum .
Data and hypotheses. The theorem takes:
- a function ;
- a function , written ;
- an arbitrary encoder ;
- an arbitrary predictor ;
- a fixed action ;
- a natural number with .
No normalization, boundedness or other condition is placed on or .
The pair is assumed to be a "co-occurrence model", meaning all of the following hold:
- for all and .
- , which forces to be nonempty.
- for every .
- for every and every .
- The second marginal is strictly positive for every and .
These conditions are imposed for every action , not only for . Write the transition probability as
which is well defined because . Also abbreviate .
Empirical risk. For a dataset , define
The terms with are set to . Because , the factor is nonzero.
Dataset weight and target quantity. Each dataset receives weight . The target quantity is
Conclusion. Under the above hypotheses, the sum over all datasets satisfies the exact equality
In words, the expectation of under an i.i.d. sample of size from equals .
Edge cases. The hypotheses cannot hold if is empty. If , every inner product is , so both sides equal . The case is excluded by hypothesis. The conclusion involves only at the single action , while the hypotheses constrain at all actions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.