Abstract
Physical constraints have been suggested to make neural network models more generalizable, act scientifically plausible, and be more data-efficient over unconstrained baselines. In this report, we present preliminary work on evaluating the effects of adding soft physical constraints to computer vision neural networks trained to estimate the conditional density of redshift on input galaxy images for the Sloan Digital Sky Survey. We introduce physically motivated soft constraint terms that are not implemented with differential or integral operators. We frame this work as a simple ablation study where the effect of including soft physical constraints is compared to an unconstrained baseline. We compare networks using standard point estimate metrics for photometric redshift estimation, as well as metrics to evaluate how faithful our conditional density estimate represents the probability over the ensemble of our test dataset. We find no evidence that the implemented soft physical constraints are more effective regularizers than augmentation.
Introduction
In cosmology, redshift is a fundamental measure of the expansion of the universe, serving as a proxy for both distance and age. While traditionally estimated through photometry (brightness in color filters), modern deep learning models can now estimate redshift directly from galaxy images. However, these models often operate as "black boxes" that may ignore physical laws. To enhance robustness and scientific plausibility, researchers have begun exploring Physics-Informed Neural Networks (PINNs). This study evaluates whether baking physical principles—such as rotational invariance and flux consistency—directly into the loss function improves estimation performance.
Methodology
We employ a ResNet50 architecture to perform Conditional Density Estimation (CDE). Unlike point-estimate models, this approach predicts a probability distribution to account for uncertainty. The primary innovation is the introduction of "soft physical constraints" added to the loss function ($L_{phy}$):
- Flux Consistency ($P_{Flux}$): Ensures predicted redshift is consistent with light flux across filters.
- Rotational and Flip Invariance ($P_{rotation}$): Penalizes the model if predictions change when the input image is rotated or flipped.
- Background Invariance ($P_{background}$): Ensures the model focuses on the galaxy rather than background noise.
This setup was evaluated using the SDSS (Sloan Digital Sky Survey) DR12 dataset, comprising approximately 486,000 training samples and 121,000 test samples of $64 \times 64$ pixel images across five photometric bands (u, g, r, i, z).
Results and Discussion
The quantitative results of our ablation study are summarized in the table below, comparing our models against standard baselines and existing literature.
As shown in Table 1, the physically constrained model achieved a Median Absolute Deviation (MAD) of 1.12e-2, representing a marginal improvement over the baseline with augmentation (1.17e-2). However, this improvement came at a steep computational cost: the physically constrained model required 24.52 hours to train, nearly triple the time of the augmented baseline (8.16 hours).
Interestingly, the baseline without augmentation maintained the lowest outlier rate (1.48%). While both augmentation and physical constraints improved the calibration of probability distributions (as seen in PIT visualizations), the explicit physical terms did not provide a unique advantage over standard data augmentation techniques.
Conclusion
Our preliminary findings suggest that soft physical constraints primarily serve as regularizers. In the context of photometric redshift estimation, these constraints do not meaningfully outperform standard data augmentation and introduce significant computational overhead. Future work will focus on improving the efficiency of these physical operators and exploring hybrid models that combine deep learning with traditional physical template fitting.
Summary updated