GALOT: Generative Active Learning via Optimizable Zero-shot Text-to-image Generation

Hanbin Hong, Shenao Yan, Shuya Feng, Yuan HongarXiv 2024

Abstract

Active Learning (AL) represents a crucial methodology within machine learning, emphasizing the identification and utilization of the most informative samples for efficient model training. However, a significant challenge of AL is its dependence on the limited labeled data samples and data distribution, resulting in limited performance. To address this limitation, this paper integrates the zero-shot text-to-image (T2I) synthesis and active learning by designing a novel framework that can efficiently train a machine learning (ML) model sorely using the text description. Specifically, we leverage the AL criteria to optimize the text inputs for generating more informative and diverse data samples, annotated by the pseudo-label crafted from text, then served as a synthetic dataset for active learning. This approach reduces the cost of data collection and annotation while increasing the efficiency of model training by providing informative training samples, enabling a novel end-to-end ML task from text description to vision models. Through comprehensive evaluations, our framework demonstrates consistent and significant improvements over traditional AL methods.

Introduction

Active Learning (AL) aims to minimize human labeling effort by selecting the most informative data points from an unlabeled pool. However, traditional AL is constrained by the diversity of the existing data pool and the persistent "annotation tax" of human labeling. GALOT (Generative Active Learning via Optimizable Zero-shot Text-to-image Generation) overcomes these hurdles by using generative AI to synthesize exactly the kind of images a model finds most challenging. By optimizing text embeddings to maximize uncertainty, GALOT generates high-quality synthetic data with automatic pseudo-labels, enabling a "text-to-model" pipeline that can function even without a pre-existing image dataset.

Methodology: The Generative Active Learning Loop

The core of GALOT is a closed-loop system that treats text-to-image (T2I) generation as an optimizable process. Rather than using static prompts, the framework treats text embeddings as variables.

Overview of the GALOT framework showing the optimization loop between text embeddings and the vision model.

The process involves four key steps:

  1. T2I Foundation: Utilizing pre-trained diffusion models like Stable Diffusion 2.1 to generate visual content.
  2. Optimizable Embeddings: GALOT calculates the gradient of an AL acquisition function (e.g., Shannon Entropy) and backpropagates it through the diffusion process. This tweaks the text embeddings to produce images that target the vision model's "uncertainty zones."
  3. Pseudo-Labeling: Since images are generated from specific class-based prompts, they are automatically assigned accurate labels, removing the need for human annotators.
  4. Joint Sampling: The framework can optionally combine these optimized synthetic images with a small set of real, human-labeled images for enhanced performance.

Experimental Results

The researchers evaluated GALOT on CIFAR-10, CIFAR-100, and TinyImageNet. A key finding was the "Text-to-Model" capability: GALOT achieved 58.63% accuracy on CIFAR-10 using zero real images, relying entirely on the knowledge embedded in the generative model.

Performance comparison of GAL, traditional AL, and the hybrid AL+GAL approach across three benchmarks.

As shown in the figure above, GALOT (labeled as GAL/AL+GAL) consistently outperforms traditional state-of-the-art AL methods. On CIFAR-100, GALOT showed a maximum improvement of 8.78% over traditional methods. When using "Joint Sampling" (AL+GAL), the framework reached 92.46% accuracy on CIFAR-10 with only 10,000 labels—nearly matching the performance of a fully supervised model (95.36%).

Key Insights and Discussion

  • Informativeness is Optimizable: The study demonstrates that generating images specifically designed to be "confusing" for the current model leads to significantly faster convergence than random generation.
  • Synthetic Data Reusability: Synthetic datasets generated for one architecture (e.g., ResNet18) were found to be effective for others (e.g., MobileNetV2), suggesting that informativeness is a task-level property.
  • Robustness: Human evaluation confirmed that pseudo-labels remain highly accurate even when text embeddings are distorted during optimization to maximize informativeness.

Conclusion and Future Work

GALOT represents a paradigm shift in Active Learning, moving from "selecting" data to "creating" it. While the computational cost of backpropagating through diffusion models is higher than traditional selection, the savings in human annotation and the ability to train models from text descriptions alone are significant. Future work will focus on extending this to other modalities like audio and video, and improving the efficiency of the gradient estimation process.

Summary updated

BibTeX
@misc{hong2024galot,
  author = {Hanbin Hong and Shenao Yan and Shuya Feng and Yan Yan and Yuan Hong},
  title = {{GALOT: Generative Active Learning via Optimizable Zero-shot Text-to-image Generation}},
  year = {2024},
  eprint = {2412.16227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.16227},
}
Figure