SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.08568 · CVPR · 2024

Consistent Prompting for Rehearsal-Free Continual Learning

Jun Cen, Xiaobin Chang, Zhanxin Gao

arXiv · PDF · Open in the Atlas

Code that ran

9 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 3 failures of our instrument; 9 no recorded run), measured 2026-11-22; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.08568.json · badge: /api/ran/2403.08568.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Zhanxin-Gao/CPrompt marked official in Papers with Code
Papers with Code archive
7 ran · 9 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("b1240c5b5f4c7eb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Block Ran
ran on a synthesized input · constructed an object; no result was computed
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("ca2b19634b227b1e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LayerScale Ran
ran on a synthesized input · constructed an object; no result was computed
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("a77a876f784480d3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

SimpleLinear Ran
ran on a synthesized input
this paper's copy was not recorded; identical code first harvested from wangkiw/iclr23-memo
pointer only; the stored copy get_code serves, from wangkiw/iclr23-memo, is pointer only (licence: NONE) · get_code("718d523922efedea")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

checkpoint_filter_fn Ran
ran; our contract draft was wrong, not the code
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("3cad525b1e4baa00")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_parameters Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from wangkiw/iclr23-memo
pointer only; the stored copy get_code serves, from wangkiw/iclr23-memo, is pointer only (licence: NONE) · get_code("6bdbe3d6368c4cde")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_init_weights_vit Ran
ran; our contract draft was wrong, not the code
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("aea2fcf3341c72f6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resize_pos_embed Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("cb65e714f821c589")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

tensor_prompt Ran
ran, honoured the contract we drafted
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("238a8354f5b75bd3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BaseLearner Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("9e1c37d27be7b6ce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

CPrompt Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("a762018c452d0f7f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

CPrompt_Net Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("f8e45a7e1e2b2d50")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ViT_KPrompts Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("9c46901e101692a8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_create_vision_transformer Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("56c84285cf17ed82")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_load_weights Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("707bf605b2ea2de4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

init_weights_vit_jax Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("e8b039f71622c9e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

init_weights_vit_moco Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("fe2f154934e66f99")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

init_weights_vit_timm Not yet run
unverified (harvested, no recorded run)
Zhanxin-Gao/CPrompt/models/cprompt.py
pointer only (licence: NONE) · get_code("b0029619c3cefde0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Zhanxin-Gao/CPrompt when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 12 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 5 the same month, 12 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
checkpoint_filter_fn
brick of this paper's assembly: helper
37 other papers
20 dated earlier, 2 the same month, 13 later, 2 same year, order not determinable · 1 only as an assembly brick
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2112.07658 (2021-12)
AdaViT: Adaptive Tokens for Efficient Vision Transformer
and 34 more not named here
get_init_weights_vit
brick of this paper's assembly: helper
25 other papers
14 dated earlier, 1 the same month, 10 later · 1 only as an assembly brick
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
2207.12819 (2022-07)
S-Prompts Learning with Pre-trained Transformers: An Occam's Razor for Domain Incremental Learning
2210.08823 (2022-10)
Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuning
and 22 more not named here
resize_pos_embed
brick of this paper's assembly: helper
20 other papers
10 dated earlier, 2 the same month, 8 later · 1 only as an assembly brick
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2202.07800 (2022-02)
Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizations
and 17 more not named here
LayerScale
brick of this paper's assembly: helper
14 other papers
7 dated earlier, 1 the same month, 6 later · 12 only as an assembly brick
2301.08247 (2023-01)
Multiview Compressive Coding for 3D Reconstruction
2301.10222 (2023-01)
RangeViT: Towards Vision Transformers for 3D Semantic Segmentation in Autonomous Driving
2303.04249 (2023-03)
Where We Are and What We're Looking At: Query Based Worldwide Image Geo-localization Using Hierarchies and Scenes
and 11 more not named here
count_parameters
brick of this paper's assembly: helper
8 other papers
5 dated earlier, 3 later · 2 only as an assembly brick
2204.04662 (2022-04)
FOSTER: Feature Boosting and Compression for Class-Incremental Learning
2205.13218 (2022-05)
A Model or 603 Exemplars: Towards Memory-Efficient Class-Incremental Learning
aaai_26216 (2023 (year only))
Isolation and Impartial Aggregation: A Paradigm of Incremental Learning without Interference
and 5 more not named here
tensor_prompt
brick of this paper's assembly: helper
6 other papers
2 dated earlier, 4 later · 1 only as an assembly brick
2211.13218 (2022-11)
CODA-Prompt: COntinual Decomposed Attention-based Prompting for Rehearsal-Free Continual Learning
2402.04129 (2024-02)
OVOR: OnePrompt with Virtual Outlier Regularization for Rehearsal-Free Class-Incremental Learning
2410.20444 (2024-10)
Vector Quantization Prompting for Continual Learning
and 3 more not named here
SimpleLinear
brick of this paper's assembly: helper
5 other papers
3 dated earlier, 2 later · 1 only as an assembly brick
2204.04662 (2022-04)
FOSTER: Feature Boosting and Compression for Class-Incremental Learning
2205.13218 (2022-05)
A Model or 603 Exemplars: Towards Memory-Efficient Class-Incremental Learning
2308.13305 (2023-08)
Dynamic Residual Classifier for Class Incremental Learning
and 2 more not named here
init_weights_vit_timm
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later · 1 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2304.07193 (2023-04)
DINOv2: Learning Robust Visual Features without Supervision
2404.00228 (2024-04)
InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learning
and 1 more not named here
Attention
brick of this paper's assembly: helper
2 other papers
1 the same month, 1 later · 1 only as an assembly brick
2403.15139 (2024-03)
Deep Generative Model based Rate-Distortion for Image Downscaling Assessment
2604.04420 (2026-04)
Is Prompt Selection Necessary for Task-Free Online Continual Learning?
_load_weights
brick of this paper's assembly: helper
2 other papers
2 later
2404.00228 (2024-04)
InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learning
2602.17559 (2026-02)
Revisiting Weight Regularization for Low-Rank Continual Learning
init_weights_vit_jax
brick of this paper's assembly: helper
2 other papers
2 later · 1 only as an assembly brick
2404.00228 (2024-04)
InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learning
2602.17559 (2026-02)
Revisiting Weight Regularization for Low-Rank Continual Learning
init_weights_vit_moco
brick of this paper's assembly: helper
2 other papers
2 later · 1 only as an assembly brick
2404.00228 (2024-04)
InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learning
2602.17559 (2026-02)
Revisiting Weight Regularization for Low-Rank Continual Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Continual learning empowers models to adapt autonomously to the ever-changing environment or data streams without forgetting old knowledge. Prompt-based approaches are built on frozen pre-trained models to learn the task-specific prompts and classifiers efficiently. Existing prompt-based methods are inconsistent between training and testing, limiting their effectiveness. Two types of inconsistency are revealed. Test predictions are made from all classifiers while training only focuses on the current task classifier without holistic alignment, leading to Classifier inconsistency. Prompt inconsistency indicates that the prompt selected during testing may not correspond to the one associated with this task during training. In this paper, we propose a novel prompt-based method, Consistent Prompting (CPrompt), for more aligned training and testing. Specifically, all existing classifiers are exposed to prompt training, resulting in classifier consistency learning. In addition, prompt consistency learning is proposed to enhance prediction robustness and boost prompt selection accuracy. Our Consistent Prompting surpasses its promptbased counterparts and achieves state-of-the-art performance on multiple continual learning benchmarks. Detailed analysis shows that improvements come from more consistent training and testing. Our code is available at https://github.com/Zhanxin-Gao/CPrompt.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.08568")
get_code_for_paper("2403.08568")
have("2403.08568")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.08568.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.08568.svg)](https://syntology.ai/paper/2403.08568)

Connect an agent — have() is free.