Contrastive Normalizing Flows for Uncertainty-Aware Parameter Estimation

Ibrahim Elsharkawy, Yonatan Kahn
5/13/2025
physics.data-ancs.LGhep-ex

No confident code implementation found for this paper.

Abstract

Estimating physical parameters from data is a crucial application of machine learning (ML) in the physical sciences. However, systematic uncertainties, such as detector miscalibration, induce data distribution distortions that can erode statistical precision. In both high-energy physics (HEP) and broader ML contexts, achieving uncertainty-aware parameter estimation under these domain shifts remains an open problem. In this work, we address this challenge of uncertainty-aware parameter estimation for a broad set of tasks critical for HEP. We introduce a novel approach based on Contrastive Normalizing Flows (CNFs), which achieves top performance on the HiggsML Uncertainty Challenge dataset. Building on the insight that a binary classifier can approximate the model parameter likelihood ratio, we address the practical limitations of expressivity and the high cost of simulating high-dimensional parameter grids by embedding data and parameters in a learned CNF mapping. This mapping yields a tunable contrastive distribution that enables robust classification under shifted data distributions. Through a combination of theoretical analysis and empirical evaluations, we demonstrate that CNFs, when coupled with a classifier and established frequentist techniques, provide principled parameter estimation and uncertainty quantification through classification that is robust to data distribution distortions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{elsharkawy2025contrastive,
  title  = {Contrastive Normalizing Flows for Uncertainty-Aware Parameter Estimation},
  author = {Ibrahim Elsharkawy and Yonatan Kahn},
  year   = {2025},
  eprint = {2505.08709},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.08709v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.08709.svg)](https://codeofpaper.com/paper/2505.08709)

Discussion