PhysXAI: A Theoretical Framework for Diagnosing Physical Hallucinations in Weather Foundation Models
Abstract
Modern machine learning models for global weather forecasting achieve remarkable predictive accuracy, yet they frequently produce states that violate fundamental physical laws, including conservation of mass, hydrostatic balance, or spectral energy scaling. We term these outputs physical hallucinations and propose PhysXAI, a rigorous diagnostic framework that detects, localises, and attributes such inconsistencies. Unlike existing post-hoc metric suites, PhysXAI is a learnable system that explicitly decouples forecast error from physical plausibility. We formalise the problem through a novel joint condition on numerical and physical residuals, and introduce a multi-branch encoder that extracts representations from conservation, dynamical, spectral, cross-variable, and spatiotemporal residuals. A key innovation is a physics-consistency contrastive learning objective, which we theoretically show the latent representation to be approximately isometric to the physical residual space, ensuring that diagnostic decisions remain grounded in physically meaningful deviations. We further derive an adaptive multi-objective loss with gradient-based weighting to balance competing diagnostic objectives. The framework produces spatially resolved hallucination maps, violation-type classifications, and calibrated Bayesian uncertainty, enabling both detection and interpretable attribution of physical inconsistencies. We conduct a comprehensive comparative evaluation of PhysXAI across ERA5, WeatherBench 2, and MERRA-2, using forecasts from GraphCast, Pangu-Weather, and NeuralGCM, with Python-written code and a fully reproducible experimental protocol. Our theoretical analysis and empirical evaluation establish PhysXAI as a principled framework for diagnosing physical hallucinations and advancing trustworthy AI for weather forecasting.
Create a lesson
Related papers
Adapting AI Weather Foundation Models to a Changing Climate
Shared title terminology · Xinlei Xiong, Wenbo Hu, Shuxun Zhou et al.
Potential emergence in LLM agents: a statistical physics perspective
Shared title terminology · Zhuo-Yang Song, Hua Xing Zhu
More Bits Won't Fix It: Diagnosing and Treating an Ill-Conditioned Backward Pass (A Case Study on Gemma-4)
Shared title terminology · Jeong Hyun Lee
A Stationarity-Based Regret Framework for Time-Varying Nonconvex Composite Optimization
Shared title terminology · Nadav Hallak
Hierarchical Hybrid-Coordinate Flow Matching for Accurate and Physically Plausible Apo-to-Holo Protein Generation
Shared title terminology · Minjong Kim, Jaemin Sim, Dongwoo Kim et al.
Graph-XGB: A Hybrid GNN Framework for Outdoor-to-Indoor 5G Signal Reconstruction via Aerial-Only UAV RF Sensing
Shared title terminology · David Hason Rudd, Eunkwang Shin, Nithiwat Pattrapong et al.