betaFeedback

WorksComputer Science

Curvature Mismatch and Local Errors in Galaxy Property Estimation

Abstract

Linear probes are widely used to evaluate learned representations and infer physical quantities from unlabelled data. The probe's predictions are from an affine function in ambient space restricted to the underlying representation, and consequently, even a representation that has complete information needed to predict a target can produce systematic probe errors when that information is encoded in a form inaccessible to the linear probe. Here we share that some of this probing error is due to the innate geometry of the manifold. Linear probes, when evaluated on a curved manifold, generally have a nonzero intrinsic Hessian (what we colloquially call "probe-facing curvature") given by ⟨wN,II⟩\langle w_N,\mathrm{II}\rangle, the manifold's second fundamental form dotted with the probe's normal component. We fit linear probes to galaxy embeddings from five pretrained encoders and intervene on this curvature term to evaluate its contribution to the probe performance. We find that keeping this inherited curvature improves the local fit where it matches the label's curvature. Removing the curvature component of the probe where it does not match the label curvature also provides improvements, and correcting it in every neighbourhood raises held-out local R2R^2 by 0.006 to 0.010 on galaxies, gaining more where the two curvatures disagree. We isolated these gains to be from the underlying geometry and not an automatic guarantee from least squares training.

Introduction

Linear probes evaluate learned representations by measuring how accurately targets can be recovered from frozen embeddings [1]. Local reliability matters in physical science, where probes infer quantities without direct measurements. For galaxy images, linear probes predict catalogue quantities such as magnitude, redshift and stellar mass [2], but aggregate scores alone do not characterize local prediction errors or explain their geometric origin [3]. We show that the inherited curvature from the evaluated representation can impact the performance of the linear probe and captures a local source of prediction error.

We contribute (i) an implementation and synthetic validation of decoder-based second-fundamental-form estimation for local probe analysis; (ii) the application of probe-facing curvature $\operatorname{Hess}_{\mathcal{M}}(w \cdot x) = ⟨wN,II⟩\langle w_N,\mathrm{II}\rangle to a fitted probe, with a residual expansion identifying its second-order approximation error; (iii) evidence from 86,471 galaxies and five encoders that embedding curvature can positively impact the probe performance in “lucky” geometry-alignment scenarios and hinder it when misalignment occurs; and (iv) a bend correction that lets the probe’s weight follow the manifold’s bending in each neighbourhood, raising held-out local R2R^2 more where that bending is misaligned with the label. Code, records and notebooks are at https://github.com/alutterb/galaxy-curvature.

Pointwise curvature from a decoder

Data. 86,471 galaxies from the AstroPT galaxy set [2] with catalogue labels (rr-band magnitude, photometric redshift, smooth fraction, stellar mass), embedded by a supervised ImageNet-21k ViT-B/16 (“ViT-B” below) and by four further encoders (Appendix § 8); embeddings from the Platonic Universe release [4]. We unit-normalize embeddings (data on SD−1S^{D-1}; D=768D = 768 for ViT-B).

Instrument. Let F:Rd→RDF : \mathbb{R}^{d} \to\mathbb{R}^{D} be the decoder of a plain auto-encoder (three hidden layers of width 250, SiLU), fit on 80% of rows; we evaluate curvature on held-out rows. We compute J=DF(z)J = DF(z), metric g=J⊤Jg = J^{\top}J, normal projector PN=I−Jg−1J⊤P_N = I - Jg^{-1}J^{\top} and second fundamental form II=PND2F(z)\mathrm{II} = P_N D^2F(z), all by automatic differentiation [cf. 5, 6] at points where DFDF has full column rank dd. We differentiate the projected decoder F/∥F∥F/\lVert F\rVert, whose image lies on the unit sphere, so that II\mathrm{II} splits exactly into the sphere’s universal radial part and an in-sphere shape part (Eq. (2)).

Validation. On a synthetic in-sphere surface at D=768D = 768 with closed-form II\mathrm{II} (Appendix § 8), the decoder’s estimate matches the true in-sphere trace HSH^S of II\mathrm{II} in direction (cosine 0.999), magnitude (ratio 1.00) and rank across points (0.94); the full tensor KSK_S has median cosine 0.96 (Appendix § 8).

Setup and notation

We assume the manifold hypothesis [7], that the embeddings lie near a smooth low-dimensional manifold.

