TL;DR
This paper explores using Low-Rank Adaptation (LoRA), a parameter-efficient fine-tuning technique, to combine astronomical datasets with different ground truth labels for training convolutional neural networks (CNNs) to predict photometric redshifts. They demonstrate that LoRA offers a compelling middle ground between traditional transfer learning and full retraining, achieving improved accuracy and generalization with significantly reduced computational cost.
What Problem Does This Paper Address?
Accurately determining galaxy redshifts is crucial for understanding the universe's structure and evolution. While spectroscopic redshifts are highly accurate, they are expensive and time-consuming to obtain, limiting their use for large astronomical surveys. Photometric redshifts, derived from galaxy images, are more abundant but less accurate. Combining datasets with different ground truth labels (e.g., less accurate photometric redshifts for a broad range of galaxies and more accurate spectroscopic redshifts for a limited, brighter subset) is a promising approach to improve redshift prediction models. However, traditional methods like full retraining are computationally intensive, and standard transfer learning can sometimes lead to "catastrophic forgetting" of information learned from the initial dataset. This paper addresses the challenge of effectively leveraging diverse datasets to build more accurate and generalizable photometric redshift models while managing computational resources.
Methods
The core of this work lies in applying Low-Rank Adaptation (LoRA) to CNNs for photometric redshift prediction. LoRA is a technique originally developed for large language models that injects small, trainable "adapter" matrices into the pre-trained model's layers. This allows for efficient fine-tuning by only updating these low-rank adapters, rather than the entire model.
The authors trained four models:
- CNN-Base: A ResNet18-based CNN trained on a large dataset with photometric redshift ground truth (TransferZ-Images).
- CNN-TL: A traditional transfer learning approach where the CNN-Base model's weights are frozen except for the input and regressor layers, and then fine-tuned on a dataset with spectroscopic redshift ground truth (GalaxiesML).
- CNN-LoRA: The CNN-Base model fine-tuned using LoRA adapters on the GalaxiesML dataset.
- CNN-Combo: The CNN-Base model fully retrained on a combined dataset of TransferZ-Images and GalaxiesML.
They also explored a "reverse" fine-tuning direction, starting with a base model trained on spectroscopic data and fine-tuning on photometric data, to investigate the impact of ground truth quality on transfer learning.
Datasets
The study utilized three primary datasets:
- TransferZ-Images: A dataset of 100,442 galaxies with 5-band images and photometric redshift ground truths. This dataset was used to train the initial base model.
- GalaxiesML: A dataset of 286,401 galaxies with spectroscopic redshift ground truths. This dataset was used for fine-tuning.
- Combo: A combined dataset of 386,286 galaxies, incorporating both TransferZ-Images and GalaxiesML. This was used for full retraining.
A subset of 557 common galaxies between TransferZ-Images and GalaxiesML was used to compare photometric and spectroscopic ground truths, showing no systematic bias between them.
Key Insights and Ideas
- LoRA as a Sweet Spot: LoRA offers a compelling balance between computational efficiency and model performance. It significantly reduces training time and parameter updates compared to full retraining, while often outperforming traditional transfer learning, especially in terms of generalization.
- Ground Truth Quality Matters for Transfer: The direction of transfer learning is critical. Fine-tuning from a less accurate photometric dataset to a more accurate spectroscopic dataset (as in the primary experiments) yields better results than the reverse. This suggests that models trained on higher-quality data can better adapt to lower-quality data than vice-versa.
- Catastrophic Forgetting Mitigation: LoRA appears to be more robust against "catastrophic forgetting" than traditional transfer learning, where models can lose performance on the original training data. While CNN-LoRA showed some degradation on the original TransferZ-Images dataset, it was less pronounced than observed in some traditional transfer learning scenarios.
- Data Fraction Efficiency: LoRA can achieve significant performance improvements on the fine-tuning dataset with only a fraction of the data, further highlighting its efficiency for data-sparse scenarios.
Key Results
- Improved Accuracy: CNN-LoRA achieved approximately 2.5x less bias and 2.2x less scatter on the combined dataset compared to CNN-TL.
- Computational Efficiency: CNN-LoRA trained in significantly less time than CNN-Combo (e.g., 1.4 hours vs. 2.4 hours for comparable epochs) and also faster than CNN-TL in some configurations.
- Generalization: CNN-LoRA demonstrated better generalization capabilities than CNN-TL, performing more comparably to the fully retrained CNN-Combo model on the combined test set.
- Reverse Transfer Learning Issues: In the reverse fine-tuning direction (spectroscopic to photometric), CNN-TL-Rev and CNN-LoRA-Rev showed increased dispersion and outliers, indicating negative transfer.
- Base Model Performance: Interestingly, the CNN-Base-Rev model (trained solely on spectroscopic data) performed competitively, and in some cases better than transfer learning models on scatter and bias, suggesting that a strong base model on high-quality data can generalize well.
Limitations and Future Work
- Degradation on Original Data: While LoRA mitigates catastrophic forgetting, the CNN-LoRA model still showed some performance degradation on the original TransferZ-Images dataset compared to the CNN-Base model.
- Parameter Tuning: The authors note that further optimization of LoRA parameters (rank, alpha, dropout) could potentially improve performance.
- Ablation Studies: More extensive ablation studies on traditional transfer learning (varying which layers are frozen/unfrozen) could provide a more direct comparison.
- Full Retraining Comparison: Further investigation into full retraining with early stopping and varying data fractions could offer a more robust comparison to LoRA.
- Broader Applicability: The authors suggest that LoRA's utility for regression tasks in astrophysics, especially for leveraging pre-trained models in data-sparse scenarios, warrants further exploration.
Summary updated