# Zero-Shot Learning -- A Comprehensive Evaluation of the Good, the Bad and the Ugly

Zero-shot learning methods are compared under one shared benchmark protocol

Yongqin Xian, Christoph H. Lampert, Bernt Schiele, Zeynep Akata · arXiv · 2017-7-3

- **Problem** Published zero-shot learning results are hard to compare, because each paper uses its own evaluation protocol and data splits. Some results are even flawed, since models were pre-trained on test classes.
- **Method** The authors define one benchmark that unifies protocols and data splits across public datasets. They also release AWA2, a new dataset with public images, because AWA1 lacks its raw images.
- **Results** Under the proposed split, models trained on AWA1 generalize to AWA2 and vice versa. The authors re-ran methods and found that most reported numbers reproduce closely.

## Why zero-shot numbers are hard to compare

Zero-shot learning asks a model to recognize objects whose instances were never seen during training. The only bridge to those unseen classes is side information, usually attributes, which are annotated once per class and so are cheap to collect. The number of methods has grown every year, yet without an agreed evaluation protocol a reader can't tell which gains are real.

Some reported gains are inflated by the image features used. The authors also argue that results on small, coarse-grained datasets such as aPY don't settle the question.

AWA1 is the most used attribute benchmark, but only its image features are public, not its raw images. Without the images, newer networks can't be run on AWA1, so progress in image features can't be tested on it.

## How the compared methods score images and classes

Most methods in the evaluation learn one matrix that scores how well an image fits a class description. The score is a bilinear form, \\(F(x,y;W)=\\theta(x)^{T}W\\phi(y)\\), where θ(x) and φ(y) are the image and class embeddings and W is learned. At test time the predicted label is the class with the highest score, so the decision is an argmax over the candidate classes.

What separates ALE, DEVISE and SJE is the loss used to shape W.

DEVISE uses a pairwise ranking objective and is optimized with stochastic gradient descent. ALE uses a weighted approximate ranking loss with weights \\(\\alpha\_i = 1/i\\), which puts heavy emphasis on the top of the ranked list. SJE follows the structured SVM idea and focuses on the most violating class, so it is less efficient at prediction than DEVISE and ALE.

ESZSL instead applies a square loss with explicit regularization, and its objective is convex with a closed-form solution.

The nonlinear models follow the same idea with more capacity. LatEm switches among several linear maps through a latent variable, and CMT passes image features through a two-layer network with tanh. DAP and IAP predict attributes first and are included mainly because they were the most widely used methods historically.

## Building AWA2 to replace the unavailable images

AWA2 keeps the 50 animal classes and the 85 attributes of AWA1. The images come from public web sources such as Flickr and Wikipedia, and the authors kept only images with free-use and redistribution licences. This gives 37,322 images, compared to 30,475 for AWA1. Because the images are public, newer networks can be run on the dataset.

Table 1 places AWA2 beside AWA1 in both the standard and proposed splits, with the same class and attribute counts. The t-SNE plot of ResNet features suggests AWA2 forms slightly more visible clusters than AWA1, though this is a visual impression.

## A shared protocol with disjoint validation classes

The central rule is that hyperparameters are tuned on validation classes disjoint from the training classes, since tuning on test classes breaks the zero-shot assumption. Image features come from a 101-layer ResNet pre-trained on the 1K-class ImageNet subset and not fine-tuned, giving 2048-dimensional pooled vectors. For aPY the features come from bounding-box crops, while the other datasets use the entire image.

Class embeddings are the per-class attributes with values between 0 and 1, and for ImageNet the authors use Word2Vec.

The Proposed Split uses training class counts of 580, 100, 27, 15 and 27 for SUN, CUB, AWA1, aPY and AWA2. Test classes stay at 72, 50, 10, 12 and 10, and validation sets hold 65, 50, 13, 5 and 13 classes. The test classes never overlap with the 1K ImageNet classes used for pre-training, which keeps the zero-shot condition intact.

Accuracy is averaged per class, so a sparse class counts as much as a dense one. In the generalized setting the authors score with the harmonic mean, H = 2 accY\_tr accY\_ts / (accY\_tr + accY\_ts), which is high only when both sides are high. They chose it over the arithmetic mean, because a much higher seen-class accuracy would otherwise dominate the score.

## Do published results reproduce?