Notation. Symbols used in the rest of the paper:

  • Manifold. M⊂SD−1⊂RDM \subset S^{D-1} \subset\mathbb{R}^{D} is a smooth dd-dimensional manifold (d<Dd < D) with anchor x0x_0, orthonormal tangent frame JJ and normal coordinates uu (the chart), so x(u)=x0+Ju+12II(u,u)+O(∥u∥3)x(u) = x_0 + Ju + \frac{1}{2}\mathrm{II}(u,u) + O(\lVert u\rVert^3) [8], where II\mathrm{II} is the normal-valued second fundamental form. On the sphere II=IIS−gx\mathrm{II} = \mathrm{II}^{S} - gx, with in-sphere shape part IIS⊥x\mathrm{II}^{S} \perp x and trace HSH^S. Numerically J=DFJ = DF, g=J⊤Jg = J^{\top}J (g=Ig = I in the orthonormal frame) and u=g−1J⊤(x−x0)u = g^{-1}J^{\top}(x - x_0).

  • Probe. y^=b+wb\hat y = b + wb with ridge penalty α\alpha (α=100\alpha= 100 pre-regularized; tuned); w=wT+wNw = w_T + w_N (tangent, normal) and wN=wS+wradw_N = w_S + w_{\mathrm{rad}}, with wS⊥xw_S \perp x and wrad=(w⋅x)xw_{\mathrm{rad}} = (w \cdot x)x.

  • Curvatures. H=HessyH = H_{\mathrm{ess}}y for a smooth target yy; K=Hessy^=⟨wN,II⟩K = H_{\mathrm{ess}}\hat y = \langle w_N,\mathrm{II}\rangle, the probe’s curvature (Eq. (1)), which splits as K=KS+KsphK = K_S + K_{\mathrm{sph}} (Eq. (2)) into the shape term KS=⟨wS,IIS⟩K_S = \langle w_S,\mathrm{II}^{S}\rangle, set by how MM bends inside the sphere, and the sphere term Ksph=−(y^−b0)gK_{\mathrm{sph}} = -(\hat y - b_0)g, which every probe on the sphere carries and which depends only on the prediction; the mismatch Δ=H−K\Delta= H - K; R=H−KsphR = H - K_{\mathrm{sph}}, the part of HH left for KSK_S to reproduce: with KsphK_{\mathrm{sph}} fixed, Δ=R−KS\Delta= R - K_S; and the gain Γ=2⟨H,K⟩g−∥K∥g2=∥H∥g2−∥Δ∥g2\Gamma= 2\langle H,K\rangle_g - \lVert K\rVert_g^2 = \lVert H\rVert_g^2 - \lVert\Delta\rVert_g^2, positive when the probe’s bending lowers the curvature part of local error.

  • Inner product. ⟨A,B⟩g=giagjbAijBab\langle A,B\rangle_g = g^{ia}g^{jb}A_{ij}B_{ab} and ∥A∥g2=⟨A,A⟩g\lVert A\rVert_g^2 = \langle A,A\rangle_g for symmetric 2-tensors, the metric’s version of the Frobenius inner product.

  • Patch and intervention. On a patch u∼N(0,s2Id)u \sim\mathcal{N}(0,s^2I_d), cˉ\bar c is the mean of y−y^y-\hat y and δ=(dy−dy^)J\delta= (dy-d\hat y)J the slope mismatch. y^t=(wT+wrad)⋅x+t2KS(u,u)+c\hat y_t = (w_T+w_{\mathrm{rad}})\cdot x + \frac{t}{2}K_S(u,u) + c scales KSK_S by tt and refits cc; over the neighbours, qcq_c is the centred 12KS(ui,ui)\frac{1}{2}K_S(u_i,u_i), r0r_0 the centred residual at t=0t=0, and t∗=⟨r0,qc⟩/∥qc∥2t^* = \langle r_0,q_c\rangle/\lVert q_c\rVert^2.

Linear probe on a curved manifold

With this setup, we know three things. First, although the probe is affine in the ambient space, its restriction to MM is generally nonlinear in intrinsic coordinates:

(dy^)J=JTw,HessMy^=⟨wN,II⟩=:K.(1)(d\hat{y})_J = J^{\mathsf{T}}w,\qquad\mathrm{Hess}_M\hat{y} = \langle w_N,\mathrm{II}\rangle=: K. \tag*{(1)}

where KK is the probe-facing curvature, a classical identity [9, 10]. Second, on the unit sphere it splits into an in-sphere shape term and a radial term:

K=KS+Ksph,KS=⟨wS,IIS⟩,Ksph=−(y^−b0)g.(2)K = K_S + K_{\mathrm{sph}},\qquad K_S = \langle w_S,\mathrm{II}^S\rangle,\qquad K_{\mathrm{sph}} = -(\hat{y}-b_0)g. \tag*{(2)}

Thus, the probe inherits intrinsic curvature from the geometry of the representation.

Third, on a patch of scale ss, for sufficiently smooth embedding and target functions with controlled higher derivatives (Appendix § 8),

Epatch[(y−y^)2]=cˉ 2+s2∥δ∥g2+12s4∥Δ∥g2+O(s4∥δ∥)+O(s6).(3)\mathbb{E}_{\mathrm{patch}}\left[(y-\hat{y})^2\right] = \bar{c}^{\,2} + s^2\|\delta\|_g^2 + \frac{1}{2}s^4\|\Delta\|_g^2 + O(s^4\|\delta\|) + O(s^6). \tag*{(3)}

The Hessian mismatch therefore determines the quadratic residual’s contribution to centred local error under this model. Relative to the zero-Hessian baseline K=0K=0, the probe reduces the quadratic contribution to local error if and only if Γ>0\Gamma>0. Hence KK must bend toward the target’s curvature, that is, lie closer to HH than K=0K=0 does. With KsphK_{\mathrm{sph}} fixed, the corresponding condition for KSK_S is 2⟨R,KS⟩g>∥KS∥g22\langle R,K_S\rangle_g>\|K_S\|_g^2. § 5 tests this relationship. Since the quadratic contribution scales as s4s^4, our empirical analysis controls for variation in local neighbourhood scale.

We study the curvature term 12s4∥Δ∥g2\frac{1}{2}s^4\|\Delta\|_g^2 because it is the only one that sees the full tensor KK: δ\delta is a first-derivative mismatch, and the bending reaches cˉ\bar{c} only through the trace of Δ\Delta.

Experiments

We fit a five-fold out-of-fold ridge probe [1] at the pre-registered α=100\alpha=100 from embedding to label, score local R2R^2 inside each of 512 anchors’ 2,048-neighbourhoods, and compute each curvature quantity’s rank-partial Spearman against local R2R^2 with Freedman–Lane pp-values [11], controlling for log patch radius, local label variance and count and, stronger, log radius at five scales. We also report the tuned α∗\alpha^* (Appendix § 8). We use percentage ranges (x%–y%) to indicate the smallest and largest values observed across pairings of encoders and labels.

Probe curvature mismatch with label curvature. Across anchors a larger mismatch ∥Δ∥g\|\Delta\|_g goes with lower local R2R^2 for magnitude and redshift, but most of this is noise in the estimate of HH; once it is removed only redshift keeps the association, and only at $\alpha=100 (Appendix B).

Keeping, removing or correcting the probe’s bending. We then ask what the probe’s bending does for its local fit. Holding the manifold and (wT+wrad)⋅x(w_T + w_{\mathrm{rad}}) \cdot x fixed, we score each anchor’s 2,048 neighbours with y^t\hat{y}_t (§ 3). So t=1t = 1 keeps the KSK_S the probe inherits from the manifold and t=0t = 0 removes it.

