GP-Tree: A Gaussian Process Classifier for Few-Shot Incremental Learning

Idan Achituve, Aviv Navon, Yochai Yemini, Gal Chechik, Ethan Fetaya

Abstract: Gaussian processes (GPs) are non-parametric, flexible models that work well in many tasks. Combining GPs with deep learning methods via deep kernel learning (DKL) is especially compelling due to their ability to provide well-calibrated uncertainty and generalize from small datasets. However, standard GPs face significant scalability and multi-class classification hurdles. GP-Tree addresses these by introducing a hierarchical Gaussian Process classifier designed to scale to large datasets and many classes, excelling particularly in Few-Shot Incremental Learning (FSCIL).

The Challenge: Scaling GPs and Catastrophic Forgetting

Gaussian Processes are beloved in the Bayesian community for their robust uncertainty quantification and small-data generalization. However, they traditionally suffer from two major limitations:

  1. Scalability: Standard GPs have a computational complexity of $O(n^3)$, making them prohibitively expensive for large datasets.
  2. Multi-class Classification: Unlike regression, multi-class classification lacks a closed-form solution because the categorical likelihood is non-Gaussian. Existing workarounds, such as Polya-Gamma augmentation, often fail to scale efficiently as the number of classes grows.

These limitations become especially apparent in Few-Shot Incremental Learning (FSCIL). In FSCIL, models must learn new classes from just a handful of examples without "forgetting" the base classes they were originally trained on. While standard neural networks are notoriously prone to "catastrophic forgetting," the non-parametric nature of GPs makes them theoretically ideal for this task—if the scalability and multi-class hurdles can be overcome.

Introducing GP-Tree

To solve these challenges, the authors introduce GP-Tree, a framework that reimagines multi-class classification as a hierarchy of binary decisions.

Core Mechanisms

  • Semantic Tree Structure: Instead of deploying one massive multi-class GP, the model utilizes a tree where every internal node is a binary GP classifier. To optimize this tree, the authors employ divisive hierarchical clustering (k-means++ on class prototypes) to ensure semantically similar classes are grouped together. This makes the binary classification task at each node significantly easier.
  • Polya-Gamma Augmentation: At each node, a Polya-Gamma scheme is used to make the mathematics tractable. This allows the posterior to become Gaussian when conditioned on auxiliary variables, enabling efficient inference.
  • Inference Flexibility: GP-Tree supports both Variational Inference (VI) (using inducing points to scale to large base datasets) and Gibbs Sampling (to achieve high accuracy on the small "novel" datasets encountered during incremental steps).
  • Deep Kernel Learning (DKL): To process complex, high-dimensional data like images, GP-Tree is placed on top of a deep neural network (e.g., ResNet-18). The network learns a feature embedding that serves as the input space for the GPs.

Key Insights

The architecture of GP-Tree yields several powerful advantages:

  • Logarithmic Scaling: Because the model is structured as a tree, the number of binary tasks required to classify an image grows logarithmically with the number of classes, rather than linearly. This allows GP-Tree to maintain high accuracy even as the class count exceeds 60, a point where traditional GP methods typically collapse.
  • Inducing Points as "Memory": In the incremental learning setting, "inducing points" (learned pseudo-inputs representing the data distribution) act as a compact summary of the base classes. This allows the model to retain knowledge of older classes without needing to store the original training images.

Experimental Results

The paper evaluates GP-Tree across several standard and fine-grained benchmarks, including CUB-200-2011, CIFAR-10 & CIFAR-100, and mini-ImageNet.

  • Superior Scaling: On the CUB dataset, as the number of classes scaled from 4 to 60, GP-Tree significantly outperformed other GP baselines like SBM-GP and Logistic-Softmax (LSM). At 60 classes, GP-Tree achieved approximately 70% accuracy, while the nearest GP competitor trailed at roughly 65%.
  • Beating the "Forgetting" Curve: In incremental learning scenarios on mini-ImageNet, GP-Tree demonstrated remarkable resilience. While state-of-the-art non-Bayesian methods like PODNet started with higher initial accuracy on base classes, GP-Tree overtook them by the 5th incremental session, proving vastly superior at mitigating catastrophic forgetting over long sequences of new tasks.
  • DKL Integration: When combined with Deep Kernel Learning on CIFAR-100, GP-Tree achieved 72.07% accuracy, outperforming Stochastic Variational DKL (70.61%).

Limitations and Future Work

While GP-Tree represents a significant step forward for Bayesian incremental learning, the authors note a few areas for future improvement:

  • Base Class Performance: GP-Tree is exceptional at retaining knowledge, but its initial performance on large "base" datasets is slightly lower than some specialized, non-Bayesian incremental learning methods.
  • Frozen Backbone: In the current FSCIL setup, the neural network backbone is frozen after the initial training phase. Finding a method to incrementally update the backbone without triggering catastrophic forgetting remains a compelling next step.
  • Dynamic Tree Restructuring: Currently, the tree is restructured to accommodate new classes. Future iterations could explore more dynamic, organic ways to grow the tree as the model encounters increasingly diverse data streams.

Summary updated

BibTeX
@inproceedings{achituve2021gp,
  author = {Idan Achituve and Aviv Navon and Yochai Yemini and Gal Chechik and Ethan Fetaya},
  title = {{GP-Tree: A Gaussian Process Classifier for Few-Shot Incremental Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=lOeLQkSqE2S},
}
Figure