English

Towards out-of-distribution generalization in large-scale astronomical surveys: robust networks learn similar representations

Instrumentation and Methods for Astrophysics 2023-12-01 v1 Astrophysics of Galaxies Machine Learning

Abstract

The generalization of machine learning (ML) models to out-of-distribution (OOD) examples remains a key challenge in extracting information from upcoming astronomical surveys. Interpretability approaches are a natural way to gain insights into the OOD generalization problem. We use Centered Kernel Alignment (CKA), a similarity measure metric of neural network representations, to examine the relationship between representation similarity and performance of pre-trained Convolutional Neural Networks (CNNs) on the CAMELS Multifield Dataset. We find that when models are robust to a distribution shift, they produce substantially different representations across their layers on OOD data. However, when they fail to generalize, these representations change less from layer to layer on OOD data. We discuss the potential application of similarity representation in guiding model design, training strategy, and mitigating the OOD problem by incorporating CKA as an inductive bias during training.

Keywords

Cite

@article{arxiv.2311.18007,
  title  = {Towards out-of-distribution generalization in large-scale astronomical surveys: robust networks learn similar representations},
  author = {Yash Gondhalekar and Sultan Hassan and Naomi Saphra and Sambatra Andrianomena},
  journal= {arXiv preprint arXiv:2311.18007},
  year   = {2023}
}

Comments

Accepted to Machine Learning and the Physical Sciences Workshop, NeurIPS 2023