Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Question 1 of 60 · Introduction to autoencoders · Easy
What is the primary goal of an autoencoder?
Not quite. Try another option.
Answer: To reconstruct its input
An autoencoder learns a representation of its input and uses it to reconstruct the original input.
Question 2 of 60 · Introduction to autoencoders · Easy
What type of neural network is an autoencoder?
Not quite. Try another option.
Answer: A reconstruction network
An autoencoder is a neural network trained to reconstruct its input at the output.
Question 3 of 60 · Introduction to autoencoders · Easy
In a basic autoencoder, the desired output is usually what?
Not quite. Try another option.
Answer: The original input
A basic autoencoder is trained so that its output closely matches its original input.
Question 4 of 60 · Need for autoencoders · Easy
Which task commonly uses autoencoders?
Not quite. Try another option.
Answer: Dimensionality reduction
Autoencoders can reduce dimensionality by encoding data into a smaller latent representation.
Question 5 of 60 · Need for autoencoders · Easy
Why are autoencoders useful for feature learning?
Not quite. Try another option.
Answer: They learn useful representations
Autoencoders automatically discover useful features by learning to reconstruct input data.
Question 6 of 60 · Need for autoencoders · Easy
How can an autoencoder help remove noise from data?
Not quite. Try another option.
Answer: By reconstructing a clean version
A denoising autoencoder learns to reconstruct clean data from noisy or corrupted input.
Question 7 of 60 · Architecture of autoencoder · Easy
Which component maps the input to a latent representation?
Not quite. Try another option.
Answer: Encoder
The encoder transforms the input into a compact latent representation.
Question 8 of 60 · Architecture of autoencoder · Easy
Which component reconstructs data from the latent representation?
Not quite. Try another option.
Answer: Decoder
The decoder maps the latent representation back into the input space.
Question 9 of 60 · Architecture of autoencoder · Easy
What is the compact middle representation of an autoencoder commonly called?
Not quite. Try another option.
Answer: Latent code
The compact representation between the encoder and decoder is called the latent code or bottleneck.
Question 10 of 60 · Architecture of autoencoder · Easy
Which loss is commonly used to measure reconstruction error for continuous-valued inputs?
Not quite. Try another option.
Answer: Mean squared error
Mean squared error measures the average squared difference between the input and its reconstruction.
Question 11 of 60 · Types of autoencoders · Easy
Which autoencoder is trained to recover clean input from corrupted input?
Not quite. Try another option.
Answer: Denoising autoencoder
A denoising autoencoder receives corrupted data and learns to reconstruct the clean version.
Question 12 of 60 · Types of autoencoders · Easy
Which type of autoencoder encourages only a small number of neurons to be active?
Not quite. Try another option.
Answer: Sparse autoencoder
A sparse autoencoder applies a sparsity constraint so that relatively few hidden neurons are active.
Question 13 of 60 · Types of autoencoders · Easy
Which type of autoencoder is especially suitable for image data?
Not quite. Try another option.
Answer: Convolutional autoencoder
Convolutional autoencoders use convolutional layers to capture spatial patterns in images.
Question 14 of 60 · Types of autoencoders · Easy
What distinguishes an undercomplete autoencoder?
Not quite. Try another option.
Answer: Its latent space is smaller than its input
An undercomplete autoencoder uses a lower-dimensional latent space to learn compact features.
Question 15 of 60 · Data compression using autoencoders · Easy
Which part of an autoencoder stores the compressed representation?
Not quite. Try another option.
Answer: Bottleneck layer
The bottleneck layer contains the compact encoded representation of the input.
Question 16 of 60 · Data compression using autoencoders · Easy
During autoencoder-based decompression, what does the decoder receive?
Not quite. Try another option.
Answer: The compressed code
The decoder receives the compressed latent code and reconstructs an approximation of the original data.
Question 17 of 60 · Data compression using autoencoders · Easy
What is usually sacrificed when compression greatly reduces the amount of stored information?
Not quite. Try another option.
Answer: Reconstruction accuracy
Strong compression may discard information, causing the reconstructed output to differ more from the input.
Question 18 of 60 · Variational autoencoders · Easy
What does a variational autoencoder learn for each latent variable?
Not quite. Try another option.
Answer: A probability distribution
A variational autoencoder represents latent variables using probability distributions rather than single fixed values.
Question 19 of 60 · Variational autoencoders · Easy
Which values are commonly predicted by a variational autoencoder's encoder?
Not quite. Try another option.
Answer: Mean and variance
The encoder commonly predicts parameters such as mean and variance for the latent distribution.
Question 20 of 60 · Variational autoencoders · Easy
What is a common use of variational autoencoders?
Not quite. Try another option.
Answer: Generating new data samples
Variational autoencoders can sample points from the learned latent space to generate new data.
Question 21 of 60 · Introduction to autoencoders · Medium
An autoencoder is trained on unlabeled images by using each input image as its target. What type of learning setup does this represent?
Not quite. Try another option.
Answer: Self-supervised learning
The input itself provides the reconstruction target, so labels are generated directly from the data.
Question 22 of 60 · Introduction to autoencoders · Medium
An autoencoder produces outputs that are nearly identical to its inputs but learns no useful features. Which design choice most likely caused this behavior?
Not quite. Try another option.
Answer: An excessively powerful identity path
If information can bypass meaningful encoding, the network may simply copy inputs instead of learning useful representations.
Question 23 of 60 · Introduction to autoencoders · Medium
Which loss is most appropriate for reconstructing images whose pixel values are real numbers and approximately Gaussian-distributed?
Not quite. Try another option.
Answer: Mean squared error
Mean squared error measures numerical differences between original and reconstructed continuous pixel values.
Question 24 of 60 · Need for autoencoders · Medium
A company has thousands of unlabeled sensor records and wants compact features for a later classification task. Why is an autoencoder suitable?
Not quite. Try another option.
Answer: It learns representations without class labels
An autoencoder can learn latent features from unlabeled data, which can later be supplied to a classifier.
Question 25 of 60 · Need for autoencoders · Medium
An autoencoder is trained only on normal machine-operation data. How can it be used to detect equipment faults?
Not quite. Try another option.
Answer: Flag samples with high reconstruction error
Unusual fault patterns are often reconstructed poorly because the model learned only normal patterns.
Question 26 of 60 · Need for autoencoders · Medium
Compared with principal component analysis, what is a key reason to use a nonlinear autoencoder for dimensionality reduction?
Not quite. Try another option.
Answer: It can model nonlinear data manifolds
Nonlinear activation functions allow autoencoders to capture structures that cannot be represented by a linear subspace.
Question 27 of 60 · Architecture of autoencoder · Medium
An autoencoder maps to and then reconstructs . Which component creates ?
Not quite. Try another option.
Answer: The encoder
The encoder maps the input into its lower-dimensional latent representation .
Question 28 of 60 · Architecture of autoencoder · Medium
For an autoencoder with encoder and decoder , which expression represents the full reconstruction process?
Not quite. Try another option.
Answer:
The input first passes through the encoder , and the resulting latent code then passes through the decoder .
Question 29 of 60 · Architecture of autoencoder · Medium
A grayscale image has pixel values in . Which output activation is a reasonable choice for the decoder?
Not quite. Try another option.
Answer: Sigmoid
A sigmoid output naturally restricts each reconstructed pixel value to the interval .
Question 30 of 60 · Architecture of autoencoder · Medium
An autoencoder has input dimension 64 and latent dimension 128. Which technique can still prevent it from learning a trivial identity mapping?
Not quite. Try another option.
Answer: Applying a sparsity constraint
A sparsity constraint limits the number of active latent units, encouraging useful structure even in an overcomplete representation.
Question 31 of 60 · Types of autoencoders · Medium
A model receives corrupted images as inputs but is trained to reproduce the original clean images. What type of autoencoder is this?
Not quite. Try another option.
Answer: Denoising autoencoder
A denoising autoencoder learns to recover clean data from deliberately corrupted inputs.
Question 32 of 60 · Types of autoencoders · Medium
Which modification most directly creates a sparse autoencoder?
Not quite. Try another option.
Answer: Penalizing excessive hidden activations
Sparse autoencoders add a regularization term that encourages most hidden-unit activations to remain near zero.
Question 33 of 60 · Types of autoencoders · Medium
A researcher wants the learned representation to change very little when the input is slightly perturbed. Which autoencoder is most suitable?
Not quite. Try another option.
Answer: Contractive autoencoder
A contractive autoencoder penalizes sensitivity of the latent representation to small input changes.
Question 34 of 60 · Types of autoencoders · Medium
Which autoencoder architecture is generally most suitable for preserving local spatial patterns in images?
Not quite. Try another option.
Answer: Convolutional autoencoder
Convolutional layers exploit spatial locality and shared patterns such as edges, textures, and shapes.
Question 35 of 60 · Data compression using autoencoders · Medium
A grayscale image is represented by 1024 values. An encoder maps it to 64 latent values. Ignoring metadata and numeric precision, what is the compression ratio?
Not quite. Try another option.
Answer:
The ratio is , so the original representation is 16 times larger than the latent code.
Question 36 of 60 · Data compression using autoencoders · Medium
An autoencoder compresses data effectively on its training set but reconstructs unseen samples poorly. Which change is most likely to improve practical compression?
Not quite. Try another option.
Answer: Use regularization and more representative data
Regularization and representative training data reduce overfitting and improve reconstruction of unseen samples.
Question 37 of 60 · Data compression using autoencoders · Medium
Why must a decoder or its equivalent be available when distributing data compressed by an autoencoder?
Not quite. Try another option.
Answer: The latent code requires learned reconstruction rules
The compressed latent vector is decoded using learned model parameters, so those reconstruction rules must be available.
Question 38 of 60 · Variational autoencoders · Medium
In a variational autoencoder, the encoder outputs and instead of one fixed code. What do these values describe?
Not quite. Try another option.
Answer: A latent probability distribution
The encoder parameterizes an approximate posterior distribution over latent variables, commonly a Gaussian.
Question 39 of 60 · Variational autoencoders · Medium
Which formula represents the reparameterization trick used to sample a VAE latent variable?
Not quite. Try another option.
Answer:
With , this formula separates random sampling from the learnable parameters and permits backpropagation.
Question 40 of 60 · Variational autoencoders · Medium
What is the main role of the KL-divergence term in the VAE objective?
Not quite. Try another option.
Answer: Align the latent posterior with the prior
The KL term regularizes the approximate posterior toward a chosen prior, producing a smoother and more sampleable latent space.
Question 41 of 60 · Introduction to autoencoders · Hard
An autoencoder is trained with input-target pairs . After training, which property most directly distinguishes a useful autoencoder from a trivial identity mapping?
Not quite. Try another option.
Answer: The latent representation preserves task-relevant structure under a constraint
Without a bottleneck or regularization, an autoencoder can learn an unconstrained identity function. Useful representations arise when the latent code must preserve information under a capacity, sparsity, denoising, or smoothness constraint.
Question 42 of 60 · Need for autoencoders · Hard
A dataset contains high-dimensional sensor vectors with strong nonlinear correlations. PCA reconstruction is poor, but increasing the PCA dimension is computationally expensive. Why might an autoencoder provide a better compression model?
Not quite. Try another option.
Answer: It learns nonlinear manifolds through parameterized transformations
PCA captures only linear subspaces, whereas a nonlinear autoencoder can approximate curved data manifolds. It still requires selecting a code capacity and does not guarantee lossless reconstruction.
Question 43 of 60 · Architecture of autoencoder · Hard
For an autoencoder with encoder and decoder , suppose the latent dimension is larger than the input dimension and no regularization is used. Which failure mode is most likely?
Not quite. Try another option.
Answer: The model may memorize the training examples
An overcomplete, unconstrained autoencoder has sufficient capacity to copy inputs or memorize training samples. A bottleneck or regularizer is typically needed to encourage meaningful representation learning.
Question 44 of 60 · Architecture of autoencoder · Hard
An autoencoder uses sigmoid outputs and binary cross-entropy reconstruction loss for images whose pixels are scaled to . A reconstruction has predicted value for a target pixel of . What is the principal training consequence?
Not quite. Try another option.
Answer: The pixel contributes a large penalty and gradient
Binary cross-entropy strongly penalizes confident incorrect predictions. A prediction near for a target of produces a large loss and, when paired with sigmoid cross-entropy, a substantial error signal.
Question 45 of 60 · Architecture of autoencoder · Hard
A convolutional autoencoder downsamples an image by a factor of three times. The decoder uses three stride- transposed convolutions. If padding and output padding are chosen inconsistently, which issue can occur?
Not quite. Try another option.
Answer: The output spatial dimensions differ from the input
Stride, kernel size, padding, and output padding determine spatial dimensions. Inconsistent inverse operations can produce an output that is larger or smaller than the original image, preventing direct reconstruction comparison.
Question 46 of 60 · Types of autoencoders · Hard
A denoising autoencoder receives generated by corrupting , but its target remains the clean sample . What representation is it explicitly encouraged to learn?
Not quite. Try another option.
Answer: A representation invariant to the selected corruption
Because the corrupted input is mapped to the clean target, the model must infer stable structure rather than copy the corruption. The resulting invariance is specific to the corruption process used during training.
Question 47 of 60 · Types of autoencoders · Hard
A sparse autoencoder adds an activation penalty to the reconstruction loss. If is increased substantially while model capacity remains fixed, what trade-off is most likely?
Not quite. Try another option.
Answer: Sparser codes with potentially worse reconstruction
A stronger activation penalty encourages many latent activations to approach zero. This reduces effective representation capacity and can increase reconstruction error if the penalty becomes too strong.
Question 48 of 60 · Types of autoencoders · Hard
A contractive autoencoder penalizes the Frobenius norm of the encoder Jacobian . What behavior does this penalty primarily encourage near training samples?
Not quite. Try another option.
Answer: Local insensitivity of the code to input changes
The Jacobian measures how rapidly the latent code changes with the input. Penalizing its norm encourages locally stable representations, although it does not enforce layer orthogonality or global invariance.
Question 49 of 60 · Types of autoencoders · Hard
An undercomplete autoencoder achieves nearly zero training reconstruction error even though its latent dimension is much smaller than the input dimension. Which explanation is most plausible?
Not quite. Try another option.
Answer: The decoder has learned a training-set lookup behavior
A narrow code does not prevent memorization when the network has sufficient nonlinear capacity. Near-zero training error alone does not establish useful compression or generalization.
Question 50 of 60 · Data compression using autoencoders · Hard
An autoencoder maps each -dimensional input to a -dimensional floating-point code. Ignoring model weights and metadata, what is the nominal code-size reduction relative to storing the input using the same precision?
Not quite. Try another option.
Answer:
With equal numeric precision, the ratio is . This is only nominal compression because decoder parameters, quantization overhead, and reconstruction distortion are not included.
Question 51 of 60 · Data compression using autoencoders · Hard
A compressed latent vector is quantized from 32-bit floating-point values to 8-bit integers before storage. Which additional issue must be considered when evaluating reconstruction quality?
Not quite. Try another option.
Answer: Quantization introduces distortion not present during training
The decoder receives quantized rather than exact latent values, so quantization error can degrade reconstruction. Training with simulated quantization or a quantization-aware objective can reduce this mismatch.
Question 52 of 60 · Data compression using autoencoders · Hard
Two autoencoders use the same latent dimension and achieve the same mean squared reconstruction error. Model A preserves rare but safety-critical events poorly, while Model B preserves them well. Which evaluation is more appropriate for selecting Model B?
Not quite. Try another option.
Answer: Use an application-weighted distortion measure
Mean squared error can hide poor performance on rare or important cases. A distortion measure that weights safety-critical features or samples reflects the actual compression objective more accurately.
Question 53 of 60 · Data compression using autoencoders · Hard
A decoder reconstructs an image from a code that was produced by an encoder trained only on natural images. The code is used to compress medical images containing structures absent from the training set. What is the main risk?
Not quite. Try another option.
Answer: The decoder may remove out-of-distribution structures
The decoder learns the training distribution's typical structure. When an input contains unfamiliar content, the reconstruction may project it toward familiar patterns and suppress diagnostically important details.
Question 54 of 60 · Introduction to autoencoders · Hard
An autoencoder has reconstruction loss . If every input is multiplied by a constant but the architecture and learning rate are unchanged, why can optimization behavior change substantially under MSE?
Not quite. Try another option.
Answer: MSE scales approximately by
For errors multiplied by , squared errors are multiplied by . This changes gradient magnitudes and can affect optimization unless normalization, learning rates, or loss scaling are adjusted.
Question 55 of 60 · Variational autoencoders · Hard
In a VAE, the encoder outputs and , and sampling uses with . Why is this reparameterization useful?
Not quite. Try another option.
Answer: It permits gradients to pass through the sampling operation
The random variable is isolated in , while and remain differentiable parameters of the transformation. This enables backpropagation through samples.
Question 56 of 60 · Variational autoencoders · Hard
For a VAE with posterior and prior , which term is the KL divergence?
Not quite. Try another option.
Answer:
For a diagonal Gaussian posterior against a standard normal prior, the KL term is . It is minimized when and .
Question 57 of 60 · Variational autoencoders · Hard
A VAE's KL term is weighted by a very large coefficient relative to the reconstruction term. Which outcome is most likely if optimization is stable?
Not quite. Try another option.
Answer: The posterior remains close to the standard normal
A large KL weight strongly penalizes deviations from . The encoder may ignore input-specific information, producing posterior collapse and reconstructions based mainly on decoder priors.
Question 58 of 60 · Variational autoencoders · Hard
Suppose a VAE reconstructs training examples well, but samples generated from are implausible. Which diagnosis best explains this result?
Not quite. Try another option.
Answer: The aggregated encoded distribution may not match the prior
Good reconstruction does not alone ensure that latent codes occupy regions consistent with the sampling prior. The KL regularizer is needed to align the learned posterior distributions with the prior used for generation.
Question 59 of 60 · Variational autoencoders · Hard
A VAE uses binary cross-entropy summed over all pixels and a KL divergence averaged over the batch. If image resolution is doubled in both dimensions without retuning weights, what effect is likely?
Not quite. Try another option.
Answer: The reconstruction term gains relative dominance
Doubling each spatial dimension produces roughly four times as many pixel-level BCE contributions when the loss is summed. The relative influence of KL therefore decreases unless the loss normalization or weighting is changed.
Question 60 of 60 · Types of autoencoders · Hard
An adversarial autoencoder matches the aggregated latent distribution to a prior using a discriminator, while an ordinary autoencoder uses only reconstruction loss. What does the adversarial constraint primarily provide?
Not quite. Try another option.
Answer: A mechanism for shaping the latent distribution
The discriminator encourages the aggregate encoded samples to resemble a chosen prior. This can make prior-based sampling more meaningful, but it does not guarantee perfect reconstruction or identify the true data distribution.
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of INT422 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of INT422 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.