Self-Supervised Learning
- 109Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is the central representation-learning goal of unsupervised learning?
Learn rich, useful features from raw unlabeled data that support many downstream tasks.
Or swipe the card
109 cards
What is the central representation-learning goal of unsupervised learning?
Learn rich, useful features from raw unlabeled data that support many downstream tasks.
What does it mean that representations matter?
A suitable representation can make a problem much easier to solve, even when the original representation makes the relevant structure hard to see.
How does deep learning typically build increasingly useful representations?
It applies successive layers of computation that refine raw inputs into progressively more abstract features.
How do lower- and higher-level representations typically differ?
Lower-level representations preserve fine-grained, high-frequency details; higher-level representations encode more abstract, semantic information.
How are deep learning, representation learning, machine learning, and AI related in the lecture's conceptual hierarchy?
Deep learning is a subset of representation learning, which is a subset of machine learning, which is considered part of AI.
What distinguishes deep unsupervised learning from supervised deep learning?
Deep unsupervised learning learns representations without relying on labels.
What is self-supervised learning?
A form of unsupervised learning in which the data itself provides supervision for a learning task.
How are the terms self-supervised learning and unsupervised learning related in the lecture?
They are used interchangeably for learning representations without labels; “self-supervised” emphasizes creating supervision from the data.
Why can higher-level learned features make downstream tasks easier?
They provide a more meaningful starting representation, so a downstream model may need fewer labels and can learn or converge more efficiently.
How can a pre-trained image classifier support other vision tasks?
Its feature-extracting backbone can be reused or fine-tuned for tasks such as object detection and semantic or instance segmentation.
Why is producing task-specific labeled datasets costly?
It can require labeling instructions, hiring annotators, annotation interfaces, data-storage pipelines, and substantial engineering.
Why is self-supervised learning especially attractive in domains such as medicine or law?
Creating a new labeled dataset in a specialized domain may be difficult or expensive, while unlabeled data may still be available.
Why can supervised learning fail to take full advantage of internet-scale data?
Most available data is unlabeled, and supervised learning generally depends on labeled examples.
How can self-supervised pre-training improve the efficiency of supervised learning?
It can use unlabeled data to learn features first, reducing the amount of labeled data needed for a downstream task.
What cognitive motivation is given for learning without labels?
Babies and animals learn much by observing and experimenting, rather than receiving explicit labels for every experience.
What is the intended meaning of the quote, “Give a robot a label and you feed it for a second; teach a robot to label and you feed it for a lifetime”?
Learning underlying concepts from data could let a system generalize, rather than depending on a separate explicit label for every case.
What is a pretext task, also called a proxy task?
A training task constructed from data to provide a learning signal for acquiring representations, even when downstream labels are unavailable.
Why do the details of a self-supervised pretext task matter?
They determine what the model must learn, and therefore influence the usefulness of the resulting representations.
What is the intended goal of self-supervised learning for downstream systems?
Learn features that are as useful as, or better than, supervised features while relying on fewer labels.
In the “cake” analogy for learning, what roles do self-supervised, supervised, and reinforcement learning play?
Self-supervised learning is the cake, supervised learning is the icing, and reinforcement learning is the cherry.
Why is the number of training bits alone not enough to compare self-supervised and supervised signals?
The quality and real-world relevance of the information matter as much as its quantity.
What is the general “withhold and predict” pattern in self-supervised learning?
Hide or transform part of the data, then train a model to predict the withheld information from what remains.
Name four kinds of information a self-supervised model might be trained to predict.
Masked image pixels, missing video frames, masked words, or future or past content from the surrounding sequence.
How can a self-supervised task be created from different views of the same data?
Use one view to predict another, such as predicting image color from grayscale or depth from a color image.
Why can a simple video frame-interpolation task encourage trivial solutions?
A model may fill in nearby missing frames using optical flow and pixel interpolation without understanding the objects or scene.
Why might predicting masked words teach different information from predicting missing image pixels?
Words depend on grammatical, syntactic, and semantic context, whereas neighboring image pixels often have strong local spatial correlations.
What are the three broad self-supervised approaches outlined in the lecture?
Corrupt data and reconstruct it; create visual common-sense tasks; or learn by contrastive prediction.
How can data corruption create self-supervision?
Corrupt an input and train a model to recover the original data from the corrupted version.
What determines whether a self-supervised task is trivial or informative?
The choice of what information is hidden or transformed and what information the model must predict.
What does a denoising auto-encoder learn to do?
Encode a noisy input into a latent representation and decode it to reconstruct the original, clean input.
Why can an auto-encoder trained without corruption learn an unhelpful identity mapping?
It can simply copy the input to its output rather than learning features that recover missing or corrupted information.
What can happen if a denoising auto-encoder receives too much noise?
The reconstruction task may become too difficult because the signal-to-noise ratio is too low.
What three corruption types were considered in the original denoising auto-encoder work described?
Additive isotropic Gaussian noise, masking noise, and salt-and-pepper noise.
How does masking noise corrupt an input?
It randomly selects some input elements and sets them to zero.
How does salt-and-pepper noise differ from zero masking?
Randomly selected elements are set to either the minimum or maximum possible value, rather than always being set to zero.
What geometric interpretation of denoising auto-encoders is given in the lecture?
They can be viewed as learning local structure of the data manifold and mapping corrupted points back toward it.
What reconstruction loss choices are mentioned for denoising auto-encoders?
Mean squared error or binary cross-entropy; both can work, with cross-entropy often suitable for MNIST.
Why might a denoising auto-encoder weight corrupted pixels more heavily in its reconstruction loss?
To encourage the model to reconstruct hidden or noisy details instead of focusing mainly on pixels it can already copy.
What is a stacked denoising auto-encoder?
A sequence of denoising auto-encoders trained layer by layer, with each stage operating on features produced by the previous stage.
How can features from a stacked denoising auto-encoder be used for classification?
Freeze the learned features and train a supervised classifier, such as a linear layer, on top.
What is a context encoder trained to do?
Reconstruct an image region that has been masked, using the visible context around it.
Which masking strategies for context encoders are described as self-supervised?
Masking the central region or masking multiple smaller regions across the image.
Why does removing an object using a human-provided segmentation mask not count as completely self-supervised?
The segmentation mask itself is labeled supervision needed to identify the object’s pixels.
Why can pixelwise mean squared error produce blurry image reconstructions?
It can favor averaging plausible pixel values, producing smooth interpolations rather than a sharp, specific completion.
How can an adversarial loss complement reconstruction loss in image inpainting?
A discriminator encourages generated completions to look realistic, while reconstruction loss encourages them to match the actual image.
What is the basic colorization pretext task?
Predict an image’s color channels from its grayscale or luminance information.
Why is predicting grayscale from color less informative than predicting color from grayscale?
Grayscale can be computed from color values, but color cannot generally be recovered from grayscale without inferring additional information.
Why can mean squared error be a poor choice for predicting color channels?
It may average several plausible colors and produce dull or degenerate predictions.
How can colorization treat color prediction as classification?
Quantize the color-channel values into categories and predict a distribution over those categories using a classification loss.
What is the goal of split-view or split-brain auto-encoding?
Use one part or view of an input to predict another, then combine the predictions and encourage them to be consistent with the original input.
What does relative patch prediction ask a model to predict?
Given two image patches, classify the spatial position of one patch relative to the other.
How can relative patch prediction labels be created without human annotation?
Sample patches from an image and use their known positions in that image as the target labels.
Why must patches in relative-position prediction be non-overlapping?
If they overlap, the model can infer their relative position from shared boundary pixels instead of learning meaningful spatial features.
Why apply spatial and color jitter to patches in relative patch prediction?
To prevent the model from exploiting accidental spatial or color cues, such as chromatic aberration, to guess patch position.
What does the jigsaw-puzzle pretext task ask a model to do?
Reorder shuffled image patches into their original spatial arrangement.
How can a three-by-three jigsaw task be implemented as classification?
Assign an index to each selected patch permutation and train a classifier to predict its permutation class.
What does the rotation-prediction task ask a model to predict?
Which rotation was applied to an image.
Why can predicting image rotation teach useful visual features?
To identify the rotation, a model may need to recognize objects and their expected orientation in images.
Which rotation classes performed best in the described rotation-prediction experiments?
The four rotations of 0^0, 90^0, 180^0, and 270^0.
What are word embeddings?
Vector representations of words intended to place semantically or contextually related words near one another.
How does an SVD-based approach derive word embeddings from text?
Construct a word co-occurrence or term-frequency matrix and factorize it to obtain lower-dimensional word representations.
What are three limitations of SVD-based word embeddings described in the lecture?
Sparse co-occurrence data, expensive computation, and unreliable representations for infrequent words.
What is the difference between unigram and bigram language models?
A unigram model treats each word independently; a bigram model conditions a word’s probability on the preceding word.
What does the CBOW model in word2vec predict?
It predicts a center word from its surrounding context words.
What does the skip-gram model in word2vec predict?
It predicts surrounding context words from a center word.
What simplifying assumption does skip-gram make about context words?
Given the center word, the surrounding words are treated as conditionally independent of one another.
What does the word2vec embedding matrix do with a one-hot word representation?
It maps the one-hot word to its corresponding learned word vector.
Why can a full softmax over a large vocabulary be expensive in word2vec?
It requires calculating and normalizing scores across all possible vocabulary words.
What kind of relationships can word2vec embeddings encode geometrically?
Some relationships appear as similar vector offsets, such as the relationship between countries and their capitals.
What is the main idea of contrastive predictive coding (CPC)?
Learn representations by making a context representation identify its true target among alternative, negative targets.
How does CPC generalize the basic word2vec idea?
It uses learned neural-network representations of context and target, rather than relying on simple averages of word embeddings.
In CPC for sequential data, what are the context and target?
The context summarizes observed data, while the target is a later or otherwise related segment that the context must identify.
Does CPC have to predict the raw future signal?
No. It can predict or identify the future in latent space rather than reconstructing the raw signal.
What is a negative sample in CPC?
A candidate target that is not the correct target for the given context.
How can the choice of CPC negatives affect what the model learns?
It changes which distinctions the model must make, and can therefore emphasize different features.
What scoring function can CPC use to compare context and target representations?
A similarity score such as a dot product or a learned bilinear product.
Why should CPC targets and patches avoid trivial overlap with their contexts?
Otherwise, the model may identify the target from shared content rather than learning useful predictive structure.
Does CPC require predicting only forward in time?
No. Context and target can be arranged in different ways, including prediction from future to past or prediction of a masked middle segment.
How can CPC combine multiple prediction horizons?
Use prediction objectives at several future steps, potentially with different scoring transformations for each step.
What is the slow-feature intuition for CPC on audio?
Predicting sufficiently separated future representations can encourage the model to capture slower-changing, meaningful content such as phonemes rather than rapid waveform variation.
What happens to CPC’s future-prediction accuracy as the prediction horizon increases?
It generally decreases because more distant targets share less information with the available context.
Why can predicting too many future steps hurt CPC’s downstream performance?
Very distant targets may share little useful information with the context, so optimizing for them can encourage less useful representations.
How can CPC features be evaluated on a labeled downstream task without fine-tuning?
Freeze the learned features and train a linear classifier on top.
What does it suggest if CPC features perform better with an MLP than with a linear classifier?
Useful task information is present in the features but may not be linearly separable.
How was CPC adapted to ImageNet in the described version?
Images were divided into overlapping patches, encoded with a shared ResNet, and arranged as a grid whose context was used to predict target patches.
What was the reported ImageNet linear-classification result for the original CPC image approach?
About 48.7% top-1 accuracy with a ResNet encoder.
What were key changes used to improve CPC from version 1 to CPCv2?
A deeper and wider ResNet, a wider PixelCNN, careful prediction offsets, extensive patch augmentation, and longer training.
What is the InfoNCE loss in the context of CPC?
A contrastive objective that encourages matching context-target pairs to score above negative pairs.
What ImageNet linear-classification result did CPCv2 report?
About 71.5% top-1 accuracy in the reported setup.
How did CPC pre-training affect supervised ImageNet training with limited labels?
It improved data efficiency, allowing comparable performance with substantially fewer labels; the lecture reports roughly 80% fewer labels to match a supervised baseline in the comparison shown.
What was the reported CPCv2 result for Faster R-CNN on Pascal VOC?
A mean average precision of about 76.6 in the described benchmark.
What was the main lesson from the CPCv2 improvements?
Careful model, data-augmentation, negative-sampling, and optimization choices can greatly improve self-supervised representations.
What is instance discrimination?
A contrastive task in which one augmented view of an example must be recognized as matching another view of the same example rather than views of other examples.
In instance discrimination, what are the anchor, positive, and negatives?
The anchor is one augmented view, the positive is another view of the same example, and negatives are views of other examples.
Why do strong image augmentations matter for instance discrimination?
They make matching two views harder to solve using superficial details, encouraging the model to learn features shared across transformed views.
How does Momentum Contrast (MoCo) frame contrastive learning?
As a dictionary lookup: a query must identify its matching key among a positive key and many negative keys.
What is the role of the momentum encoder in MoCo?
It produces keys using a slowly updated version of the query encoder.
How does MoCo obtain many negative examples without requiring an enormous current batch?
It stores past key embeddings in a queue and uses them as a dictionary of negatives.
Why does MoCo use a slowly changing key encoder rather than simply storing embeddings from a rapidly changing encoder?
A slowly changing encoder makes queued embeddings more consistent with the current representation space.
Which encoder receives gradients in the described MoCo training procedure?
The query encoder receives gradients; the key encoder is updated by momentum rather than backpropagation.
How does the described MoCo contrastive comparison score embeddings?
It uses dot products between normalized embeddings and applies a temperature-scaled softmax.
What is the main difference between end-to-end instance contrast and MoCo’s queue-based approach?
End-to-end contrast uses negatives from the current batch and updates both views through the shared encoder; MoCo uses a queue of keys from a momentum encoder.
What is SimCLR’s basic training setup?
Create two augmented views of each image, encode them with the same ResNet, and contrast their representations against views of other images in the batch.
What is the projection head in SimCLR?
An MLP that maps the ResNet representation into a space used for the contrastive loss.
What training choices helped SimCLR achieve strong results?
Large batches, long training, strong augmentations such as Gaussian blur, and randomized augmentation order.
What was SimCLR’s reported ImageNet linear-classification result with a ResNet-50?
About 69% top-1 accuracy in the described comparison.
Which SimCLR ideas were later incorporated into MoCo v2?
An MLP projection head, stronger augmentations including Gaussian blur, cosine learning-rate scheduling, and longer training.
What ImageNet linear-classification result did MoCo v2 report with a ResNet-50?
About 71.1% top-1 accuracy in the described comparison.
What overall conclusion does the lecture draw from the progress of MoCo and SimCLR?
Self-supervised performance improves substantially with careful architecture, augmentation, batch or negative-sampling, and optimization choices, though a gap from supervised learning remained in the reported comparisons.

Ask anything
We've read this whole study set, so questions about it get the best answers.