English

Estimating Probability Densities with Transformer and Denoising Diffusion

Machine Learning 2024-07-23 v1 Instrumentation and Methods for Astrophysics Machine Learning

Abstract

Transformers are often the go-to architecture to build foundation models that ingest a large amount of training data. But these models do not estimate the probability density distribution when trained on regression problems, yet obtaining full probabilistic outputs is crucial to many fields of science, where the probability distribution of the answer can be non-Gaussian and multimodal. In this work, we demonstrate that training a probabilistic model using a denoising diffusion head on top of the Transformer provides reasonable probability density estimation even for high-dimensional inputs. The combined Transformer+Denoising Diffusion model allows conditioning the output probability density on arbitrary combinations of inputs and it is thus a highly flexible density function emulator of all possible input/output combinations. We illustrate our Transformer+Denoising Diffusion model by training it on a large dataset of astronomical observations and measured labels of stars within our Galaxy and we apply it to a variety of inference tasks to show that the model can infer labels accurately with reasonable distributions.

Keywords

Cite

@article{arxiv.2407.15703,
  title  = {Estimating Probability Densities with Transformer and Denoising Diffusion},
  author = {Henry W. Leung and Jo Bovy and Joshua S. Speagle},
  journal= {arXiv preprint arXiv:2407.15703},
  year   = {2024}
}

Comments

Accepted at the ICML 2024 Workshop on Foundation Models in the Wild

R2 v1 2026-06-28T17:49:37.716Z