Efficient Gaussian Process Model on Class-Imbalanced Datasets for Generalized Zero-Shot Learning

Changkun Ye, Nick Barnes, Lars Petersson, Russell Tsuchida · DOI

Abstract

Generalized Zero-Shot Learning (GZSL) remains a significant challenge due to the inherent bias toward seen classes and the pervasive issue of class imbalance in real-world datasets. Current state-of-the-art (SOTA) methods often rely on complex generative architectures that are computationally expensive and prone to overfitting. This paper introduces a streamlined framework that combines a novel Class-Balanced Triplet Loss ($L_{BT}$) with Gaussian Process (GP) regression. Our approach achieves SOTA performance on imbalanced benchmarks while reducing training times from several hours to an average of five minutes.

1. Introduction

Zero-Shot Learning (ZSL) enables the recognition of object classes that were never seen during training by leveraging semantic attributes. The more rigorous version, Generalized ZSL (GZSL), requires the model to identify both seen and unseen classes at test time.

Two major gaps persist in current GZSL research:

  1. Class Imbalance: Real-world data is rarely distributed evenly. In datasets like APY, a single class can account for nearly one-third of all samples, leading to biased feature embeddings.
  2. Computational Complexity: Many SOTA models utilize Generative Adversarial Networks (GANs) or Variational Autoencoders (VAEs), which require significant GPU memory and long training durations.

We propose a hybrid model that addresses these gaps through a non-generative, efficient architecture focused on class-balanced latent embeddings and robust prototype prediction.

2. Methodology

The proposed framework consists of three primary components designed for stability and speed.

2.1 Latent Feature Embedding with Class-Balanced Triplet Loss ($L_{BT}$)

Rather than processing high-dimensional raw features, the model projects them into a latent space using a linear Neural Network. To combat class imbalance, we introduce a modified triplet loss. Unlike standard triplet loss, which samples randomly, $L_{BT}$ utilizes class centers (averages) and a "min-operation" over samples. This ensures that majority classes do not dominate the learning process, resulting in an embedding space that is more representative of the entire dataset distribution.

2.2 Gaussian Process (GP) Regression

To bridge the gap between semantic attributes and visual features, we employ GP regression to predict the "prototypes" (ideal latent vectors) for unseen classes. GPs are non-parametric and naturally robust to overfitting, making them ideal for mapping the relationship between seen class attributes and their latent positions, especially when the number of training points (seen classes) is small.

2.3 Calibrated Classifier

At inference, a simple nearest-neighbor classifier is used in the latent space. To mitigate the common GZSL bias toward seen classes, we apply a calibration penalty ($\gamma$) to the seen class scores, allowing for more accurate classification of unseen samples.

3. Experimental Results

The model was evaluated on five standard ZSL benchmarks: AWA1, AWA2, and APY (imbalanced), and CUB and SUN (balanced).

3.1 Performance on Imbalanced Benchmarks

The model outperformed previous SOTA methods on all imbalanced datasets. On the highly imbalanced APY dataset, it achieved a Harmonic Mean ($H$) of 51.4, a significant improvement over existing models. The use of class centers in the triplet loss was found to reduce variance during training, leading to more stable convergence.

3.2 Training Efficiency

Efficiency is a hallmark of this approach. While some SOTA models, such as DVBE, require over 200 minutes to train, our model averages approximately 5 minutes across all datasets. This is achieved by utilizing a linear projection and GP regression instead of heavy generative models.

3.3 Stability and Ablations

Ablation studies demonstrated that the model remains remarkably stable across different hyperparameter settings, such as the feature clipping threshold and the triplet loss margin ($\Delta$).

4. Conclusion

This paper demonstrates that a simplified, non-generative approach can achieve SOTA results in GZSL by specifically addressing class imbalance. By combining Class-Balanced Triplet Loss with Gaussian Process regression, we provide a model that is both highly accurate on imbalanced data and exceptionally fast to train. Future work will investigate non-linear embedding structures to further improve performance on fine-grained datasets like CUB and SUN without sacrificing computational efficiency.

Summary updated

BibTeX
@inproceedings{ye2022efficient,
  author = {Changkun Ye and Nick Barnes and Lars Petersson and Russell Tsuchida},
  title = {{Efficient Gaussian Process Model on Class-Imbalanced Datasets for Generalized Zero-Shot Learning}},
  booktitle = {ICPR},
  year = {2022},
  doi = {10.1109/icpr56361.2022.9956666},
}
Figure