FastFill: Efficient Compatible Model Update

Florian Jaeckle, Fartash Faghri, Ali Farhadi, Oncel Tuzel, Hadi Pouransari

Updating a large-scale image retrieval system—like the one powering your photo app's face search—is a logistical nightmare. When researchers develop a better "embedding model" (the AI that turns an image into a mathematical vector), the new vectors are usually incompatible with the billions of vectors already stored in the database (the "gallery").

The standard solution is backfilling: re-running the new model on every single image in the gallery. For massive systems, this can take months and cost a fortune. FastFill, presented at ICLR 2023, offers a smarter way to bridge this gap, allowing systems to reap the benefits of a new model almost instantly.

TL;DR

FastFill is an efficient framework for updating retrieval models that uses feature alignment and an uncertainty-based "policy" to decide which gallery images to re-process first. It significantly boosts retrieval accuracy during the transition period and can eliminate model biases (like gender gaps) with only a fraction of the usual computation.

FastFill achieves higher retrieval performance much faster during the backfilling process compared to previous state-of-the-art methods.

What Problem Does This Paper Address?

In modern retrieval, images are mapped to a low-dimensional "embedding space." If you update your model from version A to version B, the embeddings for the same image will land in different spots. If you try to compare a version B query to a version A gallery, the system fails because the "languages" are different.

Previous researchers tried "compatible representation learning," where the new model is forced to be similar to the old one. However, this usually creates a "compatibility tax"—the new model never reaches its full potential because it's being held back by the old one. FastFill addresses this by allowing the new model to be as powerful as possible while using a separate, lightweight transformation to align the old data.

Methods

The FastFill approach consists of two main components:

  1. Feature Alignment with a Dual Loss: Instead of retraining the new model, the authors train a small "transformation" network (an MLP) to map old features into the new space. They use a novel training objective:
  2. Point-to-Point ($L_2$): Minimizes the distance between the transformed old feature and the true new feature.
  3. Point-to-Cluster (Discriminative): Ensures the transformed feature lands near the correct class cluster in the new model's space, preventing "drift" into the wrong categories.
  4. Uncertainty-Based Partial Backfilling: This is the "Fast" in FastFill. Instead of updating the gallery in a random order, they train a model to predict which old features are the least compatible with the new system. By updating these "high-uncertainty" images first, the system's performance jumps much faster than with random updates.

Datasets

The authors evaluated FastFill on three major benchmarks:

  • ImageNet-1k: The gold standard for object recognition.
  • Places-365: A large-scale dataset for scene recognition.
  • VGG-Face2: A massive facial recognition dataset.
  • VGGFace2-Gender-550: A custom, intentionally biased subset (50 female identities vs. 500 male) created to test how quickly FastFill can fix fairness issues.

Key Insights and Ideas

Random backfilling causes an initial drop in performance, whereas FastFill's uncertainty-based ordering yields an immediate accuracy boost.
  • Random Updates Can Hurt: The authors found that updating a gallery in a random order can actually decrease performance initially. This is due to "negative flips"—images that were correctly retrieved by the old model but become "confused" during the messy middle-ground of a partial update.
  • Uncertainty is a Great Compass: You don't need to know the "correct" new feature to know that an old feature is likely to be problematic. By training a model to estimate alignment error, they created a highly effective priority list for updates.
  • Fairness as a Priority: Biased models often fail on minority subgroups. Because these subgroups typically have higher "uncertainty" during a model update, FastFill naturally prioritizes them for backfilling.

Key Results

FastFill consistently outperformed previous state-of-the-art methods (like FCT and BCT) across the board:

  • Accuracy Boosts: On ImageNet, FastFill achieved a +4.4% mAP improvement over previous methods. It saw similar gains on Places-365 (+2.7%) and VGG-Face2 (+1.3%).
  • Rapid Bias Correction: In the gender-biased experiment, the accuracy gap between male and female identities vanished after backfilling only ~25% of the gallery. Using standard random updates, you would have to backfill nearly 100% of the gallery to achieve the same fairness level.
  • Zero-Day Gains: Even with 0% of the gallery re-processed (using only the transformation network), FastFill provides a significant "instant" jump in performance compared to older compatibility methods.

Limitations and Future Work

  • The "When to Stop" Problem: The paper doesn't provide a formal mechanism to decide exactly what percentage of backfilling is "enough" to stop early and save costs.
  • Downstream Retraining: While FastFill aligns features for retrieval (nearest neighbor search), the authors note that if those features are fed into a different downstream classifier, that classifier might still need a full retrain.
  • Architecture Agnostic? While tested on ResNets, further study is needed to see how these alignment transformations hold up when moving between very different architectures (e.g., from a CNN to a Vision Transformer).

Summary updated

BibTeX
@inproceedings{jaeckle2023fastfill,
  author = {Florian Jaeckle and Fartash Faghri and Ali Farhadi and Oncel Tuzel and Hadi Pouransari},
  title = {{FastFill: Efficient Compatible Model Update}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=rnRiiHw8Vy},
}
Figure