Because cc is refit, the local error is a parabola in tt: SSE⁡(t)=∥r0−tqc∥2\operatorname{SSE}(t) = \lVert r_0 - t q_c \rVert^2, minimised at t∗t^*, and t=0t = 0 beats t=1t = 1 (i.e. an intervention) exactly when 2⟨r0,qc⟩≤∥qc∥22\langle r_0, q_c\rangle\le\lVert q_c\rVert^2. Across encoders and labels, t=1t = 1 beats t=0t = 0 at 79–99% of anchors; with the tuned probe, that range increases to 93–100%.

We then ask if an intervention on curvature improves where misalignment occurs between the manifold and the label curvature. Since we cannot directly compare II and HH, we compare KSK_S with R=H−KsphR = H - K_{\mathrm{sph}} to remove the sphere part and then calculate the cosine similarity between KSK_S and RR. At the tuned α∗\alpha^*, an intervention t=0t = 0 improves over t=1t = 1 more often when there is misalignment compared to alignment. Among the top fifth misaligned regions of the manifold, intervention improves probe error on average 5.81% of the time compared to 2.03% of the time in the top fifth aligned areas. (See Appendix § 10 for full range of values).

The tuned probe can still gain from a weight that changes from one neighbourhood to the next. In each neighbourhood we fit a bend correction on half of the neighbours, a small ridge fit that moves the tuned probe’s weight along the decoder’s 136 bending directions (from IIS\mathrm{II}^S; Appendix § 11) with the slope held fixed, and score it on the other half. Held-out local R2R^2 rises by 0.0059 to 0.0095 on ViT-B. Under half of that gain is curvature, and that part is larger where the probe’s bend is less aligned with the label’s curvature (rank-partial Spearman −0.17 to −0.28 for three of four labels).

To separate the geometry from least squares (Figure 1), we keep the fitted weight wSw_S and change only the bending it reads, rescaled to the same amplitude ∥qc∥\lVert q_c\rVert. With the fit identical, least squares has no reason to prefer one bending over another. First, we take IIS\mathrm{II}^S from a distant anchor whose neighbourhood shares no galaxy with this one: the anchor’s own bending beats it at 82–99% of anchors. Second, we keep the anchor’s own form but rotate its tangent directions, so the sheet bends by the same amounts along the wrong directions: it then helps at 17–34% of anchors (3–9% at α∗\alpha^*), no more often than a random normal direction. So the gain depends on how the manifold bends at the anchor and along which directions, not only on the fitted weight.

Figure 1. The curvature the decoder measures at each galaxy is the curvature the fitted probe uses. With the probe’s weight fixed, we score each anchor’s 2,048 neighbours with its tangent and radial readout plus tqtq, for four quadratics qq of equal size. t∗t^* is the scale with the lowest squared error over those neighbours (the highest local R2R^2), and keeping qq fits better than removing it exactly when t∗>12t^* > \frac{1}{2} (vertical dotted line). Own bending, 12⟨wS,IIS⟩\frac{1}{2}\langle w_S,\mathrm{II}^S\rangle, peaks at t∗=1t^*=1: the label-free decoder gives the bend at the size the probe uses. A distant anchor’s IIS\mathrm{II}^S peaks near 12\frac{1}{2}: the curvature is local. The own form with its tangent frame rotated (same principal curvatures) peaks at 0: its directions matter. Grey: a random normal direction, for reference. Tuned probe, five encoders at d=16d=16, four labels.

Application to physical sciences. The curvature locates weak spots in a catalogue by neighbourhood. For catalogue work we suggest three rules. First, tune the ridge penalty. Areas where the manifold bending mismatches the label curvature requires the probe weight to compensate for the difference, and an overly aggressive penalty can prevent this correction. Second, remove the noise floor before reading a label’s local curvature. Third, read accuracy by neighbourhood, not only globally. Grouping anchors by their neighbours’ average rr-band magnitude, the third with the dimmest galaxies has local R2R^2 up to 0.22 lower than the brightest third, for three of the four labels, and most of that drop is the labels’ own noise, a larger share of their local variance there by 0.11 to 0.19 (Appendix B). So low accuracy on faint galaxies mostly reflects the catalogue, not the probe: it calls for better labels or wider error bars there.

Discussion

A linear probe on a curved embedding inherits a bend from the manifold, and we have shown that this curvature can help the probe’s performance when it aligns with the estimated label curvature and hinder it otherwise. We have also shown that when a probe is trained globally, the manifold fixes the probe’s bend in each local neighbourhood, and when the label’s curvature differs from that bend, it contributes to the probe’s local error.

These findings lead to three particular use cases: ensure the ridge penalty is tuned, as a strong penalty shrinks the probe’s bend most and keeps it from matching the label’s curvature; read accuracy by neighbourhood rather than globally, since the probe fits neighbourhoods of dim galaxies worst; and where a decoder is available, refine the probe’s estimates locally with the bend correction.

Limitations. We study one galaxy sample, four targets and five encoders. About half of the estimated ∥H∥g2\lVert H\rVert_g^2 is noise floor (Appendix B), and per-anchor residual curvature cannot rank single objects (split-half ρ≈0.33\rho\approx0.33). The intervention changes a local surrogate, not the encoder. Mismatch and alignment were defined after the pre-registered mean-curvature analysis and the intervention is exploratory; the permutation pp-values (* in the tables) and the intervention’s shares of anchors treat overlapping anchors as independent.

Acknowledgements

We would like to thank Stella Biderman and EleutherAI for their compute and infrastructure support.

association results on ViT-B and across encoders

Neighbourhoods and the label Hessian. We draw the 512 anchors from the rows the decoder never saw; each anchor’s k=2,048k = 2{,}048 neighbours are its nearest among all 86,471 galaxies by Euclidean distance between unit-normalized embeddings, that is, by cosine similarity. We estimate H=Hess⁡MyH = \operatorname{Hess}_{M} y at each anchor by fitting a least-squares quadratic to the neighbours’ labels in the tangent-projected coordinates u=g−1JT(x−x0)u = g^{-1}J^{\mathsf{T}}(x-x_0), whose Christoffel symbols vanish at the anchor, so the quadratic coefficient estimates the covariant Hessian in the small-neighbourhood limit.

Validation on a known surface. At D=768D = 768 the in-sphere surface G(z)=Qnormalize⁡([ϕ(z);0.8h(z);0…])G(z) = Q\operatorname{normalize}([\phi(z); 0.8h(z); 0\ldots]) (ϕ\phi inverse stereographic R16→S16\mathbb{R}^{16}\to S^{16}, hh four Gaussian bumps, QQ a rotation) has closed-form curvature. The decoder’s in-sphere trace HSH^{S} of II gives rank 0.94 against the true ∥HS∥\lVert H^{S}\rVert, direction cosine 0.999 and magnitude ratio 1.00. With six labels of known Hessian on the same surface (d=16d = 16, n=86,471n = 86{,}471), the median tensor cosine of the decoder’s KSK_{S} with the truth is 0.963–0.965 without noise and 0.67–0.84 with isotropic off-surface noise whose size is a quarter of the median patch radius. Mean curvature, the scalar usually reported, keeps only the trace of II and fails accordingly, since its association with readout accuracy changes sign with the sampling on the known surface and with the latent dimension on galaxies.

Penalties and encoders. Table 1 and Table 2 give the probe at the pre-registered α=100\alpha= 100 and at the tuned α∗\alpha^{*}, chosen per encoder and label by nested five-fold cross-validation (one-standard-error rule) before any geometry was computed at it; α∗\alpha^{*} is 0.1 or 0.32 in every cell. Table 1 holds the ViT-B analysis at d=16d = 16 and repeats it with four further encoders from the Platonic Universe release: DINOv3 ViT-B/16, CLIP ViT-B, ConvNeXt-B and ViT-L (widths 768, 512, 1,024 and 1,024; all unit-normalized), each with a decoder of the same architecture and training protocol (seed 0). For magnitude and redshift the mismatch is negatively associated with local R2R^2 in all five encoders at both penalties; most of this association is the label-Hessian noise floor (Appendix B).

labelquantityViT-B 100ViT-B α∗\alpha^{*}DINOv3 100DINOv3 α∗\alpha^{*}CLIP-B 100CLIP-B α∗\alpha^{*}ConvNeXt-B 100ConvNeXt-B α∗\alpha^{*}ViT-L 100ViT-L α∗\alpha^{*}† count 100† count α∗\alpha^{*}
mag_rmismatch−0.30†−0.24−0.58†−0.58†−0.29−0.34†−0.33−0.16−0.45†−0.49†3/03/0
alignment+0.35+0.34+0.53+0.54+0.32+0.53+0.21+0.31+0.13+0.33
sphere−0.26−0.23−0.31−0.31−0.40−0.26−0.24−0.34−0.08*+0.17
photo_zmismatch−0.39†−0.45†−0.60†−0.62†−0.42†−0.41†−0.46†−0.34−0.44†−0.49†5/04/0
alignment+0.26+0.25+0.33+0.39+0.06*+0.09+0.22+0.50+0.14+0.41
sphere−0.33+0.04*−0.21+0.01*−0.29+0.21+0.46+0.03*−0.44+0.12
smooth_fractionmismatch−0.09*−0.13−0.29−0.38†−0.24−0.34−0.19−0.11+0.01*−0.200/01/0
alignment+0.19+0.27−0.02*−0.22+0.24+0.27+0.04*+0.26+0.14−0.38
sphere−0.13−0.10−0.06*−0.22+0.05*−0.24−0.15−0.19−0.11−0.03*
stellar_massmismatch+0.00*+0.03*+0.04*−0.09−0.12−0.03*−0.03*−0.12−0.02*−0.190/00/0
alignment+0.01*+0.12−0.05*+0.07*−0.01*−0.06*+0.07*+0.33−0.03*+0.14
sphere−0.35−0.01*−0.26−0.11−0.38+0.06*−0.40+0.02*−0.38−0.04*

Table 1. Across encoders, d=16d = 16, 512 anchors: rank-partial Spearman correlation with local R‾2\overline{R}^{2} under the multi-scale density control, of the mismatch ∥Δ∥g\lVert\Delta\rVert_{g}, the alignment ⟨H,KS⟩g/(∥H∥g∥KS∥g)\langle H,K_{S}\rangle_{g}/(\lVert H\rVert_{g}\lVert K_{S}\rVert_{g}) and the size ∥KS∥g=d∣y^−b0∣\lVert K_{S}\rVert_{g}=\sqrt{d}\lvert\hat{y}-b_{0}\rvert of the sphere term. Each column pair gives the probe at the pre-registered α=100\alpha= 100, then at the tuned α∗\alpha^{*}. * Not significant at 0.05. † For the mismatch, the 95% percentile interval of a cluster bootstrap excludes zero (the anchors cut into 32 blocks by average-linkage clustering on neighbourhood overlap, 2,000 resamples). The last pair counts the encoders whose mismatch partial is negative (−), and positive (+), with †. Before any α∗\alpha^{*} mismatch was computed we fixed the bar for a claim at three negatives of five.

