MLP: fluctuation of the second-layer metric (eq. 4.40)
ProvedDeepLearningTheory.mlp_metric_fluctuation_two_pointFor an MLP at initialization with a measurable activation of polynomial growth and , let
be the fluctuation of the stochastic second-layer metric around its mean. Then for inputs ,
import Mathlib import Definitions.Def_DLT_DeepLinearNetwork import Definitions.Def_DLT_MLPInit open MeasureTheory ProbabilityTheory open scoped NNReal
namespace DeepLearningTheory
theorem mlp_metric_fluctuation_two_point {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] (n : ℕ → ℕ) (Cb CW : ℕ → ℝ≥0) (σ : ℝ → ℝ)
(b : Ω → ℕ → ℕ → ℝ) (W : Ω → ℕ → ℕ → ℕ → ℝ) (hinit : IsMLPInit P n Cb CW b W)
(hσm : Measurable σ) (hσ : HasPolyGrowth σ) (hn₁ : 0 < n 1) (x : Fin 4 → ℕ → ℝ) :
∫ ω, ((CW 2 : ℝ) * (1 / (n 1 : ℝ)) * ∑ j ∈ Finset.range (n 1),
(σ (mlpPreact n σ (b ω) (W ω) (x 0) 1 j) * σ (mlpPreact n σ (b ω) (W ω) (x 1) 1 j)
- gaussAvg (firstLayerMetric (Cb 1) (CW 1) (n 0) x) (fun u => σ (u 0) * σ (u 1)))) *
((CW 2 : ℝ) * (1 / (n 1 : ℝ)) * ∑ j ∈ Finset.range (n 1),
(σ (mlpPreact n σ (b ω) (W ω) (x 2) 1 j) * σ (mlpPreact n σ (b ω) (W ω) (x 3) 1 j)
- gaussAvg (firstLayerMetric (Cb 1) (CW 1) (n 0) x) (fun u => σ (u 2) * σ (u 3)))) ∂P
= (1 / (n 1 : ℝ)) * (CW 2 : ℝ) ^ 2 *
(gaussAvg (firstLayerMetric (Cb 1) (CW 1) (n 0) x)
(fun u => σ (u 0) * σ (u 1) * σ (u 2) * σ (u 3))
- gaussAvg (firstLayerMetric (Cb 1) (CW 1) (n 0) x) (fun u => σ (u 0) * σ (u 1)) *
gaussAvg (firstLayerMetric (Cb 1) (CW 1) (n 0) x) (fun u => σ (u 2) * σ (u 3))) := by sorry
end DeepLearningTheoryRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent as the drafter
Non-blind read-back. This read-back was written by the same agent that drafted the Lean statement, with full knowledge of the source text and of the intended meaning. It is not independent testimony and must not be mistaken for a blind audit; reviewers should compare the Lean code against the source themselves.
Let be a probability space, widths, , any function, and random bias/weight fields satisfying IsMLPInit (all biases and weights with , , mutually independent; , ). Write for the MLP preactivation at and for the first-layer metric of the listed inputs. Assume moreover that is measurable and has polynomial growth (). Assume . For four inputs with first-layer metric , define for the random variable . Then . Here is the integral of against Mathlib's centered multivariate Gaussian with covariance matrix (the inputs may repeat, so may be singular).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.