Conference paper
Cite …

gmtorch: Computing with Gaussian Mixture Uncertainty in PyTorch

Ali Darijani ORCID iD icon 1,2,3, Benedikt Stratmann 2, Genís Floriach Pigem 1,3,4,5, Jürgen Beyerer 1,2,3, Luisa Hoffmann ORCID iD icon 6 and Michael Heizmann 6
1 Fakultät für Informatik – Lehrstuhl IES Beyerer: Interaktive Echtzeitsysteme (Lehrstuhl IES Beyerer: Interaktive Echtzeitsysteme), Karlsruhe Institute of Technology (KIT)
2 Fraunhofer Institute of Optronics, System Technologies and Image Exploitation (IOSB)
3 Institute for Anthropomatics and Robotics (IAR), Karlsruhe Institute of Technology (KIT)
4 Karlsruhe Institute of Technology (KIT)
5 Technical University of Munich (TUM)
6 Institute of Industrial Information Technology (IIIT), Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000198401
Postprint published on Nov 2, 2026
Abstract

Gaussian mixture models (GMMs) can represent multimodal, non-Gaussian

uncertainty while retaining analytical structure. Scientific workflows,

however, require more than fitting a mixture to observations: uncertain

quantities must remain available for subsequent transformations, arithmetic,

conditioning, and information combination. We present \textsc{gmtorch}, a

\textsc{PyTorch} framework for computing with GMM-represented uncertain scalar

and vector quantities. Mixtures may be constructed from parameters or

estimated from data; every mixture-valued result remains a complete distribution that can be

evaluated, sampled, summarized, conditioned, or used in a subsequent

calculation.

Marginalization, conditioning, affine maps, sums and differences under

independence, and normalized density products are evaluated analytically and

can be composed with assumptions made explicit by the selected operations and

with component counts tracked. When nonlinear maps leave the finite-GMM family, or exact operations

produce impractically many components, the framework provides explicit

sample--transform--refit propagation and mixture reduction. Full-covariance

computations use Cholesky-based linear algebra and blocked pairwise kernels.

Reference checks compare exact operations with independently assembled

formulas, and a single-epoch localization example illustrates sequential

likelihood-based updating and the resulting growth in mixture components. The

contribution is a consistent software realization of

established GMM calculus, with exact and approximate steps made explicit.