An autoencoder is trained to reconstruct its input through a narrow middle layer. What does the narrow layer force it to learn?
- Exam domain
- Software Development15% of the exam
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Software Development (15% of the exam)
Objective in the exam guide: Build a U-Net to generate images from pure noise and as a type of autoencoder.
NVIDIA describes the U-Net as a type of autoencoder.
Why B is the answer
A compact representation of the input's key features
The bottleneck forces the model to compress the input into its most important features, then rebuild the input from that code.
Remember: The bottleneck learns a compact representation.
How it works
Autoencoders compress input to a latent code and reconstruct it. U-Nets add skips so detail passes across.
In detail
- Bottleneck forces compression.
- U-Nets are related encoder-decoder models.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A random code unrelated to the inputWrong
The code must reconstruct the input, so it is not random.
B. A compact representation of the input's key featuresRight
The bottleneck learns a compact representation.
C. A class label for every imageWrong
No labels are used.
D. An exact copy of every pixel with no compressionWrongMost tempting
The narrow layer cannot hold every pixel.
Why it tempts: Reconstruction sounds like copying.
Use case
An illustrative scenario, not a real incident.
Illustrative: an autoencoder trained on clean images flags damaged products when reconstruction error is high.
See it in different ways
flowchart LR S0["Input"] --> S1["Encoder"] --> S2["Narrow code"] --> S3["Decoder"] --> S4["Reconstruction"]
How to read this chart
- Read it in order: Input, then Encoder, then Narrow code, then Decoder, then Reconstruction.
flowchart TD
Q{"Need fine detail in the output?"}
Q -->|"Yes"| A0["U-Net with skip connections"]
Q -->|"No, just a code"| A1["Plain autoencoder"]How to read this chart
- At "Need fine detail in the output?": if "Yes", go to "U-Net with skip connections"; if "No, just a code", go to "Plain autoencoder".
Related questions
Learn more
- Our lesson: Generating images: U-Net, diffusion and CLIP
- Practise Software Development questions in the mock exam
- Source: U-Net: Convolutional Networks for Biomedical Image Segmentation (arXiv)
- Source: Fundamentals of Deep Learning (NVIDIA DLI)
- U-Net: Convolutional Networks for Biomedical Image Segmentation (arXiv)
- Denoising Diffusion Probabilistic Models (arXiv)
- Learning Transferable Visual Models From Natural Language Supervision, CLIP (arXiv)
- Git documentation