Premonition: Using Generative Models to Preempt Future Data Changes in Continual Learning

Mark D. McDonnell, Dong Gong, Ehsan Abbasnejad, Anton van den HengelarXiv 2024 · DOI

Abstract

Continual Learning (CL) aims to enable AI models to learn from a continuous stream of data without suffering from catastrophic forgetting. Traditional methods are often reactive, dealing with data as it arrives or relying on stored exemplars. This paper introduces Premonition, a proactive framework that leverages the generative capabilities of Large Language Models (LLMs) and text-to-image models to anticipate future data. By generating synthetic datasets within a predefined "realm" (e.g., birds or plants), Premonition allows for domain-specific pre-training that equips models with robust features before they encounter real-world tasks. Our results show significant accuracy improvements across multiple fine-grained classification datasets, even when synthetic images contain artifacts.

Introduction: The Challenge of Continual Learning

In the field of machine learning, the ability to learn incrementally is a hallmark of intelligence. However, standard neural networks struggle with catastrophic forgetting, where new information overwrites old knowledge. In Exemplar-Free Class Incremental Learning (EFCIL), this problem is exacerbated because the model cannot store previous data due to privacy or memory constraints.

Most CL research treats the future as entirely unpredictable. Premonition challenges this assumption by arguing that in many practical applications, the general "realm" of the problem is known. For instance, a botanical survey drone will primarily encounter plants. By defining this realm, we can use generative AI to "pre-visualize" potential future classes, effectively preparing the model for data it hasn't seen yet.

The Premonition Framework

The Premonition pipeline consists of four main stages designed to bridge the gap between abstract knowledge and visual representation.

The Premonition pipeline: from realm definition to synthetic pre-training for continual learning.
  1. Realm Definition: A broad semantic category is identified (e.g., "Birds").
  2. LLM "Premonition": GPT-4 is prompted to act as a taxonomic expert, generating a comprehensive list of sub-classes and detailed visual descriptions. For example, it might list scientific names of bird species along with descriptions of their plumage and distinctive features.
  3. Synthetic Image Generation: These textual descriptions are fed into a generative model like Stable Diffusion to create a large-scale, labeled synthetic dataset.
  4. Supervised Pre-training: A backbone network (such as ResNet50) is pre-trained on this synthetic data. Once the model has learned these realm-specific features, the synthetic classification head is discarded. The resulting backbone serves as the starting point for standard EFCIL methods.

Experimental Evaluation

The authors evaluated Premonition across three distinct realms using ten fine-grained image classification datasets:

  • Birds: CUB-200, NABird, Omnibenchmark (OB)-bird, and iNaturalist-2018-aves.
  • Food: Food-101, OB-food, and Food2K.
  • Plants: 102 Flowers, OB-plants, and Pl@ntNet-300K.

These datasets are notoriously difficult due to their fine-grained nature—requiring the model to distinguish between very similar species—and their long-tailed distributions.

Key Insights

The Utility of "Imperfect" Synthetic Data

A surprising finding was that the "synthetic gap"—the visual difference between generated and real images—did not hinder performance. Even when Stable Diffusion produced images with artifacts or anatomical inaccuracies, the diversity of the synthetic classes provided enough structural information for the model to learn useful features.

Realm Specificity and Pre-training

The effectiveness of Premonition is highly dependent on semantic relevance. Pre-training on a mismatched realm (e.g., using synthetic birds for a plant task) can actually degrade performance. Furthermore, the study found that generating synthetic data before the learning stream (Strategy 2: Pre-training) is significantly more effective than generating synthetic versions of old classes during the stream (Strategy 1: Data Replacement).

Performance Gains

When integrated with state-of-the-art CIL methods like RanPAC, Premonition yielded accuracy boosts of 4.6% to 7.9% on bird datasets compared to standard ImageNet-1K pre-training. In several instances, models pre-trained solely on synthetic "Premonition" data outperformed those starting from massive, real-world datasets like ImageNet.

Limitations and Future Work

While Premonition shows great promise, it has limitations. The performance gains for Vision Transformers (ViT) were more modest than for ResNet50, likely because ViTs are already highly effective at extracting generic features. Additionally, the computational cost of generating hundreds of thousands of synthetic images is non-trivial, though it remains an "offline" cost.

Future research will explore using more advanced generative models to further narrow the synthetic gap and investigate methods for automatically defining realms in more open-ended environments.

Summary updated

BibTeX
@misc{mcdonnell2024premonition,
  author = {Mark D. McDonnell and Dong Gong and Ehsan Abbasnejad and Anton van den Hengel},
  title = {{Premonition: Using Generative Models to Preempt Future Data Changes in Continual Learning}},
  year = {2024},
  eprint = {2403.07356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.07356},
}
Figure