The KL bound
How jointly minimizing the reconstruction loss and the Gram-matrix alignment loss bounds the KL divergence of a downstream linear classifier.
Let be the patch-token activations at layer and their Semi-NMF6Convex and Semi-Nonnegative Matrix Factorizations
Chris H.Q. Ding, Tao Li, Michael I. Jordan
IEEE TPAMI, 2010 reconstruction, with Gram matrices and . The two error terms controlled by the objective are
How the proof goes
- Reconstruction controls the Gram matrix only indirectly. A lemma gives , a bound that grows with the activation scale .
- Attention logits. Splitting the query-key product as shows the Gram error controls the identity part of the logit deviation directly, and reconstruction controls the rest.
- One block. Softmax is 1-Lipschitz, and LayerNorm and the FFN are Lipschitz, so each block amplifies the error by at most .
- All suffix blocks. Composing over the blocks bounds the CLS-token deviation by .
- To KL. The KL divergence between softmax outputs is a Bregman divergence of the log-partition function, whose Hessian has spectral norm at most 1, so for logits .
What it means
The two losses play complementary roles. constrains the attention-logit deviation directly and independently of scale, which reconstruction does only through . supplies pointwise fidelity, which the Gram loss cannot constrain because it is invariant to orthogonal transformations of . Neither needs a forward or backward pass through or .
The bound is worst-case and compounds across suffix blocks, so its numerical value is loose. It tightens as approaches the last layer. It identifies the two quantities whose joint minimization is sufficient to control predictive consistency. The agreement with classifier-supervised concepts is measured on the results page.
References
- [6]Chris H.Q. Ding, Tao Li, Michael I. Jordan. Convex and Semi-Nonnegative Matrix Factorizations. IEEE TPAMI, 2010.