The authors re-ran methods with public code on SUN, CUB, AWA1 and aPY, using the published image features. Results for DAP, SYNC, GFZSL, GFZSL-tran, DSRL and SAE are nearly identical to the originals. Other gaps trace to randomness, such as the non-convexity of LatEm and the random sampling in SGD for SJE.

The clearest gap is SAE on AWA1, where the original paper reports 84.7 and the re-run gives 80.7 on the standard split. The authors attribute part of this to SAE reporting per-image accuracy, which runs higher on class-imbalanced data, and note that per-class accuracy would bring the reported figure down to 82.0. The rest comes from features, since the SAE authors had improved GoogleNet features with batch normalization and averaged crops.

On SUN, SSE and ESZSL reported results on a 10-class test split, while the standard split has 72 test classes. The SUN features came from a MIT Places model that overlaps with SUN's classes, which the authors expect to score higher than ImageNet pre-trained models, quoting 62.8 against 59.1. The proposed split removes the overlap between test classes and the ImageNet classes used for pre-training, so older tables built on that overlap aren't directly comparable.

## Does AWA2 stand in for AWA1?

AWA1 and AWA2 share classes and attributes, so the authors trained on one and tested on the other under the proposed split. Twelve methods were tested in the zero-shot setting, and the models trained on AWA1 generalized well to AWA2 and vice versa. To test whether the training set matters more than the test set, the authors took 24 result pairs with the same test set and ran a paired t-test.

This supports using AWA2 in place of AWA1, though it says nothing about the other datasets.

## ImageNet at scale

ImageNet holds about 14 million images from 21K classes, and the authors train on a balanced subset of 1K classes. The test sets are either the remaining 20K classes or subsets chosen by hierarchical distance and population. Ten methods were run, leaving out DAP, IAP and SSE because attributes are missing for many ImageNet classes and because of scalability.

SYNC scored best, which may reflect large-scale behavior or the Word2Vec embeddings, a choice that the same authors provided. GFZSL is the best model on attribute datasets but performs poorly here, which the authors link to generative models needing strong class embeddings such as attributes. GFZSL couldn't be run on 3H, M5K, L5K and All 20K because of computational issues.

For every method, accuracy drops sharply from the 1K to the 5K most populated classes, since 5K covers about 6.6M images against about 1624 for 1K.

## When training classes join the search space

Adding training classes to the search space lowers results, because seen classes act as distractors for images from test classes. Compatibility methods such as ALE, DEVISE and SJE hold up on test classes, while DAP and CONSE do better on training classes. The authors therefore rank methods by harmonic mean, so neither side alone decides the result.

By harmonic mean, ALE is best on SUN, CUB and AWA1, DEVISE is best on AWA2, and CMT\* is best on aPY. CMT\* has a novelty detection phase that receives an extra signal telling training from test images, so its aPY first place rests on that extra supervision. GFZSL again performs poorly in this setting.

On ImageNet no single method wins: under top-1, DEVISE, ALE and SJE lead, while CONSE works best for top-5 on 3H and M5K. ESZSL has the best top-10 accuracy overall, which the authors tie to its explicit regularization.

## Limits of the evidence

GFZSL couldn't be evaluated on four ImageNet splits, so its ImageNet ranking is incomplete. ImageNet uses Word2Vec class embeddings instead of attributes, and the authors state that evaluating class embeddings is outside their scope. On AWA1 the authors measured 64.9 for SSE against 76.3 reported, and they couldn't reach the reported figure even by tuning on the test set, which reached 73.8.

Results also depend on hyperparameter choice, since SJE selects different hyperparameters for AWA1 and AWA2. Feature quality changes results, as the SAE case shows, so comparisons across papers need matching features.

## Paper info

