astro-ph.IMOct 30, 2026

Contrastive Astromer: Two-Stage Contrastive Representation Learning for Astronomical Light Curve Classification

Authors: Justin Minggan Wei, Pavlos Protopapas, Guillermo Cabrera-Vives

Organizations: School of Engineering and Applied Sciences, Harvard University, Cambridge, MA, 02138, USA · Department of Computer Science, Universidad de Concepción, Edmundo Larenas 219, Concepción, Chile

Abstract

Large astronomical surveys collect abundant light curves, but reliable class labels remain scarce. ASTROMER 2 learns from unlabeled light curves by reconstructing masked observations, yet this objective does not explicitly encourage class separation in a compact representation of each light curve. We introduce Contrastive Astromer, a two-stage approach that makes these representations more useful for classification without changing the ASTROMER 2 encoder architecture. First, unsupervised contrastive learning on single-band MACHO light curves brings together representations of augmented views of the same object. Supervised contrastive learning, supported by an auxiliary classification loss, then uses a separate labeled Alcock sample to strengthen class discrimination. We evaluate the resulting representations by freezing the encoder and training a separate classifier. On a held-out set of 600 objects, this classifier achieves a macro-F1 of 0.7943 with 500 labeled examples per class, exceeding our reproduction of the ASTROMER 2 finetune-and-classify pipeline by 5.10 percentage points. With downstream classifier training budgets of 20 and 100 examples per class, macro-F1 reaches 0.7078 and 0.7704, respectively, also surpassing this baseline. Embedding-space analyses further show that supervised adaptation improves local class consistency and global class separation. These results show that contrastive adaptation makes pretrained light-curve representations more effective for classification and more informative about the structure of variability classes.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Feature-Based and Deep Learning Methods for Astronomical Light Curve Classification

    Nov 3, 2026V. Baymakanov, Kh. Khamitov, A. Raimova +7Time Series ClassificationAstrophysics

  2. Object-independent evaluation of small-data astronomical image classifiers: architecture, representation, and acquisition shortcuts

    Nov 4, 2026Eraldo Pereira MarinhoImage ClassificationShortcut Learning