Papers
Topics
Authors
Recent
Search
2000 character limit reached

Contrastive Learning for Semi-Supervised Deep Regression with Generalized Ordinal Rankings from Spectral Seriation

Published 10 Dec 2025 in cs.LG | (2512.09267v1)

Abstract: Contrastive learning methods enforce label distance relationships in feature space to improve representation capability for regression models. However, these methods highly depend on label information to correctly recover ordinal relationships of features, limiting their applications to semi-supervised regression. In this work, we extend contrastive regression methods to allow unlabeled data to be used in the semi-supervised setting, thereby reducing the dependence on costly annotations. Particularly we construct the feature similarity matrix with both labeled and unlabeled samples in a mini-batch to reflect inter-sample relationships, and an accurate ordinal ranking of involved unlabeled samples can be recovered through spectral seriation algorithms if the level of error is within certain bounds. The introduction of labeled samples above provides regularization of the ordinal ranking with guidance from the ground-truth label information, making the ranking more reliable. To reduce feature perturbations, we further utilize the dynamic programming algorithm to select robust features for the matrix construction. The recovered ordinal relationship is then used for contrastive learning on unlabeled samples, and we thus allow more data to be used for feature representation learning, thereby achieving more robust results. The ordinal rankings can also be used to supervise predictions on unlabeled samples, serving as an additional training signal. We provide theoretical guarantees and empirical verification through experiments on various datasets, demonstrating that our method can surpass existing state-of-the-art semi-supervised deep regression methods. Our code have been released on https://github.com/xmed-lab/CLSS.

Summary

  • The paper introduces GCLSS, a framework that combines contrastive learning with spectral seriation to derive robust ordinal rankings in semi-supervised regression tasks.
  • It employs a memory-based feature selection module and Laplacian eigenvector analysis to stabilize feature similarity and improve ranking accuracy.
  • Experiments validate that GCLSS outperforms existing methods in age estimation, operator learning, and audio quality tasks, achieving notable improvements in R² and MAE.

Contrastive Learning for Semi-Supervised Deep Regression with Generalized Ordinal Rankings from Spectral Seriation

Introduction

This work introduces Generalized Contrastive Learning with Spectral Seriation (GCLSS), a semi-supervised deep regression framework that integrates contrastive learning and ordinal ranking via spectral seriation. The method enables effective utilization of both labeled and unlabeled data, mitigating the reliance on extensive labeled datasets—a critical bottleneck in regression tasks, especially within domains such as medical imaging, age estimation, and operator learning. GCLSS extends prior methods by employing a generalized spectral seriation approach that incorporates labeled data for regularization, yielding robust ordinal pseudolabel supervision for regression on unlabeled samples.

Methodology

Contrastive learning typically leverages label-based pairwise supervision to encode label distance into feature similarity relationships. However, the applicability of existing methods is constrained in semi-supervised regimes due to the scarcity of labeled data. GCLSS confronts this by constructing a composite feature similarity matrix using both labeled and unlabeled samples. Spectral seriation is then applied to recover ordinal rankings, using a Laplacian eigenvector (Fiedler vector) approach to approximate the latent order of unlabeled data.

Unlike standard seriation, the proposed generalization considers the confounding influence of labeled samples on ordinal rank recovery. The Laplacian is partitioned into labeled/unlabeled blocks, and a closed-form ranking solution is obtained by projecting the label-informed Fiedler vector onto the unlabeled sample space. Ranking regularization for unlabeled samples is enforced through a differentiable unsupervised contrastive loss (LUC\mathcal{L}_{UC}) and additional pseudo-ranking supervision (LUR\mathcal{L}_{UR}), resulting in more congruent ordinal structure of the learned embedding. Figure 1

Figure 1: The GCLSS framework enables spectral seriation over mixed labeled/unlabeled batches, yielding robust ranking supervision for unlabeled samples.

To counter instability in the feature similarity matrix, GCLSS integrates a memory-based feature selection module (MFSM), employing dynamic programming to select features with minimal cross-propagation variance. This dampens ordinal ranking errors arising from noise in unlabeled sample representations, further stabilizing contrastive training.

Theoretical Guarantees

The paper provides formal robustness analyses of the generalized spectral seriation solution, offering perturbation bounds on both the similarity matrix and the feature representations. Theorems establish that, under bounded perturbations (quantified via Laplacian eigenstructure and singular values), the ordinal ranking recovered from spectral seriation remains invariant to certain levels of input noise. These theoretical results support the use of spectral seriation-derived ranks as reliable pseudo-supervision, even in high-variance semi-supervised regimes.

Experimental Evaluation

GCLSS is rigorously validated on four representative regression tasks:

  • Brain Age Estimation (IXI): With extremely sparse labels ($1/5$ to $1/2$ labeled data), GCLSS outperforms alternative semi-supervised methods (Mean-Teacher, CPS, UCVME, CLSS) by 4%4\%–7.6%7.6\% R2\mathbf{R}^2 improvement, and demonstrates strong stability across reduced supervision regimes.
  • Nonlinear Operator Learning (Synthetic): GCLSS consistently achieves the lowest MAE and highest R2\mathbf{R}^2—up to 99.7%99.7\% R2\mathbf{R}^2 in dense-label configurations, establishing robustness in stochastic function regression tasks.
  • Age Estimation (AgeDB-DIR, UTKFace): Across imbalanced natural image benchmarks, GCLSS advances state-of-the-art metrics, including outperforming RankUp and CLSS on all splits with larger proportions of labeled data.
  • Audio Quality Assessment (BVCC): GCLSS generalizes effectively to non-image, sequential data, surpassing RankUp, CLSS, and UCVME with a 1.1%1.1\% R2\mathbf{R}^2 gain. Figure 2

    Figure 2: Sample visuals from IXI, AgeDB-DIR, and UTKFace datasets with age labels used for regression supervision.

Ablation studies confirm that both the incorporation of labeled data into ordinal ranking and the MFSM are independently contributory. Increasing the batch size of unlabeled samples and the total number of selected features yields non-monotonic effects—there exists an optimal threshold for maximal ranking reliability, aligning with theoretical perturbation bounds.

Implications and Future Directions

GCLSS demonstrates practical efficacy in reducing annotation dependence while preserving ordinal structure in regression embeddings. The method generalizes across images, audio, and synthetic data, highlighting its extensibility beyond standard metric regression. The use of spectral seriation as a backbone for ranking-based pseudo-supervision introduces a promising avenue for future research—potentially applicable to other tasks requiring robust ordinal inference under weak supervision.

Theoretical perturbation invariance motivates further exploration toward large-scale semi-supervised learning, potentially integrating more sophisticated uncertainty modeling or kernelized seriation. Additionally, GCLSS may be adapted to integrate multimodal or hierarchical ranking inferencing, benefiting broader domains in scientific and industrial regression scenarios.

Conclusion

GCLSS advances semi-supervised deep regression by combining contrastive learning with generalized ordinal ranking recovery from composite batches. Through spectral seriation regularized by ground-truth labeled samples and feature-level memory-based selection, it achieves state-of-the-art regression performance under stringent labeling constraints. Theoretical analyses and cross-domain experiments validate its robustness and generalizability, substantiating GCLSS as a practical framework for scalable, annotation-efficient regression modeling.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

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

Open Problems

We found no open problems mentioned in this paper.

Collections

Sign up for free to add this paper to one or more collections.