FastFill: Efficient Compatible Model Update

Florian Jaeckle, Fartash Faghri, Ali Farhadi, Oncel Tuzel, Hadi Pouransari
3/8/2023
cs.CVcs.IRcs.LG

No official code found. Best implementation: apple/ml-fct (54 stars, last commit 2023-03-02).

Abstract

In many retrieval systems the original high dimensional data (e.g., images) is mapped to a lower dimensional feature through a learned embedding model. The task of retrieving the most similar data from a gallery set to a given query data is performed through a similarity comparison on features. When the embedding model is updated, it might produce features that are not comparable/compatible with features already in the gallery computed with the old model. Subsequently, all features in the gallery need to be re-computed using the new embedding model -- a computationally expensive process called backfilling. Recently, compatible representation learning methods have been proposed to avoid backfilling. Despite their relative success, there is an inherent trade-off between the new model performance and its compatibility with the old model. In this work, we introduce FastFill: a compatible model update process using feature alignment and policy based partial backfilling to promptly elevate retrieval performance. We show that previous backfilling strategies suffer from decreased performance and demonstrate the importance of both the training objective and the ordering in online partial backfilling. We propose a new training method for feature alignment between old and new embedding models using uncertainty estimation. Compared to previous works, we obtain significantly improved backfilling results on a variety of datasets: mAP on ImageNet (+4.4\%), Places-365 (+2.7\%), and VGG-Face2 (+1.3\%). Further, we demonstrate that when updating a biased model with FastFill, the minority subgroup accuracy gap promptly vanishes with a small fraction of partial backfilling.

View on arXivView PDF

Code Implementations(1)

apple/ml-fctCommunity100%

Research publication code for "Forward Compatible Training for Large-Scale Embedding Retrieval Systems", CVPR 2022, and "FastFill: Efficient Compatible Model Update", ICLR 2023

548Shell, PythonApr 13, 20223 years agoNOASSERTION

Cite this paper

@article{jaeckle2023fastfill,
  title  = {FastFill: Efficient Compatible Model Update},
  author = {Florian Jaeckle and Fartash Faghri and Ali Farhadi and Oncel Tuzel and Hadi Pouransari},
  year   = {2023},
  eprint = {2303.04766},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.04766v1},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.04766.svg)](https://codeofpaper.com/paper/2303.04766)

Discussion