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.4.9.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vbll-0.4.9-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vbll-0.4.9.tar.gz
Algorithm Hash digest
SHA256 ba6891c5576a6e39e12d7e050356e85670dc4460bb15e4a0f0c36262c2cdbd02
MD5 85c7948830b7fbc3f91b1ff554cc2c1e
BLAKE2b-256 b63ba9b38c085e87e984920843efd5f6f98fb410ded037b92154e23ad81e1593

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vbll-0.4.9-py3-none-any.whl
Algorithm Hash digest
SHA256 dc54d78233399f47beebad49a0b98be6e175a2e7aae6538faab442bd8028631c
MD5 77170d97ce4b587d32a5d7661829c99e
BLAKE2b-256 078304c1b447d0831e86f3aaa8fa4a35e0255b9e279188ce5e2452f1e131fba9

See more details on using hashes here.

Supported by

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