Why do generative models create new data instead of just classifying existing data?
Think about how generative models differ from classifiers in their goal.
Generative models learn the patterns and structure of the data so they can create new, similar data points. This is different from classifiers that only assign labels to existing data.
Which of the following models is designed to create new data samples similar to the training data?
Look for the model that learns to encode and decode data to generate new samples.
Variational Autoencoders are generative models that learn to compress data into a latent space and then decode it to create new data similar to the original.
Given the following TensorFlow code snippet for a simple GAN generator, what is the shape of the generated output?
import tensorflow as tf latent_dim = 100 generator = tf.keras.Sequential([ tf.keras.layers.Dense(7*7*64, use_bias=False, input_shape=(latent_dim,)), tf.keras.layers.BatchNormalization(), tf.keras.layers.LeakyReLU(), tf.keras.layers.Reshape((7, 7, 64)), tf.keras.layers.Conv2DTranspose(1, (5, 5), strides=(2, 2), padding='same', activation='tanh') ]) noise = tf.random.normal([1, latent_dim]) generated_image = generator(noise) output_shape = generated_image.shape
Check the effect of Conv2DTranspose with stride 2 on the spatial dimensions.
The Dense layer reshapes to (7,7,64). The Conv2DTranspose layer doubles the height and width to (14,14) and outputs 1 channel, so the final shape is (1,14,14,1).
Which metric is commonly used to evaluate how close generated images are to real images in generative models?
Think about a metric that measures diversity and quality of generated images using a pretrained network.
Inception Score uses a pretrained Inception model to measure both the quality and diversity of generated images, making it popular for generative model evaluation.
During GAN training, the generator produces very similar images repeatedly, showing mode collapse. What is the most likely cause?
Mode collapse means the generator is stuck producing limited outputs. Why might that happen?
Mode collapse happens when the generator learns to produce only a few outputs that successfully fool the discriminator, losing diversity in generated data.
