Abstract
Generalized Zero-Shot Learning (GZSL) traditionally relies on access to large-scale, labeled datasets of "base" classes to align visual features with semantic descriptions. However, increasing concerns regarding data privacy and copyright often restrict access to these raw datasets. This paper introduces a framework for Data-Free Generalized Zero-Shot Learning (DFZSL), which enables the recognition of unseen classes using only a pre-trained classifier, without any access to original training images. By modeling the latent feature space using a von Mises-Fisher (vMF) distribution and introducing a novel Feature-Language Prompt Tuning (FLPT) strategy, the proposed method synthesizes high-quality virtual features. Experimental results across 16 benchmarks demonstrate that this approach significantly outperforms previous data-free methods and achieves performance comparable to models trained on real data.
Introduction
Zero-Shot Learning (ZSL) aims to recognize objects from classes that were not seen during training, typically by leveraging semantic relationships (e.g., text descriptions or attributes). While effective, standard GZSL methods assume that the "base" class images are readily available for training. In practice, data sharing is often prohibited by legal and ethical constraints.
Existing "data-free" ZSL attempts frequently struggle with low accuracy or rely on manually annotated attributes that do not scale. This research addresses a more restrictive and practical scenario: performing GZSL when the only available resource is a pre-trained classifier's weights. The authors propose a pipeline that "recovers" base-class information and aligns it with language models to facilitate the synthesis of unseen class features.
Methodology
The DFZSL framework consists of a three-stage pipeline designed to bridge the gap between a data-restricted client and a pre-trained server.
1. Base-Class Data Recovery
Since the features in models like CLIP are L2-normalized and reside on a high-dimensional hypersphere, the authors model the distribution of base class features using a von Mises-Fisher (vMF) distribution. By treating the weights of the pre-trained classifier as class "prototypes" (the means of the distribution), the model can sample "virtual" features around these points. This allows for the reconstruction of the feature space distribution without ever accessing the original pixel data.
2. Feature-Language Prompt Tuning (FLPT)
A persistent challenge in vision-language models is the "modality gap"—the misalignment between visual representations and textual descriptions. To resolve this, the authors introduce learnable prompts. Unlike standard prompt tuning, FLPT uses a light mapping network to link textual prompts to a specific "shift term" in the visual features. This ensures that as text descriptions change, the synthesized virtual features adjust in a mathematically consistent manner, maintaining alignment between the two modalities.
3. Generative Modeling
With well-aligned virtual features, the framework trains a conditional generative model (such as a GAN or VAE). This generator learns to synthesize features for entirely new, unseen classes based solely on their text descriptions. This effectively transforms the zero-shot problem into a standard supervised classification task in the feature space.
Experimental Evaluation
The framework was evaluated in two primary settings:
- Generalized ZSL (GZSL): Tested on five classic benchmarks: APY, CUB, FLO, SUN, and AWA2.
- Base-to-New Generalization: Evaluated across 11 diverse datasets, including ImageNet, Caltech101, OxfordPets, StanfordCars, and EuroSAT.
Key Results and Insights
- Superiority over Data-Free Baselines: On the AWA2 dataset, the previous state-of-the-art data-free method (AZSL) achieved a harmonic mean of only 3.6%. The proposed approach increased this to 93.7%, representing a massive leap in feasibility for data-free scenarios.
- Competitive with Real-Data Methods: The "data-free penalty" was found to be surprisingly small, with performance often within 1-2% of models trained on actual raw images.
- Modality Alignment: In base-to-new generalization tests, the FLPT method outperformed popular tuning methods like CoOp and MaPLe. This suggests that aligning both vision and language modalities is more effective than tuning a single modality in isolation.
- Flexibility: The method is architecture-agnostic and "plug-and-play," showing consistent improvements whether paired with GAN-based (ZLAP) or VAE-based (TF-VAEGAN) generators.
Discussion and Limitations
While the model excels on general datasets, a performance gap remains in highly fine-grained domains, such as the CUB (birds) or SUN (scenes) datasets. This indicates that the vMF distribution may require additional complexity to capture the dense, overlapping clusters characteristic of fine-grained classification. Additionally, while the method supports "black-box" scenarios where classifier weights are hidden, it achieves optimal results in "white-box" settings where weights are accessible for prototype estimation.
Conclusion
This work demonstrates that access to raw training data is not a strict requirement for high-performance Generalized Zero-Shot Learning. By leveraging the geometric properties of CLIP’s latent space and employing sophisticated prompt-tuning, the DFZSL framework provides a robust, privacy-preserving alternative to traditional ZSL. This paves the way for deploying advanced recognition models in sensitive or proprietary environments where data sharing is impossible.
Summary updated