Combining datasets with different ground truths using Low-Rank Adaptation to generalize image-based CNN models for photometric redshift prediction
Vikram Seenivasan, Srinath Saikrishnan, Andrew Lizarraga, Jonathan Soriano, Bernie Boscoe, Tuan Do
TL;DR
This work tackles the challenge of leveraging heterogeneous ground-truth sources for galaxy redshift regression by using Low-Rank Adaptation (LoRA) to finely adjust a CNN trained on photometric redshifts with spectroscopic fine-tuning data. The authors compare LoRA to traditional transfer learning and full retraining across three datasets (TransferZ-Images, GalaxiesML, and the combined Combo), demonstrating that LoRA reduces bias and scatter relative to TL and requires far less computation than retraining on all data. They show that approximately 40–50% of the spectroscopic data during LoRA fine-tuning can yield near-Combo performance, highlighting LoRA as a practical middle ground for data-sparse regimes. The study suggests LoRA’s potential to adapt pre-trained astrophysical models to multiple new datasets, a valuable capability for upcoming surveys like LSST that will demand efficient leveraging of existing models. <math>LoRA</math> thus emerges as a promising tool for precision cosmology when ground-truth data are unevenly distributed.
Abstract
In this work, we demonstrate how Low-Rank Adaptation (LoRA) can be used to combine different galaxy imaging datasets to improve redshift estimation with CNN models for cosmology. LoRA is an established technique for large language models that adds adapter networks to adjust model weights and biases to efficiently fine-tune large base models without retraining. We train a base model using a photometric redshift ground truth dataset, which contains broad galaxy types but is less accurate. We then fine-tune using LoRA on a spectroscopic redshift ground truth dataset. These redshifts are more accurate but limited to bright galaxies and take orders of magnitude more time to obtain, so are less available for large surveys. Ideally, the combination of the two datasets would yield more accurate models that generalize well. The LoRA model performs better than a traditional transfer learning method, with $\sim2.5\times$ less bias and $\sim$2.2$\times$ less scatter. Retraining the model on a combined dataset yields a model that generalizes better than LoRA but at a cost of greater computation time. Our work shows that LoRA is useful for fine-tuning regression models in astrophysics by providing a middle ground between full retraining and no retraining. LoRA shows potential in allowing us to leverage existing pretrained astrophysical models, especially for data sparse tasks.
