Lemma 3: the weights of the two-layer model evolve by ,
ProvedDimensionalCollapse.two_layer_weight_flowLet be inputs in , and let be the weights of the two-layer linear model . If at time the weights follow the gradient flow of the InfoNCE loss,
then
where is evaluated at the embeddings , .
Together with eq. (9), , this gives the dynamics studied in Section 5.
Formalization Note Derivatives in time are entrywise, and the hypothesis is required only at the time .
import Mathlib import Definitions.Def_DimensionalCollapse_Basic open Matrix Filter Topology
namespace DimensionalCollapse
theorem two_layer_weight_flow {N d : ℕ} (x x' : Fin N → Fin d → ℝ)
(W1 W2 : ℝ → Matrix (Fin d) (Fin d) ℝ) (t : ℝ) (hflow : IsTwoLayerFlowAt x x' W1 W2 t) :
(∀ a b, HasDerivAt (fun s => W1 s a b) (-((W2 t)ᵀ * Gmat x x' (W2 t * W1 t)) a b) t) ∧
(∀ a b, HasDerivAt (fun s => W2 s a b) (-(Gmat x x' (W2 t * W1 t) * (W1 t)ᵀ) a b) t) := by sorry
end DimensionalCollapseRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers (the number of sample pairs) and (the dimension). and are allowed. The theorem takes as data:
- two families of vectors and , with no assumptions on them;
- two arbitrary matrix-valued functions of time , with no regularity assumed except what the hypothesis below gives;
- a single time .
Loss. For embeddings , write . Define
The negatives here are only the , never the . The loss is
For the two-layer model, denotes evaluated at the embeddings and . When , the loss is .
Partial derivatives. Every partial derivative below is defined as the ordinary derivative at of the one-variable function obtained by perturbing a single coordinate or matrix entry by . By convention this value is taken to be if that one-variable function is not differentiable at .
- is the vector of partial derivatives of with respect to the coordinates of , holding everything else fixed.
- is the same with respect to .
- For a matrix , the matrix is
with the gradients evaluated at and .
Hypothesis (flow at the single time ). For every entry , the scalar function is differentiable at , with
Likewise, is differentiable at , with
In each case the other weight matrix is frozen at its value at time . Nothing is assumed at any time other than .
Conclusion. Let . Then for every entry , the function has derivative at equal to . Also, has derivative at equal to . That is,
Both statements concern only the instant .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.