SlideShare a Scribd company logo
1 of 40
CS590M 2008 Fall: Paper Presentation Deep Belief Nets  Presenters: Sael Lee, Rongjing Xiang, SuleymanCetintas, Youhan Fang Department of Computer Science, Purdue University Major reference paper:  Hinton, G. E, Osindero, S., and Teh, Y. W. (2006). A fast learning algorithm for deep belief nets. Neural Computation, 18:1527-1554
Outline Introduction  Complementary prior Restricted Boltzmann machines Deep Belief networks Applications Papers
What is Deep Belief Network(DBN)?   h3 DBNs are stacks of restricted Boltzmann machines forming deep (multi-layer) architecture.  2000 top-level neurons RBM 500 neurons h2 RBM 500 neurons         h1    28x28 pixel image (784 neurons) RBM    data
Deep Networks Why go deep?? Insufficient depth can require more computational elements,  than architectures whose depth is matches to the task.  Provide simpler more descriptive model of many problems. Problem with deep? Many cases, deep nets are hard to optimize.  Deep Networks      		Neural 	               Networks Deep Belief Nets.
Belief Nets (Bayesian Network)  Stochastic hidden cause A belief net is a directed acyclic graph composed of stochastic variables. It is easy to generate an unbiased samples at the leaf nodes, so we can see what kinds of data the network believes in. It is hard to infer the posterior distribution over all  possible configurations of hidden causes. (explaining away effect) It is hard to even get  a sample from the posterior. So how can we learn deep belief nets that have millions of parameters? -> use Restrictive Boltzmann machines for each layer!!  visible  effect We will use nets composed of layers of stochastic binary variables with weighted connections
Why it is usually very hard to learn belief nets one layer at a time To learn W, we need the posterior distribution in the first hidden layer. Problem 1: The posterior is typically intractable because of “explaining away”. Problem 2: The posterior depends on the prior as well as the likelihood.  So to learn W, we need to know the weights in higher layers, even if we are only approximating the posterior. All the weights interact. Problem 3: We need to integrate over all possible configurations of the higher variables to get the prior for first hidden layer.  hidden variables hidden variables prior hidden variables W   likelihood           data
Energy-Based Models Deep Belief nets are composed of Restricted Boltzmann machines which are energy based models      Energy based modelsdefine probability distribution through an energy function:  Data log likelihood gradient “f” is the expert
Boltzmann machines One type of Generative Neural network that connect binary stochastic neurons using symmetric connections.  b and c are bias of x and h, W,U,V are weights
Restricted Boltzmann machines (RBM) binary state of visible unit i hidden binary state of hidden unit j We restrict the connectivity to make learning easier. Only one layer of hidden units. We will deal with more layers later No connections between hidden units. In an RBM, the hidden units are conditionally independent given the visible states.   So we can quickly get an unbiased sample from the posterior distribution when given a data-vector. This is a big advantage over directed belief nets Approximation of the log-likelihood gradient:  Contrastive Divergence j i visible Energy with configuration v on the visible units and h on the hidden units weight between  units i and j
Deep Belief Networks h3 Stacking RBMs to from Deep architecture DBN with l layers of models the joint distribution between observed vector x and l hidden layers h.  Learning DBN: fast greedy learning algorithm for constructing multi-layer directed networks on layer at a time       h2      h1      v
Inference in Directed Belief Networks: Why Hard? Explaining Away Posterior over Hidden Vars. <-> intractable Variational Methods approximate the true posterior and improve a lower bound on the log probability of the training data this works, but there is a better alternative: Eliminating Explaining Away in Logistic (Sigmoid) Belief Nets Posterior(non-indep) = prior(indep.) * likelihood (non-indep.) Eliminate Explaining Away by Complementary Priors Add extra hidden layers to create CP that has opposite correlations with the likelihood term, so (when likelihood is multiplied by the prior), post. will become factorial
An infinite sigmoid belief net equivalent to an RBM etc.          h2 The distribution generated by this infinite directed net with replicated weights is the equilibrium distribution for a compatible pair of conditional distributions: p(v|h) and p(h|v) that are both defined by W A top-down pass of the directed net = letting a Restricted Boltzmann Machine settle to equilibrium. So this infinite directed net  defines the same distribution as an RBM.     v2          h1     v1          h0     v0
Inference in a directed net with replicated weights etc. The variables in h0 are conditionally independent given v0. Inference is trivial. We just multiply v0 by W transpose (gives product of the likelihood term and the prior term). The model above h0 implements a complementary prior. Unlike other directed nets, we can sample from the true posterior dist over all of the hidden layers. Start from visible units, use W^T to infer factorial dist over each hidden unit Computing exact posterior dist in a layer of the infinite logistic belief net = each step of Gibbs sampling in RBM The Maximum Likelihood learning rule for the infinite logistic belief net with tied weights is the same with the learning rule of RBM Contrastive Divergence can be used instead of Maximum likelihood learning which is expensive RBM creates good generative models that can be fine-tuned          h2     v2          h1       v1 + +             h0 + +     v0
Deep Belief Networks (DBN) Joint distribution: Where
A Greedy Training Algorithm Learn W0assuming all the weight matrices are tied.  Freeze W0and use W0Tto infer factorial approximate posterior distributions over the states of the variable in the first hidden layer. Keeping all the higher weight matrices tied to each other, but untied from W0, learn an RBM model of the higher-level “data” that was produced by using W0T to transform the original data.
Learning a deep directed network etc.          h2 ,[object Object]
This is exactly equivalent to learning an RBM
Contrastive divergence learning is equivalent to ignoring the small derivatives contributed by the tied weights between deeper layers.    v2          h1     v1          h0          h0     v0     v0
etc. Then freeze the first layer of weights in both directions and learn the remaining weights (still tied together). This is equivalent to learning another RBM, using the aggregated posterior distribution of h0 as the data.          h2     v2          h1     v1     v1          h0          h0     v0
What happens when the weights in higher layers become different from the weights in the first layer? The higher layers no longer implement a complementary prior. So performing inference using the frozen weights in the first layer is no longer correct.  Using this incorrect inference procedure gives a variational  lower bound on the log probability of the data.  We lose by the slackness of the bound. The higher layers learn a prior that is closer to the aggregated posterior distribution of the first hidden layer. This improves the network’s model of the data. Hinton, Osindero and Teh (2006) prove that this improvement is always bigger than the loss.
Fine-tuning with a contrastive divergence version of the “wake-sleep” algorithm ,[object Object]
1. Do a stochastic bottom-up pass
Adjust the top-down weights to be good at reconstructing the feature activities in the layer below.
2. Do a few iterations of sampling in the top level RBM
Use CD learning to improve the RBM
3. Do a stochastic top-down pass
Adjust the bottom-up weights to be good at reconstructing the feature activities in the layer above.,[object Object]
The result on MNIST Generative model based on RBM’s                   1.25% Support Vector Machine  (Decoste et. al.)	      1.4%    Backprop with 1000 hiddens (Platt)                  ~1.6% Backprop with 500 -->300 hiddens                   ~1.6% K-Nearest Neighbor                                             ~ 3.3% Training images: 60,000 Testing images: 10,000 The total training time: a week!
Looking into the ‘mind’ of the machineSamples generated by letting the associative memory run with one label clamped.
Looking into the ‘mind’ of the machineProviding a random binary image as input

