A Practitioner's Guide to Continual Multimodal Pretraining
Karsten Roth, Vishaal Udandarao, Sebastian Dziadzio, Ameya Prabhu, Mehdi Cherti, Oriol Vinyals, Olivier Hénaff, Samuel Albanie, Matthias Bethge, Zeynep Akata
TL;DR
This work addresses the challenge of keeping multimodal foundation models up-to-date under realistic, minor-update deployment scenarios. It introduces FoMo-in-Flux, a large, controllable benchmark with 63 datasets and Memory-Adjusted-FLOPs to study long-horizon continual multimodal pretraining, and provides a comprehensive, data-, method-, and recipe-centered analysis. Key findings show that model merging offers the most favorable accumulation-retention trade-offs across update horizons, learning-rate meta-schedules both bolster retention and knowledge gain, larger models aid long-term adaptation, and replaying buffered data is crucial for stable continual updates. The results yield practical guidelines for real-world deployment, including when to use major versus minor updates, how to schedule learning rates across tasks, and how to allocate compute and data across adaptation, pretraining, and buffering to minimize forgetting while maximizing knowledge gain.
Abstract
Multimodal foundation models serve numerous applications at the intersection of vision and language. Still, despite being pretrained on extensive data, they become outdated over time. To keep models updated, research into continual pretraining mainly explores scenarios with either (1) infrequent, indiscriminate updates on large-scale new data, or (2) frequent, sample-level updates. However, practical model deployment often operates in the gap between these two limit cases, as real-world applications often demand adaptation to specific subdomains, tasks or concepts -- spread over the entire, varying life cycle of a model. In this work, we complement current perspectives on continual pretraining through a research test bed as well as provide comprehensive guidance for effective continual model updates in such scenarios. We first introduce FoMo-in-Flux, a continual multimodal pretraining benchmark with realistic compute constraints and practical deployment requirements, constructed over 63 datasets with diverse visual and semantic coverage. Using FoMo-in-Flux, we explore the complex landscape of practical continual pretraining through multiple perspectives: (1) A data-centric investigation of data mixtures and stream orderings that emulate real-world deployment situations, (2) a method-centric investigation ranging from simple fine-tuning and traditional continual learning strategies to parameter-efficient updates and model merging, (3) meta learning rate schedules and mechanistic design choices, and (4) the influence of model and compute scaling. Together, our insights provide a practitioner's guide to continual multimodal pretraining for real-world deployment. Our benchmark and code is here: https://github.com/ExplainableML/fomo_in_flux.