- **Authors**: Yongqin Xian, Christoph H. Lampert, Bernt Schiele, Zeynep Akata
- **Venue**: arXiv · Preprint
- **First published**: 2017-7-3
- **Added**: 2026-11-13
- **Updated**: 2020-9-23
- **Version**: v4
- **arXiv**: 1707.00600
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1707.00600v4) · [PDF ↗](https://arxiv.org/pdf/1707.00600v4)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Yongqin Xian, Christoph H. Lampert, Bernt Schiele, Zeynep Akata (2017). Zero-Shot Learning -- A Comprehensive Evaluation of the Good, the Bad and the Ugly. arXiv:1707.00600v4. https://arxiv.org/abs/1707.00600v4

**BibTeX**

```
@misc{xian2017zero,
  title = {{Zero-Shot Learning -- A Comprehensive Evaluation of the Good, the Bad and the Ugly}},
  author = {Yongqin Xian and Christoph H. Lampert and Bernt Schiele and Zeynep Akata},
  year = {2017},
  eprint = {1707.00600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.00600v4}
}
```

## Other paper commentary

- [Open Graph Benchmark: Datasets for Machine Learning on Graphs](https://refivu.com/en/papers/edb8fbc5-0d88-4a3d-a7aa-268b0d397255-open-graph-benchmark-datasets-for-machine-learning-on.md)
- [Enhanced-alignment Measure for Binary Foreground Map Evaluation](https://refivu.com/en/papers/668b22a3-321a-4e3f-9465-2c7d6fb8ea23-enhanced-alignment-measure-for-binary-foreground-map.md)
- [MS-Celeb-1M: A Dataset and Benchmark for Large-Scale Face Recognition](https://refivu.com/en/papers/29204d8b-e10a-438d-99d3-3f2ae9ee3cd4-ms-celeb-1m-a-dataset-and-benchmark-for.md)
- [MOT16: A Benchmark for Multi-Object Tracking](https://refivu.com/en/papers/b140c8bc-846b-4f50-973f-76ab17fb435b-mot16-a-benchmark-for-multi-object-tracking.md)
- [EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classification](https://refivu.com/en/papers/6d2c7153-052d-419e-be70-b7562167c83a-eurosat-a-novel-dataset-and-deep-learning-benchmark.md)
- [The Arcade Learning Environment: An Evaluation Platform for General Agents](https://refivu.com/en/papers/2c89eed5-9dfb-4243-8466-0655582e3266-the-arcade-learning-environment-an-evaluation-platform-for.md)
- [Deep Generative Image Models using a Laplacian Pyramid of Adversarial Networks](https://refivu.com/en/papers/bb403729-1f3c-4c78-a4d7-1f9c9ea6cd8f-deep-generative-image-models-using-a-laplacian-pyramid.md)
- [Deep Convolutional Networks on Graph-Structured Data](https://refivu.com/en/papers/b94a76bd-69b6-41d9-9dc2-a50ec07493aa-deep-convolutional-networks-on-graph-structured-data.md)
- [Wider or Deeper: Revisiting the ResNet Model for Visual Recognition](https://refivu.com/en/papers/92402cc1-8a47-44e2-ab4e-68cd6d212e9b-wider-or-deeper-revisiting-the-resnet-model-for.md)
- [$π\_{0.5}$: a Vision-Language-Action Model with Open-World Generalization](https://refivu.com/en/papers/754e7c9a-2cc7-4f07-8b66-7ff8cff6a4c6-0-5-a-vision-language-action-model-with.md)
- [Oscar: Object-Semantics Aligned Pre-training for Vision-Language Tasks](https://refivu.com/en/papers/f7fe203e-c6e4-44a1-8ce4-3262834d64ee-oscar-object-semantics-aligned-pre-training-for-vision.md)
- [Differentially Private Federated Learning: A Client Level Perspective](https://refivu.com/en/papers/8eaa4c01-7257-42c2-9d51-9996980ee41d-differentially-private-federated-learning-a-client-level.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [Top-1 accuracy](https://refivu.com/en/terms/653c0b9eaa58-top-1-accuracy)
- [zero-shot learning](https://refivu.com/en/terms/a9be4dad9497-zero-shot-learning)
- [CUB](https://refivu.com/en/terms/1db8c8020177-cub)
- [harmonic mean](https://refivu.com/en/terms/d89c7e013e68-harmonic-mean)
- [label propagation](https://refivu.com/en/terms/4b7c3e844260-label-propagation)
- [DEVISE](https://refivu.com/en/terms/7f69bbbdeb07-devise)
- [SAE](https://refivu.com/en/terms/3f0e85501301-sae)
- [SSE](https://refivu.com/en/terms/a201b9293606-sse)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b2424a9a-08ad-4ff8-86b0-d8e0b3d11aaf-zero-shot-learning-a-comprehensive-evaluation-of-the)
