accelerating bayesian inference on structured graphs
play

Accelerating Bayesian Inference on Structured Graphs Using Parallel - PowerPoint PPT Presentation

Accelerating Bayesian Inference on Structured Graphs Using Parallel Gibbs Sampling Glenn G. Ko gko@seas.harvard.edu Harvard University September 10, 2019 Supervised vs. Unsupervised Machine Learning Supervised Unsupervised


  1. Accelerating Bayesian Inference on Structured Graphs Using Parallel Gibbs Sampling Glenn G. Ko gko@seas.harvard.edu Harvard University September 10, 2019

  2. Supervised vs. Unsupervised Machine Learning Supervised Unsupervised [https://mapr.com/blog/demystifying-ai-ml-dl]

  3. Why Bayesian Machine Learning Republican Democratic • Predict a probability distribution not a point estimate • Quantify uncertainty [https://github.com/stan-dev/stancon_talks/blob/master/2017/Contributed-Talks/08_trangucci/hierarchical_GPs_in_stan.pdf]

  4. Deep Learning vs. Bayesian ML Deep Learning Bayesian Inference Data Type / Size Needs large labeled data Scarce or no labeled data Interpretability Black-box Interpretable models Prior Knowledge No Prior + new observations Scalability Parallelizable Limited parallelism Generalizability Generalizable Hand-crafted models Unsupervised Good at supervised Good at unsupervised ... ... ... Combining the two: Variational autoencoder, Generative Adversarial Networks, Bayesian neural networks, and etc.

  5. Bayesian Models and Inference • Unsupervised learning • Scarce or no labeled data for training • Ability to represent and manipulate uncertainty • Generative models Likelihood Prior X: Hidden Parameters Bayes’ Rule: Y: Observed Data Evidence

  6. Markov Random Fields and Inference Stereo matching Pixel-labeling problems on MRF: • Stereo matching • Image restoration • Image segmentation • Sound source separation y: input pixels x: labels for each pixel Pixels = nodes Edges to neighbors Inference for best set of new labels Likelihood (Data cost) Prior (Smoothness cost)

  7. Unsupervised Learning Tasks on MRF Image Markov Random Field Reconstruction MRF Solve Stereo Matching Approximate Bayesian Sound Source Inference Separation

  8. Markov Chain Monte Carlo Methods A biased random walk that explores Approximating pi the target distribution P [https://wiki.ubc.ca/Course:CPSC522/MCMC]

  9. Gibbs Sampling Inference Maximum A Posteriori Inference: Gibbs sampling on Markov Random Field Sample & update parameter

  10. Stereo Matching Using Gibbs Sampling Input Ground Truth

  11. Parallelizing Gibbs Sampling Geman & Geman stated, “the MRF can be divided into collections of variables with each collection assigned to an independently running asynchronous processor.” Three types of parallelism: • Naïve : Run multiple parallel chains independently • Algorithmic : Graph-coloring and blocking: Blocked, Chromatic (Gonzalez), Splash (Gonzalez) • Empirical : Asynchronous (Hogwild!) updates of partitioned graphs Newman et al. (AD-LDA), De Sa et al. (2016 ICML best paper)

  12. Chromatic Gibbs Sampling Conditional Independence via Local Markov Property

  13. Hybrid CPU-FPGA Architecture Xilinx Zynq UltraScale+ ZCU102-ES2

  14. Running Sound Source Separation Noisy mixture Separated source

  15. Compute Partition 230x speedup over ARM Cortex-A53

  16. Speedups 1048x speedup and 99.8% energy reduction vs. ARM Cortex A53 for binary label MRF Gibbs sampling

  17. Number of Iterations vs. Quality of the Solution Stereo matching: tsukuba Image restoration: house Sound source separation

  18. Future Work • Asynchronous Gibbs Sampling Hilary Clinton’s emails • Accelerating more complex graphs • More complex structured graphs • Unstructured graphs • Challenges • Programmable inference architecture • Probabilistic programming languages • Compilers, IR [https://bricaud.github.io/HCmails]

  19. THANK YOU This work is supported by the Semiconductor Research Corporation (SRC) and DARPA.

  20. Markov Random Field (Pixel-labeling) Input pixels Damaged Image Unsupervised Learning Output labels Reconstructed image Reconstructed image

  21. Gibbs Sampler Optimization for Source Separation Optimizations: Multipliers -> Shifters MRF size: 513x24 20 of 11

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend