Hostname: page-component-76d6cb85b7-6jg5l Total loading time: 0 Render date: 2026-07-13T08:16:10.253Z Has data issue: false hasContentIssue false

Emulating non-differentiable metrics via knowledge-guided learning: Introducing the Minkowski image loss

Published online by Cambridge University Press:  09 July 2026

Filippo Quarenghi*
Affiliation:
Faculty of Geosciences and Environment, University of Lausanne , Lausanne, Switzerland
Ryan Cotsakis
Affiliation:
University of Lausanne , Switzerland
Tom Beucler
Affiliation:
Faculty of Geosciences and Environment—FGSE Unil, University of Lausanne , Switzerland
*
Corresponding author: Filippo Quarenghi; Email: filippo.quarenghi@unil.ch

Abstract

The “differentiability gap” presents a primary bottleneck in Earth system deep learning: Since models cannot be trained directly on non-differentiable scientific metrics and must rely on smooth proxies (e.g., MSE), they often fail to capture high-frequency details, yielding “blurry” outputs. We develop a framework that bridges this gap using two different methods to deal with non-differentiable functions: The first is to analytically approximate the original non-differentiable function into a differentiable equivalent one; the second is to learn differentiable surrogates for scientific functionals. We formulate the analytical approximation by relaxing discrete topological operations using temperature-controlled sigmoids and continuous logical operators. Conversely, our neural emulator uses Lipschitz-convolutional neural networks to stabilize gradient learning via: (1) spectral normalization to bound the Lipschitz constant and (2) hard architectural constraints enforcing geometric principles. We demonstrate this framework’s utility by developing the Minkowski image loss, a differentiable equivalent for the integral-geometric measures of surface precipitation fields (area, perimeter, and connected components). Validated on the EUMETNET OPERA dataset, our constrained neural surrogate achieves high emulation accuracy, completely eliminating the geometric violations observed in unconstrained baselines, which generate physically impossible precipitation fields in up to 7.8% of cases. However, applying these differentiable surrogates to a deterministic super-resolution task reveals a fundamental trade-off: While strict Lipschitz regularization ensures optimization stability, it inherently over-smooths gradient signals, restricting the recovery of highly localized convective textures. This work highlights the necessity of coupling such topological constraints with stochastic generative architectures to achieve full morphological realism.

Information

Type
Methods Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Conceptual overview of the differentiable surrogate training framework. The lack of gradient flow (red connection) prevents the direct optimization of SciML models ($ {M}_{\theta } $) using non-differentiable scientific metrics (G$ \mathcal{G} $), which typically involve discrete operations like thresholding (step function plot). We overcome this limitation by using knowledge and machine learning techniques to create a differentiable surrogate loss ($ \mathrm{\mathcal{L}} $) that approximates the target metric. This differentiable loss, with a well-behaved optimization landscape, can then be successfully integrated into the model’s training pipeline (green connection), enabling the direct backpropagation of structurally and physically relevant error signals.

Figure 1

Figure 2. (Left) Lipschitz-bound feature extractor: The backbone acts as a hierarchical encoder. Stability is enforced via spectral normalization and residual connections. We use global sum pooling to preserve the extensivity of geometric features. (Right) Geometric constraint heads: The area Âu$ \hat{A}(u) $ is constructed via integration of a predicted probability density to enforce monotonicity. The perimeter P̂u$ \hat{P}(u) $ is conditioned on the area via the isoperimetric inequality, preventing geometric principles’ violations.Figure 2. long description.

Figure 2

Table 1. Comparison of analytical approximation and emulationTable 1. long description.

Figure 3

Figure 3. Feature inversion results. Qualitative comparison of precipitation fields reconstructed by inverting the target Minkowski vector γgt$ {\boldsymbol{\gamma}}_{\mathrm{gt}} $ for a test sample (left). All architectures recover the storm’s magnitude, while only constrained models generate coherent, smooth intensity gradients characteristic of convective cells (bottom left).Figure 3. long description.

Figure 4

Table 2. Quantitative comparison of super-resolution deterministic architecturesTable 2. long description.

Figure 5

Figure 4. Structural fidelity in precipitation downscaling. The unconstrained UNet produces an amorphous shield, missing localized convective peaks. Integral-geometric constraints (analytical and Lip-CNN) yield only marginal improvement. The stochastic DDIM baseline recovers textural realism and multiscale variance, confirming the limitations of deterministic optimization.Figure 4. long description.

Supplementary material: File

Quarenghi et al. supplementary material

Quarenghi et al. supplementary material
Download Quarenghi et al. supplementary material(File)
File 704 KB