labelquantityViT-B 100ViT-B α∗\alpha^{*}DINOv3 100DINOv3 α∗\alpha^{*}CLIP-B 100CLIP-B α∗\alpha^{*}ConvNeXt-B 100ConvNeXt-B α∗\alpha^{*}ViT-L 100ViT-L α∗\alpha^{*}count
mag_r∥H∥g2−floor\lVert H\rVert_g^2-\mathrm{floor}+0.06*+0.16†−0.05*+0.02*−0.07*+0.14−0.08*+0.14−0.08*+0.01*0/0 1/1
⟨HA,HB⟩\langle H_A,H_B\rangle+0.09+0.17†−0.06*+0.02*−0.05*+0.13†−0.00*+0.15†−0.08*+0.01*0/0 0/3
split cos+0.35+0.35+0.31+0.29+0.30
photo_z∥H∥g2−floor\lVert H\rVert_g^2-\mathrm{floor}−0.22−0.24−0.35†−0.36†−0.20†−0.16−0.29†−0.12−0.09−0.02*3/0 1/0
⟨HA,HB⟩\langle H_A,H_B\rangle−0.22†−0.26†−0.27†−0.27†−0.14−0.13−0.27†−0.12−0.06*+0.02*3/0 2/0
split cos+0.32+0.24+0.25+0.30+0.24
smooth_fraction∥H∥g2−floor\lVert H\rVert_g^2-\mathrm{floor}+0.14+0.22−0.16−0.13−0.11−0.05*−0.14+0.06*+0.26+0.360/0 0/0
⟨HA,HB⟩\langle H_A,H_B\rangle+0.11+0.20−0.13−0.09*−0.06*−0.02*−0.13+0.04*+0.21+0.280/0 0/0
split cos+0.33+0.31+0.28+0.32+0.30
stellar_mass∥H∥g2−floor\lVert H\rVert_g^2-\mathrm{floor}+0.13+0.25†−0.00*−0.03*−0.05*+0.09+0.03*+0.08*+0.05*+0.02*0/0 0/1
⟨HA,HB⟩\langle H_A,H_B\rangle+0.14†+0.22†+0.04*+0.01*−0.02*+0.11†−0.01*+0.08*+0.08*+0.04*0/1 0/2
split cos+0.31+0.22+0.19+0.29+0.21

Table 2. Association with local R2R^2 once the noise floor is removed, d=16d=16, 512 anchors, multi-scale density control: rank-partial Spearman of the label-Hessian norm less its HC2 floor, ∥H∥g2−floor\lVert H\rVert_g^2-\mathrm{floor}, and of the cross-fit product ⟨HA,HB⟩g\langle H_A,H_B\rangle_g of the two half-patch fits. Split cos is the median cosine between HAH_A and HBH_B; it does not depend on the probe. Column pairs, marks, counts and the bar as in Table 1.

Weak ridge. The plain associations do not need an underfitting probe: at α=1\alpha= 1 (ViT-B; global R2R^{2} up from 0.51 to 0.66) magnitude and redshift keep sign and significance (mismatch −0.25 to −0.50, alignment +0.26 to +0.47), and the tuned α∗\alpha^{*} agrees (Table 1).

Derivation of Eq. (3). In the orthonormal frame (g=Ig = I at x0x_0) write the residual e=y−y^e = y-\hat{y} along MM as e(u)=e0+δTu+12uTΔu+ρ(u)e(u)=e_0+\delta^{\mathsf{T}}u+\frac{1}{2}u^{\mathsf{T}}\Delta u+\rho(u). The quadratic coefficient is Δ\Delta because normal coordinates have vanishing Christoffel symbols at x0x_0 and Hess⁡My^=K\operatorname{Hess}_{M}\hat{y}=K (Eq. (1)); the controlled higher derivatives give ρ(u)=O(∥u∥3)\rho(u) = O(\lVert u\rVert^3). Exactly, E[e2]=cˉ2+Var⁡(e)\mathbb{E}[e^2] = \bar{c}^2 + \operatorname{Var}(e). For u∼N(0,s2Id)u \sim N(0, s^2 I_d) the linear and quadratic parts are uncorrelated (odd moments vanish), Var⁡(δ⊤u)=s2∥δ∥2\operatorname{Var}(\delta^\top u) = s^2\lVert\delta\rVert^2 and Var⁡(12u⊤Δu)=12s4∥Δ∥2\operatorname{Var}(\frac{1}{2}u^\top\Delta u) = \frac{1}{2}s^4\lVert\Delta\rVert^2. The covariance of the linear part with the cubic part of ρ\rho is O(s4∥δ∥)O(s^4\lVert\delta\rVert), and every other term is O(s6)O(s^6), which gives Eq. (3).

Appendix B: the label-Hessian noise floor (additional analyses)

Since Δ\Delta is the Hessian of the residual y−y^y-\hat{y}, some association with local accuracy is expected by construction (Eq. (3)), but much of it is fitting noise. The probe’s KK barely enters it: over the 40 encoder, label and penalty cells at d=16d = 16, the partials of ∥Δ∥g\lVert\Delta\rVert_g and of the label-Hessian norm ∥H^∥g\lVert\hat{H}\rVert_g differ by a median 0.016 and correlate at 0.988.

The floor. The label Hessian H^\hat{H} is a least-squares quadratic on nn noisy labels. Conditional on the neighbours, let the label noise ϵ\epsilon have mean zero and diagonal covariance Σ\Sigma, and let AA be the n×pn \times p local quadratic design, C=(A⊤A)−1C = (A^\top A)^{-1} with quadratic block ChhC_{hh}, WW the Gram matrix of ∥⋅∥g\lVert\cdot\rVert_g on quadratic coefficients and Hˉ\bar{H} the noise-free Hessian. The fitted quadratic coefficients are h^=hˉ+[CA⊤ϵ]h\hat{h} = \bar{h} + [CA^\top\epsilon]_h, so EH^=Hˉ\mathbb{E}\hat{H} = \bar{H} but

E∥H^∥g2=∥Hˉ∥g2+tr⁡(WV),V=[CA⊤ΣAC]hh(4)\mathbb{E}\lVert\hat{H}\rVert_g^2 = \lVert\bar{H}\rVert_g^2 + \operatorname{tr}(WV), \qquad V = [CA^\top\Sigma AC]_{hh} \tag*{(4)}

