Combining datasets with different ground truths using Low-Rank Adaptation to generalize image-based CNN models for photometric redshift prediction
Preprint
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.
Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- radio-llava: Advancing vision-language models for radio astronomical source analysisPublications of the Astronomical Society of Australia, 2025
- The PAU Survey and Euclid: Improving broadband photometric redshifts with multi-task learningAstronomy & Astrophysics, 2023
- Photometric redshifts from SDSS images with an interpretable deep capsule networkMonthly Notices of the Royal Astronomical Society, 2022
- Photometric redshift estimation with a convolutional neural network: NetZAstronomy & Astrophysics, 2021
- Photometric redshifts from SDSS images using a convolutional neural networkAstronomy & Astrophysics, 2018
- The many flavours of photometric redshiftsNature Astronomy, 2018
- Analysis of a custom support vector machine for photometric redshift estimation and the inclusion of galaxy shape informationAstronomy & Astrophysics, 2017
- ANNz2: Photometric Redshift and Probability Distribution Function Estimation using Machine LearningPublications of the Astronomical Society of the Pacific, 2016
- TPZ: photometric redshift PDFs and ancillary information by using prediction trees and random forestsMonthly Notices of the Royal Astronomical Society, 2013
- ANNz: Estimating Photometric Redshifts Using Artificial Neural NetworksPublications of the Astronomical Society of the Pacific, 2004