---
title: "Discriminative Unsupervised Feature Learning with Exemplar"
description: "Exemplar-CNN learns visual features by recognizing transformed patches from unlabeled images, then tests them on object recognition and…"
canonical: "https://research.elamur.ai/free/en/papers/dosovitskiy-2015-discriminative-unsupervised-feature-learning-exemplar/"
---
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/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/dosovitskiy-2015-discriminative-unsupervised-feature-learning-exemplar/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / Discriminative Unsupervised Feature Learning with Exemplar Convolutional Neural Networks

# Discriminative Unsupervised Feature Learning with Exemplar Convolutional Neural Networks

Paper · 2015 · Alexey Dosovitskiy, Philipp Fischer, Jost Tobias Springenberg et al.

**Authors:** [Alexey Dosovitskiy](https://md.research.elamur.ai/free/en/authors/alexey-dosovitskiy/), [Philipp Fischer](https://md.research.elamur.ai/free/en/authors/philipp-fischer/), [Jost Tobias Springenberg](https://md.research.elamur.ai/free/en/authors/jost-tobias-springenberg/), [Martin Riedmiller](https://md.research.elamur.ai/free/en/authors/martin-riedmiller/) and [Thomas Brox](https://md.research.elamur.ai/free/en/authors/thomas-brox/) · **Year:** 2015 · **Venue:** IEEE Transactions on Pattern Analysis and Machine Intelligence · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[Cited by **28** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/dosovitskiy-2015-discriminative-unsupervised-feature-learning-exemplar/cited-by/) · IEEE Transactions on Pattern Analysis and Machine Intelligence · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1406.6909)
- [DOI 10.1109/tpami.2015.2496141](https://doi.org/10.1109/tpami.2015.2496141)
- [arXiv 1406.6909](https://arxiv.org/abs/1406.6909)

## Summary

A photograph can change considerably while showing the same thing. An object can move within the frame, its colors can shift with the lighting, and its edges can soften when the camera loses focus. Which of those changes should a visual system learn to ignore? The answer depends on what the system will be asked to do. This paper investigates whether a convolutional neural network can learn useful visual features without being told which objects appear in its training images. The authors supply a different kind of training signal. They select patches from unlabeled images, alter each patch in several ways, and ask the network to identify which original patch produced each altered version. They call the resulting approach Exemplar-CNN.

Each original patch defines a surrogate class, an automatically assigned label shared by its transformed copies. Identifying that class requires the network to distinguish one source patch from another, even when familiar details have shifted. The authors show how these demands appear in the training objective. One part rewards separating the average representations of different patches. Another penalizes certain changes in the network’s scores across versions of the same patch. The approach gives the authors a way to influence which changes the learned features tolerate, simply by changing the transformations used to make the training examples.

The paper tests the features on object classification using STL-10, CIFAR-10, Caltech-101 and Caltech-256. A separate classifier learns the object labels from the extracted features. The larger Exemplar-CNN configurations surpassed the previously reported results for unsupervised feature learning that the paper compares against on all four datasets. The largest configuration in the main comparison reached a mean test accuracy of 74.2% on STL-10. The gains were especially apparent in comparisons where the final classifier had relatively few labeled examples. The supervised reference results still had the advantage on several of the classification benchmarks.

The paper also asks whether features can identify the same local region across two views. Features from a blur-trained Exemplar-CNN outperformed features from the ImageNet-trained AlexNet in both matching datasets, and the authors report that the blur-trained features beat the conventional SIFT descriptor on most image pairs. Blur exposed a weakness of both AlexNet and the original Exemplar-CNN. Including blur in the surrogate training examples helped produce a descriptor that was less sensitive to it, although the blur-trained configuration also changed the training images and some architectural settings. The contrast between recognition and matching gives the paper its broader point. The best training signal depends on which visual distinctions the downstream task needs to preserve.

## Deep dive: Discriminative Unsupervised Feature Learning with Exemplar Convolutional Neural Networks

Exemplar-CNN learns visual features by recognizing transformed patches from unlabeled images, then tests them on object recognition and local matching. · about 43 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What should an image feature preserve?

A visual feature is a numerical description of some aspect of an image. A set of features can register a boundary, a texture, or a more complicated arrangement without passing every pixel to the system that makes the final decision. A helpful description keeps distinctions that matter for that decision and changes relatively little in response to irrelevant variation. For object classification, two pictures may show the same kind of object even when their colors, framing, and viewpoints differ. For local matching, two patches may show the same physical region under different camera conditions. A patch from a different region must still be distinguishable, even if both regions belong to the same kind of object.

The paper uses invariance to describe stability under a specified change. It uses discrimination to describe the ability to keep different inputs apart. These properties can pull in different directions. A feature that gives the same answer for every image is stable under every transformation, but it contains no evidence for telling images apart. A description that records every pixel can distinguish many inputs, yet even a small displacement can change it considerably. The practical question is which differences should matter in the description, and how the training process can communicate that choice.

Class labels provide one answer. A supervised recognition system sees examples that a person has assigned to the same category, and its training objective rewards giving them the same prediction. The images can differ in many ways, so some of the desired stability is implicit in the collection of examples. The annotations also tell the system which category distinctions to retain. This arrangement works well when the eventual task calls for the same distinctions. It provides weaker guidance when the eventual task asks a different question about what appears in the image.

Local matching makes the difference concrete. A recognition system can correctly give two regions the same object label while a matching system has to tell those regions apart. Conversely, changes in lighting or viewpoint can alter the appearance of a particular region while leaving its identity for matching intact. In this setting, the category name does little to specify which two patches correspond. The authors ask whether source identity and controlled changes to the image can provide more relevant guidance.

#### Why labels were a bottleneck

The paper describes supervised convolutional networks as having improved results in recognition, detection and semantic segmentation. It also notes that the features of such networks could carry over to another image collection. One example was training on ImageNet and using the resulting features on PASCAL VOC. A network could also be adapted by replacing its training objective and sometimes its last layers, then adjusting the weights through back-propagation. The paper describes that process as [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

This reuse reduced the amount of labeled data needed for a new task. It still depended on a substantial initial collection of annotations. The authors saw two reasons to explore training without those annotations. Collecting enough labels for initial training could be difficult, and a representation learned for one task could become less useful as the target task moved further from it. Both concerns mattered for generic visual features. One was about where the examples and training targets came from. The other was about whether those targets taught the system to preserve the right information.

Unlabeled photographs solve only the first part of the data collection problem. Their content supplies examples, but an ordinary classification objective also requires a target for each example. Exemplar-CNN constructs the targets directly from the training procedure. Once a patch has been transformed, the procedure knows which patch it came from. That relationship is available without asking anyone to describe the patch. It also specifies a particular sense in which two inputs are alike. They share a source because the procedure made one from the other.

Existing supervised systems already used data augmentation. An image could be cropped or otherwise changed while retaining its annotated class. Such a change increased the variety of examples for a label that had already been supplied. Exemplar-CNN makes augmentation responsible for forming the class itself. One patch is enough to start a class, and the set of allowable changes determines what other appearances count as members. In ordinary supervised augmentation, many separately photographed examples can carry the same category label. Here, patches sampled independently initially receive separate labels, even if they look alike or depict similar content. That difference is important to the way the method handles larger training sets.

#### Other routes to invariance

The paper situates the approach among several earlier ways to learn features without object labels. A denoising autoencoder takes a corrupted input and attempts to reconstruct the underlying example. Its representation has a reason to be robust to the chosen corruption because details of the corruption interfere with reconstruction. Work on video used temporal slowness, encouraging a representation learned with a linear autoencoder to vary gradually across nearby moments. Other approaches directly addressed local or more complex image transformations. In the authors’ account, these methods were tied to describing the distribution of input images, and extending their training to several convolutional layers could be difficult.

Modeling the distribution of images is a plausible way to learn useful descriptions. If a representation contains enough information to reconstruct an image, some of that information may also reveal which category it belongs to. Regularization can then encourage the representation to retain stable structure and deemphasize irrelevant detail. The paper mentions sparsity and robustness to noise as examples of such constraints. Exemplar-CNN starts from a different demand. The network must supply enough evidence to identify each source patch among alternatives. The objective assigns no value to recovering pixels that do no work for this decision.

The authors also compare their method with tangent propagation and the related technique of double back-propagation. Tangent propagation teaches stability to chosen small changes by penalizing sensitivity of the network output to the transformation parameters. Exemplar-CNN presents actual transformed examples and gives them a shared target. This changes where the preference for invariance enters. It is expressed through the sample distribution and classification loss, with no explicit derivative penalty. The authors present this as a way to work with a broader range of transformation strengths.

The paper distinguishes this setting from semisupervised methods that use unlabeled inputs to help a task already defined with labeled examples. It also points out that using an auxiliary task to learn transferable features had precedents in vision and in natural language processing. Its particular proposal is an auxiliary task that identifies image patches under chosen changes, making the specification of useful variation a part of constructing the training examples. [Natural Language Processing (almost) from Scratch](https://md.research.elamur.ai/free/en/papers/collobert-2011-natural-language-processing-almost-scratch/)

### The method, step by step

#### Select patches with visible structure

The starting point is a collection of unlabeled images expected to resemble the images on which the features will later be used. The basic procedure draws square patches of 32 × 32 pixels from different images, with variation in the positions and scales selected. The authors call an original sample a seed patch because the examples for its surrogate class grow from that sample.

Patch selection favors visible structure. The authors give a candidate patch a sampling probability proportional to the mean squared gradient magnitude within it. A gradient measures local intensity change, so a patch with strong transitions receives more weight than one that is almost uniform. An edge or a textured area can produce the kind of signal this preference picks up. The sampling rule is a heuristic for finding informative content, including possible parts of objects. It does not depend on knowing where an object is or what it depicts.

Changing where and at what scale a patch is drawn gives the training collection local views with different amounts of surrounding content. The method is defined at patch level. Some patches may contain something recognizable in its own right, while others may supply only a detail. For the training task, the source of the patch is enough to determine the target. An identifier is assigned by the sampling procedure, and identically named objects need no special treatment.

#### Decide which changes leave the source identity intact

A transformation is composed from elementary changes. For the classification experiments, the geometric changes are translation, scaling, and rotation. The allowed displacement in the horizontal and vertical directions is within 0.2 of the patch size. The scale multiplier lies between 0.7 and 1.4, and rotation can reach 20 degrees. A transformed patch can therefore present a shifted, resized, or turned version of the original structure while retaining the same target label.

The authors also change color and contrast in several ways. One operation projects the pixel colors onto principal components computed from the set of pixels. These components describe directions of variation in color values. For each component, a multiplier between 0.5 and 2 modifies the corresponding projection. Each component gets its own factor, and the factor for that component is shared across the patch. This changes the balance of color variation without drawing independent random adjustments for individual pixels.

The other color adjustments use HSV, which describes a color through hue, saturation and value. The authors modify saturation and value by raising them to a power from 0.25 to 4, multiplying by a factor from 0.7 to 1.4, and adding a value from −0.1 to 0.1. A separate operation changes hue by an additive amount in the range from −0.1 to 0.1. The chosen hue shift is common to the pixels in a patch. These adjustments present changes in appearance that are coherent across the input region.

A single vector collects the parameters for the elementary operations. Random draws of that vector produce different compositions, so the classifier can encounter several changes within one example. The set of operations also expresses what the designer expects the eventual representation to tolerate. If the task requires a color distinction, repeated changes to color can teach the network to discount precisely the evidence that the final decision needs. When the authors adapt the procedure for descriptor matching, they add blur to the allowed changes because the same region can appear both sharp and blurred in different images.

The notation for one surrogate class can be written as follows.

```
Sₓᵢ = {T xᵢ | T ∈ 𝒯ᵢ}
```

Here xᵢ is the seed patch indexed by i, and Sₓᵢ is its set of transformed examples. T is a transformation, and T xᵢ means applying it to xᵢ. The collection 𝒯ᵢ contains the transformations sampled for this patch. The braces collect all the resulting examples, the vertical bar means “such that,” and ∈ means “belongs to.” In the paper, each T is a Tᵅ, determined by a random parameter vector α drawn from the allowed set A. There are N source patches and K transformation draws for each source patch.

Every example in Sₓᵢ receives target i. Hence, if two patches were sampled separately, their generated examples belong to separate classes even when the underlying content looks similar. After generating the surrogate data, the procedure subtracts the mean at each pixel position calculated over the resulting dataset. The authors describe no further preprocessing of these training patches.

From unlabeled photographs to transferable visual features The steps in order.

#### Train the classifier and keep the features

During training, a convolutional network receives one of the generated patches. A convolutional layer applies the same learned filters across spatial locations, producing a map of responses for each filter. Later layers combine earlier responses and can use evidence from a larger portion of the image. A fully connected classification layer converts the resulting features to a score for each seed identity. A softmax turns those scores into probabilities across the surrogate classes.

The target tells the network which probability to increase. A transformed copy should get a high probability for the source that produced it. The network can succeed by finding evidence that survives the training transformations and distinguishes the source from others. Back-propagation adjusts earlier filters along with the final weights. The surrogate classes guide the features throughout the network, even though their identifiers have no category meaning at evaluation time.

The classification experiments use several architectures. The small network, 64c5-64c5-128f, has convolutional layers with 64 filters apiece and a fully connected stage with 128 units. The suffix `c5` means a convolutional filter covering 5 × 5 positions in its input, and `f` identifies a fully connected layer. The main larger configurations are 64c5-128c5-256c5-512f and 92c5-256c5-512c5-1024f. Each adds another convolutional stage relative to the small network and has a wider fully connected stage. The architectures in this comparison use 2 × 2 max-pooling after the first and second convolutional layers. Max-pooling keeps the strongest response within a region. The authors use rectified linear activations in the layers before the softmax and apply [dropout](https://md.research.elamur.ai/free/en/papers/srivastava-2014-dropout-simple-way-prevent/) to the fully connected layer.

The authors train with stochastic gradient descent and a fixed momentum of 0.9. Momentum carries part of the accumulated update into the next adjustment. The learning rate starts at 0.01. Each time the validation error ceases to improve, they divide the learning rate by three, continuing this cycle until convergence. The reported training times on a Titan GPU are approximately 1.5 days for the small configuration, 4 days for the intermediate configuration, and 9 days for the largest. Their implementation is based on [Caffe](https://md.research.elamur.ai/free/en/papers/jia-2014-caffe-convolutional-architecture-fast-feature/).

For object classification, the trained network is run across an image to obtain spatial maps of activations. The authors omit the surrogate softmax and apply the fully connected layers at successive locations on the earlier maps. This lets the patch-trained system describe images of different sizes. Pooling converts the resulting maps to vectors of fixed dimension. A separate classifier then learns the mapping from those vectors to the object labels for the evaluation dataset. For local matching, the paper instead draws descriptors from a selected convolutional layer, preserving a grid of responses inside each detected region. The same kind of training can therefore support different feature extraction procedures.

#### Write the training objective

The finite training loss adds the classification loss over each available transformed example.

```
L(X) = ∑_{xᵢ ∈ X} ∑_{T ∈ 𝒯ᵢ} ℓ(i, T xᵢ)
```

L(X) is the total loss for the seed collection X. The outer ∑ runs over the seed patches xᵢ in that collection, and the inner ∑ runs over the sampled transformations T in the collection 𝒯ᵢ for the current seed. The term ℓ(i, T xᵢ) is the loss produced when the network receives transformed patch T xᵢ and the target is its source index i.

The paper uses a multinomial negative log likelihood. It expresses that loss in terms of vectors for the desired and predicted outputs.

```
ℓ(i, T xᵢ) = M(eᵢ, f(T xᵢ))
```

The symbol ℓ denotes the loss for one example. The target eᵢ is the standard basis vector with its sole unit entry at index i and zeros elsewhere. The function f returns the vector of output probabilities for the supplied patch, here T xᵢ. The function M evaluates the discrepancy using the target and the predicted probabilities.

```
M(y, f) = −⟨y, log f⟩ = −∑ₖ yₖ log fₖ
```

Here y is a target vector and f is the output probability vector for the current input. The index k runs over the surrogate classes, yₖ and fₖ are the entries at that index, and ∑ₖ adds the terms across those classes. The logarithm is taken separately at each entry of f. The brackets ⟨ , ⟩ denote the inner product, and the minus sign makes the negative log probability smaller as the probability assigned to the correct class rises. With a target of the form eᵢ, only the term for the source class contributes.

To analyze the role of augmentation, the paper replaces the sampled contributions with an expectation per seed. This is the objective corresponding to the per-seed average when the number of sampled transformations is taken to infinity.

```
L̂(X) = ∑_{xᵢ ∈ X} Eᵅ[ℓ(i, Tᵅ xᵢ)]
```

L̂(X) denotes this expected objective and Eᵅ denotes averaging with respect to the distribution of transformation vectors α. The index i identifies the seed xᵢ in the set X, and Tᵅ is the transformation associated with α. The quantity inside the expectation is the loss ℓ for applying Tᵅ to xᵢ while keeping i as its target. The sum retains one expectation for each seed. The finite procedure uses the transformations it actually sampled, while this formulation lets the authors reason about how the training distribution influences the objective.

#### Follow the average representation and the scores around it

For the derivation, let g(x) denote the vector of penultimate activations for a patch x. These activations are the features that the final classifier uses. The classifier assigns a score to each surrogate label by applying a matrix to the feature vector.

```
h(x) = W g(x)
```

The vector h(x) contains the final scores before softmax, often called logits. The matrix W contains the weights of the last layer, and g(x) is the feature vector for the input x. The multiplication computes the score for each class from the entries of that feature vector.

```
softmax(z) = exp(z) / ‖exp(z)‖₁
```

The input z is a vector of scores, `exp` applies the exponential to each score, and ‖ · ‖₁ is the sum of absolute entries. The entries of exp(z) are positive, so the denominator adds up those exponentials. Dividing by their sum gives probabilities that sum to unity. In the training objective, z is h(x) and the probability vector is f(x).

Substitution into the expected loss yields an expression involving the score for the correct class and a normalization term for all the scores.

```
L̂(X) = ∑_{xᵢ ∈ X} Eᵅ[−⟨eᵢ, h(Tᵅ xᵢ)⟩ + log ‖exp(h(Tᵅ xᵢ))‖₁]
```

L̂(X) is the expected loss over seeds xᵢ in X and draws α of the transformation parameters. The vector h(Tᵅ xᵢ) contains the transformed patch’s scores, and the inner product with eᵢ selects the score at index i. The leading minus sign rewards increasing that score. The logarithm of the sum of exponentiated scores provides the normalization across all the possible labels. The ∑ symbol then adds the expected contribution for every seed.

The paper next defines the mean feature vector for the transformed versions of a seed.

```
ĝᵢ = Eᵅ[g(Tᵅ xᵢ)]
```

Here ĝᵢ is the mean feature vector for source i, g is the feature extraction function, and Eᵅ averages g(Tᵅ xᵢ) over the possible transformations. The average score vector is W applied to that average feature vector because the last scoring operation is linear. The average feature vector has a specific meaning here. It describes the center of the representations of the augmented examples, which can differ from the features of the original patch.

The authors also consider a local approximation under which the average and the original representation agree approximately.

```
ĝᵢ = Eᵅ[g(Tᵅ xᵢ)] ≈ Eᵅ[g(xᵢ) + (∇ᵅ g(Tᵅ xᵢ))|ᵅ₌₀ α] = g(xᵢ)
```

The notation ∇ᵅ refers to differentiation with respect to α, and the bar followed by α = 0 indicates evaluation at the zero parameter vector. The derivative of the feature vector with respect to the parameters acts on α to give the first-order change in the features. The approximation assumes that Tᵅ is the identity at α = 0 and that the feature vector is approximately linear in small changes around that point. The last equality uses the assumption that Eᵅ[α] is zero, so the linear change vanishes on average. These are conditions for the approximation. The analysis of the expected loss can use ĝᵢ directly when the conditions fail.

The central decomposition is obtained by adding and subtracting the normalization term for the mean scores.

```
L̂(X) =
  ∑_{xᵢ ∈ X} [−⟨eᵢ, W ĝᵢ⟩ + log ‖exp(W ĝᵢ)‖₁]
  + ∑_{xᵢ ∈ X} [Eᵅ[log ‖exp(h(Tᵅ xᵢ))‖₁] − log ‖exp(W ĝᵢ)‖₁]
```

The two sums run over the same seed patches xᵢ in X. In the first sum, eᵢ selects the score for the source class from W ĝᵢ, and the log of the sum of exponentials normalizes those mean scores. In the second sum, Eᵅ evaluates that normalization separately for the scores h(Tᵅ xᵢ) of each transformed input and then averages the results. The subtraction compares this average with the normalization evaluated at the mean score vector W ĝᵢ.

The first sum is a multinomial logistic classification objective for the pairs formed by ĝᵢ and eᵢ. It rewards a feature space where the average of each set of transformed examples can be recognized as belonging to its seed identity. If the average features equal the features of the untransformed seed, this becomes classification of the original seeds. In the general case, the discrimination part acts on the averages of the transformed features.

The second sum measures a gap between averaging after a nonlinear operation and applying that operation after averaging. The function that takes the log of the sum of the exponentiated scores is convex. Jensen’s inequality then gives the following result for each seed.

```
Eᵅ[log ‖exp(h(Tᵅ xᵢ))‖₁] − log ‖exp(W ĝᵢ)‖₁ ≥ 0
```

The left side is the difference between the average of the log normalizers under α and the log normalizer for the mean scores. The vectors and functions have the same meanings as in the decomposition, and ≥ 0 means the difference is non-negative. It is a regularizing term that comes from the augmented classification objective itself. The authors do not need to estimate mean features or add the term separately during training.

Perfect invariance of the feature vector would make the scores for every transformed copy identical. The term would then attain its minimum of zero. The appendix establishes a more precise equality condition. Scores may move by the same amount in every component and still give the same softmax probabilities. Thus the loss places a direct constraint on class score differences. A feature change that lies in a direction ignored by W can also leave all scores unchanged. Invariance of every feature coordinate is a stronger property than the loss requires.

#### Why a shared shift of the scores is harmless

The appendix defines the log normalizer as a function of a general score vector.

```
Z(x) = log ‖exp(x)‖₁ = log(∑ᵢ₌₁ⁿ exp(xᵢ))
```

Here x is a vector of scores, xᵢ is its entry at position i, and n is the vector’s dimension. The index i runs from the first to the nth component. In this appendix notation, x refers to a score vector, whereas xᵢ in the main training objective denotes a seed patch. The function Z takes the log of the sum of the componentwise exponentials.

The second derivatives describe how Z curves as the scores move. The paper writes the matrix of second derivatives, or Hessian, in the following form.

```
∇²Z(x) = [(𝟙ᵀu) diag(u) − uuᵀ] / (𝟙ᵀu)²
```

The symbol ∇² denotes the Hessian, u is the vector exp(x), and 𝟙 is a vector whose entries are all ones. The superscript ᵀ denotes transposition, so 𝟙ᵀu adds the components of u. The matrix diag(u) places the components of u along its diagonal, and uuᵀ is their outer product. The denominator is the square of the sum of those components.

For a proposed direction of change z, the curvature along that direction is given by the associated quadratic form.

```
zᵀ ∇²Z(x) z = [(∑ₖ uₖzₖ²)(∑ₖ uₖ) − (∑ₖ uₖzₖ)²] / (∑ₖ uₖ)² ≥ 0
```

The entries zₖ specify how the scores move, uₖ are the positive exponentials of the scores at x, and k ranges over all components. Each ∑ₖ sums across those components. The numerator is non-negative by the Cauchy–Schwarz inequality, and the denominator is positive. Equality requires the components of z to share a constant value, as expressed in the paper’s equality condition.

```
√uₖ zₖ = c √uₖ
```

The symbol √ denotes the square root, k denotes any component, and c is the same constant for every k. Each uₖ is positive, so zₖ must equal c throughout the vector. The Hessian therefore has a flat direction consisting of common shifts of all scores.

The appendix applies this fact to the Jensen gap for a continuous vector-valued function of bounded transformation parameters.

```
Eᵅ[Z(x(α))] − Z(Eᵅ[x(α)]) ≥ 0
```

In this statement α is the random transformation parameter vector and x(α) is a vector-valued function of it, which can be taken to be the scores for a transformed patch. The first term averages Z evaluated at individual vectors. The second evaluates Z at their average. Eᵅ is expectation over transformations and ≥ 0 states the convexity bound. For equality across the transformations being averaged, the score differences have to lie in the flat direction. The appendix expresses this through the vanishing directional curvature between parameter choices.

```
(x(α₁) − x(α₂))ᵀ ∇²Z(x(α₁)) (x(α₁) − x(α₂)) = 0
```

Here α₁ and α₂ are two choices of the transformation parameters, and x(α₁) and x(α₂) are their score vectors. The Hessian is evaluated at x(α₁), and the vector multiplying it on either side is the difference of the two score vectors. Zero curvature in this direction means that the difference is a multiple of 𝟙. The training interpretation is that the surrogate task encourages stable relative evidence for the source identity. The experiments then ask how much of that stability carries over to the descriptors actually used for recognition and matching.

### Experiments and results

#### Measuring classification with a separate learner

The classification experiment evaluates the features by asking how well a linear support vector machine can recover object labels from them. A linear support vector machine, or SVM, learns a weighted decision rule on the input features. The paper trains one such rule per category, with examples of that category on one side and examples of the remaining categories on the other. The network’s training labels were source identities. The SVM supplies the connection between the network’s output features and categories such as those in the test dataset.

Most of the feature learning uses the unlabeled portion of STL-10, which contains 100,000 samples. The authors train the final SVM on labeled training examples from the dataset being evaluated. On CIFAR-10 and the Caltech datasets, this gives a transfer test. The network acquires its features from one collection of unlabeled images, and the supervised linear readout learns to use those features on another collection. An experiment discussed later changes the source of the unlabeled patches to examine how much that choice matters.

The test images are resized to suit the representation and the datasets. For CIFAR-10 the images go from 32 × 32 pixels to 64 × 64 pixels so that the scale of the visible objects is closer to that of objects in the other evaluations. Caltech-101 images are resized to 150 × 150 pixels and Caltech-256 images to 256 × 256 pixels. The authors use the larger size for Caltech-256 because its images tend to be higher resolution, and preserving more of that resolution retains details that could otherwise be lost.

For STL-10 and CIFAR-10, the authors max-pool each activation map within four image quadrants. This yields 4 values per map and preserves coarse location. For the Caltech datasets, they pool at multiple spatial resolutions. The pooling regions include the entire image, the quadrants, and a 4 × 4 grid. The resulting spatial pyramid gives 21 values per map, combining a whole-image response with responses tied to increasingly localized areas. These pooling choices follow the conventions for the respective benchmarks. The representation is consequently evaluated as part of a particular feature extraction and pooling pipeline.

The labeled training budgets differ across protocols. The authors train the SVM separately on all ten pre-defined STL-10 training folds, then report the average and standard deviation of the resulting accuracies on the fixed test set. The unrestricted CIFAR-10 result uses the entire labeled training set. The result named CIFAR-10(400) uses 400 labeled training examples per class and averages across 10 random selections. For Caltech-101, the SVM is trained on 30 random samples per class, with at most 50 samples per class used for testing. Caltech-256 also uses 30 labeled training samples per class, with the remaining examples used for testing. The authors repeat the test procedure 10 times for each Caltech dataset.

These distinct protocols matter when comparing the results. An evaluation with many labeled examples gives the linear classifier more evidence from which to learn. A smaller label budget puts more weight on how well the fixed representation already organizes the inputs for the intended task. The paper makes both CIFAR-10 evaluations available so that a result with the full training set can be read alongside a result where the representation must support learning from fewer labels.

#### Recognition accuracy against prior unsupervised features

In the main classification comparison, the small Exemplar-CNN trains on 8000 surrogate classes with 150 samples per class. Each larger configuration trains on 16,000 surrogate classes with 100 samples per class. The comparisons include methods based on convolutional K-means, matching pursuit and invariance learned from videos. These are published benchmark comparisons. The paper reports the accuracies alongside the number of features before final pooling.

Unsupervised feature methods by mean STL-10 test accuracy Both larger Exemplar-CNN configurations score above the prior unsupervised methods shown.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Convolutional K-means Network | 60.1 |
| Slowness on videos | 61.0 |
| View-Invariant K-means | 63.7 |
| Hierarchical Matching Pursuit | 64.5 |
| Small Exemplar-CNN | 67.1 |
| Intermediate Exemplar-CNN | 72.8 |
| Largest Exemplar-CNN (this paper) | 74.2 |

The intermediate Exemplar-CNN reports STL-10 test accuracy of 72.8 ± 0.4 across the pre-defined training folds. The largest reports 74.2 ± 0.4. The small configuration reports 67.1 ± 0.2 in this comparison, and Hierarchical Matching Pursuit, the strongest earlier unsupervised entry on that dataset, reports 64.5 ± 1. The table also includes a supervised reference at 70.1. That reference supplies context about the results available to the authors. It comes from a different feature learning regime and is not a controlled comparison of pretraining labels.

The restricted CIFAR-10 protocol gives a different ordering among the small Exemplar-CNN and earlier unsupervised methods. The small configuration reaches 69.7 ± 0.3, below the View-Invariant K-means result of 72.6 ± 0.7. The intermediate and largest configurations improve on that earlier entry.

Unsupervised features by mean CIFAR-10 test accuracy with 400 labeled training examples per class The larger Exemplar-CNN configurations lead the comparison, while the small configuration trails the earlier baselines.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Small Exemplar-CNN | 69.7 |
| Convolutional K-means Network | 70.7 |
| View-Invariant K-means | 72.6 |
| Intermediate Exemplar-CNN | 75.4 |
| Largest Exemplar-CNN (this paper) | 76.6 |

The intermediate configuration reports 75.4 ± 0.2 and the largest reports 76.6 ± 0.2 in that restricted evaluation, with accuracy in percent. Using the full CIFAR-10 training set, the corresponding test accuracies are 82.2 and 84.3. The convolutional K-means reference gives 82.0 under the full protocol, and the supervised reference gives 92.0. On this dataset, both headline comparisons favor the larger Exemplar-CNN features among the unsupervised methods tested, while full CIFAR-10 still has a considerably higher reported supervised reference.

The Caltech results also compare features learned from STL-10 using classifiers fitted to the target categories. On Caltech-101, the largest Exemplar-CNN reaches 87.1 ± 0.7 in average overall test accuracy. The intermediate one reaches 86.1 ± 0.5. Multipath Hierarchical Matching Pursuit, the strongest earlier unsupervised result listed for that metric, reports 82.5 ± 0.5. The supervised reference is 91.44. The paper separately gives per-class averages for Exemplar-CNN. For the largest configuration, that result is 85.8% ± 0.7%. Overall accuracy gives each test image equal weight, while the per-class calculation gives each class equal weight after computing its own accuracy. These measures can differ because some Caltech-101 classes supply fewer than 50 test images.

Unsupervised features by Caltech-256 test accuracy with 30 labeled training examples per class Both larger Exemplar-CNN configurations exceed the earlier unsupervised results shown.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Multi-way local pooling | 41.7 |
| Small Exemplar-CNN | 42.4 |
| Multipath Hierarchical Matching Pursuit | 50.7 |
| Intermediate Exemplar-CNN | 51.2 |
| Largest Exemplar-CNN (this paper) | 53.6 |

On Caltech-256, the intermediate Exemplar-CNN reports accuracy of 51.2 ± 0.2 across repeated splits, and the largest reports 53.6 ± 0.2. The supervised reference is 70.6. For interpreting transfer, the relevant result is that features trained to recognize source patches in STL-10 support categories in a different image collection. The supervised results show how much room there was for better classification under a different training regime.

The paper reports 256, 960 and 1884 features before final pooling for the small, intermediate and largest Exemplar-CNN configurations, respectively. Several prior methods in the comparison use more. For example, the convolutional K-means entry reports 8000 features, and the Multipath Hierarchical Matching Pursuit entry reports 5000. These counts describe the representation before the pooling step expands each map into its spatial summary. The gains in the main table were therefore compatible with compactness at that stage of the pipeline. Feature count alone gives no account of extraction cost or of the spatial pooling used to produce the final vectors.

#### Testing local correspondence

In descriptor matching, the aim is to find corresponding regions in a pair of images. A descriptor is the vector used to represent one local region for that comparison. The paper evaluates SIFT, AlexNet features and two Exemplar-CNN configurations. SIFT is the conventional local descriptor in the comparison. AlexNet supplies features learned with object labels on ImageNet. Exemplar-CNN-orig uses the intermediate classification architecture with its original training setup, and Exemplar-CNN-blur is adapted to matching.

To construct Exemplar-CNN-blur, the authors use 64c7s2-128c5-256c5-512f. Its first layer has a larger filter and moves that filter with a stride of 2. Stride is the distance between successive filter positions. The authors intended this change to help the network detect edges when they are blurred. They also replace STL-10 as the source of unlabeled images with photographs from Flickr, which they consider a better fit for the variety of natural images they want to cover. Finally, they include blur of varying strength among the transformations that preserve the surrogate label.

The first test collection comes from Mikolajczyk and colleagues and contains 40 image pairs. These are real photographs taken under different viewpoints or camera settings. The second collection uses 16 Flickr base images and contains 384 image pairs. The authors apply 6 kinds of transformation at varied strengths to those base images, then compare the transformed versions to their originals. The transformations cover rotation, zoom, perspective and nonlinear deformation, plus changes to lighting and blur. The base images used for matching were absent from the Exemplar-CNN training set. By varying a transformation on the same underlying image, the Flickr evaluation makes it possible to see how descriptor performance responds to that change.

The matching pipeline begins with maximally stable extremal regions, or MSER. This detector finds image regions from which the authors derive ellipses and associated patches. For each region, they choose the patch according to the scale of the ellipse and rotate it according to the dominant orientation. The same detection and preparation procedure applies to the compared descriptors. For the network descriptors, the authors extract convolutional feature maps and max-pool to a 4 × 4 spatial grid. This matches the spatial grid used by SIFT, although the network features have more values in each cell.

They greedily match the descriptors by Euclidean distance, giving a ranked set of proposed pairs. A proposed pair counts as correct if the target ellipse and its ground-truth counterpart have intersection over union of at least 0.5. Intersection over union is the overlap area divided by the area covered by either ellipse. Precision measures how many proposed matches are correct at a given point in the ranking. Recall measures how much of the achievable matching has been recovered. The authors take recall of 1 to correspond to the best achievable matching given the detections and evaluate average precision as the area under the precision–recall curve.

The paper tunes the input patch size on the Flickr collection. It examines sizes from 69 to 157 and considers convolutional layers as alternative sources of features. Its subsequent comparisons use size 157 for SIFT and 113 for the network descriptors. The selected layer for AlexNet and Exemplar-CNN-blur is layer 4, and the selected layer for Exemplar-CNN-orig is layer 3. Those choices specify the descriptor evaluated in the final plots. A network used as a descriptor gives several possible representations, and the feature layer is part of the practical setup.

On the Flickr collection, the plots show AlexNet and Exemplar-CNN descriptors outperforming SIFT on most image pairs. AlexNet has conspicuous failures with blur, and SIFT does better overall than AlexNet on the real-photo Mikolajczyk collection. The comparisons of Exemplar-CNN-blur against AlexNet favor Exemplar-CNN-blur on both datasets. In the transformation-specific Flickr results, AlexNet performs better than SIFT on the transformations other than blur, where performance drops considerably. The blur-trained Exemplar-CNN retains performance comparable to SIFT for that condition. On the real-photo collection, the network features fare better on viewpoint changes while SIFT handles strong blur and lighting changes more robustly.

The paper includes a measurement of feature computation on a 113 × 113 pixel patch. It reports CPU times of 4.5ms for SIFT, 28.2ms for AlexNet and 103.9ms for Exemplar-CNN-blur. The GPU measurements are 0.7ms for AlexNet and 1.8ms for Exemplar-CNN-blur, with no corresponding SIFT GPU result. The timings are for descriptor computation under the paper’s setup. They complement the matching results by showing the computational cost of obtaining those descriptors.

### What the ablations show

#### More seed identities help until distinctions become too difficult

The first analysis varies the number of surrogate classes from 50 to 32,000. At the low end, the network sees a small set of identities. Increasing the number gives it more distinctions to learn, and downstream classification accuracy improves. For the small network, the useful range ends around 8000 surrogate classes. Adding further classes yields little change or can reduce downstream accuracy. The authors also include randomly initialized filters as a check on how much the learned features contribute.

The paper tracks validation error for the surrogate task alongside downstream classification. Surrogate validation gets increasingly difficult as the number of classes grows. The authors explain that drawing more seeds raises the chance of separately labeling nearly identical patches. If two patches look alike and their transformations erase the differences that remain, the classifier may have too little evidence to infer which surrogate identity produced an example. This explanation fits the rising error, though the validation curve by itself cannot count how many of the errors came from near-duplicates.

The optimum also depends on the network. The authors observe that their larger architectures reach peak downstream performance with more surrogate classes than the smaller ones. Larger architectures still show saturation. Together, these observations make the seed count a training choice tied to the distinctiveness of the data and the capacity available to separate the surrogate classes. They also show that a more difficult surrogate problem can eventually provide a less useful feature learning signal.

#### Grouping related images changes how more data can help

The authors test a variant in which a surrogate class can start from a cluster of related images. They first train the intermediate Exemplar-CNN on 16,000 patches and use it to compute descriptors for the STL-10 unlabeled collection of 100,000 images. They then obtain candidate clusters through an existing patch discovery procedure that supplies linear SVMs. Each SVM serves as a ranking function over the unlabeled images. The 10 highest-scoring images for a given SVM make up its initial cluster.

The pruning procedure compares clusters by counting shared images and considers the greatest overlaps first. The merge threshold is 3, and clusters with overlap exceeding that threshold are combined. With overlap between the discard threshold of 1 and the merge threshold, the procedure discards one cluster of the pair. After filtering, the authors report 6510 clusters with approximately 10 images apiece. The same augmentation procedure is then applied to the images within each cluster, and the entire augmented cluster receives one surrogate label.

This changes what the network is asked to distinguish. In the basic method, separately sampled seeds get separate targets even when their descriptions are close. In the cluster variant, related images can be treated as appearances of a common source class for training. The authors report improved classification on all the datasets they evaluate with this variant, with an increase of up to 2.4 % on STL depending on the network. That is the paper’s reported change in classification accuracy. The experiment demonstrates a way to draw on more of the unlabeled collection while reorganizing the targets. Because it changes both the composition of a class and the examples grouped under a label, it leaves open how much of the gain is due to resolving near-duplicate conflicts and how much is due to broader within-class variety.

#### Each identity needs enough different appearances

A second analysis varies the number of samples in a surrogate class from 1 to 300. Feature quality improves as the number of transformed examples grows, and downstream STL classification performance levels off around 100 samples per surrogate class. The authors interpret this plateau as evidence that the sampled training objective is a reasonable approximation to the expected objective in their setup at around that sample count.

The experiment answers a different question from the one about seed count. More seed identities give the classifier more sources to distinguish. More samples for one identity give it a better view of what can change while the identity stays fixed. With very few examples, a network could learn to rely on features of a particular appearance that do not consistently survive the allowed transformations. Once the samples cover sufficiently varied appearances, further draws add less downstream benefit. The observed plateau concerns the authors’ transformation distribution and network, so it leaves the required number open for different types or ranges of augmentation.

#### Transformation choices depend on the dataset

To study the contribution of the transformations, the authors hold the seed patches fixed and remove selected types of changes when constructing training data. Their comparison point includes the full set of geometric and color or contrast operations. Rotation and scaling make relatively small contributions in these tests. Translation and changes to color and contrast have a greater effect. Because the source patches stay fixed, changes in the results are more directly attributable to the examples generated from those patches.

On STL-10 and CIFAR-10, the paper finds roughly comparable importance for spatial changes and for color and contrast changes. The balance shifts on Caltech-101, where color and contrast matter more than the spatial group. The authors attribute part of this difference to the tendency for Caltech-101 photographs to be well aligned. When test images already agree in their spatial arrangement, making features more stable to spatial changes has less opportunity to help. In a dataset with more visible displacement, translation can pose a more consequential problem for the classifier.

The authors also try occlusion, affine transformations and additive Gaussian noise as additional augmentations. They report no apparent classification gain from those trials. The blur experiments show a case in which expanding the set of transformations helps a different task. Together the comparisons show that the benefits of adding variation depend on which variation the evaluation demands. An added transformation can broaden robustness in a way that helps matching, while another can make little difference to object classification in the same paper.

#### The source dataset leaves a trace

The authors use the small network to separate the choice of seed dataset from the choice of labeled evaluation task. They draw patches from STL-10, CIFAR-10 or Caltech-101 and evaluate each resulting set of features on the three collections. The first-layer filters look different depending on the source of the unlabeled patches. The paper presents this visually, and the transfer evaluation shows that the change in source also affects classification accuracy.

On the STL-10 test set, the network trained from STL-10 patches reports 67.1 ± 0.3 accuracy, compared with 64.5 ± 0.4 for CIFAR-10 patches and 66.2 ± 0.4 for Caltech-101 patches. In the CIFAR-10(400) evaluation, using CIFAR-10 patches gives 70.3 ± 0.4, compared with 69.7 ± 0.3 using STL-10 and 69.5 ± 0.2 using Caltech-101. On Caltech-101, training from the same collection gives 80.0 ± 0.5, compared with 79.8 ± 0.5 from STL-10 and 77.8 ± 0.6 from CIFAR-10. All of these accuracies are in percent and use the small network in the transfer experiment.

The top result in each test column comes from the corresponding source collection. The size of that advantage varies, and the Caltech-101 evaluation in particular gives close results for patches drawn from Caltech-101 and from STL-10. The data support transfer across the tested collections while showing a benefit from matching the patch source to the later task. The differences in the filters give a visual indication that the shared training objective still learns from the content it is presented with.

#### Wider configurations often help, and extra layers can hurt

The architecture experiment varies the number of layers, width and filter size. In the small-network regime the authors use 8000 classes with 150 examples each, while larger settings can use 16,000 classes with 100 examples each. Overall, broader architectures tend to give better downstream accuracy. The comparison also shows that increasing a particular architectural dimension can have different consequences depending on where the change is made.

For example, the 64c5-64c5-64c5-128f configuration reaches 68.5 ± 0.3 on the STL-10 test set in the architecture experiment, compared with 67.1 ± 0.3 for 64c5-64c5-128f. Adding a further convolutional layer of the same width gives 64.7 ± 0.5. The associated Caltech-101 accuracies are 82.2 ± 0.7, 79.8 ± 0.5 and 75.7 ± 0.4, respectively. These examples show why the authors describe a general tendency toward useful larger networks instead of an improvement with every additional layer.

Widening the second convolutional stage of the small network to 256 filters gives STL-10 accuracy of 69.2 ± 0.3 and Caltech-101 accuracy of 81.6 ± 0.5. Widening the fully connected stage to 512 units gives 69.0 ± 0.4 on STL-10 and 82.9 ± 0.4 on Caltech-101. In the main comparison, the larger architectures combine multiple changes, so their gains do not isolate the effect of any specific layer. The narrower architectural comparisons show that additional capacity can help under the same surrogate objective, while its placement still matters.

#### The features change more slowly under trained transformations

The paper studies invariance directly using 500 images sampled from the STL-10 test set. To make spatial transformations without introducing empty pixels at the crop boundary, the authors use the central 64 × 64 region of images that measure 96 × 96 pixels. They examine the effect of applying translations, rotations, contrast changes and color changes to the image content and use two measures to distinguish stability from usefulness.

The first measure starts by normalizing each feature vector to unit Euclidean norm. The authors compute distances between the features of an original patch and its transformed versions, then average the distances across patches at each transformation magnitude. For each resulting curve, they divide by its maximum value. Normalizing the vectors reduces the influence of differences in response scale. Normalizing the curves emphasizes how quickly the representation changes as the transformation increases. The result characterizes the shape of the response rather than an absolute distance shared across all representations.

A curve that rises steeply and then levels off indicates that a small change already accounts for much of the feature movement seen across the range. A curve that grows gradually indicates a more gradual change in representation. The authors compare the network features with HOG, a descriptor based on histograms of image gradients. Features from the third layer and the final pooled representation compare favorably on the distances shown. The experiments support a practical degree of stability in those representations, even though their feature vectors still vary with the image.

The second measure uses classification to check whether the stable responses retain information. The authors train an SVM on central 64 × 64 patches from one STL-10 training fold. They then classify the transformed versions of the 500 test samples. The plots show that stronger transformations during surrogate training generally make classification more stable under the corresponding test transformations. The results also show a tradeoff for contrast. With excessive contrast augmentation, classification can deteriorate. The authors suggest that the strength of an edge can be useful evidence, so making features insensitive to it can have a cost.

Both probes carry information that the other lacks. A distance curve tracks the response of the features even when there is no class decision to inspect. A classification curve reveals whether the representation keeps enough evidence for the task as the input changes. Together, the two probes support the intended relationship between augmentation and stability while showing why stability is measured in connection with a particular use.

#### Matching separates the effects of blur and patch scale

The matching analysis varies the patch size and the source layer for the network descriptors. SIFT improves with larger patches in the range examined and levels off at the largest size the authors test. The network features, especially in lower layers, can deteriorate past a preferred input size. The authors relate this to interpolation. Enlarging a patch can smooth its edges, changing the frequencies to which early convolutional filters respond. Features from deeper layers draw on larger areas of the input and can sometimes benefit from larger patches.

Blur produces a related effect when applied directly to the image. The authors argue that early network filters can depend on particular frequencies and that later features can also depend on an expected degree of sharpness. SIFT uses finite differences and normalizes edge strength, which helps explain its steadier performance under blur in the comparisons. The original Exemplar-CNN experiences matching difficulties with blurred patches, as AlexNet does. The adapted Exemplar-CNN is less affected and stays competitive with SIFT under blur on the synthetic Flickr transformations. The comparison shows that the adapted training and architecture address an observed failure mode. Its interpretation depends on the fact that the adaptation changes the training images and first layer along with augmentation.

### Limitations

#### Limits identified by the authors

The authors make an assumption about the examples they generate. Each transformation is supposed to leave the identity relevant to the task intact. This assumption can fail even when the transformed image remains visually plausible. Changing color, for instance, can remove evidence for distinguishing categories that differ in color. The paper illustrates this with black panthers and pumas. When a distinction depends on the information being changed, teaching stability to that change can make the distinction harder to learn. The authors suggest choosing transformations with the target task in mind or combining representations trained with different sets of transformations so a supervised readout can select useful evidence.

The paper also identifies a limit to making more training classes by drawing more patches. Similar seeds can receive different targets, leading to a task in which some distinctions are difficult or impossible. The network’s useful operating range therefore depends on the number and selection of the seeds. Clustering offers one demonstrated response. The authors mention more data and joint clustering and network training as possibilities for further improvement. The experiments reported here use separate clustering and training stages.

The matching evaluation comes with limitations that the authors describe explicitly. The real-photo benchmark has 40 pairs, which restricts the evidence available for choices such as which layer to use. It also links each photographed scene to its particular camera changes. A failure on one pair can reflect the image content, the viewpoint or setting change, or both. The Flickr collection lets the paper vary a transformation against fixed content. The two datasets therefore support complementary analyses.

The authors recognize difficulty with blur and computational cost. The original learned descriptors suffer on blurred images. Adding blur to training as part of the matching adaptation reduces that sensitivity, while the real-photo comparisons still show SIFT’s resilience under strong blur and lighting changes. SIFT is faster in the reported CPU comparison. The GPU measurements establish that the network computations can be relatively quick on the hardware tested, especially in a setting where many descriptors can be processed in parallel. The paper gives a patch timing comparison rather than an evaluation of complete matching systems under different hardware budgets.

#### Limits visible in the experimental setup

“Unsupervised” describes the feature learning stage. The classification accuracies use a linear classifier fitted to labeled examples from each target dataset. This makes the results evidence that category information is accessible in the learned features under a specified label budget. The paper does not train a system to assign the benchmark’s object categories directly from unlabeled images. Likewise, the automatically generated classes are identities for the purposes of training, rather than discoveries of object categories.

The comparisons with previous methods support the reported ranking on the benchmarks under the cited protocols. They do not isolate the surrogate objective as the only cause of the improvement. The systems differ in architecture, representation size, feature extraction procedure, and potentially where the training images come from. Within the Exemplar-CNN results, the small and larger configurations also use different numbers of surrogate classes and different numbers of examples per class. The paper’s fixed-seed transformation comparisons give stronger evidence about the effect of particular augmentations than the headline table gives about the effect of changing one learning objective.

A related qualification applies to the matching result against AlexNet. The comparison shows that the evaluated Exemplar-CNN descriptor is better suited to these matching evaluations. It varies the training objective alongside architecture, pretraining data and the layer that supplies the descriptor. Likewise, Exemplar-CNN-blur changes the initial filter and stride and moves to Flickr images in addition to adding blur. The original configuration’s difficulty with blur, the adapted configuration’s improvement and the direct invariance experiments all support the explanation that the training transformations matter. The matching experiments do not quantify the separate contribution of blur augmentation while holding those other changes fixed.

The Flickr benchmark contains many pairs, but those pairs come from 16 underlying base images. Increasing the number of transformation conditions increases the coverage of those conditions without adding a new scene to each pair. The benchmark is suited to examining sensitivity to transformations. Transfer to unseen types of scenes and image formation conditions is a broader question. The paper also chooses patch size and layer on the Flickr dataset used for the later comparisons, so its Flickr results incorporate choices informed by that evaluation collection.

The region detector limits which correspondences are offered to the descriptor. The benchmark uses MSER, fixed procedures for scale and orientation, Euclidean distance, and a specific correctness threshold. Its average precision captures how well the descriptor ranks matching regions under those choices. Other region detectors, pooling schemes or matching rules could change the relative results. A stronger descriptor under this protocol therefore establishes a more local claim than a stronger end-to-end geometric vision system.

Finally, the mathematics concerns an expectation over the transformations chosen for training. A low regularization term means stable relative surrogate scores. It does not prove that every hidden activation is invariant, that intermediate representations preserve every useful visual distinction, or that stability extends to changes absent from the transformation distribution. The direct experiments establish approximate stability under the tested changes, in the tested layers and architectures. The transfer results establish that the learned features can serve more than one downstream purpose within the image collections studied.

### What came after

The later papers that cite Exemplar-CNN connect it to several uses of learning without task-specific labels. Their titles and stated topics identify the direction of that work. The citation links establish a connection to Exemplar-CNN, while the nature of the connection varies by research question. The limited details available for these works support comparing their aims with the earlier paper’s approach, without attributing a particular use of its loss or augmentation pipeline to them.

The work on deep convolutional generative adversarial networks shares Exemplar-CNN’s aim of obtaining visual representations from unlabeled images. It names a generative adversarial network as the route to that goal. The comparison returns to the distinction drawn by Exemplar-CNN between learning through a problem about images and learning by assigning artificial class identities to real patches. Both lines of work make the usefulness of the resulting representation a question that can be asked separately from the training task. [Deep Convolutional Generative Adversarial Networks](https://md.research.elamur.ai/free/en/papers/radford-2015-unsupervised-representation-learning-deep-convolutional/)

Work on scaling and benchmarking self-supervised visual representation learning takes up questions made concrete by the Exemplar-CNN experiments. The earlier paper varies the number of patches, the amount of augmentation per patch, and network capacity before testing the features on downstream tasks. The later work’s stated focus is the larger problem of how to scale and compare self-supervised visual learning. It connects to the need to establish whether a useful training task continues to yield better representations as its data and evaluation settings change. [Scaling and Benchmarking Self-Supervised Visual Representation Learning](https://md.research.elamur.ai/free/en/papers/goyal-2019-scaling-benchmarking-self-supervised-visual/)

Research on robustness and uncertainty broadens the outcome being considered. Exemplar-CNN probes robustness through the stability of features and the accuracy of predictions under known transformations. The later work explicitly asks about self-supervision as a way to improve robustness and uncertainty. That places a related question alongside the earlier tests. A representation can be assessed for how its decisions behave as input conditions depart from familiar ones, and the confidence associated with a decision can itself be an outcome of interest. [Self-Supervised Learning for Robustness and Uncertainty](https://md.research.elamur.ai/free/en/papers/hendrycks-2019-self-supervised-learning-can-improve/)

ViLBERT carries the idea of task-agnostic pretraining into [vision and language](https://md.research.elamur.ai/free/en/topics/multimodal/). Its stated aim is to learn shared visiolinguistic representations for use across tasks involving these two kinds of input. The point of contact is the separation between representation learning and the eventual downstream task. In Exemplar-CNN, a patch identification exercise supplies features that are later reused for both recognition and matching. ViLBERT’s scope includes tasks that require a representation of visual and linguistic information together. [ViLBERT](https://md.research.elamur.ai/free/en/papers/lu-2019-vilbert-pretraining-task-agnostic-visiolinguistic/)

The paper on emerging properties in self-supervised vision transformers examines the representations of a different visual architecture. Exemplar-CNN shows that conclusions about learned behavior can depend on the training signal and on where features are taken from the network. The later work’s stated subject is the properties that appear under self-supervised training in a visual application of the [transformer](https://md.research.elamur.ai/free/en/concepts/transformer/). Its connection to Exemplar-CNN is the question of what structure features acquire through training without object annotations. [Emerging Properties in Self-Supervised Vision Transformers](https://md.research.elamur.ai/free/en/papers/caron-2021-emerging-properties-self-supervised-vision/)

DINOv2 returns directly to the goal of learning robust visual features without supervision. In Exemplar-CNN, robustness has a concrete source in the transformations used to define which appearances share a label. The paper then tests how those features behave under changes to the input and when transferred to different tasks. DINOv2’s stated focus puts reliable visual features themselves at the center of the research question. The connection across these works is the effort to learn representations with broad use before the eventual application supplies its labels or its matching criterion. [DINOv2](https://md.research.elamur.ai/free/en/papers/oquab-2023-dinov2-learning-robust-visual-features/)

## Cite

Cite as Alexey Dosovitskiy, Philipp Fischer, Jost Tobias Springenberg, Martin Riedmiller and Thomas Brox. 2015. Discriminative Unsupervised Feature Learning with Exemplar Convolutional Neural Networks. IEEE Transactions on Pattern Analysis and Machine Intelligence.

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

```bibtex
@article{dosovitskiy2015discriminative,
  title = {{Discriminative Unsupervised Feature Learning with Exemplar Convolutional Neural Networks}},
  author = {Alexey Dosovitskiy, Philipp Fischer, Jost Tobias Springenberg, Martin Riedmiller and Thomas Brox},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2015},
  doi = {10.1109/tpami.2015.2496141},
  eprint = {1406.6909},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/tpami.2015.2496141}
}
```

> 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)
