Deep Architectures for AI Insights
Deep Architectures for AI Insights
Yoshua Bengio
Yoshua Bengio
Summary
Yoshua Bengio
Grand Goals: Understanding Intelligence, Building AI
Yoshua Bengio
Machine Vision Example
Yoshua Bengio
Computation Graph and Depth
output
output
*
element neuron
element set
set sin
neuron neuron neuron
*
+
neuron
sin
... neuron neuron neuron
+ *
neuron
−
x a b
inputs inputs
Yoshua Bengio
Current Learning Algorithms: Depth
... ...
kernel machines: shallow
multi-layer neural networks:
usually shallow, can be deep?
decision trees: shallow
boosting: adds one level, but
generally shallow
Yoshua Bengio
Gist of Results on Depth of Architecture
Yoshua Bengio
Fast Fourier Transform = Deep Architecture
Yoshua Bengio
Theoretical Results on Depth of Architecture
Kinds of element sets discussed here:
For example,
Example Result
Depth 2 logic gates circuits for d-bit parity have exponential size.
Yoshua Bengio
Theoretical Results on Depth of Architecture
Less Known Result
∃ functions computable with a polynomial-size logic gates circuit
of depth k that require exponential size when restricted to depth
k − 1.
training
examples
xi
Variations are not arbitrary: they
are caused by the structure of the
world and the laws of physics.
?
test example
x
Yoshua Bengio
Local Learning Algorithms
Yoshua Bengio
Mathematical Problem with Local Learning
Theorem
With K the Gaussian kernel and target f (·) changing sign at least
2k times along some straight line (i.e. that line crosses the decision
surface at least 2k times), then at least k examples are required.
Class −1
Yoshua Bengio
Mathematical Problem with Local Kernels
Theorem
With K the Gaussian kernel, and the goal
to learn a maximally changing binary
function (f (x) 6= f (x 0 ) when |x − x 0 | = 1)
with d inputs, then at least 2d−1 examples
are required.
Yoshua Bengio
Locally Linear Approximation of Manifolds
Can be approximated
locally by linear patches.
Yoshua Bengio
Decision Trees Partition the Space
x1<2
R1
x2<1
• A decision tree recur-
sively partitions the input
x2
x1<0.5 x1<1.25
space.
R3 R4 R5
R2
• In a binary tree, the
root node splits it in two.
R5
• Each node is associated
R4
with a region.
R1
1
1.25 • Separate parameters for
R2
each node.
R3
.5 2
x1
Yoshua Bengio
Decision Trees do not Generalize to New Variations!
If piece-wise constant approximation of f requires N pieces to
achieve error , then decision tree requires at least N examples to
obtain generalization error .
Corollary
Nb exemples required to train a constant-leaves decision tree can
grow exponentially with d (input dim.)
Theorem
On d-bits parity task, constant-leaves decision tree with
axis-aligned decision nodes requires at least 2 d (1 − 2)
examples to reach gen. error ≤ .
Proposition
A sum of n trees can represent a nb of piece-wise constant regions
exponential in n, whereas a single tree can only represent a number
of regions = nb of leaves.
Yoshua Bengio
Local vs Distributed Representation
Yoshua Bengio
Clustering vs Multi-Clustering
• Clustering maps input x to category c learned by algorithm.
• Loss of information.
• Partitions input space, with separate parameters for each region
(prototype = center of region).
• Better: multi-clustering = map x to (c 1 , c2 , . . . , ck ) where ci a
category among i-th category set. k overlapping partitions.
• Can represent exponential number of configurations of x:
distributed representation. Partition 3
Partition 2
C1=1
C2=0
C3=0
C1=0
C2=0
C3=0
C1=0
C2=1 C1=0 Partition 1
C3=0 C2=1
C3=1
Yoshua Bengio
Optimizing Deep Architectures
Yoshua Bengio
Greedy Learning of Multiple Levels of Abstractions
Yoshua Bengio
What happened in 2006?
Yoshua Bengio
Restricted Boltzmann Machines
Yoshua Bengio
RBMs are Universal Approximators
With enough hidden units any distribution can be represented
exactly: (paper to appear by Le Roux & Bengio)
Theorem
Any distribution over {0, 1}n can be approximated arbitrary well
with a RBM with k + 1 hidden units where k is the number of
input vectors whose probability is not 0.
Conditional RBMs:
P represent
P(x|context) = h P(x, h|context) by making parameters of
RBM functions of context.
RBMs with 3-way interactions: used to capture flow in video.
RBMs with interactions between x’s: efficiently capture 2nd
order dependencies (image whitening)
Temporal RBMs: conditional RBMs where context = past h,
similar to HMMs but distributed hidden state.
Factored RBMs: factor parameter W to reduce
parametrization and learn a distributed representation for each
word in a language model.
Regularize to discrete encoding, used for learning a hash code
for documents in super-fast information retrieval system.
Yoshua Bengio
Training RBMs: Contrastive Divergence
Although exact computation of gradient ∂ log∂θP(x) in RBMs in
intractable, a stochastic and biased approximation works well:
Contrastive Divergence, requiring running t steps of Gibbs chain.
We proved that it corresponds to truncation of a converging series:
Theorem
Consider converging Gibbs chain x1 ⇒ h1 ⇒ x2 ⇒ h2 . . . The
log-likelihood gradient can be expanded in a converging series
t−1
∂ log P(x1 ) X ∂ log P(xs |hs ) ∂ log P(hs |xs+1 )
= E + | x1
∂θ ∂θ ∂θ
s=1
∂ log P(xt )
+ E | x1
∂θ
Yoshua Bengio
Greedy Procedure Increases Likelihood
log P(x) =
X
KL(Q(h|x)||P(h|x)) + HQ(h|x) + Q(h|x) (log P(h) + log P(x|h))
h
Yoshua Bengio
Experiments on Greedy Layer-Wise Initialization
Yoshua Bengio
A Curriculum for Training AIs?
Yoshua Bengio
Global Optimization though Continuation Methods
Yoshua Bengio
Critical Mass Hypotheses
Two forms:
Yoshua Bengio
Nailing the Semantics
I vote for the 2nd: work with a small vocabulary, language data
associated with meaning (e.g., images).
Yoshua Bengio
The Baby AI Project
Learning multiple levels of representation / abstraction from
multiple modalities: language + video
Huge amounts of data → online learning
Deep architectures = multiple levels of abstractions (both
context and input)
necessary to avoid curse of dimensionality
Learn more abstract concepts on top of / after simpler ones
e.g. first simple static shapes, then video + naming actions &
movement
Teach the Baby AI with a sequence of tasks = curriculum
Use mostly unlabeled data, exploit the little labeled data as
hints
AI should understand semantics of language + images:
multi-modal architectures
We already have a data generator for a simple “block world” (at
different degrees of complexity) with images and natural language.
Yoshua Bengio
Baby AI Datasets
Yoshua Bengio
Baby AI Datasets
Text is “natural language”-like. One or few sentences about the
image. Statement or question + answer pair.
Statement + image pairs can be used to set up match/nomatch
classification tests.
Question/answer pairs can be used to set up more standard
classification problems (question + image ⇒ answer) for
comparisons with state-of-the-art classifiers.
Topic Question given to the computer Answer
Color There is a small triangle. What color is it? Green
Shape What is the shape of the green object? Triangle
Location Is the blue square at the top or at the bottom? At the top
Size There is a triangle on the right.
Is it rather small or bigger? Small
Size (relative) Is the square smaller or bigger than the triangle? Bigger
Datasets and python scripts will soon be released on our web page.
Yoshua Bengio
Culture and Language as Optimization Techniques
Since optimizing brains is NP-hard and frought with local minima,
nature may well have used culture and language to make the whole
human species a large optimization machine for the space of
abstractions (= ideas) helpful to humans:
Yoshua Bengio
To Know More
Yoshua Bengio
Bengio, Y., Delalleau, O., and Le Roux, N. (2006).
The curse of highly variable functions for local kernel machines.
In Weiss, Y., Schölkopf, B., and Platt, J., editors, Advances in Neural Information Processing Systems 18,
pages 107–114. MIT Press, Cambridge, MA.
Guillery, R. (2005).
Is postnatal neocortical maturation hierarchical?
Trends in Neuroscience, 28(10):512–517.
Hastad, J. (1986).
Almost optimal lower bounds for small depth circuits.
In Proceedings of the 18th annual ACM Symposium on Theory of Computing, pages 6–20, Berkeley,
California. ACM Press.
Hinton, G. (2002).
Training products of experts by minimizing contrastive divergence.
Neural Computation, 14:1771–1800.
Yoshua Bengio
Hinton, G. and Ghahramani, Z. (1997).
Generative models for discovering sparse distributed representations.
Philosophical Transactions of the Royal Society of London, B(352):1177–1190.
Hinton, G. E., Osindero, S., Welling, M., and Teh, Y.-W. (2006).
Unsupervised discovery of non-linear structure using contrastive backpropagation.
Cognitive Science, 30(4).
Larochelle, H., Erhan, D., Courville, A., Bergstra, J., and Bengio, Y. (2007).
An empirical evaluation of deep architectures on problems with many factors of variation.
In Twenty-fourth International Conference on Machine Learning (ICML’2007).
Tesauro, G. (1992).
Practical issues in temporal difference learning.
Machine Learning, 8:257–277.
Wegener, I. (1987).
The Complexity of Boolean Functions.
John Wiley & Sons.
Yoshua Bengio
Yao, A. (1985).
Separating the polynomial-time hierarchy by oracles.
In Proceedings of the 26th Annual IEEE Symposium on Foundations of Computer Science, pages 1–10.
Yoshua Bengio