More Related Content

What's hot

An Introduction to Deep Learning
An Introduction to Deep LearningAn Introduction to Deep Learning
An Introduction to Deep LearningPoo Kuan Hoong
 
Artificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural NetworksArtificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural NetworksThe Integral Worm
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Gaurav Mittal
 
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Simplilearn
 
Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Suraj Aavula
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning TutorialAmr Rashed
 
Introduction to CNN
Introduction to CNNIntroduction to CNN
Introduction to CNNShuai Zhang
 
Activation function
Activation functionActivation function
Activation functionAstha Jain
 
Deep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural NetworksDeep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural NetworksChristian Perone
 
Convolutional Neural Network (CNN) - image recognition
Convolutional Neural Network (CNN)  - image recognitionConvolutional Neural Network (CNN)  - image recognition
Convolutional Neural Network (CNN) - image recognitionYUNG-KUEI CHEN
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networksAkash Goel
 
Machine learning with ADA Boost
Machine learning with ADA BoostMachine learning with ADA Boost
Machine learning with ADA BoostAman Patel
 
Convolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsConvolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsKasun Chinthaka Piyarathna
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Simplilearn
 
Regularization in deep learning
Regularization in deep learningRegularization in deep learning
Regularization in deep learningKien Le
 
Artificial Neural Networks Lect1: Introduction & neural computation
Artificial Neural Networks Lect1: Introduction & neural computationArtificial Neural Networks Lect1: Introduction & neural computation
Artificial Neural Networks Lect1: Introduction & neural computationMohammed Bennamoun
 

What's hot (20)

An Introduction to Deep Learning
An Introduction to Deep LearningAn Introduction to Deep Learning
An Introduction to Deep Learning
 
Artificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural NetworksArtificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural Networks
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
 
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
 
Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning Tutorial
 
Cnn
CnnCnn
Cnn
 
Introduction to CNN
Introduction to CNNIntroduction to CNN
Introduction to CNN
 
Activation function
Activation functionActivation function
Activation function
 
Deep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural NetworksDeep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural Networks
 
Convolutional Neural Network (CNN) - image recognition
Convolutional Neural Network (CNN)  - image recognitionConvolutional Neural Network (CNN)  - image recognition
Convolutional Neural Network (CNN) - image recognition
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
 
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
 
Machine learning with ADA Boost
Machine learning with ADA BoostMachine learning with ADA Boost
Machine learning with ADA Boost
 
Convolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsConvolutional Neural Network and Its Applications
Convolutional Neural Network and Its Applications
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
 
Transfer Learning
Transfer LearningTransfer Learning
Transfer Learning
 
Regularization in deep learning
Regularization in deep learningRegularization in deep learning
Regularization in deep learning
 
Artificial Neural Networks Lect1: Introduction & neural computation
Artificial Neural Networks Lect1: Introduction & neural computationArtificial Neural Networks Lect1: Introduction & neural computation
Artificial Neural Networks Lect1: Introduction & neural computation
 
LSTM Tutorial
LSTM TutorialLSTM Tutorial
LSTM Tutorial
 

Similar to Deep Belief nets

NIPS2007: deep belief nets
NIPS2007: deep belief netsNIPS2007: deep belief nets
NIPS2007: deep belief netszukun
 
Chapter 09 class advanced
Chapter 09 class advancedChapter 09 class advanced
Chapter 09 class advancedHouw Liong The
 
Chapter 09 classification advanced
Chapter 09 classification advancedChapter 09 classification advanced
Chapter 09 classification advancedHouw Liong The
 
Fundamental of deep learning
Fundamental of deep learningFundamental of deep learning
Fundamental of deep learningStanley Wang
 
Acoustic modeling using deep belief networks
Acoustic modeling using deep belief networksAcoustic modeling using deep belief networks
Acoustic modeling using deep belief networksYueshen Xu
 
Data Mining: Concepts and techniques classification _chapter 9 :advanced methods
Data Mining: Concepts and techniques classification _chapter 9 :advanced methodsData Mining: Concepts and techniques classification _chapter 9 :advanced methods
Data Mining: Concepts and techniques classification _chapter 9 :advanced methodsSalah Amean
 
Chapter 9. Classification Advanced Methods.ppt
Chapter 9. Classification Advanced Methods.pptChapter 9. Classification Advanced Methods.ppt
Chapter 9. Classification Advanced Methods.pptSubrata Kumer Paul
 
[PR12] Inception and Xception - Jaejun Yoo
[PR12] Inception and Xception - Jaejun Yoo[PR12] Inception and Xception - Jaejun Yoo
[PR12] Inception and Xception - Jaejun YooJaeJun Yoo
 
Using prior knowledge to initialize the hypothesis,kbann
Using prior knowledge to initialize the hypothesis,kbannUsing prior knowledge to initialize the hypothesis,kbann
Using prior knowledge to initialize the hypothesis,kbannswapnac12
 
Boltzmann Machines in Deep learning and machine learning also used for traini...
Boltzmann Machines in Deep learning and machine learning also used for traini...Boltzmann Machines in Deep learning and machine learning also used for traini...
Boltzmann Machines in Deep learning and machine learning also used for traini...venkatasaisumanth74
 
PRML Chapter 5
PRML Chapter 5PRML Chapter 5
PRML Chapter 5Sunwoo Kim
 
Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networksstellajoseph
 
2017 (albawi-alkabi)image-net classification with deep convolutional neural n...
2017 (albawi-alkabi)image-net classification with deep convolutional neural n...2017 (albawi-alkabi)image-net classification with deep convolutional neural n...
2017 (albawi-alkabi)image-net classification with deep convolutional neural n...ali hassan
 
ANNs have been widely used in various domains for: Pattern recognition Funct...
ANNs have been widely used in various domains for: Pattern recognition  Funct...ANNs have been widely used in various domains for: Pattern recognition  Funct...
ANNs have been widely used in various domains for: Pattern recognition Funct...vijaym148
 
Convolution neural networks
Convolution neural networksConvolution neural networks
Convolution neural networksFares Hasan
 

Similar to Deep Belief nets (20)

NIPS2007: deep belief nets
NIPS2007: deep belief netsNIPS2007: deep belief nets
NIPS2007: deep belief nets
 
Chapter 09 class advanced
Chapter 09 class advancedChapter 09 class advanced
Chapter 09 class advanced
 
Chapter 09 classification advanced
Chapter 09 classification advancedChapter 09 classification advanced
Chapter 09 classification advanced
 
Fundamental of deep learning
Fundamental of deep learningFundamental of deep learning
Fundamental of deep learning
 
Acoustic modeling using deep belief networks
Acoustic modeling using deep belief networksAcoustic modeling using deep belief networks
Acoustic modeling using deep belief networks
 
09 classadvanced
09 classadvanced09 classadvanced
09 classadvanced
 
Data Mining: Concepts and techniques classification _chapter 9 :advanced methods
Data Mining: Concepts and techniques classification _chapter 9 :advanced methodsData Mining: Concepts and techniques classification _chapter 9 :advanced methods
Data Mining: Concepts and techniques classification _chapter 9 :advanced methods
 
Generative models
Generative modelsGenerative models
Generative models
 
Chapter 9. Classification Advanced Methods.ppt
Chapter 9. Classification Advanced Methods.pptChapter 9. Classification Advanced Methods.ppt
Chapter 9. Classification Advanced Methods.ppt
 
deep CNN vs conventional ML
deep CNN vs conventional MLdeep CNN vs conventional ML
deep CNN vs conventional ML
 
[PR12] Inception and Xception - Jaejun Yoo
[PR12] Inception and Xception - Jaejun Yoo[PR12] Inception and Xception - Jaejun Yoo
[PR12] Inception and Xception - Jaejun Yoo
 
ai7.ppt
ai7.pptai7.ppt
ai7.ppt
 
Using prior knowledge to initialize the hypothesis,kbann
Using prior knowledge to initialize the hypothesis,kbannUsing prior knowledge to initialize the hypothesis,kbann
Using prior knowledge to initialize the hypothesis,kbann
 
Boltzmann Machines in Deep learning and machine learning also used for traini...
Boltzmann Machines in Deep learning and machine learning also used for traini...Boltzmann Machines in Deep learning and machine learning also used for traini...
Boltzmann Machines in Deep learning and machine learning also used for traini...
 
ai7.ppt
ai7.pptai7.ppt
ai7.ppt
 
PRML Chapter 5
PRML Chapter 5PRML Chapter 5
PRML Chapter 5
 
Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networks
 
2017 (albawi-alkabi)image-net classification with deep convolutional neural n...
2017 (albawi-alkabi)image-net classification with deep convolutional neural n...2017 (albawi-alkabi)image-net classification with deep convolutional neural n...
2017 (albawi-alkabi)image-net classification with deep convolutional neural n...
 
ANNs have been widely used in various domains for: Pattern recognition Funct...
ANNs have been widely used in various domains for: Pattern recognition  Funct...ANNs have been widely used in various domains for: Pattern recognition  Funct...
ANNs have been widely used in various domains for: Pattern recognition Funct...
 
Convolution neural networks
Convolution neural networksConvolution neural networks
Convolution neural networks
 

More from butest

EL MODELO DE NEGOCIO DE YOUTUBE
EL MODELO DE NEGOCIO DE YOUTUBEEL MODELO DE NEGOCIO DE YOUTUBE
EL MODELO DE NEGOCIO DE YOUTUBEbutest
 
1. MPEG I.B.P frame之不同
1. MPEG I.B.P frame之不同1. MPEG I.B.P frame之不同
1. MPEG I.B.P frame之不同butest
 
LESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALLESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALbutest
 
Timeline: The Life of Michael Jackson
Timeline: The Life of Michael JacksonTimeline: The Life of Michael Jackson
Timeline: The Life of Michael Jacksonbutest
 
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...butest
 
LESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALLESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALbutest
 
Com 380, Summer II
Com 380, Summer IICom 380, Summer II
Com 380, Summer IIbutest
 
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
The MYnstrel Free Press Volume 2: Economic Struggles, Meet JazzThe MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazzbutest
 
MICHAEL JACKSON.doc
MICHAEL JACKSON.docMICHAEL JACKSON.doc
MICHAEL JACKSON.docbutest
 
Social Networks: Twitter Facebook SL - Slide 1
Social Networks: Twitter Facebook SL - Slide 1Social Networks: Twitter Facebook SL - Slide 1
Social Networks: Twitter Facebook SL - Slide 1butest
 
Facebook
Facebook Facebook
Facebook butest
 
Executive Summary Hare Chevrolet is a General Motors dealership ...
Executive Summary Hare Chevrolet is a General Motors dealership ...Executive Summary Hare Chevrolet is a General Motors dealership ...
Executive Summary Hare Chevrolet is a General Motors dealership ...butest
 
Welcome to the Dougherty County Public Library's Facebook and ...
Welcome to the Dougherty County Public Library's Facebook and ...Welcome to the Dougherty County Public Library's Facebook and ...
Welcome to the Dougherty County Public Library's Facebook and ...butest
 
NEWS ANNOUNCEMENT
NEWS ANNOUNCEMENTNEWS ANNOUNCEMENT
NEWS ANNOUNCEMENTbutest
 
C-2100 Ultra Zoom.doc
C-2100 Ultra Zoom.docC-2100 Ultra Zoom.doc
C-2100 Ultra Zoom.docbutest
 
MAC Printing on ITS Printers.doc.doc
MAC Printing on ITS Printers.doc.docMAC Printing on ITS Printers.doc.doc
MAC Printing on ITS Printers.doc.docbutest
 
Mac OS X Guide.doc
Mac OS X Guide.docMac OS X Guide.doc
Mac OS X Guide.docbutest
 
WEB DESIGN!
WEB DESIGN!WEB DESIGN!
WEB DESIGN!butest
 

More from butest (20)

EL MODELO DE NEGOCIO DE YOUTUBE
EL MODELO DE NEGOCIO DE YOUTUBEEL MODELO DE NEGOCIO DE YOUTUBE
EL MODELO DE NEGOCIO DE YOUTUBE
 
1. MPEG I.B.P frame之不同
1. MPEG I.B.P frame之不同1. MPEG I.B.P frame之不同
1. MPEG I.B.P frame之不同
 
LESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALLESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIAL
 
Timeline: The Life of Michael Jackson
Timeline: The Life of Michael JacksonTimeline: The Life of Michael Jackson
Timeline: The Life of Michael Jackson
 
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
 
LESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIALLESSONS FROM THE MICHAEL JACKSON TRIAL
LESSONS FROM THE MICHAEL JACKSON TRIAL
 
Com 380, Summer II
Com 380, Summer IICom 380, Summer II
Com 380, Summer II
 
PPT
PPTPPT
PPT
 
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
The MYnstrel Free Press Volume 2: Economic Struggles, Meet JazzThe MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
 
MICHAEL JACKSON.doc
MICHAEL JACKSON.docMICHAEL JACKSON.doc
MICHAEL JACKSON.doc
 
Social Networks: Twitter Facebook SL - Slide 1
Social Networks: Twitter Facebook SL - Slide 1Social Networks: Twitter Facebook SL - Slide 1
Social Networks: Twitter Facebook SL - Slide 1
 
Facebook
Facebook Facebook
Facebook
 
Executive Summary Hare Chevrolet is a General Motors dealership ...
Executive Summary Hare Chevrolet is a General Motors dealership ...Executive Summary Hare Chevrolet is a General Motors dealership ...
Executive Summary Hare Chevrolet is a General Motors dealership ...
 
Welcome to the Dougherty County Public Library's Facebook and ...
Welcome to the Dougherty County Public Library's Facebook and ...Welcome to the Dougherty County Public Library's Facebook and ...
Welcome to the Dougherty County Public Library's Facebook and ...
 
NEWS ANNOUNCEMENT
NEWS ANNOUNCEMENTNEWS ANNOUNCEMENT
NEWS ANNOUNCEMENT
 
C-2100 Ultra Zoom.doc
C-2100 Ultra Zoom.docC-2100 Ultra Zoom.doc
C-2100 Ultra Zoom.doc
 
MAC Printing on ITS Printers.doc.doc
MAC Printing on ITS Printers.doc.docMAC Printing on ITS Printers.doc.doc
MAC Printing on ITS Printers.doc.doc
 
