This post summarizes the paper "TiC-CLIP: Continual Training of CLIP Models," published at ICLR 2024.
TL;DR
TiC-CLIP introduces the first web-scale benchmarks for time-continual training of vision-language models, revealing that static foundation models like CLIP degrade significantly as the world evolves. The authors demonstrate that a simple rehearsal-based continual training approach can match the performance of retraining from scratch while being up to 4x more computationally efficient.
What Problem Does This Paper Address?
Large multimodal foundation models like CLIP are typically trained on massive, static snapshots of the web. However, the real world is in a state of constant change: new concepts emerge (e.g., COVID-19), and visual styles or definitions shift over time. A model trained on data up to 2020 might struggle with a retrieval task from 2022 because it has never seen the "new" world.
Currently, the standard practice for keeping these models up-to-date is to retrain them from scratch whenever a new pool of data arrives. This is prohibitively expensive, often requiring hundreds of thousands of GPU hours. The authors identify two major gaps: a lack of large-scale benchmarks to study this "Time-Continual" (TiC) problem and a lack of efficient methods to adapt models without full retraining.
Methods
The researchers propose a Time-Continual (TiC) training protocol. Instead of retraining from scratch (the "Oracle" approach), they explore several continual learning strategies:
- Cumulative-All: The champion method. It initializes the model from the previous time-step's checkpoint (warm start) and trains on the union of all available data (new data + replayed old data).
- Sequential: Training only on the new batch of data. While fast, this often leads to "catastrophic forgetting" of older concepts.
- Replay Buffers (-Exp, -Equal): Strategies to reduce the amount of old data stored by subsampling, making the process more memory-efficient.
A key technical insight involves the Learning Rate (LR) schedule. While a linear warmup is essential for the very first training run, the authors found that using it for subsequent continual steps actually hurts performance. A cyclic cosine schedule without warmup for later steps proved most effective.
Datasets
The paper introduces three new web-scale benchmarks by augmenting existing datasets with "crawl-time" metadata:
- TiC-DataComp: The flagship dataset, containing 12.7 billion image-text pairs spanning 2014–2022.
- TiC-YFCC: A 15M subset of YFCC100M (2008–2014).
- TiC-RedCaps: 12M pairs from Reddit (2011–2020).
They also curated dynamic evaluation tasks (classification and retrieval) specifically designed to test a model's ability to handle data from different years, contrasting these with "static" benchmarks like ImageNet.
Key Insights and Ideas
- Static Benchmarks are Deceptive: Standard evaluations like ImageNet accuracy suggest that older models (like OpenAI's original CLIP) are still robust. However, the new dynamic benchmarks reveal a significant "performance gap" on recent data that static benchmarks completely miss.
- The "Timeless" vs. "Dynamic" Divide: Some categories are timeless (e.g., "bananas"), while others evolve rapidly. For instance, the visual definition of a "mask" shifted from masquerade-style to surgical-style during the pandemic.
- Replay is Non-Negotiable: Simple sequential training fails because the model forgets. Replaying even a small amount of old data significantly stabilizes performance on both old and new tasks.
- Compute Efficiency: Continual training provides a "free lunch"—matching the best possible performance of an Oracle at a fraction of the cost.
Key Results
- Legacy Decay: OpenAI’s CLIP (trained up to 2020) loses approximately 8% zero-shot accuracy on retrieval tasks from 2021–2022 compared to models trained on more recent data.
- Efficiency Gains: The "Cumulative-All" method achieves performance competitive with the Oracle while being 2.7x to 4x more computationally efficient.
- Forgetting: Without replay (the Sequential method), models showed a performance drop of over 10% on older tasks compared to the Oracle.
Limitations and Future Work
The authors acknowledge several areas for future exploration:
- Granularity: The current study uses yearly time steps; future work should explore monthly or even more frequent updates.
- LR Schedules: While cyclic cosine works, there may be "forward-looking" schedules better suited for infinite data streams that don't require resetting the LR.
- Data Filtering: Current filtering techniques (like CLIP-based filtering) can inadvertently bias datasets toward older concepts. Developing time-aware filtering is a priority.
- Model Scope: The study focuses on CLIP; extending these findings to other large-scale architectures, such as Large Language Models (LLMs), is a natural next step.
Summary updated