Papers › CTP: Towards Vision-Language Continual Pretraining via Compatible Momentum Contrast...

CTP: Towards Vision-Language Continual Pretraining via Compatible Momentum Contrast and Topology Preservation

14 Aug 2023arXiv:2308.07146archive 2025-07-28

Hongguang Zhu, Yunchao Wei, Xiaodan Liang, Chunjie Zhang, Yao Zhao

Vision-Language Pretraining (VLP) has shown impressive results on diverse downstream tasks by offline training on large-scale datasets. Regarding the growing nature of real-world data, such an offline training paradigm on ever-expanding data is unsustainable, because models lack the continual learning ability to accumulate knowledge constantly. However, most continual learning studies are limited to uni-modal classification and existing multi-modal datasets cannot simulate continual non-stationary data stream scenarios. To support the study of Vision-Language Continual Pretraining (VLCP), we first contribute a comprehensive and unified benchmark dataset P9D which contains over one million product image-text pairs from 9 industries. The data from each industry as an independent task supports continual learning and conforms to the real-world long-tail nature to simulate pretraining on web data. We comprehensively study the characteristics and challenges of VLCP, and propose a new algorithm: Compatible momentum contrast with Topology Preservation, dubbed CTP. The compatible momentum model absorbs the knowledge of the current and previous-task models to flexibly update the modal feature. Moreover, Topology Preservation transfers the knowledge of embedding across tasks while preserving the flexibility of feature adjustment. The experimental results demonstrate our method not only achieves superior performance compared with other baselines but also does not bring an expensive training burden. Dataset and codes are available at https://github.com/KevinLight831/CTP.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.07146")

Code

Syntology Ran 10 of 14 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 7 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kevinlight831/ctp officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 10 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
1ran · our draft was wrong
1ran · fixture could not drive it
7ran
4unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kevinlight831/ctp. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_acc kevinlight831/ctp/utils.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · aa81d03f07735ab8 · report
compute_ewc kevinlight831/ctp/train/train_EWC.py official repository ran MIT (permissive) · e0aecd946799c666 · report
compute_features kevinlight831/ctp/models/exemplar.py official repository ran MIT (permissive) · 34cd28d00f703058 · report
cosine_scheduler kevinlight831/ctp/utils.py official repository ran MIT (permissive) · f7ce70abc24e5b7a · report
interpolate_pos_embed kevinlight831/ctp/models/vit.py official repository ran · our draft was wrong MIT (permissive) · c6ec173f19f5c34d · report
is_url kevinlight831/ctp/models/model_utils.py official repository ran · violated contract MIT (permissive) · 4d1d9c47619920ba · report
itm_eval kevinlight831/ctp/product_evaluation.py official repository ran MIT (permissive) · 7ceaadad301f8eb8 · report
merge_data kevinlight831/ctp/utils.py official repository ran MIT (permissive) · 610c6d50aa14ce9c · report
read_json kevinlight831/ctp/product_evaluation.py official repository ran MIT (permissive) · a9cfe36eb8375795 · report
update_memory kevinlight831/ctp/models/exemplar.py official repository ran MIT (permissive) · d32c3a0e4ff678d7 · report
all_gather_with_grad kevinlight831/ctp/models/clip_pretrain.py official repository unverified MIT (permissive) · 0ec9fc2025c16f65 · report
compute_image_caption_features kevinlight831/ctp/models/exemplar.py official repository unverified MIT (permissive) · d03c46a963c94da7 · report
concat_all_gather kevinlight831/ctp/models/clip_pretrain.py official repository unverified MIT (permissive) · 73cecca9f3575f09 · report
load_tf_weights_in_bert kevinlight831/ctp/models/xbert.py official repository unverified MIT (permissive) · e4471ca16a2e77e8 · report

Tasks

Continual LearningContinual Pretraining

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections