Papers › When Prompt-based Incremental Learning Does Not Meet Strong Pretraining

When Prompt-based Incremental Learning Does Not Meet Strong Pretraining

21 Aug 2023ICCV 2023 1arXiv:2308.10445archive 2025-07-28

Yu-Ming Tang, Yi-Xing Peng, Wei-Shi Zheng

Incremental learning aims to overcome catastrophic forgetting when learning deep networks from sequential tasks. With impressive learning efficiency and performance, prompt-based methods adopt a fixed backbone to sequential tasks by learning task-specific prompts. However, existing prompt-based methods heavily rely on strong pretraining (typically trained on ImageNet-21k), and we find that their models could be trapped if the potential gap between the pretraining task and unknown future tasks is large. In this work, we develop a learnable Adaptive Prompt Generator (APG). The key is to unify the prompt retrieval and prompt learning processes into a learnable prompt generator. Hence, the whole prompting process can be optimized to reduce the negative effects of the gap between tasks effectively. To make our APG avoid learning ineffective knowledge, we maintain a knowledge pool to regularize APG with the feature distribution of each class. Extensive experiments show that our method significantly outperforms advanced methods in exemplar-free incremental learning without (strong) pretraining. Besides, under strong retraining, our method also has comparable performance to existing prompt-based models, showing that our method can still benefit from pretraining. Codes can be found at https://github.com/TOM-tym/APG

PaperPDFConference PDFCodeCode 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.10445")

Code

Syntology Ran 14 of 15 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 2 ran · our draft was wrong; 12 ran with no contract checked.

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

tom-tym/apg 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

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

2ran · our draft was wrong
12ran
1unverified

Licence: 0 of the 15 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 TOM-tym/APG. “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.

accuracy_per_task TOM-tym/APG/inclearn/lib/metrics.py official repository ran MIT (permissive) · 81ad48a497957921 · report
check_loss TOM-tym/APG/inclearn/lib/utils.py official repository ran MIT (permissive) · a7bf19b619aa1501 · report
compute_avg_inc_acc TOM-tym/APG/inclearn/lib/results_utils.py official repository ran MIT (permissive) · d00822b962f6dbd1 · report
conv1x1 TOM-tym/APG/inclearn/backbones/resnet.py official repository ran · our draft was wrong MIT (permissive) · d9def42110729a85 · report
conv3x3 TOM-tym/APG/inclearn/backbones/resnet.py official repository ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
cord_metric TOM-tym/APG/inclearn/lib/metrics.py official repository ran MIT (permissive) · d17d58f41b4e0b4f · report
cosine_similarity TOM-tym/APG/inclearn/lib/distance.py official repository ran fingerprinted MIT (permissive) · f7311a4ad1603f3d · report
get_optimizer TOM-tym/APG/inclearn/lib/factory.py official repository ran MIT (permissive) · 9f13ed2fb6c8ca34 · report
get_template_results TOM-tym/APG/inclearn/lib/results_utils.py official repository ran MIT (permissive) · f1e6c771b035f8df · report
old_accuracy TOM-tym/APG/inclearn/lib/metrics.py official repository ran MIT (permissive) · f100fe9c3a36d8c5 · report
squared_euclidian_distance TOM-tym/APG/inclearn/lib/distance.py official repository ran fingerprinted MIT (permissive) · 34d0cb89ddcd7cdd · report
stable_cosine_distance TOM-tym/APG/inclearn/lib/distance.py official repository ran fingerprinted MIT (permissive) · 1f5d558e108778a2 · report
to_onehot TOM-tym/APG/inclearn/lib/utils.py official repository ran fingerprinted MIT (permissive) · 78296d162a14a673 · report
to_smooth_labeling TOM-tym/APG/inclearn/lib/utils.py official repository ran MIT (permissive) · 3c002c14b6cacda1 · report
resnet18 TOM-tym/APG/inclearn/backbones/resnet.py official repository unverified MIT (permissive) · 0db0ec3efa6100c1 · report

Tasks

Exemplar-FreeIncremental LearningPrompt LearningRetrieval

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