Physical mechanisms governing generalization and hallucination in deep learning for imaging through scattering media.

Zhang, Xuyu; Zhong, Tianting; Huang, Haofan; Zhang, Dawei; Zhuang, Songlin; Han, Shensheng; Lai, Puxiang; Liu, Honglin · Nat Commun · 2026

basic_science · Level V

Where this comes from

Abstract

Deep learning has revolutionized computational imaging, yet its real-world deployment remains constrained by two critical challenges: poor generalization under dynamic conditions and the emergence of hallucinatory artifacts. By leveraging a physics-guided framework based on scattering media, a model system where controlled variations in light transmission matrices (<math xmlns="http://www.w3.org/1998/Math/MathML"><mi>T</mi></math>) isolates these challenges, we unravel the mechanistic interplay between generalization limits and hallucination origins. We demonstrate that a network's generalization capacity is fundamentally bounded by its ability to accommodate distinct inverse mappings (<math xmlns="http://www.w3.org/1998/Math/MathML"><msup><mrow><mi>T</mi></mrow><mrow><mo>-</mo><mn>1</mn></mrow></msup></math>), while hallucinations arise when this capacity is exceeded, resulting in unconstrained, non-physical predictions. We also identify residual ballistic light, if not negligible, as a stabilizing anchor, enabling robust predictions under scattering variability. Integrating experimental validation with wave-optics simulations, we establish a universal framework that links these phenomena, showing that strategic training on diverse physical mappings enhances generalization while suppressing hallucinations. This work bridges physics-driven interpretability with AI design, offering actionable strategies to develop reliable models for applications ranging from medical imaging through biological tissues to autonomous navigation in scattering environments.