Papers
Topics
Authors
Recent
Search
2000 character limit reached

Scaling Laws for Galaxy Images

Published 3 Apr 2024 in cs.CV and astro-ph.GA | (2404.02973v1)

Abstract: We present the first systematic investigation of supervised scaling laws outside of an ImageNet-like context - on images of galaxies. We use 840k galaxy images and over 100M annotations by Galaxy Zoo volunteers, comparable in scale to Imagenet-1K. We find that adding annotated galaxy images provides a power law improvement in performance across all architectures and all tasks, while adding trainable parameters is effective only for some (typically more subjectively challenging) tasks. We then compare the downstream performance of finetuned models pretrained on either ImageNet-12k alone vs. additionally pretrained on our galaxy images. We achieve an average relative error rate reduction of 31% across 5 downstream tasks of scientific interest. Our finetuned models are more label-efficient and, unlike their ImageNet-12k-pretrained equivalents, often achieve linear transfer performance equal to that of end-to-end finetuning. We find relatively modest additional downstream benefits from scaling model size, implying that scaling alone is not sufficient to address our domain gap, and suggest that practitioners with qualitatively different images might benefit more from in-domain adaption followed by targeted downstream labelling.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (53)
  1. Deep Learning Scaling is Predictable, Empirically, December 2017. URL http://arxiv.org/abs/1712.00409. arXiv:1712.00409 [cs, stat].
  2. A Constructive Prediction of the Generalization Error Across Scales, December 2019. URL http://arxiv.org/abs/1909.12673. arXiv:1909.12673 [cs, stat].
  3. Scaling laws from the data manifold dimension. The Journal of Machine Learning Research, 23(1):9:343–9:376, January 2022. ISSN 1532-4435.
  4. Scaling Vision Transformers, June 2022. URL http://arxiv.org/abs/2106.04560. arXiv:2106.04560 [cs].
  5. Karen L. Masters. Twelve years of Galaxy Zoo. In Proceedings of the International Astronomical Union, volume 14, pages 205–212, October 2019. doi: 10.1017/S1743921319008615. URL http://arxiv.org/abs/1910.08177. arXiv: 1910.08177 Issue: S353 ISSN: 17439221.
  6. ImageNet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, June 2009. doi: 10.1109/CVPR.2009.5206848. URL https://ieeexplore.ieee.org/document/5206848. ISSN: 1063-6919.
  7. Learning Transferable Visual Models From Natural Language Supervision. OpenAI, page 47, 2021. URL http://arxiv.org/abs/2103.00020. arXiv: 2103.00020.
  8. Scaling Laws of Synthetic Images for Model Training … for Now, December 2023. URL http://arxiv.org/abs/2312.04567. arXiv:2312.04567 [cs].
  9. Assaying Out-Of-Distribution Generalization in Transfer Learning. 2022. doi: 10.48550/ARXIV.2207.09239. URL https://arxiv.org/abs/2207.09239. Publisher: [object Object] Version Number: 2.
  10. Effect of scale on catastrophic forgetting in neural networks. October 2021. URL https://openreview.net/forum?id=GhVS8_yPeEa.
  11. On the Opportunities and Risks of Foundation Models, August 2021. URL http://arxiv.org/abs/2108.07258. arXiv: 2108.07258.
  12. Rethinking pre-training on medical imaging. Journal of Visual Communication and Image Representation, 78:103145, July 2021. ISSN 1047-3203. doi: 10.1016/j.jvcir.2021.103145. URL https://www.sciencedirect.com/science/article/pii/S1047320321000894.
  13. Transfusion: Understanding Transfer Learning for Medical Imaging. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_files/paper/2019/hash/eb1e78328c46506b46a4ac4a1e378b91-Abstract.html.
  14. Supervised Transfer Learning at Scale for Medical Imaging. ArXiv, January 2021. URL https://www.semanticscholar.org/paper/Supervised-Transfer-Learning-at-Scale-for-Medical-Mustafa-Loh/f37e3d82823fae4acad83706512297fc6a77fe19.
  15. Mehdi Cherti and J. Jitsev. Effect of large-scale pre-training on full and few-shot transfer learning for natural and medical images. ArXiv, 2021. URL https://www.semanticscholar.org/paper/Effect-of-large-scale-pre-training-on-full-and-for-Cherti-Jitsev/f1362000a1561924a3a07d7b9ab3d8cc3fd4e96d.
  16. What Makes Transfer Learning Work for Medical Images: Feature Reuse & Other Factors. 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9215–9224, June 2022. doi: 10.1109/CVPR52688.2022.00901. URL https://ieeexplore.ieee.org/document/9878482/. Conference Name: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) ISBN: 9781665469463 Place: New Orleans, LA, USA Publisher: IEEE.
  17. What is being transferred in transfer learning? In Advances in Neural Information Processing Systems, volume 33, pages 512–523. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/hash/0607f4c705595b911a4f3e7a127b44e0-Abstract.html.
  18. A Systematic Benchmarking Analysis of Transfer Learning for Medical Image Analysis. 12968:3–13, 2021. doi: 10.1007/978-3-030-87722-4_1. URL https://link.springer.com/10.1007/978-3-030-87722-4_1. Book Title: Domain Adaptation and Representation Transfer, and Affordable Healthcare and AI for Resource Diverse Global Health ISBN: 9783030877217 9783030877224 Place: Cham Publisher: Springer International Publishing.
  19. Ross Wightman. Pytorch image models. https://github.com/rwightman/pytorch-image-models, 2019.
  20. Rishit Dagli. Astroformer: More Data Might not be all you need for Classification. 2023. doi: 10.48550/ARXIV.2304.05350. URL https://arxiv.org/abs/2304.05350. Publisher: arXiv Version Number: 2.
  21. Gaia Data Release 3 - Summary of the content and survey properties. Astronomy & Astrophysics, 674:A1, June 2023. ISSN 0004-6361, 1432-0746. doi: 10.1051/0004-6361/202243940. URL https://www.aanda.org/articles/aa/abs/2023/06/aa43940-22/aa43940-22.html. Publisher: EDP Sciences.
  22. Rotation-invariant convolutional neural networks for galaxy morphology prediction. Monthly Notices of the Royal Astronomical Society, 450(2):1441–1459, 2015. ISSN 0035-8711. doi: 10.1093/mnras/stv632. URL http://arxiv.org/abs/1503.07077. arXiv: 1503.07077.
  23. Euclid preparation. Measuring detailed galaxy morphologies for Euclid with Machine Learning, February 2024. URL http://arxiv.org/abs/2402.10187. arXiv:2402.10187 [astro-ph].
  24. Transfer learning for galaxy morphology from one survey to another. Monthly Notices of the Royal Astronomical Society, 484(1):93–100, March 2019. ISSN 13652966. doi: 10.1093/mnras/sty3497. URL https://academic.oup.com/mnras/article/484/1/93/5266389. arXiv: 1807.00807 Publisher: Oxford University Press.
  25. Transfer learning for radio galaxy classification. Monthly Notices of the Royal Astronomical Society, 488(3):3358–3375, September 2019. doi: 10.1093/mnras/stz1883.
  26. Learning useful representations for radio astronomy "in the wild" with contrastive learning. In Machine Learning for Astrophysics Workshop at the Thirty Ninth International Conference on Machine Learning (ICML 2022), July 2022. doi: 10.48550/arxiv.2207.08666. URL http://arxiv.org/abs/2207.08666. arXiv: 2207.08666.
  27. Galaxy Zoo DESI: Detailed Morphology Measurements for 8.7M Galaxies in the DESI Legacy Imaging Surveys. MNRAS, 000:1–18, September 2023. URL http://arxiv.org/abs/2309.11425. arXiv: 2309.11425 ISBN: 2309.11425v1.
  28. Galaxy Zoo DECaLS: Detailed visual morphology measurements from volunteers and deep learning for 314 000 galaxies. Monthly Notices of the Royal Astronomical Society, 509(3):3966–3988, December 2022a. ISSN 13652966. doi: 10.1093/mnras/stab2093. URL https://doi.org/10.1093/mnras/stab2093. arXiv: 2102.08414.
  29. Galaxy Morphology Network: A Convolutional Neural Network Used to Study Morphology and Quenching in  100,000 SDSS and  20,000 CANDELS Galaxies. The Astrophysical Journal, 895(2):112, June 2020. ISSN 15384357. doi: 10.3847/1538-4357/ab8a47. URL https://doi.org/10.3847/1538-4357/ab8a47. arXiv: 2006.14639 Publisher: American Astronomical Society.
  30. Are Emergent Abilities of Large Language Models a Mirage?, May 2023a. URL http://arxiv.org/abs/2304.15004. arXiv:2304.15004 [cs].
  31. Deep residual learning for image recognition. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, volume 2016-Decem, pages 770–778. IEEE, June 2016. ISBN 978-1-4673-8850-4. doi: 10.1109/CVPR.2016.90. URL http://ieeexplore.ieee.org/document/7780459/. arXiv: 1512.03385 ISSN: 10636919.
  32. EfficientNet: Rethinking model scaling for convolutional neural networks. In 36th International Conference on Machine Learning, ICML 2019, pages 10691–10700, Long Beach, CA, May 2019. Proceedings of Machine Learning Research. ISBN 978-1-5108-8698-8. URL http://arxiv.org/abs/1905.11946. arXiv: 1905.11946.
  33. EfficientNetV2: Smaller Models and Faster Training. April 2021. URL http://arxiv.org/abs/2104.00298. arXiv: 2104.00298.
  34. MaxViT: Multi-axis Vision Transformer. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), volume 13684 LNCS, pages 459–479, April 2022. ISBN 978-3-031-20052-6. doi: 10.1007/978-3-031-20053-3_27. URL https://arxiv.org/abs/2204.01697v4. arXiv: 2204.01697 ISSN: 16113349.
  35. A ConvNet for the 2020s. January 2022. URL http://arxiv.org/abs/2201.03545. arXiv: 2201.03545.
  36. Jonathan S Rosenfeld. Scaling Laws for Deep Learning.
  37. Double Descent Demystified: Identifying, Interpreting & Ablating the Sources of a Deep Learning Puzzle, March 2023b. URL http://arxiv.org/abs/2303.14151. arXiv:2303.14151 [cs, stat].
  38. Reproducible scaling laws for contrastive language-image learning, December 2022. URL http://arxiv.org/abs/2212.07143. arXiv:2212.07143 [cs].
  39. Self-supervised similarity search for large scientific datasets. arXiv preprint, October 2021. URL http://arxiv.org/abs/2110.13151. arXiv: 2110.13151.
  40. AstroCLIP: Cross-Modal Pre-Training for Astronomical Foundation Models, October 2023. URL http://arxiv.org/abs/2310.03024. arXiv:2310.03024 [astro-ph].
  41. Towards Galaxy Foundation Models with Hybrid Contrastive Learning. Machine Learning for Astrophysics Workshop at the Thirty Ninth International Conference on Machine Learning (ICML 2022), June 2022b. doi: 10.48550/arxiv.2206.11927. arXiv: 2206.11927.
  42. emcee v3: A Python ensemble sampling toolkit for affine-invariant MCMC, November 2019. URL http://dx.doi.org/10.21105/joss.01864. arXiv: 1911.07688 Pages: 1864 Publication Title: Journal of Open Source Software Volume: 4 Issue: 43 ISSN: 2475-9066.
  43. Decoupled Weight Decay Regularization, January 2019. URL http://arxiv.org/abs/1711.05101. arXiv:1711.05101 [cs, math].
  44. Galaxy Zoo 2: Detailed morphological classifications for 304 122 galaxies from the sloan digital sky survey. Monthly Notices of the Royal Astronomical Society, 435(4):2835–2860, 2013. ISSN 00358711. doi: 10.1093/mnras/stt1458. arXiv: 1308.3496v2 ISBN: doi:10.1093/mnras/stt1458.
  45. Galaxy Zoo: Morphological classifications for 120 000 galaxies in HST legacy imaging. Monthly Notices of the Royal Astronomical Society, 464(4):4176–4203, February 2017. ISSN 13652966. doi: 10.1093/mnras/stw2568. URL https://academic.oup.com/mnras/article-lookup/doi/10.1093/mnras/stw2568. arXiv: 1610.03068 Publisher: Oxford University Press.
  46. Galaxy Zoo: Quantitative visual morphological classifications for 48 000 galaxies from CANDELS. Monthly Notices of the Royal Astronomical Society, 464(4):4420–4447, 2017. ISSN 13652966. doi: 10.1093/mnras/stw2587. arXiv: 1610.03070v1.
  47. The UKIRT infrared deep sky survey (UKIDSS). Monthly Notices of the Royal Astronomical Society, 379(4):1599–1617, August 2007. ISSN 13652966. doi: 10.1111/j.1365-2966.2007.12040.x. URL https://academic.oup.com/mnras/article-lookup/doi/10.1111/j.1365-2966.2007.12040.x. arXiv: astro-ph/0604426 Publisher: Oxford University Press ISBN: 0035-8711.
  48. Shape asymmetry: A morphological indicator for automatic detection of galaxies in the post-coalescence merger stages. Monthly Notices of the Royal Astronomical Society, 456(3):3032–3052, 2016. ISSN 13652966. doi: 10.1093/mnras/stv2878. arXiv: 1512.02000.
  49. Deep learning predictions of galaxy merger stage and the importance of observational realism. Monthly Notices of the Royal Astronomical Society, 490(4):5390–5413, October 2019. ISSN 13652966. doi: 10.1093/mnras/stz2934. URL http://arxiv.org/abs/1910.07031. arXiv: 1910.07031.
  50. Identifying Galaxy Mergers in Observations and Simulations with Deep Learning. Astronomy & Astrophysics, 626(49), February 2019. ISSN 0004-6361. doi: 10.1051/0004-6361/201935355. arXiv: 1902.10626 Publisher: arXiv.
  51. Overview of the DESI Legacy Imaging Surveys. The Astronomical Journal, 157(5):168, April 2019. ISSN 00046256. doi: 10.3847/1538-3881/ab089d. URL http://arxiv.org/abs/1804.08657. arXiv: 1804.08657.
  52. Faint tidal features in galaxies within the Canada-France-Hawaii telescope legacy survey wide fields. Astrophysical Journal, 765(1), 2013. ISSN 15384357. doi: 10.1088/0004-637X/765/1/28. arXiv: 1301.4275.
  53. Ronald J. Buta. Galactic rings revisited - I. CVRHS classifications of 3962 ringed galaxies from the Galaxy Zoo 2 Database. Monthly Notices of the Royal Astronomical Society, 471(4):4027–4046, November 2017. ISSN 13652966. doi: 10.1093/MNRAS/STX1829. URL http://s3.amazonaws.com/zoo2/filen.jpg,. arXiv: 1707.06589 Publisher: Oxford University Press.
Citations (4)

Summary

  • The paper investigates supervised scaling laws on 840,000 galaxy images, demonstrating a robust power law relationship between dataset size and performance across various neural architectures.
  • Scaling data consistently improves performance, while scaling model parameters benefits only more complex tasks, and domain-specific pre-training reduces error rates by 31% compared to ImageNet pre-training.
  • The findings highlight the importance of tailored training strategies and domain-specific data for optimizing machine learning models on non-traditional image datasets like those in astronomy and medical imaging.

Analysis of "Scaling Laws for Galaxy Images"

The paper "Scaling Laws for Galaxy Images" represents a significant investigation into the applicability of supervised scaling laws on datasets that are qualitatively different from the traditionally ImageNet-like contexts, focusing specifically on images from galaxies. The research utilizes an extensive dataset that encompasses 840,000 galaxy images, annotated with over 100 million labels. This paper conducts a critical exploration of how larger datasets and model architectures influence the performance of machine learning algorithms in tasks related to galaxy morphology assessment.

Summary and Key Findings

The paper is structured around evaluating the impact of scaling both the dataset size and the model complexity through controlled experiments. It employs a diverse set of neural network architectures, including ResNet, EfficientNet, ConvNeXT, and MaxViT, to benchmark and derive insights into their scaling behaviors. The core discovery is the identification of a power law relationship between the number of annotated samples and the performance improvements across various galaxy image analysis tasks. This relationship is preserved across all neural architectures tested, suggesting its robustness. In contrast, scaling model parameters yields improvements primarily on more complex tasks, with some models benefiting more than others based on task difficulty.

Significantly, the study demonstrates that the models pre-trained on domain-specific galaxy images and fine-tuned for downstream applications on galaxy task datasets showed a marked improvement in performance over models pre-trained solely on conventional ImageNet datasets. The domain-specific pre-training achieved an average relative error rate reduction of 31% across five key tasks, highlighting the value of bespoke training on specialized datasets.

Implications

The implications of this research are multifaceted. Practically, it provides compelling evidence for practitioners in fields with non-traditional image datasets—such as astronomy, medical imaging, and remote sensing—that domain-specific pretraining can enhance model performance, especially when facing a domain shift. This is particularly crucial for areas where collecting extensive labeled datasets is challenging or infeasible. Theoretically, the findings affirm that while more data generally enhances model performance, the qualitative nature of data plays a critical role and must be considered alongside architectural scaling.

Future Directions

Given the comprehensive nature of this research, future work could explore self-supervised and hybrid approaches to contrast supervised pre-training effects observed in this study. Additionally, researchers might investigate scaling law applicability on other non-ImageNet-like datasets to further test these hypotheses and explore cross-domain adaptability in transfer learning scenarios. The insights into domain-specific adaption highlight potential research avenues in developing more generalizable models, possibly utilizing meta-learning or continual learning frameworks.

Conclusion

In conclusion, the study of scaling laws on galaxy image data makes a substantial contribution to understanding machine learning performance outside conventional benchmarks. By explicitly demonstrating the benefits of domain-specific data in improving model accuracy and efficiency, this paper sets a new precedent for specialized dataset applications. It underscores the importance of tailored training strategies for datasets with unique characteristics, providing a crucial resource for maximizing the efficacy of machine learning models in specialized scientific domains.

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 haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

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

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.