Theorem D.7: error propagation from pre-training to the downstream task
OpenSpectralContrastive.error_propagationThere is a universal constant with the following property. Consider the finite data model with and labels in , let , and suppose Assumption 3.6 holds for some . Let be the -th largest eigenvalue of and assume that the eigengap and are positive. Let minimize over all functions. Then for every and every with there is a linear head with
and, if , with . In particular obeys the same bound.
The downstream error therefore grows at most linearly in the excess pretraining loss .
Formalization Note The paper's is a universal constant quantified before all data. The paper states the theorem for ; the class plays no role in the bound, so the statement is for every . The hypotheses and exclude division by zero, and makes an eigenvalue. The norm clause is conditional on , where its right side is defined.
import Mathlib import Definitions.Def_SpectralContrastive_Basic open Matrix
namespace SpectralContrastive
theorem error_propagation :
∃ C : ℝ, ∀ (Xbar X : Type) [Fintype Xbar] [Fintype X] [DecidableEq X] (r k : ℕ)
(P : Xbar → ℝ) (A : Xbar → X → ℝ), IsAugModel P A → 4 * r + 2 ≤ k →
k ≤ Fintype.card X →
∀ (y : Xbar → Fin r) (α : ℝ), 0 < α → (∃ g : X → Fin r, labelDisagree P A y g ≤ α) →
0 < sparsestPartition (augWeight P A) (k / 2) →
0 < adjEig (augWeight P A) (3 * k / 4) - adjEig (augWeight P A) k →
∀ fstar : X → Fin k → ℝ, (∀ f' : X → Fin k → ℝ, scLoss P A fstar ≤ scLoss P A f') →
∀ (ε : ℝ), 0 < ε → ∀ fhat : X → Fin k → ℝ, scLoss P A fhat < scLoss P A fstar + ε →
∃ B : Matrix (Fin k) (Fin r) ℝ,
(lapEig (augWeight P A) k < 1 →
frobNorm B ≤ 2 * (k + 1) / (1 - lapEig (augWeight P A) k)) ∧
probeError P A y fhat B ≤
C * (α / sparsestPartition (augWeight P A) (k / 2) ^ 2 * Real.log k +
k * ε / (adjEig (augWeight P A) (3 * k / 4) - adjEig (augWeight P A) k) ^ 2) := by sorry
end SpectralContrastiveRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Read-back. The statement asserts that there is a single real constant , chosen once before everything else, such that the following holds. is not required to be positive, and it does not depend on any of the data below.
Data and standing hypotheses. Let ("natural data") and ("augmented data") be arbitrary finite types, with having decidable equality. Let . Let and , written . These must form an augmentation model:
- for all , and ;
- for all , and for every ;
- every has some with and .
In particular is nonempty. The integers must also satisfy
This forces , and is nonempty.
The augmentation graph. From the model, define the edge weights
The degrees are . The normalized adjacency matrix has entries
with the convention that division by gives . The normalized Laplacian is .
Eigenvalues.
- is the -th entry, counting from , of the list of real roots of the characteristic polynomial of . The roots are counted with multiplicity and sorted in decreasing order.
- is the -th entry of the real roots of the characteristic polynomial of , counted with multiplicity and sorted in increasing order.
- In both cases the value is if the list has fewer than entries.
Conductance and sparsest partition. For a set , the conductance is
which is if the denominator is . For , is the infimum, over all partitions of into nonempty labelled blocks , of . The partitions are encoded as surjections . The value is if no such partition exists.
Spectral contrastive loss. For ,
Universally quantified hypotheses. For every labelling , which can only exist if , and every real , assume all of the following:
- There exists some with
- .
- .
- is a global minimizer of , i.e. for all . The statement assumes such an is given; it does not assert that one exists, and if none exists the conclusion is vacuous for that model.
- is real, and satisfies the strict inequality .
Conclusion. Under these hypotheses there exists a matrix satisfying both of the following. may depend on all the data above.
(a) If , then
If , nothing is asserted about .
(b) The following inequality holds, where is the natural logarithm:
Here is the supremum, over all pairs described below, of . The value is if there are no such pairs. The pairs are:
- such that, for every , maximizes ;
- such that, for every , maximizes the vote .
So is the worst case over all ways of breaking ties.
The label enters the conclusion only through . The bound in (b) involves but not the particular from hypothesis 1. The minimizer enters only through hypothesis 5.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.