Mac OS X Guide.doc
Mac OS X Guide.docMac OS X Guide.doc
Mac OS X Guide.doc
 
hier
hierhier
hier
 
WEB DESIGN!
WEB DESIGN!WEB DESIGN!
WEB DESIGN!
 

Deep Belief nets

  • 1. CS590M 2008 Fall: Paper Presentation Deep Belief Nets Presenters: Sael Lee, Rongjing Xiang, SuleymanCetintas, Youhan Fang Department of Computer Science, Purdue University Major reference paper: Hinton, G. E, Osindero, S., and Teh, Y. W. (2006). A fast learning algorithm for deep belief nets. Neural Computation, 18:1527-1554
  • 2. Outline Introduction Complementary prior Restricted Boltzmann machines Deep Belief networks Applications Papers
  • 3. What is Deep Belief Network(DBN)? h3 DBNs are stacks of restricted Boltzmann machines forming deep (multi-layer) architecture. 2000 top-level neurons RBM 500 neurons h2 RBM 500 neurons h1 28x28 pixel image (784 neurons) RBM data
  • 4. Deep Networks Why go deep?? Insufficient depth can require more computational elements, than architectures whose depth is matches to the task. Provide simpler more descriptive model of many problems. Problem with deep? Many cases, deep nets are hard to optimize. Deep Networks Neural Networks Deep Belief Nets.
  • 5. Belief Nets (Bayesian Network) Stochastic hidden cause A belief net is a directed acyclic graph composed of stochastic variables. It is easy to generate an unbiased samples at the leaf nodes, so we can see what kinds of data the network believes in. It is hard to infer the posterior distribution over all possible configurations of hidden causes. (explaining away effect) It is hard to even get a sample from the posterior. So how can we learn deep belief nets that have millions of parameters? -> use Restrictive Boltzmann machines for each layer!! visible effect We will use nets composed of layers of stochastic binary variables with weighted connections
  • 6. Why it is usually very hard to learn belief nets one layer at a time To learn W, we need the posterior distribution in the first hidden layer. Problem 1: The posterior is typically intractable because of “explaining away”. Problem 2: The posterior depends on the prior as well as the likelihood. So to learn W, we need to know the weights in higher layers, even if we are only approximating the posterior. All the weights interact. Problem 3: We need to integrate over all possible configurations of the higher variables to get the prior for first hidden layer. hidden variables hidden variables prior hidden variables W likelihood data
  • 7. Energy-Based Models Deep Belief nets are composed of Restricted Boltzmann machines which are energy based models Energy based modelsdefine probability distribution through an energy function: Data log likelihood gradient “f” is the expert
  • 8. Boltzmann machines One type of Generative Neural network that connect binary stochastic neurons using symmetric connections. b and c are bias of x and h, W,U,V are weights
  • 9. Restricted Boltzmann machines (RBM) binary state of visible unit i hidden binary state of hidden unit j We restrict the connectivity to make learning easier. Only one layer of hidden units. We will deal with more layers later No connections between hidden units. In an RBM, the hidden units are conditionally independent given the visible states. So we can quickly get an unbiased sample from the posterior distribution when given a data-vector. This is a big advantage over directed belief nets Approximation of the log-likelihood gradient: Contrastive Divergence j i visible Energy with configuration v on the visible units and h on the hidden units weight between units i and j
  • 10. Deep Belief Networks h3 Stacking RBMs to from Deep architecture DBN with l layers of models the joint distribution between observed vector x and l hidden layers h. Learning DBN: fast greedy learning algorithm for constructing multi-layer directed networks on layer at a time h2 h1 v
  • 11. Inference in Directed Belief Networks: Why Hard? Explaining Away Posterior over Hidden Vars. <-> intractable Variational Methods approximate the true posterior and improve a lower bound on the log probability of the training data this works, but there is a better alternative: Eliminating Explaining Away in Logistic (Sigmoid) Belief Nets Posterior(non-indep) = prior(indep.) * likelihood (non-indep.) Eliminate Explaining Away by Complementary Priors Add extra hidden layers to create CP that has opposite correlations with the likelihood term, so (when likelihood is multiplied by the prior), post. will become factorial
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. An infinite sigmoid belief net equivalent to an RBM etc. h2 The distribution generated by this infinite directed net with replicated weights is the equilibrium distribution for a compatible pair of conditional distributions: p(v|h) and p(h|v) that are both defined by W A top-down pass of the directed net = letting a Restricted Boltzmann Machine settle to equilibrium. So this infinite directed net defines the same distribution as an RBM. v2 h1 v1 h0 v0
  • 23. Inference in a directed net with replicated weights etc. The variables in h0 are conditionally independent given v0. Inference is trivial. We just multiply v0 by W transpose (gives product of the likelihood term and the prior term). The model above h0 implements a complementary prior. Unlike other directed nets, we can sample from the true posterior dist over all of the hidden layers. Start from visible units, use W^T to infer factorial dist over each hidden unit Computing exact posterior dist in a layer of the infinite logistic belief net = each step of Gibbs sampling in RBM The Maximum Likelihood learning rule for the infinite logistic belief net with tied weights is the same with the learning rule of RBM Contrastive Divergence can be used instead of Maximum likelihood learning which is expensive RBM creates good generative models that can be fine-tuned h2 v2 h1 v1 + + h0 + + v0
  • 24. Deep Belief Networks (DBN) Joint distribution: Where
  • 25. A Greedy Training Algorithm Learn W0assuming all the weight matrices are tied. Freeze W0and use W0Tto infer factorial approximate posterior distributions over the states of the variable in the first hidden layer. Keeping all the higher weight matrices tied to each other, but untied from W0, learn an RBM model of the higher-level “data” that was produced by using W0T to transform the original data.
  • 26.
  • 27. This is exactly equivalent to learning an RBM
  • 28. Contrastive divergence learning is equivalent to ignoring the small derivatives contributed by the tied weights between deeper layers. v2 h1 v1 h0 h0 v0 v0
  • 29. etc. Then freeze the first layer of weights in both directions and learn the remaining weights (still tied together). This is equivalent to learning another RBM, using the aggregated posterior distribution of h0 as the data. h2 v2 h1 v1 v1 h0 h0 v0
  • 30. What happens when the weights in higher layers become different from the weights in the first layer? The higher layers no longer implement a complementary prior. So performing inference using the frozen weights in the first layer is no longer correct. Using this incorrect inference procedure gives a variational lower bound on the log probability of the data. We lose by the slackness of the bound. The higher layers learn a prior that is closer to the aggregated posterior distribution of the first hidden layer. This improves the network’s model of the data. Hinton, Osindero and Teh (2006) prove that this improvement is always bigger than the loss.
  • 31.
  • 32. 1. Do a stochastic bottom-up pass
  • 33. Adjust the top-down weights to be good at reconstructing the feature activities in the layer below.
  • 34. 2. Do a few iterations of sampling in the top level RBM
  • 35. Use CD learning to improve the RBM
  • 36. 3. Do a stochastic top-down pass
  • 37.
  • 38. The result on MNIST Generative model based on RBM’s 1.25% Support Vector Machine (Decoste et. al.) 1.4% Backprop with 1000 hiddens (Platt) ~1.6% Backprop with 500 -->300 hiddens ~1.6% K-Nearest Neighbor ~ 3.3% Training images: 60,000 Testing images: 10,000 The total training time: a week!
  • 39. Looking into the ‘mind’ of the machineSamples generated by letting the associative memory run with one label clamped.
  • 40. Looking into the ‘mind’ of the machineProviding a random binary image as input
  • 41. Reducing the Dimensionality of Data 28x28 1000 neurons They always looked like a really nice way to do non-linear dimensionality reduction: But it is very difficult to optimize deep autoencoders using backpropagation. We now have a much better way to optimize them: First train a stack of 4 RBM’s Then “unroll” them. Then fine-tune with backpropagation 500 neurons 250 neurons 30 250 neurons 500 neurons 1000 neurons 28x28
  • 45. Conclusion Restricted Boltzmann Machines provide a simple way to learn a layer of features without any supervision. Many layers of representation can be learned by treating the hidden states of one RBM as the visible data for training the next RBM This creates good generative models that can then be fine-tuned.
  • 46. References G. Hinton, S. Osindero, Y. The, A fast learning algorithm for deep belief nets, Neural Computations, 2006. G. Hinton, R. Salakhutdinov, Reducing the dimensionality of data with neural networks, Science, 2006. Y. Bengio, Learning deep architectures for AI, 2007. M. Carreira-Perpinan, G. Hinton, On constrative divergence learning, AISTATS, 2005.
  • 47. Thank you very much! And any questions?