(σ2tr⁡(WChh)\sigma^2\operatorname{tr}(WC_{hh}) for homoscedastic noise). For KK fixed given the neighbours, ∥H^−K∥g2\lVert\hat{H} - K\rVert_g^2 carries the same term and ⟨H^,K⟩g\langle\hat{H}, K\rangle_g has none, so the gain Γ=2⟨H^,K⟩g−∥K∥g2\Gamma= 2\langle\hat{H}, K\rangle_g - \lVert K\rVert_g^2 is floor-free. The upward bias of a squared estimate and its removal by products across independent halves are standard [12, 13]. We estimate the floor from the single fit’s residuals with the HC2 sandwich estimator of MacKinnon and White [1985], or cancel it with the cross-fit product ⟨H^A,H^B⟩g\langle\hat{H}_A, \hat{H}_B\rangle_g of fits on two random halves of the patch. The same noise lowers local accuracy. With PAP_A the projector onto the columns of AA, σ^q2=∥(I−PA)y∥2/n\hat{\sigma}_q^2 = \lVert(I-P_A)y\rVert^2/n and lv⁡\operatorname{lv} the patch variance of yy, any probe quadratic in the chart on the patch has 1−R2≥σ^q2/lv⁡1-R^2 \ge\hat{\sigma}_q^2/\operatorname{lv}, with equality iff it equals the label’s local quadratic fit, since y−y^=(I−PA)y+(PAy−y^)y-\hat{y} = (I-P_A)y + (P_Ay-\hat{y}) with the two parts orthogonal. Noisier labels thus raise ∥H^∥\lVert\hat{H}\rVert and ∥H^−K∥\lVert\hat{H}-K\rVert and lower R2R^2 before any geometry enters.

On galaxies. The cross-fit product puts the floor at 45–66% of ∥H^∥g2\lVert\hat{H}\rVert_g^2 (the median over anchors of 1−⟨H^A,H^B⟩g/∥H^∥g21-\langle\hat{H}_A,\hat{H}_B\rangle_g/\lVert\hat{H}\rVert_g^2; median 0.51 over the 20 encoder-label cells), and the HC2 correction agrees with it (median ratio 0.95–1.04). σ^q2\hat{\sigma}_q^2 is negatively associated with local R2R^2, interval excluding zero, in 40 of 40 cells, and the bound holds at 98–100% of anchors at α=100\alpha= 100, where the probe is locally quadratic to within 1–4% of its error (not at α∗\alpha^*). With the floor removed (Table 2), magnitude keeps its association in no encoder, and redshift keeps it in three of five at α=100\alpha= 100 and in at most two at α∗\alpha^*. The cross-fit mismatch ⟨H^A−K,H^B−K⟩g\langle\hat{H}_A-K,\hat{H}_B-K\rangle_g reads the same way: magnitude zero of five at both probes, redshift four of five at α=100\alpha= 100 and two at α∗\alpha^*. These nulls are the floor cancelling, not a loss of power, since the half-patch norm’s partial measure is more negative than the full patch’s in 38 of 40 cells. Both estimators count what the chart quadratic does not fit as floor.

Splitting the probe’s local error exactly, ∥y−y^∥2=∥(I−PA)y∥2+∥(I−PA)y^∥2−2⟨(I−PA)y,(I−PA)y^⟩+∥PA(y−y^)∥2\lVert y-\hat{y}\rVert^2 = \lVert(I-P_A)y\rVert^2 + \lVert(I-P_A)\hat{y}\rVert^2 - 2\langle(I-P_A)y,(I-P_A)\hat{y}\rangle+ \lVert P_A(y-\hat{y})\rVert^2, with the last term split by the constant, linear and quadratic blocks of AA, gives at α=100\alpha= 100 median shares of 0.69–0.79 for the label’s residual after its local quadratic, 0.01–0.04 for the probe’s off-quadratic part, −0.14 to −0.04 for their cross term, and 0.01–0.05, 0.09–0.22 and 0.10–0.15 for the constant, linear and quadratic parts of the mismatch; the last is an upper bound, because the fitted label quadratic carries noise. Floor-free, KK captures a median 0.11 (α=100\alpha= 100) and 0.28 (α∗\alpha^*) of the corrected ∥H^∥g2\lVert\hat{H}\rVert_g^2; we call this ratio, Γ/(∥H^∥g2−floor)\Gamma/(\lVert\hat{H}\rVert_g^2-\text{floor}), the capture. It cannot reach 1 here, because it sets the decoder’s KK against a Hessian fitted from data.

The linear floor on ViT-B. On ViT-B at d=16d = 16 we split the held-out error of each probe into what refitting an affine readout removes, what a flexible residual readout (near-OLS plus a kernel ridge fitted to its residual) removes beyond it, and the rest. Refitting removes 0.303–0.323 of the error of the α=100\alpha= 100 probe and −0.000 to +0.001 of the error of a probe tuned by leave-one-out cross-validation (α=0.1\alpha= 0.1 or 0.001 by label, not the nested α∗\alpha^* of Appendix A). The flexible readout removes a further 0.124–0.179 of the tuned probe’s error, an estimate of the linear floor, not a bound. A pre-registered test asked whether the probe’s curvature predicts where that floor is largest: over a rank model on local label variance, log patch radius, count and density, the whitened ∥K∥g\lVert K\rVert_g of the best affine readout adds Δρ=−0.011\Delta\rho=-0.011 [−0.032, +0.011] for magnitude (no added value) and −0.002 [−0.078, +0.025] for redshift (inconclusive); the intervals run from the 1.25th to the 98.75th percentile of a 32-block bootstrap.

Misalignment, held out. On ViT-B we measure on one half of each neighbourhood the cosine between RR and KSK_S, with the noise floor of ∥R∥g2\lVert R\rVert_g^2 removed, and ask on the other half whether t=0t=0 wins. Among the fifth of anchors with the lowest cosine, removal wins more often than among the fifth with the highest: by +0.066 at α=100\alpha=100 (interval −0.001 to +0.122) and +0.038 at α∗\alpha^{*} (+0.010 to +0.070), pooled over labels; for magnitude by +0.070 and +0.100 (at α∗\alpha^{*}, the only label whose interval excludes zero). A random bend of the same size shows no such contrast (−0.025 and −0.005).

Neighbourhood types. For each ViT-B anchor we average the catalogue’s magnitude, redshift and smooth fraction over its neighbours and compare the top and bottom thirds of anchors, post hoc. The neighbourhoods are mixed, so the thirds differ little: the cuts sit at 18.16 and 18.37 in magnitude, 0.180 and 0.206 in redshift, and 0.724 and 0.786 in smooth fraction. The probe captures more of magnitude’s curvature in fainter neighbourhoods (+0.104 at α=100\alpha=100), more of magnitude’s, smooth fraction’s and stellar mass’s in smoother ones (+0.067 to +0.098 at α=100\alpha=100), and less of redshift’s at high redshift (−0.036 at α=100\alpha=100, −0.057 at α∗\alpha^{*}). Fainter and higher-redshift neighbourhoods are also noisier, and with 24 comparisons per quantity one or two intervals could exclude zero by chance. The probe fits faint neighbourhoods worst. In the faintest third its local R2R^2 is lower than in the brightest third by 0.13 for magnitude, 0.14 for redshift and 0.22 for smooth fraction at α=100\alpha=100, and by 0.07, 0.10 and 0.22 at α∗\alpha^{*} (every interval excludes zero except magnitude’s at $\alpha=100, which does not follow (+0.04 and +0.00)). The labels are noisier there relative to their spread: the residual share σ^q2/lv\hat{\sigma}_q^2/\mathrm{lv}, read in the 16 leading principal components of each neighbour cloud, without the decoder, is higher by 0.19, 0.11 and 0.18, and by the bound that alone lowers local R2R^2 at $\alpha=100. The bending strength ∥IS∥\lVert I^S\rVert, the norm of the in-sphere second fundamental form at the anchor, needs no label. It does not change with the neighbourhood’s magnitude or redshift (rank correlation −0.03 and −0.06 across anchors) and is larger in smoother neighbourhoods (+0.30, interval +0.05 to +0.51).

removing the bend where the curvatures disagree

Section 5 compares how often removing the bend wins in the fifth of anchors where RR and KSK_S are least aligned against the fifth where they are most aligned. On ViT-B at α∗\alpha^{*} we rank anchors by that cosine on one half of each neighbourhood, as in Appendix B, and score the other half. Removal wins at an anchor when t=0t = 0 gives the lower squared error there, and its gain is R2(t=0)−R2(t=1)R^2(t=0) - R^2(t=1). Table 3 gives, for each fifth, the number of anchors where removal wins and how much it gains. Removal wins more often in the misaligned fifth for three of the four labels, but its gains are small: a median of 0.5 to 1.6 points of R2R^2 (6.9 for redshift, from two anchors). This analysis is post hoc.

labelaligned fifth: removal winsaligned fifth: R2R^2 gainmisaligned fifth: removal winsmisaligned fifth: R2R^2 gain
mag_r1 of 100+3.211 of 100+1.6 (12.4)
photo_z0 of 99–2 of 99+6.9 (13.6)
smooth_fraction4 of 99+0.8 (1.3)3 of 99+1.3 (1.4)
stellar_mass3 of 97+0.9 (1.6)7 of 97+0.5 (0.7)

Table 3. ViT-B, tuned probe (α∗\alpha^*), 512 anchors; post hoc. Fifths of anchors by the cosine of RR and KSK_S on half A of each neighbourhood: aligned (highest cosine) and misaligned (lowest). Removal wins: anchors where t=0t = 0 fits the held-out half B better than t=1t = 1. R2R^2 gain: median of R2(t=0)−R2(t=1)R^2(t=0) - R^2(t=1) over those anchors, in points of local R2R^2, with the largest in parentheses where there are two or more wins.

the bend correction on molecular embeddings (additional analyses)

A question we had after viewing the results on galaxy data was if the approach generalizes to other mediums. We repeated the bend correction of § 5 on QM9 [15]: 130,744 molecules embedded by MoLFormer-XL [16], with four quantum-chemistry labels (the HOMO–LUMO gap, the dipole moment μ\mu, the isotropic polarisability and the heat capacity cvc_v). The setup matches ViT-B: a seed-0 decoder at d=16d = 16, 512 anchors with 2,048 neighbours each, and the probe at its tuned penalty. In each neighbourhood we refit the probe’s curvature on one half of the neighbours and score it on the other half. Table 4 sets the two datasets side by side.

QM9, MoLFormer-XLgalaxies, ViT-B
curved share of a neighbourhood’s held-out variance0.12–0.150.06–0.08
curvature the tuned probe leaves unread (read low)0.025–0.0800.006–0.016
gain of a free quadratic in the chart0.023–0.0410.0015–0.0039
gain of the bend correction0.044–0.0490.0059–0.0095

Table 4. The bend correction of § 5 on two datasets, tuned probe, d=16d = 16, 512 anchors. Shares and gains are in held-out local R2R^2; each range runs over the four labels.

The bend correction. At d=16d = 16 a quadratic shape in the chart has 136 independent components, and the decoder’s IIS\mathrm{IIS} at the anchor sends each to a direction in the embedding. We take its 136 singular directions nkn_k: moving the probe’s weight along nkn_k bends the probe in the kkth shape, and a neighbour’s coordinate along it is nk⋅(x−x0)n_k \cdot(x - x_0). On one half of the neighbours we fit a ridge correction to the tuned probe’s residual on these 136 coordinates, after removing the part of them that is constant or linear in the chart, so the correction changes the probe’s curvature and not its slope. Its penalty is chosen by leave-one-out on that half, with no correction as one choice, and we score the corrected probe on the other half. The corrected probe stays linear in the embedding, with a weight that changes from one neighbourhood to the next.

