Skip to main content
QUICK REVIEW

[Paper Review] Zero-Shot Learning from scratch (ZFS): leveraging local compositional representations

Tristan Sylvain, Linda Petrini|arXiv (Cornell University)|Oct 22, 2020
Domain Adaptation and Few-Shot LearningComputer Science32 references8 citations
TL;DR

This paper introduces Zero-Shot Learning from scratch (ZFS), a new benchmark that prohibits pretraining on ImageNet, forcing models to learn generalizable representations from scratch. By incorporating local compositional representations through auxiliary losses on image patches, the method improves zero-shot accuracy, with DIM achieving state-of-the-art performance in the ZFS setting, especially on AwA2 and SUN datasets.

ABSTRACT

Zero-shot classification is a generalization task where no instance from the target classes is seen during training. To allow for test-time transfer, each class is annotated with semantic information, commonly in the form of attributes or text descriptions. While classical zero-shot learning does not explicitly forbid using information from other datasets, the approaches that achieve the best absolute performance on image benchmarks rely on features extracted from encoders pretrained on Imagenet. This approach relies on hyper-optimized Imagenet-relevant parameters from the supervised classification setting, entangling important questions about the suitability of those parameters and how they were learned with more fundamental questions about representation learning and generalization. To remove these distractors, we propose a more challenging setting: Zero-Shot Learning from scratch (ZFS), which explicitly forbids the use of encoders fine-tuned on other datasets. Our analysis on this setting highlights the importance of local information, and compositional representations.

Motivation & Objective

  • To address the overreliance on ImageNet-pretrained features in zero-shot learning, which obscures fundamental understanding of generalization.
  • To establish a more rigorous evaluation framework by forbidding pretraining on external datasets, focusing solely on the target dataset’s training split.
  • To investigate whether local and compositional representations are essential for zero-shot generalization when no pretraining is allowed.
  • To evaluate the effectiveness of auxiliary local losses (label- and attribute-based) in improving feature learning under the ZFS setting.
  • To provide a fairer benchmark for assessing generalization capabilities of models in real-world scenarios with unseen classes.

Proposed method

  • Proposes Zero-Shot Learning from scratch (ZFS), a training protocol that excludes any pretraining on external datasets like ImageNet.
  • Uses smaller, non-pretrained encoders (e.g., DCGAN-based, AlexNet) to learn features directly from the target dataset’s training split.
  • Introduces a local objective by extracting features from intermediate layers (e.g., third layer) to encourage local representation learning.
  • Applies auxiliary losses based on local image patches: one using class labels (LC) and another using semantic attributes (AC) to promote compositional generalization.
  • Trains a prototypical network on top of the fixed encoder features to evaluate zero-shot classification performance.
  • Employs standard training protocols: Adam optimizer, 128×128 image resizing, random crops during training, center crops during inference.

Experimental results

Research questions

  • RQ1Can models achieve strong zero-shot generalization performance without relying on ImageNet-pretrained features?
  • RQ2How do local and compositional representations contribute to zero-shot generalization in a from-scratch training regime?
  • RQ3Which auxiliary loss—label-based or attribute-based—yields better performance in the ZFS setting?
  • RQ4Does the choice of encoder architecture (e.g., DCGAN vs. AlexNet) impact performance under ZFS?
  • RQ5Can a model like DIM, which inherently emphasizes locality, outperform others in the ZFS benchmark?

Key findings

  • The addition of local auxiliary losses consistently improves Top-1 accuracy across all models and datasets, confirming the importance of local representations.
  • On the CUB dataset, the DIM model with attribute-based local loss achieves 42.55% Top-1 accuracy, outperforming the fully supervised FC baseline.
  • On AwA2, the DIM model reaches 43.62% Top-1 accuracy with the attribute-based local loss, significantly exceeding the FC baseline and other models.
  • On SUN, the DIM model achieves 34.38% Top-1 accuracy with the attribute-based local loss, demonstrating strong generalization under ZFS.
  • The label-based local loss performs better than the attribute-based one in models like VAE and AAE, but the reverse is true for DIM, indicating its sensitivity to compositional learning.
  • The results validate that locality and compositionality are critical for zero-shot generalization when pretraining is excluded, especially in challenging, real-world settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.