Unit 6: Generative Vision Models - Practice Quiz

CSE471 — Deep Learning For Computer Vision 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main purpose of the latent space in a variational autoencoder?

Variational autoencoders Easy
A. To classify images into fixed categories
B. To measure network training speed
C. To store compressed representations of data
D. To remove all image pixels

2 What does a variational autoencoder typically use to generate a new sample?

Variational autoencoders Easy
A. A class label without any features
B. A manually selected output pixel
C. A random sample from the latent space
D. A fixed image from the training set

3 Which two networks form the basic architecture of a GAN?

GAN architectures Easy
A. Decoder and segmenter
B. Generator and discriminator
C. Encoder and classifier
D. Detector and tokenizer

4 What is the role of the discriminator in a GAN?

GAN architectures Easy
A. To select the learning rate
B. To convert images into text descriptions
C. To reduce the image resolution
D. To distinguish real samples from fake samples

5 What does the generator in a GAN produce?

GAN architectures Easy
A. Feature importance scores
B. Synthetic data samples
C. Validation accuracy values
D. Training labels only

6 What type of layers are commonly used in a DCGAN for image processing?

DCGAN Easy
A. Decision tree layers
B. Sorting layers
C. Recurrent memory layers
D. Convolutional layers

7 What is a common function of transposed convolutional layers in a DCGAN generator?

DCGAN Easy
A. To increase spatial image resolution
B. To calculate the confusion matrix
C. To remove the latent vector
D. To assign image class labels

8 What type of task is CycleGAN mainly designed to perform?

CycleGAN Easy
A. Text-only language translation
B. Unpaired image-to-image translation
C. Single-image object detection
D. Audio signal classification

9 What does cycle consistency encourage in CycleGAN?

CycleGAN Easy
A. Increasing the number of image classes
B. Replacing every image with noise
C. Using only paired training images
D. Translating an image back to its original domain

10 What is a key feature of StyleGAN?

StyleGAN Easy
A. Compressing images into binary labels
B. Detecting edges with a fixed filter
C. Controlling image attributes through style information
D. Classifying images with no training data

11 What is image generation?

Image generation Easy
A. Creating new images using a trained model
B. Labeling every pixel with a class
C. Measuring camera exposure only
D. Removing all color from an image

12 What is the goal of image-to-image translation?

Image-to-image translation Easy
A. To convert an image into a database table
B. To count the pixels in an image
C. To convert an image from one domain to another
D. To remove the image file extension

13 What does image super-resolution attempt to do?

Super-resolution Easy
A. Separate an image into audio channels
B. Reduce an image to one pixel
C. Convert an image into a class name
D. Create a higher-resolution version of an image

14 What is usually the input to a single-image super-resolution model?

Super-resolution Easy
A. A low-resolution image
B. A segmentation label only
C. A confusion matrix
D. A text paragraph

15 What does CLIP learn to align?

CLIP for image-text alignment Easy
A. Images and their text descriptions
B. Labels and database indexes
C. Audio signals and frame rates
D. Pixels and file sizes

16 How can CLIP be used for zero-shot image classification?

CLIP for image-text alignment Easy
A. By training a new classifier for every image
B. By comparing an image with text prompts for classes
C. By converting images into random noise
D. By counting the colors in each image

17 What is the main goal of interpretability techniques in deep learning?

Interpretability techniques Easy
A. To guarantee perfect accuracy
B. To understand why a model made a prediction
C. To remove the training dataset
D. To increase the image file size

18 What does a Grad-CAM heatmap show?

Grad-CAM Easy
A. The file size of the model
B. The total number of training epochs
C. Image regions important for a prediction
D. The order of images in a dataset

19 What does a saliency map usually indicate?

Saliency maps Easy
A. How quickly a model loads
B. How much storage an image uses
C. How many classes exist in a dataset
D. How sensitive a prediction is to input pixels

20 Which visual pattern often represents an important region in a saliency map?

Saliency maps Easy
A. A region containing only file metadata
B. A region with a high saliency value
C. A region outside the image boundary
D. A region with no pixel values

21 A variational autoencoder represents an input using and . Which expression allows latent samples to be generated while preserving gradient-based training?

Variational autoencoders Medium
A. , where both values are deterministic
B. , using a discrete selection
C. , where
D. , where

22 A VAE produces realistic reconstructions, but latent samples are poorly organized and generation from the prior fails. Which training change most directly addresses this issue?

Variational autoencoders Medium
A. Replace the decoder with a classifier
B. Remove sampling from the latent representation
C. Increase the weight of the KL-divergence term
D. Train only the reconstruction term for more epochs while allowing the latent distribution to take any unconstrained shape

