Theorem 3 (as proved): singular values of aligned weights under InfoNCE
ProvedDimensionalCollapse.aligned_singular_value_evolutionLet follow the two-layer InfoNCE gradient flow at time , with differentiable singular value decompositions for near , as in Lemma 7. If and are aligned at time , that is , then for every
where is the -th column of and is the matrix of eq. (6) computed from the embeddings .
When is positive definite, each pair of singular values grows at a rate proportional to itself, so the smallest singular values grow much more slowly than the others; this is the implicit-regularization mechanism of dimensional collapse.
Formalization Note The paper writes the alignment as ""; alignment is defined in Section 5.3 as , i.e. , which is what the proof uses, so the hypothesis is . The paper's proof takes alignment as a limit (""); here alignment holds exactly at time and the identities are exact. is in the form of Appendix B.2.
import Mathlib import Definitions.Def_DimensionalCollapse_Basic open Matrix Filter Topology
namespace DimensionalCollapse
theorem aligned_singular_value_evolution {N d : ℕ} (x x' : Fin N → Fin d → ℝ)
(W1 W2 U1 V1 U2 V2 : ℝ → Matrix (Fin d) (Fin d) ℝ) (sig1 sig2 : ℝ → Fin d → ℝ) (t : ℝ)
(hflow : IsTwoLayerFlowAt x x' W1 W2 t)
(hsvd1 : IsDiffSVDAt W1 U1 V1 sig1 t) (hsvd2 : IsDiffSVDAt W2 U2 V2 sig2 t)
(halign : V2 t = U1 t) :
∀ k,
deriv (fun s => sig1 s k) t = sig1 t k * sig2 t k ^ 2 *
(∑ a, ∑ b, V1 t a k * Xmat x x' (W2 t * W1 t) a b * V1 t b k) ∧
deriv (fun s => sig2 s k) t = sig2 t k * sig1 t k ^ 2 *
(∑ a, ∑ b, V1 t a k * Xmat x x' (W2 t * W1 t) a b * V1 t b k) := by sorry
end DimensionalCollapseRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers (number of samples) and (dimension). The data are pairs of vectors , for . The theorem involves the following, all arbitrary:
- six matrix-valued functions of time ;
- two vector-valued functions , with components and ;
- a time .
Auxiliary notions. For a matrix , write and . Define
where is the Euclidean norm. Note that always. The InfoNCE loss is
The weights are for , and .
The matrix , with these computed from , is
For a function of a matrix, denotes the ordinary derivative at of , where is the matrix unit. By convention this value is if that derivative does not exist.
Hypotheses.
- (Gradient flow at time only.) For all indices , the entry is differentiable at , and its derivative there is
Likewise, is differentiable at with derivative
-
(Local differentiable SVD of .) For all in some neighbourhood of , the following hold:
- and are orthogonal matrices;
- every component ;
- .
In addition, every entry of and , and every component of , is differentiable at . No ordering or distinctness of the is required.
-
(Local differentiable SVD of .) The same conditions hold for with , , .
-
(Alignment at the single time .) .
Conclusion. Write for the -th column of , and . Then for every index , both of the following hold:
Here . The same quadratic form, built from the column of , appears in both equations; the second equation does not use a column of or . Both right-hand sides carry a plus sign.
Degenerate cases.
- If , the conclusion is vacuous.
- If , the loss is and , so the claim is that every and has derivative at .
- If , then and all sums over are empty, so .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.