Papers
Topics
Authors
Recent
Search
2000 character limit reached

Kernel CurvSSL: Curvature in RKHS

Updated 28 November 2025
  • The paper introduces a self-supervised framework that augments redundancy reduction by explicitly aligning local curvature in an RKHS.
  • It computes discrete curvature from k-nearest neighbor graphs and aligns these metrics across augmented views using a Barlow Twins-style loss.
  • The integrated loss, combining embedding and curvature objectives, leads to measurable performance gains on MNIST and CIFAR-10.

Kernel CurvSSL is a self-supervised representation learning framework that augments conventional non-contrastive redundancy-reduction objectives with explicit curvature regularization in a reproducing kernel Hilbert space (RKHS). It extends the CurvSSL family by formulating discrete local curvature with respect to a kernel-induced geometry and aligns such curvature between augmented views using a Barlow Twins-style loss on curvature-derived statistics. This approach aims to enforce not only statistical invariance and redundancy reduction, but also consistency in the local manifold geometry of learned embeddings, thereby enriching the expressiveness and utility of the resulting representation space (Ghojogh et al., 21 Nov 2025).

1. Discrete Curvature in RKHS

Kernel CurvSSL treats projected embeddings zi∈Rdzz_i \in \mathbb R^{d_z} as vertices whose local geometry is quantified via discrete curvature scores. For each embedding ziz_i, the kk nearest neighbors {zi,a}a=1k\{z_{i,a}\}_{a=1}^k are determined, and their displacements relative to ziz_i are given by z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i. In the RKHS, with feature map ϕ\phi and kernel k(x,y)=ϕ(x)⊤ϕ(y)k(x, y) = \phi(x)^\top \phi(y), the local Gram matrix of the neighborhood is

[Ki]ab=k(z˘i,a,z˘i,b) .[K_i]_{ab} = k(\breve z_{i,a}, \breve z_{i,b})\,.

Normalization to unit diagonal (mimicking projection onto the unit hypersphere) is performed:

Ki′=Di−1/2KiDi−1/2,Di=diag(Ki).K'_i = D_i^{-1/2} K_i D_i^{-1/2}, \quad D_i = \mathrm{diag}(K_i).

The discrete curvature score at ziz_i0 is defined by the sum of off-diagonal entries of ziz_i1:

ziz_i2

This score can also be expressed as

ziz_i3

and, using eigenvalues ziz_i4 of ziz_i5, as

ziz_i6

2. Curvature-based Regularizer

To regularize the local geometry, Kernel CurvSSL computes curvature scores ziz_i7 and ziz_i8 for two stochastic augmentations per sample in a mini-batch of size ziz_i9. The curvature vectors are centered and variance-normalized:

kk0

A cross-correlation matrix is formed:

kk1

whose diagonals correspond to matched samples and off-diagonals to mismatched ones. The curvature alignment loss is:

kk2

In matrix form:

kk3

This regularizer enforces view-invariance of local curvature and discourages redundancies in curvature patterns across different samples.

3. Kernel CurvSSL Loss Function

The embedding-level redundancy-reduction loss used in Kernel CurvSSL is analogous to that in Barlow Twins, applied to projected features:

kk4

with cross-correlation matrix

kk5

The embedding loss is

kk6

The total loss is a weighted sum of the embedding-level and curvature-based losses:

kk7

Explicitly,

kk8

4. Encoder–Projector Architecture and Training Workflow

Kernel CurvSSL employs a standard two-view self-supervised architecture composed of a shared encoder kk9 and a projection head {zi,a}a=1k\{z_{i,a}\}_{a=1}^k0. The typical training iteration proceeds as follows:

  • Sample a mini-batch {zi,a}a=1k\{z_{i,a}\}_{a=1}^k1.
  • Generate two independent stochastic augmentations for each {zi,a}a=1k\{z_{i,a}\}_{a=1}^k2, yielding {zi,a}a=1k\{z_{i,a}\}_{a=1}^k3.
  • Compute representations: {zi,a}a=1k\{z_{i,a}\}_{a=1}^k4, {zi,a}a=1k\{z_{i,a}\}_{a=1}^k5 and {zi,a}a=1k\{z_{i,a}\}_{a=1}^k6, {zi,a}a=1k\{z_{i,a}\}_{a=1}^k7.
  • Compute per-view means and standard deviations over {zi,a}a=1k\{z_{i,a}\}_{a=1}^k8; normalize to obtain {zi,a}a=1k\{z_{i,a}\}_{a=1}^k9.
  • Form cross-correlation ziz_i0 and evaluate ziz_i1.
  • For each ziz_i2, find ziz_i3 nearest neighbors by (Euclidean or kernel) distance among ziz_i4, form ziz_i5, normalize to ziz_i6, compute ziz_i7; repeat for second view.
  • Stack curvature scores ziz_i8 and ziz_i9; center and scale to obtain z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i0.
  • Form z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i1 and compute z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i2.
  • Backpropagate z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i3 through all differentiable operations. Neighbor selection is treated as fixed with respect to gradients; kernel evaluations z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i4 allow gradients to flow from z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i5 to parameters.

5. Geometric and Methodological Context

Non-contrastive self-supervised schemes such as Barlow Twins and VICReg enforce alignment of statistical moments (invariance, variance, covariance) but do not shape the local manifold geometry of embeddings. Kernel CurvSSL introduces an explicit mechanism for regularizing and aligning the bending—captured by neighborhood curvature—across augmentations. This ensures:

  • Local bending consistency: If two augmentations fall nearby in the learned space, they exhibit similar local curvature patterns in their neighbor graphs.
  • Collapse avoidance: By decorrelating curvature across samples, the approach mitigates degenerate solutions where the underlying manifold lacks structural diversity.
  • Nonlinear geometric capture: The RKHS formulation enables modeling of complex, nonlinear local structures, enriching the representation beyond what Euclidean relationships provide.

These considerations underscore a shift from purely statistical regularization towards methods that leverage more sophisticated geometric priors.

6. Experimental Results and Comparative Performance

Kernel CurvSSL was evaluated using ResNet-18 encoders and 2-layer MLP projectors with output dimension z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i6 on MNIST and CIFAR-10, using 100 and 500 pretraining epochs, respectively. Batch size, neighborhood size, and key hyperparameters were set as z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i7, z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i8, z˘i,a=zi,a−zi\breve z_{i,a} = z_{i,a} - z_i9, ϕ\phi0, ϕ\phi1, with RBF kernel for kernel CurvSSL.

Standard augmentations were employed: random crop/resize + small rotation (MNIST), and random crop + flip + color jitter + grayscale (CIFAR-10). Optimization used Adam with learning rate Ï•\phi2 and weight decay Ï•\phi3. For evaluation, the encoder was frozen, and a linear classifier was trained for 50 epochs (SGD).

Method MNIST Top-1 (%) CIFAR-10 Top-1 (%)
VICReg 95.9 74.5
Barlow Twins 94.9 73.6
CurvSSL (Euclid) 97.9 75.1
Kernel CurvSSL 98.4 76.5

Kernel CurvSSL outperformed both statistical regularizers and its Euclidean variant by 1–2 points (CIFAR-10) and 2–3 points (MNIST) in linear probe accuracy, indicating the efficacy of explicitly regularizing local geometry in RKHS as a complement to standard SSL approaches (Ghojogh et al., 21 Nov 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Kernel CurvSSL.