Theorem 1: weight decay promotes balancing of the predictor and online networks
ProvedSSLWithoutPairs.weight_decay_balancingLet , , and let be positive semidefinite matrices. Let and , , solve
where is an arbitrary target trajectory (no dynamics for is assumed). Then, with the symmetric matrix , for all
With weight decay, the memory of the initialization decays, so the online network and the predictor become balanced.
Formalization Note The paper says only that depends on the initialization. The statement gives its value, which is forced by setting .
import Mathlib import Definitions.Def_SSLWithoutPairs_Basic open MeasureTheory ProbabilityTheory Filter Topology Matrix
namespace SSLWithoutPairs
theorem weight_decay_balancing {n₁ n₂ : ℕ} (αp η : ℝ) (hαp : 0 < αp) (hη : 0 ≤ η)
(X X' : Matrix (Fin n₁) (Fin n₁) ℝ) (hX : X.PosSemidef) (hX' : X'.PosSemidef)
(Wp : ℝ → Matrix (Fin n₂) (Fin n₂) ℝ) (W Wa : ℝ → Matrix (Fin n₂) (Fin n₁) ℝ)
(hWp : HasMatDerivOn Wp (fun t => byolFlowWp αp η X X' (Wp t) (W t) (Wa t)))
(hW : HasMatDerivOn W (fun t => byolFlowW η X X' (Wp t) (W t) (Wa t))) :
let C : Matrix (Fin n₂) (Fin n₂) ℝ := W 0 * (W 0)ᵀ - αp⁻¹ • ((Wp 0)ᵀ * Wp 0)
Cᵀ = C ∧ ∀ t : ℝ, 0 ≤ t →
W t * (W t)ᵀ = αp⁻¹ • ((Wp t)ᵀ * Wp t) + Real.exp (-2 * η * t) • C := by sorry
end SSLWithoutPairsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers . Either may be , in which case the matrices involved are empty and every matrix identity below holds trivially. Fix real numbers and with
( is allowed.) Let be real matrices that are both positive semidefinite, meaning symmetric with and for all . Let
be arbitrary matrix-valued functions of time.
- No regularity, continuity, or relation to or is assumed for ; it enters only through the two flow equations below.
- Values of any of these functions at play no role.
Hypotheses (flow equations). For every and every entry, the entry of has a derivative at within (one-sided from the right at ) equal to the corresponding entry of
Likewise, for every , each entry of has a derivative within at equal to the corresponding entry of
The second equation carries no factor .
Conclusion. Define the matrix
The theorem asserts two things:
- is symmetric: .
- For every real ,
When , the second statement says that equals its value at time for all . The conclusion makes no reference to , , or beyond their role in the hypotheses.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.