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

X Xuyu Zhang T Tianting Zhong H Haofan Huang D Dawei Zhang (State Key Laboratory of Petroleum Molecular & Process Engineering, Shanghai Key Laboratory of Green Chemistry and Chemical Processes, School of Chemistry and Molecular Engineering) S Songlin Zhuang S Shensheng Han P Puxiang Lai H Honglin Liu (Laboratory of Genetic Dissection and Regulation of Economically Important Traits in Animals, College of Animal Science and Technology, Nanjing Agricultural University)

Abstract

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 ( $$T$$ T ) 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 ( $${T}^{-1}$$ T − 1 ), 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.

Article Details

Volume / Issue Vol. 17, Issue 1
Published April 23, 2026
ISSN 2041-1723
Publisher Nature Portfolio

Journal Info

Nature Communications

Nature Portfolio

ISSN: 2041-1723 Open Access Life Sciences

Authors (8)

X

Xuyu Zhang

T

Tianting Zhong

H

Haofan Huang

D

Dawei Zhang

State Key Laboratory of Petroleum Molecular & Process Engineering, Shanghai Key Laboratory of Green Chemistry and Chemical Processes, School of Chemistry and Molecular Engineering

S

Songlin Zhuang

S

Shensheng Han

P

Puxiang Lai

H

Honglin Liu

Laboratory of Genetic Dissection and Regulation of Economically Important Traits in Animals, College of Animal Science and Technology, Nanjing Agricultural University