Skip to main content

No project description provided

Project description

Variational Bayesian Last Layers (VBLL)

PyPI Documentation Status License: MIT arXiv

VBLL introduces a deterministic variational formulation for training Bayesian last layers in neural networks. This method offers a computationally efficient approach to improving uncertainty estimation in deep learning models. By leveraging this technique, VBLL can be trained and evaluated with quadratic complexity in last layer width, making it nearly computationally free to add to standard architectures. Our work focuses on enhancing predictive accuracy, calibration, and out-of-distribution detection over baselines in both regression and classification.

Installation

The easiest way to install VBLL is with pip:

pip install vbll

You can also install by cloning the GitHub repo:

# Clone the repository
git clone https://github.com/VectorInstitute/vbll.git

# Navigate into the repository directory
cd vbll

# Install required dependencies
pip install -e .

Usage and Tutorials

Documentation is available here.

You can also check out our tutorial colabs:

  • Regression: Open In Colab
  • Classification: Open In Colab

Contributing

Contributions to the VBLL project are welcome. If you're interested in contributing, please read the contribution guidelines in the repository.

Citation

If you find VBLL useful in your research, please consider citing our paper:

@inproceedings{harrison2024vbll,
  title={Variational Bayesian Last Layers},
  author={Harrison, James and Willes, John and Snoek, Jasper},
  booktitle={International Conference on Learning Representations (ICLR)},
  year={2024}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vbll-0.2.3.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

vbll-0.2.3-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file vbll-0.2.3.tar.gz.

File metadata

  • Download URL: vbll-0.2.3.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.17 Darwin/21.3.0

File hashes

Hashes for vbll-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ba4788a592465bbce3e9e76ea9b52e0f32e79043ec3b1d17f9de54af260ea6dc
MD5 abc5dddafffc519df2641f8a782252bf
BLAKE2b-256 f34dad66424b6797fc4da1bb638109ff9beb5a382dda4e303c1bb3c4b2ec4d84

See more details on using hashes here.

File details

Details for the file vbll-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: vbll-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.17 Darwin/21.3.0

File hashes

Hashes for vbll-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd419f3150d6cd3ce93f05bb8d53cc7213376054567a1c97147ec7e855fbc3a
MD5 22344d942e13490e3b3fc3823bc5c280
BLAKE2b-256 0d29e336a24e85438cdebed62e1e82859dfaa955d53b4a2a83db30a6a27d0a00

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page