23 During GAN training, the discriminator correctly rejects nearly every generated image, and the generator receives very small gradients under the original minimax loss. Which generator objective is commonly used to improve its gradient signal?

GAN architectures Medium
A. Minimize the discriminator loss on real images
B. Maximize
C. Minimize
D. Minimize

24 A trained GAN generates sharp images, but many different latent vectors produce nearly identical faces. What problem does this behavior indicate?

GAN architectures Medium
A. Gradient clipping
B. Posterior collapse
C. Domain misalignment caused by training the discriminator on too many distinct real-image classes
D. Mode collapse

25 Which generator design is most consistent with the standard DCGAN architecture?

DCGAN Medium
A. Fractionally strided convolutions with batch normalization and ReLU
B. A deep stack of fully connected layers with manually designed image-coordinate features and no convolutional upsampling
C. Recurrent layers followed by nearest-neighbor classification
D. Max pooling followed by fully connected layers and sigmoid

26 A DCGAN generator creates visible checkerboard patterns in otherwise plausible images. Which modification is most likely to reduce these artifacts?

DCGAN Medium
A. Use resize-convolution instead of uneven transposed convolution
B. Replace all generator activations with sigmoid functions
C. Add more fully connected layers before the discriminator
D. Increase the latent vector dimension without changing the upsampling operations

27 A CycleGAN is trained to translate photographs into paintings without paired examples. What does cycle-consistency loss require for a photograph ?

CycleGAN Medium
A. Translating once should match a specific paired painting
B. Encoding should produce a latent vector sampled exactly from a uniform distribution
C. Translating to a painting and back should recover
D. Classifying and its translation should produce different labels

28 When translating horses to zebras, a CycleGAN unnecessarily changes the color of the sky. Which added objective can encourage already suitable target-domain content to remain unchanged?

CycleGAN Medium
A. Adversarial loss
B. Classification loss
C. A reconstruction objective that compares every translated horse with a manually paired zebra image at the pixel level
D. Identity loss

29 What is the main purpose of StyleGAN's mapping network that transforms into an intermediate latent code ?

StyleGAN Medium
A. To create a more disentangled control space for visual attributes
B. To classify generated images into predefined semantic categories
C. To force every layer of the synthesis network to use an identical fixed noise pattern throughout training
D. To replace adversarial training with maximum-likelihood estimation

30 In StyleGAN, changing the learned per-layer noise inputs while keeping the style code fixed primarily changes which image properties?

StyleGAN Medium
A. The number of semantic classes in the training set
B. Global identity and overall head orientation
C. The discriminator's decision boundary for both real and generated samples
D. Stochastic details such as hair strands and skin pores

31 Two image generators are evaluated using Fréchet Inception Distance (FID). Model A has an FID of 18, while Model B has an FID of 42 on the same dataset and feature extractor. What is the best interpretation?

Image generation Medium
A. Model A's generated distribution is closer to the real distribution
B. Model B is more diverse because a larger FID always indicates broader coverage of the real data distribution
C. Model B necessarily generates sharper individual images
D. Model A has memorized every image in the training set

32 Linear interpolation between two nearby latent vectors produces abrupt, unrealistic intermediate images. What does this most strongly suggest about the learned latent space?

Image generation Medium
A. The latent representation is poorly structured in that region
B. The training images have all been normalized using the same channel statistics
C. The discriminator has achieved exactly 50% accuracy
D. The generator is performing supervised classification

33 A researcher has aligned pairs of building facade labels and corresponding photographs. Which training approach is most appropriate for learning the translation?

Image-to-image translation Medium
A. An unconditional GAN trained only on photographs
B. A conditional GAN with paired reconstruction loss
C. A CycleGAN using only cycle-consistency loss
D. A contrastive language-image model trained using textual descriptions of architectural styles instead of the available aligned images

34 In a paired image-to-image translation model, increasing the weight of an reconstruction loss excessively is most likely to produce which result?

Image-to-image translation Medium
A. Outputs with greater stochastic texture diversity
B. Outputs that ignore the source image completely
C. Outputs that are structurally accurate but visually blurred
D. Outputs that always match the target distribution while preserving every high-frequency detail perfectly

35 A super-resolution system trained only with mean squared error achieves high PSNR but produces overly smooth textures. Which additional loss is most suitable for improving perceptual detail?

Super-resolution Medium
A. A classification loss over the low-resolution input pixels
B. A cycle-consistency loss requiring repeated upscaling and downscaling to increase the spatial dimensions after every pass
C. A perceptual loss computed from pretrained network features
D. A KL loss forcing pixels to follow a standard normal distribution

