Skip to main content
QUICK REVIEW

[Paper Review] Locality and compositionality in zero-shot learning

Tristan Sylvain, Linda Petrini|arXiv (Cornell University)|Dec 20, 2019
Domain Adaptation and Few-Shot LearningComputer Science55 references21 citations
TL;DR

This paper introduces Zero-Shot Learning from Scratch (ZFS), a new benchmark that excludes pre-training on datasets like ImageNet, to isolate the role of locality and compositionality in representation learning. It demonstrates that models emphasizing local feature extraction and compositional structure generalize significantly better in zero-shot image classification, with strong correlations between these properties and ZSL accuracy—especially on datasets with semantically meaningful attributes like CUB and AwA2.

ABSTRACT

In this work we study locality and compositionality in the context of learning representations for Zero Shot Learning (ZSL). In order to well-isolate the importance of these properties in learned representations, we impose the additional constraint that, differently from most recent work in ZSL, no pre-training on different datasets (e.g. ImageNet) is performed. The results of our experiments show how locality, in terms of small parts of the input, and compositionality, i.e. how well can the learned representations be expressed as a function of a smaller vocabulary, are both deeply related to generalization and motivate the focus on more local-aware models in future research directions for representation learning.

Motivation & Objective

  • To develop a more realistic evaluation framework for Zero-Shot Learning (ZSL) by eliminating pre-training on external datasets like ImageNet.
  • To investigate whether locality (focusing on small input parts) and compositionality (representing representations as functions of a smaller vocabulary) are key drivers of generalization in ZSL.
  • To evaluate how different representation learning methods perform under the ZFS setting, with a focus on their implicit or explicit adherence to locality and compositionality.
  • To introduce novel methods and visualization tools to probe and quantify locality and compositionality in learned representations.
  • To provide empirical evidence that reconstruction-based models (e.g., VAEs) fail to capture semantic structure necessary for zero-shot generalization.

Proposed method

  • Proposes Zero-Shot Learning from Scratch (ZFS), where models are trained exclusively on the target dataset’s training split without any pre-training on external data.
  • Employs a prototypical network on top of learned features to evaluate zero-shot generalization performance under the ZFS setting.
  • Introduces a novel variant of Deep InfoMax (DIM) that uses local patch representations from other images with the same label as positive samples to encourage local and compositional feature learning.
  • Develops a new visualization technique based on Mutual Information to analyze local properties of representations, enabling interpretation of how models attend to parts of images.
  • Uses the Total Representation Entropy (TRE) ratio as a proxy for compositionality, measuring how much of the representation is explained by a small set of meaningful parts.
  • Correlates proxies for locality (e.g., part ratio) and compositionality (e.g., TRE ratio) with ZSL accuracy across multiple datasets and model families.

Experimental results

Research questions

  • RQ1To what extent do locality and compositionality in learned representations predict zero-shot generalization performance when pre-training is excluded?
  • RQ2How do different representation learning methods (supervised, self-supervised, VAEs) differ in their implicit or explicit adherence to locality and compositionality?
  • RQ3Can a novel, local-positive-sample-based Deep InfoMax variant improve representation quality for ZSL in the ZFS setting?
  • RQ4How do reconstruction-based models like VAEs perform in terms of capturing semantic structure for ZSL, and why do they fail?
  • RQ5What is the relationship between the semantic meaningfulness of attributes and the strength of correlation between compositionality proxies and ZSL accuracy?

Key findings

  • The ZFS benchmark reveals that models emphasizing locality and compositionality generalize significantly better in zero-shot image classification, especially on datasets with semantically meaningful attributes.
  • A strong negative correlation (Pearson r = -0.90) exists between the TRE ratio (proxy for compositionality) and ZSL accuracy on the CUB dataset, indicating that lower TRE ratio correlates with higher performance.
  • On AwA2, the correlation between TRE ratio and ZSL accuracy is still significant (r = -0.60), but weaker than on CUB, suggesting that attribute quality affects the strength of the relationship.
  • For SUN, where attributes are per-image and less semantically consistent, the correlation between TRE ratio and ZSL accuracy is weak (r = -0.30), indicating that attribute quality modulates the effectiveness of compositionality as a proxy.
  • Averaging local representations (a form of explicit compositionality) improves ZSL performance on CUB and AwA2, especially when only a few patches (e.g., beaks, tails) are semantically relevant.
  • VAEs show no correlation between part ratio and attribute similarity, but a strong negative correlation with SSIM, indicating they focus on pixel-level similarity rather than semantic parts, undermining their utility for ZSL.

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.