The bend correction removes 18 to 22% of the tuned probe’s local error for the gap, the polarisability and cvc_v, and 8% for μ\mu, whose probe fits least well (local R2R^2 0.35, against 0.74 to 0.80 for the others). The tuned probe reads about the same share of each label’s curvature on both datasets: 0.40 to 0.69 here, 0.58 to 0.64 on ViT-B. This share is the regression coefficient of the probe’s fitted chart Hessian on the label’s, both fitted from the data on two halves of each neighbourhood, multiplied across the halves and pooled over anchors. So it does not carry the decoder-to-data gap of the ratio in Appendix B. The molecular labels have about twice as much curvature to read, and the part the probe misses is three to five times larger, and a refit on half a neighbourhood recovers more of it (0.56 to 0.99 of the unread curvature here, against 0.26 to 0.33 on ViT-B). Our estimator reads these unread amounts low on both datasets. For each label’s own linear fit, which the probe reproduces, it reports −0.11 to −0.15 of the curvature unread here and −0.21 to −0.26 on ViT-B, where the truth is near 0. So the unread row of Table 4 and the ratios built on it are rough. The gains are differences between two fits and do not carry this bias.

Two limits apply. The bend correction ran on one encoder and one decoder. And here the decoder misses some structure. Held out, a free quadratic in the chart explains 0.19 to 0.36 of each normal coordinate, while the decoder’s own bending explains 0.005 to 0.16; on ViT-B the decoder explained more than the free quadratic. So part of the molecular gain may come from how the decoder fits at d=16d = 16, above the encoder’s estimated intrinsic dimension of 11. The bend correction’s gain is also about half curvature (0.020 to 0.029) and half structure off the chart (0.019 to 0.026), and its curved part reaches 0.70 to 0.88 of what the free quadratic recovers, where on ViT-B it matched it. On ViT-B the curved part is 0.0022 to 0.0039 of the 0.0059 to 0.0095, and the rest is structure off the chart.

References

  1. [1]Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes, 2016. arXiv:1610.01644.arxiv.org/abs/1610.01644
  2. [2]Michael J. Smith, Ryan J. Roberts, Eirini Angeloudi, and Marc Huertas-Company. AstroPT: Scaling large observation models for astronomy. arXiv preprint, 2024. doi: 10.48550/arXiv.2405.14930. URL https://arxiv.org/abs/2405.14930.
  3. [3]Sabri Eyuboglu, Maya Varma, Khaled Saab, Jean-Benoit Delbrouck, Christopher Lee-Messer, Jared Dunnmon, James Zou, and Christopher Ré. Domino: Discovering systematic errors with cross-modal embeddings. In ICLR, 2022.arxiv.org/abs/2203.14960
  4. [4]UniverseTBD, Trinidad Borrell, Steven Dillmann, Kshitij Duraphe, Furkan Eris, Kartheik Iyer, Ashod Khederlarian, Aman Kumar, Giovanni Marraffini, Michael J. Smith, Shashwat Sourav, Rocco Di Tella, and John F. Wu. The platonic universe: Do foundation models see the same sky? In NeurIPS 2025 Workshop on Machine Learning and the Physical Sciences, 2025. URL https://arxiv.org/abs/2509.19453.
  5. [5]Yonghyeon Lee and Frank C. Park. On explicit curvature regularization in deep generative models. In Proceedings of the 2nd Annual Workshop on Topology, Algebra, and Geometry in Machine Learning (TAG-ML), volume 221 of Proceedings of Machine Learning Research, pages 505–518. PMLR, 2023.arxiv.org/abs/2309.10237
  6. [6]Francisco Acosta, Sophia Sanborn, Khanh Dao Duc, Manu Madhav, and Nina Miolane. Quantifying extrinsic curvature in neural manifolds. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 610–619, 2023. doi: 10.1109/CVPRW59228.2023.000068.arxiv.org/abs/2212.10414
  7. [7]Charles Fefferman, Sanjoy Mitter, and Hariharan Narayanan. Testing the manifold hypothesis. Journal of the American Mathematical Society, 29(4):983–1049, 2016. doi: 10.1090/jams/852.DOI
  8. [8]John M. Lee. Introduction to Riemannian Manifolds, volume 176 of Graduate Texts in Mathematics. Springer, 2nd edition, 2018. doi: 10.1007/978-3-319-91755-9.DOI
  9. [9]John Milnor. Morse Theory, volume 51 of Annals of Mathematics Studies. Princeton University Press, Princeton, 1963. doi: 10.1515/9781400881802. Based on lecture notes by M. Spivak and R. Wells.
  10. [10]Shing-Shen Chern and Richard K. Lashof. On the total curvature of immersed manifolds. American Journal of Mathematics, 79(2):306–318, 1957. doi: 10.2307/2372684.
  11. [11]David Freedman and David Lane. A nonstochastic interpretation of reported significance levels. Journal of Business & Economic Statistics, 1(4):292–298, 1983. doi: 10.1080/07350015.1983.10509354.DOI
  12. [12]Peter Hall and J. S. Marron. Estimation of integrated squared density derivatives. Statistics & Probability Letters, 6(2):109–115, 1987. doi: 10.1016/0167-7152(87)90083-6.DOI
  13. [13]Alexander Walther, Hamed Nili, Naveed Ejaz, Arjen Alink, Nikolaus Kriegeskorte, and Jörn Diedrichsen. Reliability of dissimilarity measures for multi-voxel pattern analysis. NeuroImage, 137:188–200, 2016. doi: 10.1016/j.neuroimage.2015.12.012.DOI
  14. [15]Raghunathan Ramakrishnan, Pavlo O. Dral, Matthias Rupp, and O. Anatole von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific Data, 1:140022, 2014. doi: 10.1038/sdata.2014.22.
  15. [16]Jerret Ross, Brian Belgodere, Viiiil Chenthamarakshan, Inkıt Padhi, Youssef Mroueh, and Pavel Das. Large-scale chemical language representations capture molecular structure and properties. Nature Machine Intelligence, 4(12):1256–1264, 2022. doi: 10.1038/s42256-022-00580-7.

Paper details

vlnc:W_kyybrkpb
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents