Beyond Eigenfunctions: Divergence Principal Functions for Representation Learning
Ray et al. in Scaling & theory
Why can one synthetic affinity yield different features?
Beyond Eigenfunctions: Divergence Principal Functions for Representation Learning
Eigenfunctions are optimal for one geometry
Under squared-error fitting, leading singular/eigenfunctions minimize rank-r error of an affinity in L2(p⊗p).
KL-, softmax- and classification-style objectives weight affinity errors differently, so their preferred low-rank factors need not match ordinary spectral factors.
Divergence principal functions (DPFs) make low-rank factors follow the chosen loss.
How a positive-pair relation becomes features
- 1
Compare pair distributions
Compare related-pair p+(x,x′) with independent p(x)p(x′); their positive-over-independent ratio defines target affinity K⋆.
- 2
Pick a coordinate
The target may be ratio K⋆, log score logK⋆, or another chosen affinity coordinate.
- 3
Factor under the loss
DPFs are rank-r inner-product factors minimizing the chosen pointwise discrepancy against that target.
Curvature changes which mistakes matter
Near an exact fit, a smooth loss becomes weighted squared error. Curvature at the target sets each pair's weight, so the same affinity can yield different low-rank factors.
- wd(A⋆)
- Curvature of the discrepancy at the target affinity
- B−A⋆
- Pairwise approximation error
One divergence, two very different geometries
For a smooth f-divergence, fitting ratio K locally weights squared errors by 1/K⋆, so lower-affinity pairs count more.
Fit score S=logK instead, and the same divergence weights score errors by K⋆, emphasizing positive-pair regions.
The coordinate carrying the rank constraint matters alongside the divergence.
One synthetic relation, different rank-one winners
On the n=200 anisotropic target, uLSIF's factor had absolute cosine 0.958 with broad u and 0.411 with localized v.
InfoNCE's exponential-score fit on the same relation instead favored localized v over broad u.
Different loss-and-coordinate choices can preserve different components at rank one.
NWJ exposes the role of parameterization
- 1
Hold the loss fixed
Keep the same NWJ objective, target kernel, and rank-one training setup fixed.
- 2
Exponentiate the score
With Kθ=exp(Sθ), rank is constrained on score Sθ; NWJ aligns with localized v (absolute cosine 0.996).
- 3
Switch only the map
Changing only the map to softplus shifts NWJ toward broad u (absolute cosine 0.954), changing its effective curvature.
When local weights barely vary, losses can agree

Panels compare recovered and reference Legendre modes; one of five embedding dimensions is unmatched. Four tabulated objectives have mean MSEs 0.017–0.038, with broadly similar, imperfect recovery across all six.
Where this geometry story stops
Local curvature
The curvature theorem is second-order and local; it does not guarantee global DPF optima or identical subspaces.
Training effects
Global objectives may be nonconvex; finite-sample or optimization effects can depart from the local prediction.
One-map PSD constraint
A one-map Euclidean dot product is positive semidefinite, but a general pairwise density ratio may be indefinite.
Scope and guarantees
Non-contrastive SSL is outside scope; IPM-style factorization needs separate treatment, with no statistical-efficiency or downstream-task guarantees.
Why it matters
- An affinity alone does not determine its best low-rank features; the discrepancy decides which pairwise errors matter.
- Before extracting features, identify the fitted coordinate and parameterization, then match the factorization to the loss's local geometry.
- Testing whether local predictions shape large-scale vision and language representations remains an open next step.
1 like 10 slides, 3 min
1 day ago