36 A super-resolution model receives an image of size . Assuming both spatial dimensions are scaled by four, what output size should it produce?

Super-resolution Medium
A.
B.
C.
D.

37 To perform zero-shot image classification with CLIP, how should the predicted class be selected?

CLIP for image-text alignment Medium
A. Choose the text prompt whose embedding has highest similarity to the image embedding
B. Choose the class with the smallest language-model token count
C. Fine-tune a new convolutional classifier for every test image
D. Generate one synthetic image for each class and select the class whose generated pixels exactly equal the test image

38 In CLIP's contrastive training, what should happen to the similarity of a correctly matched image-caption pair relative to mismatched pairs in the same batch?

CLIP for image-text alignment Medium
A. All pairwise similarities should become identical
B. Only mismatched captions should be encoded, while the matched caption is excluded from the contrastive objective
C. The matched similarity should increase relative to mismatched similarities
D. The matched similarity should decrease toward zero

39 An engineer repeatedly masks small regions of an image and records the resulting decrease in a classifier's confidence. Which interpretability technique is being applied?

Interpretability techniques Medium
A. Backpropagation through every training image to reconstruct the complete optimization history of the classifier
B. Latent interpolation
C. Occlusion sensitivity
D. Style mixing

40 Why is the last convolutional layer commonly used to construct a Grad-CAM visualization?

Grad-CAM Medium
A. It contains only class-independent edge detectors
B. It combines semantic information with remaining spatial structure
C. It stores exact pixel-level gradients without requiring a target class or a forward prediction
D. It always has the same resolution as the original image

41 A VAE trained with objective uses a highly expressive autoregressive decoder. During training, the KL term converges to nearly zero and reconstructions become independent of . Which intervention most directly addresses this failure while preserving the VAE formulation?

Variational autoencoders Hard
A. Remove sampling and use the posterior mean
B. Increase from the start of training
C. Replace the Gaussian prior with a wider Gaussian
D. Anneal the KL weight from zero to its target value

42 Let . Which sampling expression permits low-variance pathwise gradients of the reconstruction term with respect to ?

Variational autoencoders Hard
A. followed by rejection using
B. , where
C. , where
D. without an auxiliary random variable

43 Early in GAN training, a discriminator confidently rejects generated samples, so . Why is the non-saturating generator loss usually preferred to minimizing ?

GAN architectures Hard
A. It converts the discriminator into a Wasserstein critic
B. It provides stronger generator gradients when generated samples are rejected
C. It removes the need to alternate generator and discriminator updates
D. It guarantees convergence to the unique Nash equilibrium

44 A Wasserstein GAN critic is optimized without a sigmoid output. Which property is essential for the critic objective to correspond to the Kantorovich-Rubinstein dual of the Wasserstein-1 distance?

GAN architectures Hard
A. The critic weights must have unit Frobenius norm
B. The critic must be constrained to be -Lipschitz
C. The critic outputs must sum to one per batch
D. The critic must be invertible almost everywhere

45 A DCGAN generator produces periodic checkerboard artifacts after each upsampling stage. Which architectural change most directly reduces artifacts caused by uneven overlap in transposed convolutions?

DCGAN Hard
A. Replace each stage with nearest-neighbor upsampling followed by convolution
B. Increase every transposed-convolution kernel while keeping its stride
C. Replace discriminator convolutions with fully connected layers
D. Apply batch normalization to the final RGB output layer

46 A CycleGAN translates photographs to maps and back with low adversarial and cycle-consistency losses, yet the generated maps contain imperceptible high-frequency signals encoding the source photograph. What does this reveal about the objective?

CycleGAN Hard
A. Cycle consistency alone does not guarantee semantic or information-preserving correspondence
B. Adversarial training forces both generators to become exact linear inverses
C. Patch discriminators mathematically prevent low-frequency domain adaptation
D. Identity loss requires translated images to retain hidden source pixels

47 For unpaired domains and , suppose maps every input to the same realistic image in . Which CycleGAN term most directly penalizes this many-to-one collapse?

CycleGAN Hard
A.
B.
C.
D.

48 In a StyleGAN synthesis layer, modulation scales each input feature channel according to a style vector, and demodulation then normalizes each output channel's effective weights. What is the main purpose of demodulation?

StyleGAN Hard
A. To force all latent vectors onto the surface of a unit hypersphere
B. To make stochastic noise identical across all synthesis resolutions
C. To ensure the discriminator remains globally -Lipschitz
D. To prevent style-dependent amplification from causing uncontrolled feature statistics

49 A StyleGAN model injects independent learned-strength noise into synthesis layers. Altering noise at fine-resolution layers while holding styles fixed should primarily change which image property?

