Lightning UQ Box

The lightning-uq-box is a PyTorch library that provides various Uncertainty Quantification (UQ) techniques for modern neural network architectures.

Cite this software

What Lightning UQ Box can do for you

lightning-uq-box

The lightning-uq-box is a PyTorch library that provides various Uncertainty Quantification (UQ) techniques for modern neural network architectures.

We hope to provide the starting point for a collaborative open source effort to make it easier for practitioners to include UQ in their workflows and
remove possible barriers of entry. Additionally, we hope this can be a pathway to more easily compare methods across UQ frameworks and potentially enhance the development of new UQ methods for neural networks.

The project is currently under active development, but we nevertheless hope for early feedback, feature requests, or contributions. Please check the Contribution Guide for further information.

The goal of this library is threefold:

  1. Provide implementations for a variety of Uncertainty Quantification methods for Modern Deep Neural Networks that work with a range of neural network architectures and have different theoretical underpinnings
  2. Make it easy to compare UQ methods on a given dataset
  3. Focus on reproducibility of experiments with minimum boiler plate code and standardized evaluation protocols

To this end, each UQ-Method is essentially just a Lightning Module which can be used with a Lightning Data Module and a Trainer to execute training, evaluation and inference for your desired task. The library also utilizes the Lightning Command Line Interface (CLI) for better reproducibility of experiments and setting up experiments at scale.

Theory Guide

For a comprehensive document that provides more mathematical details for each method and generally forms the basis of our implementations, please see the Theory Guide. As a living document, we plan to update it as the library encompasses more methods. If you have any questions, or find typos or errors, feel free to open an issue.

Participating organisations

German Aerospace Center (DLR)
Tec

Helmholtz Program-oriented Funding IV

Research Field
Research Program
PoF Topic
1 Energy
1.1 Energy System Design
1.1.1 Energy System Transformation
1.1.2 Digitalization and System Technology
1.2 Materials and Technologies for the Energy Transition
1.2.1 Photovoltaics and Wind Energy
1.2.5 Resource and Energy Efficiency
2 Earth and Environment
2.1 The Changing Earth - Sustaining our Future
2 Modular Earth Science Infrastructure (MESI) (GFZ)
2.1.1 The Atmosphere in Global Change
2.1.2 Ocean and Cryosphere in Climate
3 Health
3.1 Cancer Research
3.1.5 Imaging and Radiooncology
3.2 Environmental and Metabolic Health
3.2.2 Environmental Health
3.5 Neurodegenerative Diseases
3.5.3 Clinical and Health Care Research
4 Aeronautics, Space and Transport
4.2 Space
4.2.1 Earth Observation
4.2.7 Robotics
5 Information
5.1 Engineering Digital Futures: Supercomputing, Data Management and Information Security for Knowledge and Action
5.1.1 Enabling Computational- & Data-Intensive Science and Engineering
5.1.2 Supercomputing & Big Data Infrastructures
5.1.3 Engineering Secure Systems
5.1.4 Knowledge for Action
  • 1 Energy
    • 1.1 Energy System Design
      • 1.1.1 Energy System Transformation
      • 1.1.2 Digitalization and System Technology
    • 1.2 Materials and Technologies for the Energy Transition
      • 1.2.1 Photovoltaics and Wind Energy
      • 1.2.5 Resource and Energy Efficiency
  • 2 Earth and Environment
    • 2.1 The Changing Earth - Sustaining our Future
      • 2 Modular Earth Science Infrastructure (MESI) (GFZ)
      • 2.1.1 The Atmosphere in Global Change
      • 2.1.2 Ocean and Cryosphere in Climate
  • 3 Health
    • 3.1 Cancer Research
      • 3.1.5 Imaging and Radiooncology
    • 3.2 Environmental and Metabolic Health
      • 3.2.2 Environmental Health
    • 3.5 Neurodegenerative Diseases
      • 3.5.3 Clinical and Health Care Research
  • 4 Aeronautics, Space and Transport
    • 4.2 Space
      • 4.2.1 Earth Observation
      • 4.2.7 Robotics
  • 5 Information
    • 5.1 Engineering Digital Futures: Supercomputing, Data Management and Information Security for Knowledge and Action
      • 5.1.1 Enabling Computational- & Data-Intensive Science and Engineering
      • 5.1.2 Supercomputing & Big Data Infrastructures
      • 5.1.3 Engineering Secure Systems
      • 5.1.4 Knowledge for Action