JMLR

py/cuTAGI: An Open-Source Library for Tractable Approximate Gaussian Inference in Bayesian Neural Networks

Authors
Luong-Ha Nguyen James-A. Goulet Miquel Florensa-Montilla Van-Dai Vuong
Research Topics
Machine Learning Bayesian Statistics
Paper Information
  • Journal:
    Journal of Machine Learning Research
  • Added to Tracker:
    Jul 06, 2026
Abstract

This paper introduces pyTAGI, a Python wrapper, and cuTAGI, its high-performance C++/CUDA backend, implementing Tractable Approximate Gaussian Inference (TAGI) for neural networks. TAGI treats all network quantities as Gaussian random variables and derives closed-form expressions for prior/posterior expected values, variances, and covariances, enabling analytic Bayesian learning without relying on gradient descent or backpropagation. The libraries mimic PyTorch's sequential interface, allowing users to define models by stacking layers in order and performing uncertainty-aware Bayesian inference. Beyond epistemic uncertainty, it also allows quantifying heteroscedastic aleatoric uncertainty. cuTAGI's custom CPU/GPU kernels and distributed-data-parallel support via NCCL/MPI deliver competitive runtimes, while pyTAGI's pip-installable frontend and MIT-licensed GitHub repo facilitate community adoption and extension. Version 0.2.1 already supports a comprehensive suite of layers and activations; future work will add eager execution, further kernel optimizations, attention mechanisms, and advanced covariance factorization. Together, py/cuTAGI offer an efficient, open-source foundation for the analytic treatment of Bayesian deep learning.

Author Details
Luong-Ha Nguyen
Author
James-A. Goulet
Author
Miquel Florensa-Montilla
Author
Van-Dai Vuong
Author
Research Topics & Keywords
Machine Learning
Research Area
Bayesian Statistics
Research Area
Citation Information
APA Format
Luong-Ha Nguyen , James-A. Goulet , Miquel Florensa-Montilla & Van-Dai Vuong . py/cuTAGI: An Open-Source Library for Tractable Approximate Gaussian Inference in Bayesian Neural Networks. Journal of Machine Learning Research .
BibTeX Format
@article{paper1377,
  title = { py/cuTAGI: An Open-Source Library for Tractable Approximate Gaussian Inference in Bayesian Neural Networks },
  author = { Luong-Ha Nguyen and James-A. Goulet and Miquel Florensa-Montilla and Van-Dai Vuong },
  journal = { Journal of Machine Learning Research },
  url = { https://www.jmlr.org/papers/v27/25-1634.html }
}