StyleGAN Hard
A. Global pose and object category
B. Stochastic microstructure such as pores or hair strands
C. Coarse geometry and camera viewpoint
D. Semantic identity encoded by the mapping network

50 In classifier-free guidance for a diffusion image generator, the guided noise estimate is . What is the most likely effect of choosing a very large ?

Image generation Hard
A. Lower prompt adherence with increased diversity and smoother likelihoods
B. Higher prompt adherence with reduced diversity and possible artifacts
C. Exact likelihood maximization with no change in sample diversity
D. Unconditional generation with improved calibration and fewer artifacts

51 In pix2pix, replacing a full-image discriminator with a PatchGAN discriminator changes the learned adversarial criterion. Which behavior follows most directly?

Image-to-image translation Hard
A. It guarantees globally consistent object counts and spatial relationships
B. It estimates one independent latent variable for every image patch
C. It enforces exact pixel alignment across the entire generated image
D. It emphasizes local realism while relying on other losses for global structure

52 A conditional image-to-image task has several valid outputs for each input, but training uses only a deterministic generator with a strong reconstruction loss. What failure is most expected?

Image-to-image translation Hard
A. The reconstruction objective increases diversity among conditional samples
B. The generator learns a bijection between every input and all target modes
C. The generator averages plausible modes and produces visually blurred outputs
D. The discriminator becomes invariant to all high-frequency image content

53 Two super-resolution systems are evaluated on the same test set. Model P obtains higher PSNR but looks smoother; model G obtains lower PSNR but more realistic textures. Which explanation best accounts for this result?

Super-resolution Hard
A. PSNR directly measures semantic realism but ignores only image dimensions
B. Adversarial losses guarantee lower reconstruction error for every test image
C. Pixelwise distortion and perceptual realism optimize different, often competing objectives
D. Realistic high-frequency detail must exactly match the unknown ground truth

54 A super-resolution network is trained to invert bicubic downsampling but is deployed on images degraded by unknown blur, sensor noise, and JPEG compression. Why can performance collapse despite excellent benchmark PSNR?

Super-resolution Hard
A. Bicubic training removes the network's ability to process RGB channels
B. JPEG compression makes all high-resolution reconstruction mathematically unique
C. PSNR training requires input and output images to have equal resolution
D. The learned inverse is specialized to a mismatched degradation distribution

55 CLIP is trained on a batch of matched image-text pairs using a symmetric contrastive loss over an similarity matrix. If two different captions in the batch accurately describe the same visual content but are not paired with the same image, how does the standard loss treat them?

CLIP for image-text alignment Hard
A. It treats every image-caption combination as an equally weighted positive
B. It excludes semantically similar captions using exact duplicate detection
C. It treats the unpaired valid match as a negative, creating a false-negative signal
D. It merges both captions into one positive target before computing logits

56 A zero-shot CLIP classifier performs poorly when class names are embedded as isolated words but improves when prompts such as "a photo of a {class}" are averaged across templates. What is the best explanation?

CLIP for image-text alignment Hard
A. Prompt ensembling better matches training language contexts and reduces template sensitivity
B. Longer prompts increase the embedding dimension available to each class
C. Template averaging retrains the image encoder on the target test images
D. Prompt ensembling converts cosine similarity into a supervised likelihood

57 A saliency method produces nearly unchanged explanations after the model's learned weights are randomly reinitialized, although its maps still look edge-like. What is the strongest conclusion from this sanity check?

Interpretability techniques Hard
A. The method may reflect input or architectural priors rather than learned reasoning
B. The randomized model has necessarily retained its original decision boundary
C. Weight randomization validates the causal faithfulness of the explanations
D. Edge-like explanations prove that the attribution method is class-discriminative

58 For class score and convolutional feature maps , standard Grad-CAM computes . Which expression then forms the class activation map?

Grad-CAM Hard
A.
B.
C.
D.

59 Grad-CAM is computed from the final convolutional layer of a classifier and produces a coarse heatmap that misses small diagnostic structures. Which change most directly improves spatial resolution, although it may reduce semantic specificity?

Grad-CAM Hard
A. Replace ReLU with a scalar sigmoid on the final score
B. Compute Grad-CAM from an earlier convolutional layer
C. Increase the softmax temperature during visualization
D. Average the class logits before taking any gradients

60 Integrated Gradients attributes features along the straight-line path from baseline to input . Assuming differentiability, which property distinguishes it from a raw input-gradient saliency map?

Saliency maps Hard
A. Its attributions sum to under the completeness property
B. Its attributions remain unchanged under adversarial perturbations
C. Its attributions are invariant to every possible choice of baseline
D. Its attributions always identify a minimal causal feature subset