SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_29231 · AAAI · 2024

Evolving Parameterized Prompt Memory for Continual Learning

Yuhang He, Xiang Song, Qi Yang, Xing Wei, Yihong Gong, Zhiheng Ma, Muhammad Kurniawan

Code that ran

5 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/aaai_29231.json · badge: /api/ran/aaai_29231.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
MIV-XJTU/EvoPrompt canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
conv3x3 Ran
ran on a synthesized input
MIV-XJTU/EvoPrompt/inclearn/convnet/my_resnet2.py
code served (permissive licence) · get_code("2ed2841a05feb6a0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Conv2d. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "inplanes": 3,
    "planes": 64,
    "stride": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
densenet121 Ran
ran; our contract draft was wrong, not the code
MIV-XJTU/EvoPrompt/inclearn/convnet/densenet.py
code served (permissive licence) · get_code("451415fcfa441c98")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DenseNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

def densenet121(pretrained=False, progress=True, **kwargs):
    """Constructs a DenseNet-121 model.
    
    Args:
        pretrained (bool): If True, returns a model pre-trained on ImageNet
        progress (bool): If True, displays a progress bar for downloading the model
    """
    model = DenseNet(num_init_features=64, growth_rate=32, block_config=(6, 12, 24, 16), **kwargs)
    if pretrained:
        _load_state_dict(model, model_urls['densenet121'], progress)
    return model

ARGS = {
    'pretrained': False,
    'progress': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DenseNet — a DenseNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DenseNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_tune_config Ran
ran on a synthesized input
MIV-XJTU/EvoPrompt/hyperfind.py
code served (permissive licence) · get_code("041545ccfa0602d2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import yaml
import tempfile
from ray import tune

# Create a temporary YAML file for tune_options
tune_yaml_content = """
learning_rate: 0.001
batch_size: 32
var:hidden_size:
  - 64
  - 128
dropout: 0.5
epochs: 10
"""

with tempfile.NamedTemporaryFile(mode='w', suffix='.yaml', delete=False) as f:
    f.write(tune_yaml_content)
    tune_options_file = f.name

# Create temporary options files
options_files_list = []
for i in range(2):
    with tempfile.NamedTemporaryFile(mode='w', suffix='.txt', delete=False) as f:
        f.write(f"option_file_{i}")
        options_files_list.append(f.name)

ARGS = {
    'tune_options': tune_options_file,
    'options_files': options_files_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
ray, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resnet20 Ran
ran; our contract draft was wrong, not the code
MIV-XJTU/EvoPrompt/inclearn/convnet/cifar_resnet.py
code served (permissive licence) · get_code("4c4881e69064c66b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned CifarResNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import math

torch.manual_seed(0)

ARGS = {
    "num_classes": 10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CifarResNet — a CifarResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CifarResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resnet20mnist Ran
ran; our contract draft was wrong, not the code
MIV-XJTU/EvoPrompt/inclearn/convnet/cifar_resnet.py
code served (permissive licence) · get_code("03df5c35f5387ce2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned CifarResNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import math

torch.manual_seed(0)

ARGS = {
    'num_classes': 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CifarResNet — a CifarResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CifarResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
densenet161 Not yet run
unverified (harvested, no recorded run)
MIV-XJTU/EvoPrompt/inclearn/convnet/densenet.py
code served (permissive licence) · get_code("03fc520ee2649d09")
How it ran

no invocation recorded.

densenet169 Not yet run
unverified (harvested, no recorded run)
MIV-XJTU/EvoPrompt/inclearn/convnet/densenet.py
code served (permissive licence) · get_code("782f6735a49d9c62")
How it ran

no invocation recorded.

resnet10mnist Not yet run
unverified (harvested, no recorded run)
MIV-XJTU/EvoPrompt/inclearn/convnet/cifar_resnet.py
code served (permissive licence) · get_code("b639f52b0ffa2340")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 2 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
densenet121 8 other papers
8 dated earlier
1905.00641 (2019-05)
RetinaFace: Single-stage Dense Face Localisation in the Wild
1912.00385 (2019-12)
The Group Loss for Deep Metric Learning
2010.11742 (2020-10)
Learning Black-Box Attackers with Transferable Priors and Query Feedback
and 5 more not named here
densenet161 8 other papers
8 dated earlier
1905.00641 (2019-05)
RetinaFace: Single-stage Dense Face Localisation in the Wild
1905.11926 (2019-05)
Network Deconvolution
1912.00385 (2019-12)
The Group Loss for Deep Metric Learning
and 5 more not named here
densenet169 8 other papers
8 dated earlier
1905.00641 (2019-05)
RetinaFace: Single-stage Dense Face Localisation in the Wild
1905.11926 (2019-05)
Network Deconvolution
1912.00385 (2019-12)
The Group Loss for Deep Metric Learning
and 5 more not named here
resnet20 2 other papers
2 dated earlier
aaai_16351 (2021 (year only))
DPFPS: Dynamic and Progressive Filter Pruning for Compressing Convolutional Neural Networks from Scratch
2309.02995 (2023-09)
Continual Evidential Deep Learning for Out-of-Distribution Detection
resnet10mnist 1 other paper
1 dated earlier
2309.02995 (2023-09)
Continual Evidential Deep Learning for Out-of-Distribution Detection
resnet20mnist 1 other paper
1 dated earlier
2309.02995 (2023-09)
Continual Evidential Deep Learning for Out-of-Distribution Detection

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-24.

Repositories linked to this paper

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

Abstract

Recent studies have demonstrated the potency of leveraging prompts in Transformers for continual learning (CL). Nevertheless, employing a discrete key-prompt bottleneck can lead to selection mismatches and inappropriate prompt associations during testing. Furthermore, this approach hinders adaptive prompting due to the lack of shareability among nearly identical instances at more granular level. To address these challenges, we introduce the Evolving Parameterized Prompt Memory (EvoPrompt), a novel method involving adaptive and continuous prompting attached to pre-trained Vision Transformer (ViT), conditioned on specific instance. We formulate a continuous prompt function as a neural bottleneck and encode the collection of prompts on network weights. We establish a paired prompt memory system consisting of a stable reference and a flexible working prompt memory. Inspired by linear mode connectivity, we progressively fuse the working prompt memory and reference prompt memory during inter-task periods, resulting in continually evolved prompt memory. This fusion involves aligning functionally equivalent prompts using optimal transport and aggregating them in parameter space with an adjustable bias based on prompt node attribution. Additionally, to enhance backward compatibility, we propose compositional classifier initialization, which leverages prior prototypes from pre-trained models to guide the initialization of new classifiers in a subspaceaware manner. Comprehensive experiments validate that our approach achieves state-of-the-art performance in both class and domain incremental learning scenarios. Source code is available at https://github.com/MIV-XJTU/EvoPrompt.

For agents

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

get_harvested_code_for_paper("aaai_29231")
get_code_for_paper("aaai_29231")
have("aaai_29231")

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

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

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

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

Connect an agent — have() is free.