---
title: "Boosting Few-Shot Visual Learning With Self-Supervision (2019)"
description: "How auxiliary rotation and patch-location tasks improve few-shot visual learning, what the experiments establish, and where the evidence stops."
canonical: "https://research.elamur.ai/free/en/papers/gidaris-2019-boosting-few-shot-visual-learning/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/gidaris-2019-boosting-few-shot-visual-learning/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Boosting Few-Shot Visual Learning With Self-Supervision

# Boosting Few-Shot Visual Learning With Self-Supervision

Paper · 2019 · Spyros Gidaris, Andrei Bursuc, Nikos Komodakis A et al.

**Authors:** Spyros Gidaris, Andrei Bursuc, [Nikos Komodakis A](https://md.research.elamur.ai/free/en/authors/nikos-komodakis-a/), [Patrick Pérez](https://md.research.elamur.ai/free/en/authors/patrick-perez/) and [Matthieu Cord](https://md.research.elamur.ai/free/en/authors/matthieu-cord/) · **Year:** 2019 · **Venue:** IEEE/CVF International Conference on Computer Vision (ICCV) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**409** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2950996604) · [IEEE/CVF International Conference on Computer Vision (ICCV)](https://openalex.org/S4363607764) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1906.05186)
- [DOI 10.1109/iccv.2019.00815](https://doi.org/10.1109/iccv.2019.00815)
- [arXiv 1906.05186](https://arxiv.org/abs/1906.05186)
- [OpenAlex](https://openalex.org/W2950996604)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Boosting Few-Shot Visual Learning With Self-Supervision

How auxiliary rotation and patch-location tasks improve few-shot visual learning, what the experiments establish, and where the evidence stops. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Recognizing a new category from a handful of examples depends heavily on what a visual system has already learned. A few labeled images cannot teach it every useful distinction from scratch. “Boosting Few-Shot Visual Learning With Self-Supervision” studies how to make that earlier learning stage more useful. Its central proposal is to train an image feature extractor on an additional task whose answers come from the images themselves. Alongside recognizing labeled training categories, the network predicts either an image’s rotation or the spatial relationship between image patches. The goal is better recognition of unfamiliar categories later, when their labels are scarce.

The contribution is a change to training rather than a new procedure for recognizing each unfamiliar category. The authors combine auxiliary self-supervision with Prototypical Networks and Cosine Classifiers, two approaches that compare image representations with category representatives. Both first acquire visual features using a collection of base categories. They then construct representatives for previously unseen categories from a small labeled support set. Self-supervision enters the earlier stage, encouraging the shared feature extractor to solve an additional visual problem. The authors argue that this broader training demand produces features that transfer more effectively.

Experiments cover MiniImageNet, CIFAR-FS, and tiered-MiniImageNet, with several feature extractor architectures. Both auxiliary tasks improve few-shot recognition in the reported comparisons, while rotation prediction gives the stronger results. The authors find larger benefits with higher-capacity architectures. Their strongest supervised configuration combines a Cosine Classifier with rotation prediction. On MiniImageNet, they report advantages over the earlier leading LEO approach of around 1.3 percentage points for 1-shot recognition and 2.3 percentage points for 5-shot recognition. These are the authors’ stated comparisons, rather than values reconstructed from other results.

Because rotation and patch-location targets do not require category annotations, the same training arrangement can use additional unlabeled images. Those images need not belong to the labeled base categories. In an experiment combining all labeled MiniImageNet training images with an external unlabeled collection, the system reaches MiniImageNet accuracies of 63.77% for 1-shot recognition and 80.70% for 5-shot recognition. The paper also removes category supervision from the first stage altogether and uses subsequent few-shot recognition to evaluate self-supervised representations. Across these settings, the evidence supports auxiliary self-supervision as a useful way to strengthen visual transfer. It does not establish that every auxiliary task, every source of unlabeled images, or every recognition domain will benefit.

### Ideas worth borrowing

Train for transfer before adaptation. When the final task supplies very little labeled evidence, the earlier representation-learning stage deserves particular attention. This paper improves the features available to a simple downstream classifier rather than making that classifier increasingly elaborate. The reusable idea is to ask what abilities must already exist before scarce examples arrive. In another application, that could mean strengthening representations before fitting a small task-specific component. The paper demonstrates this strategy for visual categories; its broader value is the separation between acquiring reusable structure and assigning new labels to that structure.

Add a task with inexpensive, reliable targets. The auxiliary labels are generated by a known operation: rotate an image and record the angle, or sample patches and record their relative positions. Human category annotation is unnecessary for these targets. This makes additional supervision available even when semantic labels are expensive. The important design question is whether solving the generated task requires useful analysis of the input. A target that is free to produce can still be unhelpful if it rewards a trivial artifact. The paper’s preprocessing for patch prediction makes that concern concrete.

Control for exposure to transformed data. A system trained to predict rotations also encounters rotated images. Improvement could therefore come from ordinary augmentation rather than from predicting the transformation. The authors address this by giving their Cosine Classifier baseline the same kinds of rotated inputs. Their patch experiments likewise include a baseline with an auxiliary classification loss on patch features. This comparison principle applies whenever a proposed objective changes both the training signal and the inputs: isolate the value of the objective from the value of seeing additional views.

Share the representation, specialize the output. Object recognition and the auxiliary task use the same feature extractor but different prediction networks. Their interaction occurs through the features they jointly shape. This makes it possible to add a training objective without requiring its output at deployment. The pattern is useful when a temporary training task can encourage better internal organization while the eventual application needs only a simple decision rule. Its success still depends on the tasks being compatible enough for shared learning to help.

Use unlabeled data without inventing category labels. The semisupervised extension applies category loss only where real category labels exist. Additional images contribute through their self-supervised targets. This avoids requiring each extra image to fit the labeled base-category vocabulary. The approach is especially relevant when an unlabeled collection cannot be neatly restricted to known categories. The paper tests that possibility with an external collection whose overlapping benchmark categories are removed. The reusable principle is to distinguish information available from an input’s structure from information available through its semantic annotation.

Evaluate features under constrained adaptation. The paper proposes few-shot recognition as a way to compare self-supervised representations. The feature extractor is learned first, then a small labeled support set determines category representatives. This makes the evaluation ask whether a representation is immediately useful when downstream supervision is limited. Repeating the procedure across many sampled tasks also provides a broader basis for comparison than inspecting an isolated task. Such an evaluation remains specific to the chosen downstream decision rule, but that specificity can be useful: it reveals exactly what kind of transfer is being tested.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the relevant connection is a training principle rather than a visual component. The paper supplies no evidence that its rotation or patch-location machinery has been implemented in Mova. Nor does it test a language application. Any connection should therefore be framed as a possible design direction: use automatically generated training signals to improve representations that must later support decisions from limited labeled examples.

The closest conceptual match is the separation between reusable analysis and task-specific decisions. In the visual system, a shared feature extractor is trained before unfamiliar categories are introduced. A small support set then supplies category representatives. A language system could investigate an analogous separation between learning reusable properties of text and attaching a small amount of task-specific supervision. That would be an adaptation of the paper’s reasoning, not a result established by its experiments.

For a transparent system, the origin of each training target would matter. Rotation prediction has a particularly clear source of supervision: the training procedure knows which transformation it performed. A possible language counterpart would need equally explicit target generation. It should be possible to inspect the input, the transformation or sampling operation, and the expected answer. The paper does not identify which language operations would produce useful targets, so selecting such an operation would remain a separate research problem.

This distinction prevents a superficial translation of the method. Rotating an image changes a spatial property while preserving much of its visual content. Arbitrarily rearranging text can change meaning or destroy the structure a language system is meant to analyze. A language auxiliary task would therefore need its own justification. The transferable question is whether an automatically labeled problem encourages useful analysis; the particular visual transformations are not general instructions for manipulating language.

The paper’s comparison strategy is more directly reusable. If Mova experiments with an auxiliary task, a useful baseline would receive comparable inputs and preprocessing without the auxiliary prediction requirement. Otherwise, an apparent gain might reflect exposure to a broader training collection instead of the proposed learning signal. The rotation experiments illustrate why that distinction matters: transformed inputs and transformation prediction are related interventions, but their effects should be examined separately.

The semisupervised arrangement offers another possible direction. A system could reserve manual annotations for the main task while allowing other text to contribute through an explicitly defined auxiliary objective. The paper’s visual experiments show that auxiliary supervision can draw on categories outside the labeled base set. They do not show that arbitrary language collections will transfer successfully. For Mova, the source, structure, and relevance of any additional text would need to be examined rather than treated as automatically beneficial.

Transparency also suggests a useful reporting discipline. An experimental implementation could expose which objective contributed to training, which inputs carried manual labels, and which targets were generated automatically. Evaluation could then hold the downstream task fixed while changing the auxiliary objective. That would make the proposed benefit inspectable at the level of both procedure and outcome. This is a possible application of the paper’s experimental logic, not a description of an existing Mova feature.

The most defensible borrowing is therefore modest and concrete: investigate whether a clearly specified auxiliary task improves performance when downstream labels are scarce, and compare it against a baseline that receives equivalent data. Rust is an implementation setting for such an investigation, not something the paper evaluates. Neither the programming language nor architectural transparency on its own establishes that the visual findings will carry over to language.

### The problem and its context

#### Why a small support set needs strong prior features

[Few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) asks a recognition system to learn unfamiliar categories from very limited labeled evidence. The difficulty is not merely that training contains fewer images. The system must distinguish categories that were absent from its earlier supervised training, so it needs visual abilities that extend beyond remembering the original category boundaries.

The paper contrasts this setting with the large annotated collections ordinarily used for deep visual recognition. Its introduction points to progress in image classification, detection, and segmentation, while emphasizing the dependence of those achievements on substantial manual labeling. It cites classification work including [Very Deep Convolutional Networks](https://md.research.elamur.ai/free/en/papers/simonyan-2014-very-deep-convolutional-networks-large/) and [Deep Residual Learning](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/), as well as detection work such as [Faster R-CNN](https://md.research.elamur.ai/free/en/papers/ren-2015-faster-r-cnn-towards-real/). These references establish the broader visual-learning context. The paper does not present its auxiliary objective as a replacement for those tasks or architectures.

Its few-shot setup divides learning into an earlier stage and a later stage. During the earlier stage, the system has many annotated examples from base categories. This is where it acquires visual representations: numerical descriptions of images that a classifier can compare. During the later stage, it receives a small support set from novel categories and uses those representations to recognize additional examples.

The category split is essential. If the supposedly unfamiliar categories had already been supervised during representation learning, the experiment would answer a different question. Here, the system must reuse abilities learned elsewhere. The support set supplies the identity of the new categories, while the previously trained feature extractor supplies the visual distinctions on which those identities can operate.

A useful way to understand the challenge is to separate two kinds of learning. The earlier stage must discover what aspects of an image are worth representing. The later stage must determine which represented patterns correspond to the current labels. A tiny support set gives little opportunity to repair a representation that ignored the relevant distinctions. The authors therefore focus on improving the earlier stage.

#### What earlier few-shot approaches tried to improve

The related-work discussion describes several families of few-shot methods. Some learn an adaptation procedure, allowing a system to adjust through a limited sequence of gradient updates. [Model-Agnostic Meta-Learning](https://md.research.elamur.ai/free/en/papers/finn-2017-model-agnostic-meta-learning-fast/) appears in this category. Its relevance here is the emphasis on preparing a system for rapid adaptation, instead of learning each new task independently.

Another family learns comparisons between query images and labeled support examples. A query is an image to classify; the support set contains the examples whose labels define the current task. The paper places [Matching Networks](https://md.research.elamur.ai/free/en/papers/vinyals-2016-matching-networks-one-shot-learning/) within this metric-learning family. Prototypical Networks and Cosine Classifiers, the approaches used in the experiments, also organize recognition around comparisons in a learned feature space.

Other approaches described by the authors use memory components that retain task examples, generate classifier parameters from limited evidence, or synthesize additional examples for underrepresented categories. These alternatives differ in what they learn during preparation and in how they use the support set. The paper’s proposal is largely orthogonal to that choice: improve the shared visual representation through an additional training objective.

The authors choose Prototypical Networks and Cosine Classifiers because they are comparatively simple and flexible. That simplicity matters to the argument. If auxiliary self-supervision improves recognition while the downstream classification mechanism stays straightforward, the result points toward the quality of the learned features as an important source of improvement.

Their claim of compatibility with other approaches is broader than their direct experimental coverage. The experiments establish results for the selected methods. They do not test every adaptation procedure, memory mechanism, or parameter-generation scheme discussed in related work.

#### Why self-supervision is a natural partner

Self-supervised learning addresses a related shortage from another direction. Instead of asking how to recognize a category from very few category labels, it asks how to learn useful representations without requiring those labels during feature learning. A pretext task supplies automatically available targets. Success on that task is intended to encourage features that will later help with another visual problem.

The paper discusses earlier tasks involving color prediction, patch relationships, image rotation, and reconstruction of missing visual content. What unites these examples is not the output format. It is the hope that useful semantic or structural information must be extracted to solve the training problem. The auxiliary target stands in for an expensive manual annotation.

The authors particularly emphasize earlier work on predicting the relative positions of image patches. That work showed that features learned from a spatial pretext task could transfer to recognition, detection, and segmentation. The present paper uses this precedent to motivate a different combination: retain supervised base-category learning and add self-supervision alongside it.

This changes the role of the pretext task. In a purely self-supervised pipeline, the pretext objective is responsible for representation learning before downstream adaptation. Here, it supplements an existing category-recognition objective. The authors care about the final few-shot recognition performance, not about making every training task equally successful.

Their related-work discussion also mentions self-supervision added to adversarial image generation. The cited setting builds on [Generative Adversarial Nets](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-generative-adversarial-nets/) and uses rotation prediction to improve generated-image quality. The connection is the use of an auxiliary objective to improve a primary task. The present paper examines that principle under scarce downstream category supervision.

#### The specific hypothesis

The authors’ central hypothesis is that base-category classification alone may encourage a narrower set of features than is desirable for future categories. Adding a distinct visual task places extra demands on the shared representation. If those demands encourage useful structure, the resulting features should support novel-category recognition more effectively.

This is a hypothesis about transferable representation learning, not a claim that the auxiliary labels contain the novel category names. Rotation targets do not identify an unfamiliar object category. Patch positions do not supply its semantic label. Instead, the tasks may influence which visual properties the feature extractor retains and makes accessible.

The same reasoning motivates extra unlabeled data. If the auxiliary objective does not need category annotations, representation learning can draw on images beyond the labeled base collection. That creates an opportunity to expand the visual material used during preparation. Whether the expansion helps is an empirical question, which the paper tests in its semisupervised experiments.

### The method, step by step

#### Follow the training stages

The method preserves the usual division between preparing visual features and recognizing new categories. Its modification occurs during preparation. A shared feature extractor receives gradients from category recognition and from an automatically labeled visual task.

Learning features for unfamiliar visual categories The steps in order.

The last steps are deliberately simple. After feature learning, the system does not train the auxiliary network on each new category. It constructs category representatives from the support examples and compares query features with them. This keeps the measured benefit tied closely to what the shared extractor learned earlier.

#### Define the data and the representation

The labeled base training collection is written as:

```
D_b = {(x, y)} ⊂ I × Y_b
```

Here, D_b is the base dataset, x is an image, and y is its category label. I denotes the image space, while Y_b is the set of base labels. The product I × Y_b describes image–label pairs. The paper uses N_b for the size of the base label set.

The novel-category support collection is:

```
D_n = {(x, y)} ⊂ I × Y_n
```

D_n contains the labeled examples available for the later recognition task. Y_n is the novel label set, with N_n categories. Each category supplies K support images. The base and novel label sets are disjoint, so a novel label was not a supervised target during base training.

The phrase N_n-way K-shot describes this task structure. “Way” counts the categories that must be distinguished within a task. “Shot” counts the labeled support examples available for each category. The benchmark settings use K = 1 or K = 5. These counts describe the later support set, not the amount of annotated data originally available for the base categories.

A convolutional feature extractor, F_θ, maps an image to a feature vector. Its trainable parameters are θ, and the vector has dimension d. Both few-shot approaches use this shared representation, but they differ in how the first-stage category objective is constructed.

#### Build Prototypical Networks from episode averages

Prototypical Networks train through sampled recognition episodes. An episode selects a subset of base categories, then samples a support collection D_* from those categories. Additional images from the selected categories serve as queries. They share category identities with the support images but are separate examples.

For a selected category j, the representative is its average support feature:

```
p_j = (1/K) ∑_{x ∈ X_*^j} F_θ(x)
```

The vector p_j is the prototype for category j. K is the number of support images assigned to that category. X_*^j is the collection of its support images within D_*. F_θ(x) is the feature vector extracted from image x, and the summation combines those vectors before averaging.

This construction matters because the classifier does not need a separately learned weight vector for every episode category. Its category representatives are determined directly by the current support examples. Training must therefore make those averages useful for recognizing other images of the same category.

For a query image, the normalized category score is:

```
C^j(F_θ(x_q); D_*) = softmax_j([sim(F_θ(x_q), p_i)]_{i ∈ Y_*})
```

The query image is x_q. Y_* is the set of categories selected for the episode, and p_i is the prototype for a category i in that set. The function sim measures feature similarity. The paper allows cosine similarity or the negative of squared Euclidean distance. The operation softmax_j converts the collection of comparison scores into a normalized score for category j.

The dependence on D_* is explicit because changing the support collection changes the prototypes. The feature extractor can stay fixed while the classifier changes with the examples supplied for a new task.

The training loss is:

```
L_few(θ; D_b) = E_{D_* ∼ D_b, (x_q, y_q)}[−log C^{y_q}(F_θ(x_q); D_*)]
```

L_few is the recognition loss. The expectation averages over sampled support collections and query examples drawn from the base training data. The query’s correct label is y_q, and the negative logarithm penalizes a low normalized score for that label. Optimization changes θ so that support-derived prototypes classify separate queries more successfully.

During novel-category recognition, F_θ is frozen. The same averaging procedure constructs prototypes from D_n. The new labels determine which support examples belong together; the previously learned representation determines how those examples are positioned relative to future queries.

#### Train Cosine Classifiers with learned base representatives

Cosine Classifiers use a more conventional supervised first stage. Instead of reconstructing category prototypes from every training episode, they learn a weight vector for each base category together with the feature extractor.

Their normalized category score is:

```
C^j(F_θ(x); W_b) = softmax_j([γ cos(F_θ(x), w_i)]_{i ∈ Y_b})
```

W_b is the collection of base-category weight vectors w_i. Each vector has the same feature dimension d as the image representation. The cosine operation compares the directions of F_θ(x) and w_i. The scalar γ is an inverse-temperature parameter: it controls how concentrated the normalized category scores become.

The temperature interpretation is connected in the paper to [Distilling the Knowledge in a Neural Network](https://md.research.elamur.ai/free/en/papers/hinton-2015-distilling-knowledge-neural-network/). In this method, its immediate role is score scaling. The paper does not introduce a teacher–student distillation procedure.

The supervised training objective is:

```
L_few(θ, W_b; D_b) = E_{(x, y) ∼ D_b}[−log C^y(F_θ(x); W_b)]
```

The expectation is over labeled base examples. C^y is the score assigned to the correct category y. Optimization updates both the feature parameters θ and the base classifier weights W_b.

The authors describe the learned weight vectors as analogous to prototypes for base categories. They also motivate cosine classification as encouraging reduced variation within a category, which may make transfer easier. That motivation explains their choice of classifier; it is not a separate causal measurement of every change inside the feature space.

For novel categories, the learned base-category vectors are replaced by representatives obtained through support-feature averaging. The later classifier again uses cosine comparisons. Consequently, base training learns category vectors through optimization, while novel-category recognition obtains them directly from the few available examples.

#### Add an auxiliary objective to the shared features

The proposed training objective combines recognition and self-supervision:

```
min_{θ, [W_b], φ} L_few(θ, [W_b]; D_b) + α L_self(θ, φ; X_b)
```

L_self is the auxiliary loss. X_b contains the base training images without their category labels. The parameters φ belong to a prediction network dedicated to the auxiliary task. The brackets around W_b indicate that these classifier parameters are present for Cosine Classifiers but absent from the Prototypical Networks objective.

The coefficient α controls the contribution of self-supervision. The experiments use α = 1.0. Both objectives update θ, so their interaction happens through the shared feature extractor. The auxiliary network has its own parameters because predicting a transformation or patch relationship requires a different output from predicting an object category.

The distinction between shared and task-specific parameters is central. The method does not assume that rotation scores should become category scores. It assumes that learning to produce useful rotation scores can influence the features on which category recognition also depends.

The auxiliary objective applies during the first stage. Once novel categories arrive, the feature extractor supplies representations and the support set supplies representatives. The auxiliary prediction network is not needed for that category-construction procedure.

#### Generate rotation targets

For rotation prediction, the possible transformations are:

```
ℛ = {0°, 90°, 180°, 270°}
```

ℛ is the set of rotation labels. For each training image x, the procedure creates a version xʳ for every r in ℛ. The superscript indicates the applied angle rather than an exponent.

The rotation loss is:

```
L_self(θ, φ; X) = E_{x ∼ X}[∑_{r ∈ ℛ} −log R_φ^r(F_θ(xʳ))]
```

X is the collection of original images used for self-supervision. R_φ is the rotation prediction network, and R_φ^r is its normalized score for the correct rotation r. The loss sums the negative log scores across the rotated versions and averages over source images.

The training procedure always knows the correct answer because it generated the transformation. No annotator needs to identify the object or its category. Nonetheless, the prediction task can require visual analysis: the network must distinguish orientations from image content rather than simply read a supplied label.

The authors suggest that this task encourages a representation less narrowly dependent on upright images. That explanation should not be confused with making the final representation completely indifferent to orientation. Predicting an angle requires some orientation information to remain available. The empirical result concerns improved category transfer; the exact internal balance between orientation sensitivity and category robustness is not fully isolated.

For Cosine Classifiers, object-category loss can also be applied to every rotated version. The paper uses this augmentation in its strong baseline comparisons. For Prototypical Networks, category recognition uses upright images because rotation augmentation harmed performance in the authors’ experiments. Its auxiliary rotation task still applies to both support and query images during training episodes.

#### Generate relative patch-location targets

The second auxiliary task asks where a neighboring patch lies relative to a central patch from the same image. An image is divided into a 3 × 3 arrangement of regions. A patch is sampled within each region, producing a central patch and its eight surrounding patches.

The loss is:

```
L_self(θ, φ; X) = E_{x ∼ X}[∑_{p=1}^8 −log P_φ^p(F_θ(x̄⁰), F_θ(x̄ᵖ))]
```

The symbol x̄⁰ denotes the central patch. The patch x̄ᵖ is a neighbor whose relative position is indexed by p. P_φ receives their feature vectors, concatenated as a pair, and P_φ^p is its normalized score for the correct spatial relationship. The expectation averages over source images, while the sum includes the surrounding positions.

The intended demand is different from rotation prediction. To infer a spatial relationship, a useful representation may need to recognize compatible object parts or scene structure across separated crops. The authors suggest that this can encourage useful features despite clutter or partial visibility.

The procedure also tries to prevent cheap solutions. During patch creation, an image is resized from 84 × 84 to 96 × 96 pixels. It is converted to grayscale with probability 0.66. The regular grid produces regions of 32 × 32 pixels, and a 24 × 24 patch is randomly sampled from each region. Each patch is then normalized independently to zero mean and unit standard deviation.

These choices address the possibility that low-level color properties, including chromatic aberration, could reveal patch location without meaningful visual understanding. They are therefore part of the task design rather than incidental preprocessing. The auxiliary objective is useful only insofar as its solution encourages features that transfer beyond the pretext task.

Patch training introduces a further complication: small, strongly color-altered crops differ substantially from full images. The authors add category supervision on a merged representation of the patches during Cosine Classifier training. This patch classifier has separate category weights from the full-image classifier, and its loss receives the same weight as the original recognition loss. It is omitted during novel-category recognition.

#### Extend training to extra unlabeled images

The semisupervised objective expands the inputs available to self-supervision:

```
min_{θ, [W_b], φ} L_few(θ, [W_b]; D_b) + α L_self(θ, φ; X_b ∪ X_u)
```

X_u is an additional unlabeled image collection. The union X_b ∪ X_u means that the auxiliary objective can use both labeled-base images with their labels ignored and genuinely additional unlabeled images. The category-recognition term still uses only D_b.

This arrangement does not ask the category classifier to assign a base label to every extra image. That is why the extra collection can contain other categories. Its contribution is through a task whose targets remain defined even when the object’s category is unknown.

Training batches contain both labeled and unlabeled examples. Labeled examples contribute to recognition and self-supervision; unlabeled examples contribute only to self-supervision. With Conv-4-64 and reduced MiniImageNet annotation, the reported batches contain 64 labeled images and 64 unlabeled images. The corresponding WRN-28-10 experiments use 16 labeled images and 48 unlabeled images.

When all MiniImageNet training images are labeled and tiered-MiniImageNet supplies the extra collection, batches contain 32 labeled images and 32 unlabeled images. These settings show that the semisupervised procedure changes batch composition as well as the source of supervision.

#### Implement and select the feature extractor

The experiments use Conv-4-64, Conv-4-512, and WRN-28-10. These architectures provide different capacities for learning the shared representation. Conv-4-64 stacks convolutional blocks with normalization, activation, and pooling. Conv-4-512 increases channel width across its blocks. WRN-28-10 is a Wide Residual Network followed by global average pooling.

For MiniImageNet, Conv-4-64 produces a 1600-dimensional feature vector. The wider convolutional architecture produces a 12,800-dimensional vector, while the residual architecture produces a 640-dimensional vector after pooling. These dimensions describe different representational constructions; a longer vector alone does not establish a better transfer system.

The task-specific rotation network processes feature maps rather than only the final category vector. For the convolutional architectures, it adds convolutional layers and a classification layer. For the residual architecture, it adds a residual block, pooling, and classification. The patch-location network instead combines patch vectors and passes them through fully connected layers.

Optimization uses mini-batch stochastic gradient descent with momentum 0.9 and weight decay 5e-4. MiniImageNet and CIFAR-FS training runs for 60 epochs, each containing 1000 updates. The initial learning rate is 0. 1 and drops to one tenth of its value after every 20 epochs. The tiered-MiniImageNet schedule uses 100 epochs with 2000 updates per epoch and reductions every 40 epochs.

Hyper-parameters such as batch size are selected using validation data. Training also uses early stopping based on few-shot recognition of validation categories; for Cosine Classifiers, the stopping criterion is 1-shot accuracy. Hence, the selected representation is judged by its intended downstream behavior rather than by base-category training accuracy alone.

### Experiments and results

#### What the benchmarks contain

MiniImageNet contains 100 ImageNet categories. The split assigns 64 to base training, 16 to validation, and 20 to novel-category testing. Every category has 600 images, with image dimensions of 84 × 84 pixels. This benchmark tests transfer between disjoint category sets drawn from the same larger image source.

Tiered-MiniImageNet is larger, with 608 categories and 779,165 images. Its split contains 351 base categories, 97 validation categories, and 160 novel test categories. The images again have dimensions of 84 × 84 pixels. The paper uses it both as a recognition benchmark and, after exclusions, as a source of additional unlabeled training images.

CIFAR-FS divides the 100 categories of CIFAR-100 into 64 base categories, 16 validation categories, and 20 test categories. Its images are 32 × 32 pixels. This smaller image size matters experimentally: the paper evaluates rotation prediction on CIFAR-FS but excludes patch-location prediction because the resulting patches would be too small for the tested architectures.

The ImageNet-derived datasets connect to the broader dataset context described in [ImageNet Large Scale Visual Recognition Challenge](https://md.research.elamur.ai/free/en/papers/russakovsky-2014-imagenet-large-scale-visual-recognition/). The present experiments, however, use the specified few-shot splits. Their test accuracy concerns sampled tasks from held-out categories, not ordinary classification over the complete ImageNet label collection.

#### How recognition accuracy is measured

Evaluation samples many novel-category tasks. Each task selects categories, then draws a labeled support set and a separate query set from those categories. The support set constructs the classifier; the query set measures its performance. Support and query images do not overlap.

The usual setting is 5-way recognition with 15 query images per category. The support set contains either 1 or 5 images per category. Accuracy is measured across the query images within a task, then averaged across sampled tasks. This averaging reduces dependence on a particular category combination or support selection.

For MiniImageNet, the reported result tables use 2000 test episodes and present 95% confidence intervals. CIFAR-FS tables use 5000 test episodes with the same confidence level. The authors’ tiered-MiniImageNet entries use 2000 episodes. The paper’s prose provides selected accuracy values, while its main comparative conclusions also refer to these episode-based evaluations.

The metric therefore measures success under a particular adaptation constraint. The system has a trained visual representation but only a small labeled support set for the current categories. A strong result does not mean it learned visual recognition from those support images alone.

#### Auxiliary rotation and patch prediction

The rotation experiments combine self-supervision with both Prototypical Networks and Cosine Classifiers. They cover MiniImageNet and CIFAR-FS. The authors report improved novel-category recognition after adding rotation prediction, with stronger gains for higher-capacity feature extractors.

For Cosine Classifiers, the comparison baseline already receives rotated training images for category recognition. This is an important condition on the result. The reported benefit of self-supervision is assessed against a system that has access to the transformed views, rather than against an otherwise narrower input distribution.

The patch-location experiments use Cosine Classifiers on MiniImageNet. Their baseline includes the auxiliary category loss on patch features. The authors again report improved few-shot accuracy after adding spatial prediction. The improvement is smaller than for rotation prediction, and the benefit is more pronounced with higher-capacity architectures.

These findings establish that the overall idea is not tied exclusively to predicting image angles. They do not establish that the two tasks contribute equally or that every automatically labeled visual task will work. The paper’s later comparisons use rotation prediction because it performed best in the preceding experiments.

#### Comparison with earlier few-shot systems

The paper compares its preferred Cosine Classifier plus rotation configuration with earlier systems on all of its recognition benchmarks. The authors report leading results in those comparisons. Their explicit MiniImageNet comparison with LEO states advantages of around 1.3 percentage points in the 1-shot setting and 2.3 percentage points in the 5-shot setting.

Those margins should be read with their stated conditions. They concern MiniImageNet novel-category recognition under the paper’s evaluation setup. They are not general estimates of the value of self-supervision across tasks, and they should not be combined with unrelated experimental settings.

The comparison also involves a strong feature-learning system, not just an auxiliary loss considered in isolation. Architecture, training schedule, augmentation, classifier choice, and checkpoint selection all contribute to the final configuration. The controlled experiments examine some of these factors, while the comparison with earlier systems assesses the complete resulting approach.

#### Using the unlabeled remainder of the base dataset

The first semisupervised setting hides category labels for part of the MiniImageNet base collection. The remaining labeled subset trains category recognition, while the unlabeled remainder remains available to rotation prediction.

This setting distinguishes limited annotation from limited access to images. For example, using 5% of the images per category as labeled data leaves 95% available without category annotations. The visual content is still present during training, but only the smaller subset supplies the main supervised targets.

The authors compare ordinary Cosine Classifiers, rotation-assisted training restricted to labeled images, and rotation-assisted training that also uses the unlabeled remainder. They report that the additional unlabeled images improve recognition. The comparison therefore tests the value of extra auxiliary-training inputs beyond the value of auxiliary supervision on the labeled subset.

The prose gives an explicit comparison with Ren and colleagues. The paper’s Conv-4-64 system uses 20% annotation, while the earlier comparison uses 40% annotation. Their MiniImageNet results are shown separately for the support settings.

MiniImageNet 5-way 1-shot test accuracy with reduced annotation The rotation-assisted semi-supervised system scores higher with a smaller annotated share.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Ren et al., Conv-4-64, 40% annotation | 50.41 |
| CC with rotation and unlabeled images, Conv-4-64, 20% annotation (this paper) | 51.21 |

MiniImageNet 5-way 5-shot test accuracy with reduced annotation The rotation-assisted semi-supervised system also leads in the larger support setting.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Ren et al., Conv-4-64, 40% annotation | 64.39 |
| CC with rotation and unlabeled images, Conv-4-64, 20% annotation (this paper) | 68.89 |

These comparisons illustrate annotation efficiency under the stated benchmark conditions. They do not prove that every alternative method would require the same labeled share, nor do they isolate all differences between the compared training procedures. The within-paper comparisons supply the more direct evidence that adding unlabeled inputs helps the proposed approach.

#### Using images outside the base categories

The second semisupervised setting asks a more demanding question: can unlabeled images help when they do not come from the labeled base categories? The authors take training images from tiered-MiniImageNet and remove categories overlapping MiniImageNet’s base, validation, or test categories.

The resulting collection contains 408,726 unlabeled images. The exclusions matter because they prevent the experiment from simply introducing images from the benchmark’s held-out categories through the auxiliary branch. The extra images broaden training without carrying the target category supervision.

The paper reports benefits in this setting as well. It also describes an experiment using WRN-28-10, the complete labeled MiniImageNet training collection, and the external unlabeled images. That configuration obtains 63.77% MiniImageNet accuracy for 1-shot recognition and 80.70% for 5-shot recognition.

The authors state that this improves on their already strong rotation-assisted configuration without the additional collection. The result supports a practical advantage of the formulation: auxiliary learning can use images outside the supervised classifier’s category vocabulary. It remains evidence about the particular external source and filtering procedure tested.

#### Evaluating representations learned without category labels

The final experiment removes object-category supervision during feature learning. The first stage uses only rotation prediction or patch-location prediction. The later stage still receives labeled support examples from novel categories, so the entire recognition process is not label-free.

The purpose is to compare self-supervised representations by their usefulness for few-shot recognition. Training uses the MiniImageNet base images without category labels. Evaluation uses the novel test categories. The support set supplies the category associations needed by the final classifier.

The authors describe the resulting accuracy as competitive with supervised Cosine Classifiers and comparable to, or better than, more elaborate unsupervised alternatives. Their prose does not provide a complete numerical account of those comparisons. The appropriate conclusion is therefore qualitative: these pretext tasks produce features with meaningful few-shot recognition value.

For this evaluation, early stopping based on labeled validation performance is removed. That choice is consistent with the purpose of assessing a representation learned without category supervision in the first stage. A further implementation distinction concerns the residual architecture with patch-location learning: its image representation averages features extracted from the image’s patches.

### What the ablations show

#### Rotation prediction contributes beyond rotated inputs

The main rotation control separates the auxiliary task from ordinary augmentation. A network asked to predict rotations necessarily sees rotated images. Without an augmentation-matched baseline, it would be unclear whether better transfer came from the prediction objective or simply from broader visual exposure.

The Cosine Classifier baseline therefore learns object categories from the rotated views as well. The self-supervised version receives the same kind of category augmentation and also predicts rotation. Improvement under that comparison supports a contribution from the additional target, beyond the presence of transformed inputs alone.

The appendix also examines training without rotation augmentation. The authors report that the benefit attributed to rotation prediction becomes larger in those comparisons. They additionally observe that augmentation itself can sometimes reduce few-shot performance. This qualifies the simpler statement that adding rotated images is always helpful.

The Prototypical Networks experiments make the same caution concrete. The authors do not apply rotation augmentation to its object-recognition episodes because their experiments found degradation. Rotation prediction nonetheless remains useful as an auxiliary task. Hence, requiring a shared representation to solve an extra problem can have a different effect from assigning the main category label to every transformed view.

These results do not completely reveal how rotation prediction changes the feature extractor. They show a behavioral distinction between training arrangements. The proposed explanation—learning a broader collection of transferable visual features—fits the evidence, but the control does not directly identify each internal feature responsible for the gain.

#### Patch-location gains are not explained by patch classification alone

Patch-location training changes more than the loss name. It introduces small crops, strong color preprocessing, and a separate spatial prediction network. The authors add category classification over merged patch features to reduce the mismatch between patch inputs and full-image recognition.

That extra category loss could itself be useful. To address this, the main patch comparison gives it to the baseline as well. The comparison then asks whether predicting relative location adds value after patch-based category supervision is already available.

The appendix removes the auxiliary patch classification loss and examines its effect. The authors report that its contribution is small or absent relative to the improvement associated with patch-location prediction. This supports the interpretation that spatial self-supervision is doing substantive work.

The conclusion has a precise scope. It concerns the tested patch construction, classifier, and architectures. It does not show that patch classification is unnecessary under every training arrangement, or that preprocessing can be omitted without consequence. The method still includes these components in its principal patch experiments.

#### Higher-capacity extractors benefit more

Across the rotation and patch experiments, the authors observe larger improvements with higher-capacity architectures. This suggests that additional training demands can be especially useful when the feature extractor has substantial capacity to exploit them.

A plausible interpretation is that base-category supervision does not fully determine how that capacity should be organized for transfer. The auxiliary task supplies another constraint, potentially encouraging information that the category objective alone would underemphasize. This interpretation follows the paper’s motivation, but it should remain an explanation instead of a separately established mechanism.

The experiments also resist a simplistic equation between capacity and overfitting. Larger architectures can benefit when the training objective gives them a useful additional task. The evidence is about the interaction between architecture and supervision, not an unconditional claim that increasing network size improves few-shot learning.

#### Extra unlabeled data provide a distinct source of benefit

The semisupervised comparisons separate auxiliary supervision from auxiliary data. A system can perform rotation prediction on the labeled subset with category labels ignored for that task. It can also perform rotation prediction on a larger image collection.

Comparing those settings asks whether extra visual content helps after the auxiliary objective has already been introduced. The authors report that it does. This is stronger evidence than merely comparing a supervised baseline with a system that changes both its objective and its training data at once.

The external-data experiment then tests whether the useful content must belong to the known base categories. Its positive result supports the flexibility of the formulation. Category labels are unnecessary for the auxiliary branch, and membership in the supervised vocabulary is not required.

It does not follow that source choice is irrelevant. The experiment uses a defined image collection with explicit overlap removal. A much broader claim about arbitrary unlabeled data would require additional comparisons.

#### The purely self-supervised setting answers another question

Removing category supervision from the first stage is informative, but it is not the same kind of ablation as removing augmentation. It changes the representation-learning regime substantially. Its main purpose is to assess how useful the pretext tasks are without help from base-category labels.

The later support labels remain available, which makes few-shot recognition a test of representation usability instead of an attempt at discovering all category identities without supervision. The outcome supports the value of the learned features while preserving a clear account of where category information enters.

This analysis also exposes a useful distinction between auxiliary effectiveness and standalone effectiveness. A task might help when combined with category supervision without being the strongest standalone representation learner. Conversely, a strong standalone pretext task need not be the best complement to a particular supervised objective. The paper explores both roles, though its most developed evidence concerns the auxiliary setting.

### Limitations

#### Limits the authors explicitly identify

The authors restrict relative patch-location experiments to MiniImageNet and Cosine Classifiers. They explain the classifier choice through simplicity and stronger performance in their experiments. This means the paper does not offer the same breadth of method coverage for patch prediction as it does for rotation prediction.

They also exclude patch-location experiments on CIFAR-FS for a concrete architectural reason. Starting from images of 32 × 32 pixels would require patches smaller than 8 × 8 pixels, which they consider unsuitable for the evaluated feature extractors. The practical message is that an auxiliary task must fit the available input resolution.

For self-supervised representation evaluation, the authors explicitly leave a more extensive comparison to future work. Their experiments demonstrate that few-shot recognition can serve as an assessment procedure, but they do not complete a broad ranking of self-supervised learning methods.

The paper also records that rotation augmentation can hurt, particularly in the Prototypical Networks setting. That observation limits any recommendation to treat transformed category examples as a universally helpful addition. The auxiliary objective and the augmentation policy need separate consideration.

#### The causal explanation remains partly interpretive

The experiments measure category-recognition accuracy, not a complete account of the learned representation. The authors explain improvement in terms of richer or more varied visual features. That is a reasonable interpretation of the method and results, but the reported comparisons do not directly enumerate those features or prove that a particular semantic property caused the gains.

For rotation prediction, the discussion connects success to reduced dependence on upright image statistics. For patch prediction, it connects success to recognizing objects and their parts. These are motivations for the pretext tasks. They should not be read as direct measurements of orientation bias or part understanding.

The augmentation and patch-classification controls strengthen causal attribution at the level of training components. They show that the auxiliary targets add something beyond selected alternative explanations. They do not eliminate every possible explanation involving optimization, regularization, or interactions among the training objectives.

A careful reading therefore separates two claims. The tested auxiliary objectives improve the reported recognition outcomes. The exact internal process through which they do so remains less fully established.

#### The benchmark setting defines the claim

The experiments concern image classification with small support sets and disjoint base and novel categories. They do not establish results for every visual task mentioned in the introduction. Detection and segmentation provide motivation and related-work context, rather than additional evaluation targets for the proposed system.

Likewise, results on MiniImageNet, tiered-MiniImageNet, and CIFAR-FS do not amount to a general demonstration across arbitrary image domains. The paper varies datasets, architectures, and auxiliary tasks, which gives the findings useful breadth. Nevertheless, transfer beyond those conditions remains a further empirical question.

The usual evaluation is 5-way recognition with a specified query sampling procedure. Changing the number of candidate categories, the support distribution, or the relationship between support and query images could change performance. The paper does not establish that its measured gains remain constant under such changes.

The downstream procedure also stays simple: it averages support features and compares query representations with the resulting category representatives. That makes the representation contribution easier to study, but it means the evaluation particularly rewards features compatible with that decision rule. It is not an exhaustive test of all information recoverable from the feature extractor.

#### Reduced annotation is not the same as no annotation

Most of the paper’s strongest systems still learn from labeled base categories. Their few-shot character concerns recognition of the later novel categories. They should not be described as learning visual categories from only the final support examples.

The semisupervised settings also rely on real annotations for their supervised branch. They reduce the annotated share or supplement an existing labeled collection with unlabeled images. Their contribution is to extract additional value from image content without requiring category labels for every training input.

Even in the purely self-supervised first-stage experiment, labeled support examples enter during novel-category recognition. The representation is learned without category supervision in that stage, but the final classifier still uses category information. Maintaining this distinction avoids overstating the unsupervised result.

Validation is another source of supervision in the main experiments. Hyper-parameters and stopping decisions depend on validation-category recognition performance. The authors remove that stopping procedure for the purely self-supervised representation assessment, but it remains part of the principal supervised and semisupervised training pipeline.

#### External-data flexibility has boundaries

The external unlabeled collection is not an unrestricted collection of images. It comes from a specified source and is filtered to remove categories overlapping the MiniImageNet splits. The positive result establishes usefulness under that selection procedure.

It does not show that unrelated or poorly matched image collections will always improve recognition. The formulation permits broad sources because it does not require their category labels. Permission within the objective is different from guaranteed benefit in optimization or transfer.

The overlap exclusions also matter for interpreting the result. They support the intended distinction between novel-category evaluation and auxiliary training. A system trained on an external collection without comparable checking would require its own assessment of what information had entered the training process.

#### Computational and implementation costs remain relevant

Automatically generated labels avoid manual category annotation, but their training is not cost-free. Rotation prediction processes transformed copies and adds a prediction network. Patch-location prediction extracts multiple crops and combines their representations. The auxiliary objectives also require additional gradient computation.

The paper reports architecture and optimization details, allowing the training arrangement to be understood. It does not provide a general cost–benefit comparison establishing how much accuracy is obtained per unit of training computation. Consequently, an engineering decision would need to consider the available training budget as well as annotation savings.

The deployment procedure is simpler than the training procedure because novel-category recognition uses the learned features and category representatives. That separation is attractive, but it should not obscure the work needed to produce those features. The paper’s gains come from a more demanding preparation stage.

Finally, the numerical account is selective in the prose: several broad conclusions are accompanied by explicit values, while others are described through comparative findings. It is appropriate to retain that distinction. Missing absolute values or confidence-interval widths should not be reconstructed from unrelated numbers or treated as evidence of a particular effect size.

### What came after

The paper leaves a clear research direction: use few-shot recognition not only as an application of self-supervision, but also as a way to assess it. A representation can be frozen, supplied with a small labeled support set, and evaluated over many sampled category combinations. The authors argue that this offers a relatively direct test of whether learned visual features are useful under limited downstream supervision.

Their proposed next step is a broader comparison of self-supervised representations using that procedure. The experiments with rotation and patch-location prediction demonstrate the arrangement, while the more comprehensive assessment remains future work in the paper’s own account.

Another direction follows from the auxiliary formulation. The main recognition objective, the pretext task, and the unlabeled image source are separable choices. Later investigation could examine which combinations complement each other, when their demands conflict, and how source selection changes transfer. These are implications of the design, not documented findings from subsequent studies.

No specific later study can be attributed a result or a methodological extension on the evidence available for this account. The supported historical endpoint is therefore the paper’s own contribution: auxiliary self-supervision improves the tested few-shot visual systems, expands their use of unlabeled images, and supplies a practical proposal for evaluating representations under scarce downstream labels.

## Cite

Cite as Spyros Gidaris, Andrei Bursuc, Nikos Komodakis A, Patrick Pérez and Matthieu Cord. 2019. Boosting Few-Shot Visual Learning With Self-Supervision. IEEE/CVF International Conference on Computer Vision (ICCV).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/iccv.2019.00815](https://doi.org/10.1109/iccv.2019.00815) · [arXiv 1906.05186](https://arxiv.org/abs/1906.05186)

```bibtex
@inproceedings{gidaris2019boosting,
  title = {{Boosting Few-Shot Visual Learning With Self-Supervision}},
  author = {Spyros Gidaris, Andrei Bursuc, Nikos Komodakis A, Patrick Pérez and Matthieu Cord},
  booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  year = {2019},
  doi = {10.1109/iccv.2019.00815},
  eprint = {1906.05186},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/iccv.2019.00815}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
