TiC-CLIP: Continual Training of CLIP Models

Saurabh Garg, Mehrdad Farajtabar, Hadi Pouransari, Raviteja Vemulapalli, Sachin Mehta, Oncel Tuzel, Vaishaal Shankar, Fartash Faghri · OpenReview

Abstract

Keeping large foundation models up to date on latest data is inherently expensive. To avoid the prohibitive costs of constantly retraining, it is imperative to continually train these models. This problem is exacerbated by the lack of any large scale continual learning benchmarks or baselines. We introduce the first set of web-scale Time-Continual (TiC) benchmarks for training vision-language models: TiC-DataComp, TiC-YFCC, and TiC-RedCaps with over 12.7B timestamped image-text pairs spanning 9 years (2014--2022). We first use our benchmarks to curate various dynamic evaluations to measure temporal robustness of existing models. We show OpenAI's CLIP (trained on data up to 2020) loses $\approx 8\%$ zero-shot accuracy on our curated retrieval task from 2021--2022 compared with more recently trained models in OpenCLIP repository. We then study how to efficiently train models on time-continuous data. We demonstrate that a simple rehearsal-based approach that continues training from the last checkpoint and replays old data reduces compute by $2.5\times$ when compared to the standard practice of retraining from scratch.

Introduction

Most vision-language models (VLMs) are trained on "static" snapshots of the internet. For example, OpenAI’s CLIP was trained on data up to 2020. However, the internet is dynamic: new concepts emerge (e.g., "COVID-19"), and the visual appearance of existing objects evolves over time. This leads to a significant "performance gap" where legacy models lose accuracy on newer data—a phenomenon known as a lack of temporal robustness. Retraining these massive models from scratch every time new data arrives is prohibitively expensive and unsustainable.

The TiC-CLIP Framework

To address these challenges, we formalize the Time-Continual (TiC) training and evaluation paradigm. The framework consists of three main components: aggregating sequential data blocks, implementing continual training strategies, and conducting both static and dynamic evaluations to measure forward and backward transfer.

The TiC-CLIP framework: (A) Aggregating new data with a replay buffer, (B) Continual training from previous checkpoints, and (C) Static vs. Dynamic evaluation tasks.

We compare several strategies for updating models:

  • Oracle: Retraining from scratch on all accumulated data (the gold standard for accuracy, but the most expensive).
  • Sequential: Training only on the newest data from the previous checkpoint (fast, but suffers from catastrophic forgetting).
  • Cumulative: A rehearsal-based approach starting from the previous checkpoint and training on a mix of new and replayed old data.

Web-Scale Benchmarks

We introduce three new benchmarks by augmenting existing datasets with "crawl-time" metadata to enable temporal studies:

  • TiC-DataComp: 12.7 billion timestamped image-text pairs (2014–2022).
  • TiC-YFCC: 15 million pairs (2008–2014).
  • TiC-RedCaps: 12 million pairs (2011–2020).

These benchmarks allow for Dynamic Evaluation Tasks that test how models handle distribution shifts over time, identifying novel topics or visual changes that occurred after a model's initial training phase.

Results and Efficiency

Our proposed evaluation paradigm reveals a significant performance gap for static models that standard benchmarks like ImageNet fail to capture. By moving to a dynamic evaluation, we can quantify the drift in the visual world and the resulting decay in model relevance.

Comparison of evaluation paradigms and compute efficiency. The proposed dynamic evaluation (middle) highlights a performance gap missed by standard paradigms (left). Rehearsal-based warm-starting (right) achieves parity with retraining from scratch at 2.7x lower compute.

Key findings include:

  • Compute Efficiency: The "Cumulative" rehearsal-based approach achieves performance within 1% of the Oracle while reducing compute by 2.5x to 4x.
  • Zero-Shot Robustness: Continual training on TiC-DataComp closed the 8% accuracy gap on 2021–2022 retrieval tasks compared to the original CLIP.
  • Learning Rate Paradox: We found that a "warm-up" period, while standard for initial training, actually hurts performance in continual learning steps. Maintaining a high maximum learning rate across cycles proved more effective for adapting to new data without losing prior knowledge.

Conclusion

TiC-CLIP demonstrates that complex architectural changes are not required for effective continual learning at scale. Simple rehearsal-based methods, when combined with appropriate learning rate schedules and web-scale timestamped data, provide a path toward keeping foundation models perpetually up-to-date with minimal compute overhead.

Summary updated

Abstract

Keeping large foundation models up to date on latest data is inherently expensive. To avoid the prohibitive costs of constantly retraining, it is imperative to continually train these models. This problem is exacerbated by the lack of any large scale continual learning benchmarks or baselines. We introduce the first set of web-scale Time-Continual (TiC) benchmarks for training vision-language models: TiC-DataCompt, TiC-YFCC, and TiC-RedCaps with over 12.7B timestamped image-text pairs spanning 9 years (2014--2022). We first use our benchmarks to curate various dynamic evaluations to measure temporal robustness of existing models. We show OpenAI's CLIP (trained on data up to 2020) loses $\approx 8\%$ zero-shot accuracy on our curated retrieval task from 2021--2022 compared with more recently trained models in OpenCLIP repository. We then study how to efficiently train models on time-continuous data. We demonstrate that a simple rehearsal-based approach that continues training from the last checkpoint and replays old data reduces compute by $2.5\times$ when compared to the standard practice of retraining from scratch.
BibTeX
@inproceedings{garg2024tic,
  author = {Saurabh Garg and Mehrdad Farajtabar and Hadi Pouransari and Raviteja Vemulapalli and Sachin Mehta and Oncel Tuzel and Vaishaal Shankar and Fartash Faghri},
  title = {{TiC-CLIP: Continual Training of CLIP Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=TLADT8Wrhn},
}
Figure