CS7643 Quiz 7 – Questions With Fully Explained
Solutions
Discriminative vs. Generative Models Correct Answer - 1. Discriminative
models model P(y|x)
- NN, SVM, etc.
- No way to handle unreasonable outputs (i.e. if trained on cats and dog
images, will always output a label of cat or dog)
2. Generative Models model P(x)
- Can parameterize our model as P(x, theta) and use Maximum Likelihood
Estimation to optimize the parameters
- Called generative because they can generate samples
- Can "reject" unreasonable inputs as being too unlikely
- Feature Learning without labels
Explicit vs Implicit Density Correct Answer - Explicit: Explicitly define
and solve for Pmodel(x|θ), given an explicit likelihood that can be maximized
Implicit: Learn a parameterized generation model that can sample from the
joint distribution Pmodel(x|θ) without explicitly defining Pmodel(x|θ)
Tractable Density Estimation Correct Answer - - Explicit Density
, - Simplify joint distribution into factorized model of simpler components and
optimize with respect to simpler components
- PixelRNN/PixelCNN
Approximate Density Estimation Correct Answer - - Explicit Density
- Learn distributions that approximate true joint distribution
- Variational Autoencoder
Implicit Density Estimation Correct Answer - - We don't model density
itself, but can sample from the distribution
- GAN
Factorized Models for Images Downsides Correct Answer - 1. Slow
sequential generation process
2. Only considers few context pixels
PixelRNN Correct Answer - Explicit & Tractable
Uses chain rule to decompose the likelihood of an image x into a product of 1-
d distributions
Similar to language models
Requires ordering of variables!
Training: pixel depends implicitly on the pixels above and to the left.
Generating: Generates pixels one at a time, very slow, only considers the
pixels immediately adjacent when generating
Pixel CNN Correct Answer - Idea: Represent conditional distribution as a
convolution layer
- Considers larger context (receptive field)
- Practically can be implemented by applying a mask, zeroing out "future"
pixels
Disadvantages:
- Faster training, but still slow generation
Solutions
Discriminative vs. Generative Models Correct Answer - 1. Discriminative
models model P(y|x)
- NN, SVM, etc.
- No way to handle unreasonable outputs (i.e. if trained on cats and dog
images, will always output a label of cat or dog)
2. Generative Models model P(x)
- Can parameterize our model as P(x, theta) and use Maximum Likelihood
Estimation to optimize the parameters
- Called generative because they can generate samples
- Can "reject" unreasonable inputs as being too unlikely
- Feature Learning without labels
Explicit vs Implicit Density Correct Answer - Explicit: Explicitly define
and solve for Pmodel(x|θ), given an explicit likelihood that can be maximized
Implicit: Learn a parameterized generation model that can sample from the
joint distribution Pmodel(x|θ) without explicitly defining Pmodel(x|θ)
Tractable Density Estimation Correct Answer - - Explicit Density
, - Simplify joint distribution into factorized model of simpler components and
optimize with respect to simpler components
- PixelRNN/PixelCNN
Approximate Density Estimation Correct Answer - - Explicit Density
- Learn distributions that approximate true joint distribution
- Variational Autoencoder
Implicit Density Estimation Correct Answer - - We don't model density
itself, but can sample from the distribution
- GAN
Factorized Models for Images Downsides Correct Answer - 1. Slow
sequential generation process
2. Only considers few context pixels
PixelRNN Correct Answer - Explicit & Tractable
Uses chain rule to decompose the likelihood of an image x into a product of 1-
d distributions
Similar to language models
Requires ordering of variables!
Training: pixel depends implicitly on the pixels above and to the left.
Generating: Generates pixels one at a time, very slow, only considers the
pixels immediately adjacent when generating
Pixel CNN Correct Answer - Idea: Represent conditional distribution as a
convolution layer
- Considers larger context (receptive field)
- Practically can be implemented by applying a mask, zeroing out "future"
pixels
Disadvantages:
- Faster training, but still slow generation