GithubHelp home page GithubHelp logo

reml-lab / ursabench Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 2.0 113 KB

Codebase for our paper "URSABench: Comprehensive Benchmarking of Approximate Bayesian Inference Methods for Deep Neural Networks"

License: Other

Python 65.25% Shell 0.94% Jupyter Notebook 33.82%
pytorch bayesian-inference deep-learning bayesian-deep-learning

ursabench's Introduction

URSABench

This repository contains the PyTorch implementation for the paper "URSABench: A System for Comprehensive Benchmarking of Bayesian Deep Neural Network Models and Inference methods" by Meet P. Vadera, Jinyang Li, Adam D. Cobb, Brian Jalaian, Tarek Abdelzaher and Benjamin M. Marlin.

This paper will be presented at MLSys '22. An initial version of this paper was presented at ICML '20 Workshop on Uncertainty and Robustness in Deep Learning.

Folder Structure & Usage

URSABench (URSABench/) consists of the following main components:

  • inference/: This folder consists of all the approximate inference techniques. The inference/inference_base.py lays out the basic functions that are used for all inference methods.

  • hyperopt/: This is the hyperparameter optimization module. There are three main hyperparameter optimization classes included: RandomSearch, GridSearch, and BayesOpt.

  • models/: This contains some pre-defined model architectures.

  • tasks/: This module contains evaluation tasks. Files with the suffix _distilled.py contain tasks for the distilled models.

  • trtprof/: This module contains the code for run-time latency profiling using ONNX and NVIDIA TensorRT optimization. Note that the TensorRT optimizations are done on NVIDIA Jetson devices directly.

We provide a notebook under examples/ to illustrate how to use URSABench over a standard PyTorch model. This notebook is also available on Google Colab: https://colab.research.google.com/drive/174Urpg2nAc8C4LgBsynt8oiNwjvxJ9Yh?usp=sharing.

Code references:

Please cite our work if you find this approach useful in your research:

@inproceedings{MLSYS2022_3ef81541,
	author = {Vadera, Meet P. and Li, Jinyang and Cobb, Adam and Jalaian, Brian and Abdelzaher, Tarek and Marlin, Benjamin},
	booktitle = {Proceedings of Machine Learning and Systems},
	editor = {D. Marculescu and Y. Chi and C. Wu},
	pages = {217--237},
	title = {URSABench: A System for Comprehensive Benchmarking of Bayesian Deep Neural Network Models and Inference methods},
	url = {https://proceedings.mlsys.org/paper/2022/file/3ef815416f775098fe977004015c6193-Paper.pdf},
	volume = {4},
	year = {2022},
	bdsk-url-1 = {https://proceedings.mlsys.org/paper/2022/file/3ef815416f775098fe977004015c6193-Paper.pdf}}

Acknowledgements

Research reported in this paper was sponsored in part by the CCDC Army Research Laboratory under Cooperative Agreement W911NF-17-2-0196 (ARL IoBT CRA). The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Army Research Laboratory or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.