Image-free Classifier Injection for Zero-Shot Classification

Anders Christensen, Massimiliano Mancini, A. S. Koepke, O. Winther, Zeynep Akata
8/1/2023

No official code found. Best implementation: ExplainableML/ImageFreeZSL (18 stars, last commit 2024-10-05).

Abstract

Zero-shot learning models achieve remarkable results on image classification for samples from classes that were not seen during training. However, such models must be trained from scratch with specialised methods: therefore, access to a training dataset is required when the need for zero-shot classification arises. In this paper, we aim to equip pre-trained models with zero-shot classification capabilities without the use of image data. We achieve this with our proposed Image-free Classifier Injection with Semantics (ICIS) that injects classifiers for new, unseen classes into pre-trained classification models in a post-hoc fashion without relying on image data. Instead, the existing classifier weights and simple class-wise descriptors, such as class names or attributes, are used. ICIS has two encoder-decoder networks that learn to reconstruct classifier weights from descriptors (and vice versa), exploiting (cross-)reconstruction and cosine losses to regularise the decoding process. Notably, ICIS can be cheaply trained and applied directly on top of pre-trained classification models. Experiments on benchmark ZSL datasets show that ICIS produces unseen classifier weights that achieve strong (generalised) zero-shot classification performance. Code is available at https://github.com/ExplainableML/ImageFreeZSL.

View on arXivView PDF

Code Implementations(1)

180Shell, PythonAug 1, 20232 years ago

Similar Papers

Cite this paper

@article{christensen2023imagefree,
  title  = {Image-free Classifier Injection for Zero-Shot Classification},
  author = {Anders Christensen and Massimiliano Mancini and A. S. Koepke and O. Winther and Zeynep Akata},
  year   = {2023},
  eprint = {2308.10599},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2308.10599},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.10599.svg)](https://codeofpaper.com/paper/2308.10599)

Discussion