Estimating Probability Densities with Transformer and Denoising Diffusion
<|reference_start|>Estimating Probability Densities with Transformer and Denoising Diffusion: 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.<|reference_end|>
@article{leung2024estimating,
    title={Estimating Probability Densities with Transformer and Denoising
  Diffusion},
    author={Henry W. Leung, Jo Bovy, Joshua S. Speagle},
    journal={arXiv preprint arXiv:2407.15703},
    year={2024},
    archivePrefix={arXiv},
    eprint={2407.15703},
    primaryClass={cs.LG astro-ph.IM stat.ML}
}