SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.14721 · IJCAI · 2024

Dynamically Anchored Prompting for Task-Imbalanced Continual Learning

Yizhou Chen, Yan Jin, Mengke Li, Yang Lu, Zhiqi Kang, Hanzi Wang, Chenxing Hong

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 8 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2404.14721.json · badge: /api/ran/2404.14721.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
chenxing6666/dap canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
chenxing6666/DAP community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
Prompt Ran
ran on a synthesized input · constructed an object; no result was computed
chenxing6666/DAP/prompt.py
pointer only (licence: NONE) · get_code("b3608e3a49d81351")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/DAP 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.

cal_center Ran
ran; our contract draft was wrong, not the code
chenxing6666/dap/engine.py
pointer only (licence: NONE) · get_code("05daf37a4c63d9a8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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.

cal_latestsimilarity_loss Ran
ran; our contract draft was wrong, not the code
chenxing6666/dap/engine.py
pointer only (licence: NONE) · get_code("ff19793f180a3567")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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.

cal_similarity_loss Ran
ran; our contract draft was wrong, not the code
chenxing6666/dap/engine.py
pointer only (licence: NONE) · get_code("618c3f1cdcff5502")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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.

checkpoint_filter_fn Ran
ran; our contract draft was wrong, not the code
chenxing6666/dap/vision_transformer.py
pointer only (licence: NONE); the stored copy get_code serves, from skyofbeginning/fedmgp, is pointer only (licence: NONE) · get_code("ee95af3ec5c38df5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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.

get_init_file Ran
ran; our contract draft was wrong, not the code
chenxing6666/dap/run_with_submitit.py
pointer only (licence: NONE) · get_code("9c90a0600bfdb124")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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.

get_init_weights_vit Ran
ran; our contract draft was wrong, not the code
chenxing6666/dap/vision_transformer.py
pointer only (licence: NONE); the stored copy get_code serves, from skyofbeginning/fedmgp, is pointer only (licence: NONE) · get_code("6c600a2f0f2361f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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.

get_shared_folder Ran
ran; our contract draft was wrong, not the code
chenxing6666/dap/run_with_submitit.py
pointer only (licence: NONE) · get_code("8e194e74ffb0e8ec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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)
chenxing6666/dap/vision_transformer.py
pointer only (licence: NONE); the stored copy get_code serves, from skyofbeginning/fedmgp, is pointer only (licence: NONE) · get_code("a6e17b60ed761713")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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.

target_transform Ran
ran, violated the contract we drafted
chenxing6666/dap/datasets.py
pointer only (licence: NONE) · get_code("265ea374aab10001")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenxing6666/dap 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.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 5 later) and 4 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
get_init_weights_vit 25 other papers
16 dated earlier, 1 the same month, 8 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
target_transform 6 other papers
4 dated earlier, 2 later
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
2308.09610 (2023-08)
On the Effectiveness of LayerNorm Tuning for Continual Learning in Vision Transformers
2310.13888 (2023-10)
Towards a General Framework for Continual Learning with Pre-training
and 3 more not named here
checkpoint_filter_fn 4 other papers
3 dated earlier, 1 later
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
2308.09610 (2023-08)
On the Effectiveness of LayerNorm Tuning for Continual Learning in Vision Transformers
2310.13888 (2023-10)
Towards a General Framework for Continual Learning with Pre-training
and 1 more not named here
get_init_file 4 other papers
3 dated earlier, 1 later
2104.12763 (2021-04)
MDETR -Modulated Detection for End-to-End Multi-Modal Understanding
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
2210.05668 (2022-10)
Understanding Embodied Reference with Touch-Line Transformer
and 1 more not named here
resize_pos_embed 4 other papers
2 dated earlier, 2 later
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
2310.13888 (2023-10)
Towards a General Framework for Continual Learning with Pre-training
2407.00113 (2024-07)
Personalized Federated Continual Learning via Multi-granularity Prompt
and 1 more not named here
get_shared_folder 1 other paper
1 dated earlier
2112.08654 (2021-12)
Learning to Prompt for 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-23.

Repositories linked to this paper

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

Abstract

Existing continual learning literature relies heavily on a strong assumption that tasks arrive with a balanced data stream, which is often unrealistic in real-world applications. In this work, we explore task-imbalanced continual learning (TICL) scenarios where the distribution of task data is nonuniform across the whole learning process. We find that imbalanced tasks significantly challenge the capability of models to control the trade-off between stability and plasticity from the perspective of recent prompt-based continual learning methods. On top of the above finding, we propose Dynamically Anchored Prompting (DAP), a prompt-based method that only maintains a single general prompt to adapt to the shifts within a task stream dynamically. This general prompt is regularized in the prompt space with two specifically designed prompt anchors, called boosting anchor and stabilizing anchor, to balance stability and plasticity in TICL. Remarkably, DAP achieves this balance by only storing a prompt across the data stream, therefore offering a substantial advantage in rehearsal-free CL. Extensive experiments demonstrate that the proposed DAP results in 4.5% to 15% absolute improvements over state-of-the-art methods on benchmarks under task-imbalanced settings. Our code is available at https://github.com/chenxing6666/DAP.

For agents

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

get_harvested_code_for_paper("2404.14721")
get_code_for_paper("2404.14721")
have("2404.14721")

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

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

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

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

Connect an agent — have() is free.