Hyperparameters in Continual Learning: A Reality Check
Paper · 2024 · Sungmin Cha and Kyunghyun Cho
Summary
A continual learning algorithm has to learn new tasks while retaining what it learned from earlier ones. To choose settings such as the learning rate or the strength of a penalty against forgetting, researchers frequently run the same sequence of tasks repeatedly, then report performance on that sequence using the best settings they found. Even when the images used for the final score are held out, the search has already seen how the whole sequence unfolds. Sungmin Cha and Kyunghyun Cho ask how well those settings work when an algorithm encounters a different sequence and the opportunity to tune on it is gone.
Their Generalizable Two-phase Evaluation Protocol, or GTEP, separates the task sequence used to choose hyper-parameters from the one used to evaluate them. The two phases keep the same task structure, such as the number of tasks and the number of classes introduced at each stage. The data are disjoint. In some comparisons the phases draw on separate classes from the same benchmark. In others they use different benchmarks. Each candidate configuration is tried across shuffled class orders during tuning. The selected values are then fixed, and the algorithm trains afresh across orders on the evaluation data.
Across more than 8,000 experiments, the authors apply this procedure to image classification with and without a pretrained starting point. Many recent algorithms look strong during tuning but lose their lead on unseen sequences. Without pretraining, DER generally transfers well, although its parameter count grows as tasks arrive. With pretraining, Ranpac often leads but can be highly unstable on particular sequences. Older methods sometimes beat more recent ones, and BEEF produces invalid training losses on some runs. In one unseen ImageNet-100-2 sequence with 10 tasks, DER achieves 77.12% average accuracy across task stages, while FOSTER achieves 68.41%, using settings chosen on ImageNet-100-1.
The paper makes the case for evaluating accuracy, stability and cost together. An algorithm can finish with strong accuracy while requiring considerable parameter growth, or perform well across most of a sequence while finishing unreliably. GTEP makes these outcomes visible under a specific requirement. The algorithm has to work with settings chosen before it sees the evaluation sequence. The experiments establish the importance of that requirement for offline class-incremental image classification under a known task structure.
Deep dive: Hyperparameters in Continual Learning: A Reality Check
Hyperparameters in Continual Learning tests whether settings chosen on one sequence of image classification tasks still work on an unseen sequence. · about 33 minutes to read
The problem and its context
A learning problem and an evaluation problem
In continual learning, a system trains on tasks as they become available. An image classifier, for instance, receives a group of classes, learns from their examples, and later receives another group. Its next update has to make the new classes recognizable while preserving useful distinctions among the old ones. An update that changes the network too freely can erase prior capabilities. An update that preserves the existing network too aggressively can leave it unable to learn the incoming classes well. The paper uses plasticity for the ability to acquire new knowledge and stability for the ability to retain earlier knowledge.
The authors place their experiments in class-incremental learning, a form of continual learning in which tasks introduce new categories. After training on a task, the classifier is evaluated over all the classes encountered so far. The difficulty therefore goes beyond doing well on the most recent batch of categories. When the label set expands, the classifier has to distinguish those categories from older ones. A history of high scores on the newest classes alone would leave the central question of retention unanswered.
The paper traces early work in the field through task-incremental learning, with approaches that included ways of protecting important parts of a network from later changes. It places Memory Aware Synapses among those early approaches and cites an earlier survey for the field’s development. Memory Aware Synapses and Continual Lifelong Learning with Neural Networks.
As research shifted toward class-incremental learning, one prominent strategy was to save examples from earlier tasks. A small store of those examples, called an exemplar memory, gives the algorithm material to revisit during later training. Other methods added penalties to discourage changes that would compromise earlier learning. Still others increased the network’s capacity as the sequence progressed. Expansion gives the algorithm more room to learn incoming classes, but it raises a practical question about how large the network becomes by the end of training.
Starting from a pretrained image network opened another set of options. Prompt-based methods keep the pretrained network frozen and learn inputs that steer its behavior. The paper describes a progression from pools of prompts to methods that combine, decompose or generate prompts. Representation-based methods use the features produced by the pretrained network. Some summarize each class with a prototype, a representative feature vector used for classification. Others work to make class representations easier to distinguish. The paper evaluates these approaches alongside methods trained without pretraining because the two groups handle continual learning differently and have different costs.
Each family leaves decisions to the person running the experiment. A replay method needs a practical way to combine stored and incoming examples. A regularized method may need a coefficient that determines how strongly it protects old behavior. Prompt-based methods have settings for the prompts themselves, as well as ordinary training settings. The learning rate controls the size of updates, batch size controls how many examples contribute to an update, and the number of epochs controls how many passes training makes through available data. These are hyper-parameters. They shape how learning takes place and are selected separately from the weights learned during training.
What the conventional score measures
A conventional continual learning benchmark can be built from a dataset that the researcher has in full. The researcher uses it to construct an ordered sequence and prepares training and validation examples for each task. A candidate configuration is trained sequentially through that entire sequence. At each stage, it can be scored on the validation examples associated with the classes seen so far. The researcher repeats the process for other configurations, compares the results and chooses the most successful settings. A separate set of test images can then be used for the final report.
That arrangement tests a genuine skill. The algorithm still has to get through sequential training and make predictions on examples that were held out from weight updates. The concern is what the person choosing the settings already knows. Validation can reveal, for instance, that a strong penalty preserves early classes but obstructs learning in later tasks. That information becomes part of the choice of settings even if the final score uses different images. The final test still shares the particular class sequence and dataset that made the choice possible.
The paper also describes studies that use the same validation split for selection and reporting. That introduces a further opportunity for optimistic results because the precise measurements that favored a configuration become its reported performance. Holding out images addresses that reuse. Holding out an entire scenario addresses a separate question, whether the choices that worked on the tuning sequence also work on a different one. This distinction is the authors’ application of a familiar principle of machine learning.
The practical concern follows from the same distinction. The researcher who constructs the benchmark can always return to the beginning and try again after seeing the last task. A team facing a stream of future tasks may have no way to rehearse those tasks before they arrive. What it can sometimes do is prepare a surrogate sequence using available data. Its tuning procedure can learn from that sequence, then carry forward the settings into the real one. A benchmark can reproduce that particular constraint by making the sequence used for final evaluation unavailable during selection.
The authors acknowledge that some studies already use mostly fixed configurations across multiple experiments. That kind of reporting can indicate that a method tolerates some changes to its settings or some changes in the benchmark. The remaining question is whether the information used to arrive at the published configuration included the scenarios subsequently used to support the claim. Explicitly separating the two phases makes the answer part of the design of the experiment.
How earlier evaluations approached the issue
Accuracy at the end of the sequence and accuracy averaged over its stages were already common measures in continual learning. The paper also describes work that drew attention to the costs of computing an update and to the quality of the representations learned during sequential training. These concerns ask different questions of the same experiment. The final classifier’s accuracy describes prediction quality. A cost measurement helps establish how much training or capacity that quality required. An analysis of the features can investigate what the network learned beyond the output of its classifier.
Some earlier work also examined how to choose hyper-parameters. The paper describes a procedure for task-incremental learning that first searches for high plasticity and then selects settings according to how stability deteriorates. Another procedure uses a bandit algorithm for hyper-parameter selection in class-incremental learning. Cha and Cho point out that these procedures introduce their own tuning and training costs. A separate group of studies already reserved a phase for hyper-parameter selection. The authors see these as precedents, and argue that their application had mostly been restricted to narrower settings and sets of algorithms. They include Is Forgetting Less a Good Inductive Bias for Forward Transfer? among the precedents.
GTEP takes up the separation of tuning from evaluation and applies it to a broad comparison within offline class-incremental learning. The proposal changes where settings earn their final score. It uses familiar training procedures and accuracy measures, then asks what happens when the final sequence is removed from the search. That design preserves a recognizable comparison with earlier benchmarks while testing an ability that a score on the tuning sequence alone cannot establish.
The method, step by step
Build a rehearsal for the expected sequence
The first choice is the shape of the task sequence. The experimenter specifies how many tasks each run will have and how the classes will be allocated among them. A sequence may give every task the same number of classes, or it may begin with a large group and introduce the remainder in smaller groups. The tuning and evaluation phases use the same shape. This makes the tuning sequence a rehearsal for the anticipated workload. In the main comparisons, the data and the classes change while the number of stages and the allocation of classes are held fixed.
The next choice is where the two phases get their data. In a high-similarity comparison, the authors take separate class subsets from a shared parent benchmark. The evaluation classes are new to the tuning experiment, while the parent dataset provides a reason to expect some resemblance between the phases. In a low-similarity comparison, the phases use different benchmarks. The paper treats this distinction as a simple operational definition of similarity. It does not assign a numerical similarity score to a pair of scenarios. A cross-benchmark comparison is the test of whether a setting travels across a broader change in the data.
Each phase also needs training and validation data within its own task sequence. The training part supplies examples to the continual learning algorithm. The validation part measures accuracy as the tasks accumulate. In the first phase these measurements guide configuration selection. In the second phase the validation measurements are the final assessment. The paper continues to call that split validation data in its pseudocode. Its experimental role comes from being in the held-out scenario and having no part in choosing the transferred hyper-parameters.
How GTEP selects and evaluates hyperparameters
The steps in order.
Search across complete tuning sequences
For each algorithm, the experimenter defines the choices that can be sampled. Some are general training choices, such as the learning rate and number of epochs. Others belong to the particular algorithm, such as how strongly a distillation term pushes a network toward earlier outputs. The paper includes values used in previous implementations and draws on ranges explored in their original studies. The result is a search over complete configurations. Its output is a collection of values that worked together. It does not isolate the effect of each setting.
The notation begins with the configuration used for a candidate run.
Hᵣ = (h₁, …, hₖ, …, hₖ₌ᴷ)
Here Hᵣ is the configuration for candidate r, and hₖ is the value for hyper-parameter position k. h₁ is the first value, and hₖ₌ᴷ is the value at the last position, where K is the number of hyper-parameters. The parentheses collect the values into an ordered tuple, the ellipses stand for the intervening positions, and = defines the tuple. The paper denotes each position’s pre-defined set of permitted values by h with a subscript k and a superscript Set. It draws a value from the corresponding set for each position.
A candidate configuration is used for several independent training runs. For each run, the network is initialized for that run and the classes are shuffled before they are assigned to tasks. The number of classes allocated to each task follows the chosen scenario structure. Accordingly, runs of the same configuration can place different classes in the first task, group different classes together and make them available in different orders. The run trains through the entire sequence and collects a score using the tuning validation data.
Pᵣᴴᵀ = (1 / S) ∑ₛ₌₁ˢ Pₛᴴᵀ
Pᵣᴴᵀ is the mean tuning performance of configuration r. Pₛᴴᵀ is its performance in trial s, with the candidate r understood from the outer search loop. HT identifies the hyper-parameter tuning phase. S is the total number of trials for the candidate. The ∑ adds the trial scores from s = 1 through S, and 1 / S turns the total into their arithmetic mean. This calculation gives an estimate across possible task orderings instead of letting an isolated order determine the outcome of the search.
The authors use R for the number of sampled configurations. In their experiments R = 30, and S = 5 for both phases. Every algorithm gets the same number of sampled configurations and trials under this design. The search spaces themselves vary with the algorithms. A method with more adjustable components offers more combinations within the same sample budget.
Measure performance along the sequence and at its end
The paper bases selection on final accuracy and average accuracy. Final accuracy, Acc, comes from the test made after training the last task. By then all the classes in the sequence have been introduced, so the final score measures classification across the full validation set for that run. At earlier stages the run is scored on the validation data for classes introduced up to that point. The paper uses those measurements to define average accuracy.
AvgAcc = (1 / T) ∑ₜ₌₁ᵀ Accₜ
AvgAcc is the arithmetic mean of the accuracy measurements made after the tasks. T is the number of tasks and t is the index of the task just completed. Accₜ is the classification accuracy over the validation examples available for scoring through task t. The summation sign ∑ adds these stage scores, starting at t = 1 and ending at T. Multiplication by 1 / T gives each stage equal weight. The final Acc is the measurement at t = T.
These statistics describe different parts of the run. The early measurements cover fewer classes, so a good early result can lift AvgAcc even if prediction quality deteriorates later. A method may also finish well after a weaker start. The authors use the harmonic mean of Acc and AvgAcc to select hyper-parameters. Written explicitly, the rule for combining the two metrics is as follows.
M = (2 × Acc × AvgAcc) / (Acc + AvgAcc)
M denotes the harmonic mean, Acc is final accuracy and AvgAcc is average accuracy across stages, expressed on the same scale. The 2 gives the harmonic mean for the two inputs, × denotes multiplication, + adds the two metrics, and / divides the product in the numerator by their sum. The highest such score determines the chosen configuration. The harmonic mean gives the weaker of the two measurements greater influence than it would have in an arithmetic mean. The result favors configurations that perform across the sequence and remain strong at its end.
The paper writes H* for the configuration that wins the tuning phase. The star identifies the selected tuple. The tuning stage uses only the dataset denoted by Dᴴᵀ, where D denotes a dataset and HT denotes its role in choosing hyper-parameters. The program that generates tasks is denoted by F. Given a shuffled set of classes, F constructs the sequence and supplies its training and validation partitions. Both phases use the same construction rules, so the two uses of F preserve the chosen task configuration even though they start from different datasets.
Evaluate freshly trained runs with the selected settings
After selection, the algorithm proceeds to the held-out dataset Dᴱ, with E indicating the evaluation phase. It starts afresh for every run of the new sequence. That distinction matters for interpreting the experiment. The evaluation is about whether the same training choices still help the algorithm learn and retain classes on new data. The weights learned during the tuning runs do not supply the classifier used for scoring on the new sequence. In the pretrained experiments, the common pretrained starting point is part of the setup in both phases.
The evaluation phase shuffles the classes, builds the tasks, trains using H* and gathers the validation measurements. The settings are used as selected for all evaluation trials within that comparison. For example, when a configuration obtained from CIFAR-50-1 is evaluated on both CIFAR-50-2 and ImageNet-50-2, the studies of high and low similarity both start from the CIFAR-50-1 choice. The mean reported for each target comes from evaluating its own class orders.
Pᴱ = (1 / S) ∑ₛ₌₁ˢ Pₛᴱ
Pᴱ is the aggregate evaluation performance, with E indicating that it is measured on the evaluation dataset. Pₛᴱ is the evaluation performance in trial s. S is the number of trials. The summation ∑ runs from s = 1 to S, and the factor 1 / S averages those measurements. The paper reports final accuracy and average accuracy separately in its results, and gives standard deviations to show how the reported measures vary across runs. Averaging over stages within a run and averaging over runs for a scenario are distinct operations.
How the searches were implemented
The experiments without pretraining use PyCIL implementations and the ResNet-18 and ResNet-32 architectures. They use stochastic gradient descent, which updates the weights from batches of examples, with momentum of 0.9. Momentum carries information from prior updates into subsequent ones. The first task provides the initial representation for the rest of the sequence. To give this stage a common training prescription, the authors specify 200 epochs, an initial learning rate of 0.1 and weight decay of 0.0005. Weight decay is a setting that discourages large weights. For the stepwise learning-rate schedule, the paper lists initial milestones at 60, 120 and 170 epochs, with a decay factor of 0.1. Sampled configurations govern training from the second task onward. The backbone comes from Deep Residual Learning for Image Recognition.
The search can change the number of later epochs, the learning rate, the batch size, weight decay and the schedule by which the learning rate changes. The authors also include algorithm-specific choices, such as the strength of an auxiliary loss or the number of epochs used for a later training stage. Some options depend on other choices. In particular, a sampled count of milestones affects the run when the stepwise scheduler is selected. Milestones place the learning-rate decreases at fractions of the task’s training budget.
m = [epoch × (2/5), epoch × (4/5)]
Here m denotes the list of milestone epochs when the sampled count is 2, and epoch is the total epoch budget for that task. The brackets contain the successive milestone positions. Each × scales the budget by the fraction in parentheses, and / forms a fraction from its numerator and denominator.
m = [epoch × (2/7), epoch × (4/7), epoch × (6/7)]
m here is the milestone list for a sampled count of 3. epoch again gives the task’s total training budget, and each × places the corresponding step at the fraction of that budget given by /. The entries run in chronological order.
m = [epoch × (2/9), epoch × (4/9), epoch × (6/9), epoch × (8/9)]
m in this case gives the milestone list for a count of 4. epoch is the budget the schedule is fitted to, and each multiplication × scales it by a fraction written with /. For a different learning-rate scheduler, the sampled milestone count is ignored.
The pretrained experiments use PILOT and begin with ViT B16 pretrained on ImageNet. The search again covers ordinary training choices, but here the optimizer can vary too. The options include SGD, Adam and AdamW, with PyTorch defaults for optimizer settings outside the search. The prompt-based and representation-based methods have distinct candidate ranges for several shared training choices. Each algorithm also has its own applicable choices, such as prompt length or the size of an internal representation. The selected configuration governs training over the full class sequence. The pretrained architecture is the Vision Transformer.
A concrete example of what gets transferred appears in the appendix. For CODA-Prompt tuned on CUB-200 in the 10 Tasks setup, the selected configuration uses 25 epochs, a learning rate of 0.0025, batch size 64, a cosine schedule and AdamW. It also specifies a prompt pool size of 100 and a prompt length of 8. This mixture of ordinary training choices and choices defining the prompt mechanism is carried into a new scenario as a package. The package can work well or poorly as a whole even when the experiment provides no basis for attributing its result to a single value.
Experiments and results
Training without pretraining
The first suite constructs image classification sequences from ImageNet and CIFAR. The authors draw separate groups of 100 classes from ImageNet-1k to form ImageNet-100-1 and ImageNet-100-2. Further class splits from ImageNet-100-1 and CIFAR-100 yield paired 50-class subsets. The common-parent comparisons therefore change which classes the algorithm learns even in the high-similarity condition. The cross-benchmark comparisons change the dataset family as well.
The 10 Tasks design introduces equal numbers of classes at each step. For the 100-class ImageNet subsets this means 10 classes per task, and for the 50-class subsets it means 5. The 6 Tasks design gives the first task half of the classes. The 100-class sequence opens with 50 classes and then introduces 10 per later task. The 50-class sequence opens with 25 and then introduces 5 per later task. The larger initial task provides a different starting point for the representation and leaves a smaller share of the label set to be acquired subsequently. These two schedules are treated as separate tuning and evaluation problems.
The suite compares Replay, iCaRL and WA with methods including BiC and PODNet, which the paper discusses under regularization. It also tests DER, FOSTER and BEEF, along with MEMO. Replay is a simple reference point. It combines saved examples with current-task examples for fine-tuning. The exemplar budget is 2000 for the ImageNet-100 experiments and 1000 for the ImageNet-50 and CIFAR-50 experiments. DER is the partial implementation available to the authors. Their implementation lacks the masking and pruning details they sought in the public code.
The first check compares original settings with those found by the paper’s search in the 10 Tasks ImageNet-100 experiment. On the ImageNet-100-1 tuning data, BiC’s final accuracy is 39.61% with the original settings and 54.22% with the selected settings. PODNet’s corresponding scores are 46.66% and 55.35%. The change looks different for FOSTER. Its average accuracy on the same tuning dataset is 69.97% with the original values and 71.99% with the selected values, while its final accuracy is 60.68% with the original values and 58.36% after selection. The search objective considers both measures, so selecting a configuration need not increase each component of the score.
In its main discussion, the paper notes that the tuning comparison generally favors the chosen configurations and that the differences among DER, FOSTER and MEMO during tuning fall within their reported standard deviations. The numeric results also illustrate how little a general tuning claim says about a specific measure. MEMO’s tuning average accuracy is 70.04% with its original settings and 71.25% with its selected settings. For final accuracy the corresponding values are 59.59% and 57.91%. Judging the search by its ability to improve only the last checkpoint would tell a different story from judging it by average accuracy or by the combined selection criterion.
What transfers to a new ImageNet sequence
In the second phase of the 100-class comparison, the authors keep the selected settings and build the 10 Tasks sequence from ImageNet-100-2. The average accuracy rankings change. FOSTER and MEMO fall behind older methods including WA, BiC and PODNet. DER has the highest average accuracy among the methods with reported scores. BEEF is omitted from this comparison because some seeds repeatedly produce an invalid training loss. Assigning it a numerical accuracy would hide the actual outcome of those runs.
Average accuracy on ImageNet-100-2 with settings selected on ImageNet-100-1, 10 Tasks
DER leads, while WA, BiC and PODNet finish ahead of FOSTER and MEMO on average accuracy.
The numbers
| System or setting | AvgAcc % |
|---|---|
| Replay | 61.49 |
| iCaRL | 63.39 |
| BiC | 71.81 |
| WA | 72.93 |
| PODNet | 71.76 |
| DER (this paper) | 77.12 |
| FOSTER | 68.41 |
| MEMO | 71.35 |
These are scores averaged over the stages of training. The ranking by final accuracy is different. On the same held-out ImageNet-100-2 dataset, FOSTER finishes at 61.46% final accuracy and MEMO at 61.94%, while WA finishes at 59.89%. DER leads on final accuracy as well, at 70.23%, with a standard deviation of 0.46 for that measure. The comparison therefore supports a specific statement about which recent methods lose their lead across the sequence. Their relative positions at the final checkpoint depend on which methods and metrics are being compared.
The original-settings runs on ImageNet-100-2 provide a useful qualification. For DER they give 65.73% final accuracy and 76.12% average accuracy, compared with 70.23% and 77.12% when the settings come from the separate ImageNet-100-1 search. FOSTER reaches 73.95% average accuracy on ImageNet-100-2 with its original configuration, compared with 68.41% with the transferred selection. MEMO likewise has 75.25% average accuracy with original settings and 71.35% with the selected ones. GTEP supplies a test of a particular tuning decision. Its guarantee is the separation of the target from that decision. An improvement over an existing configuration remains an empirical outcome for each method.
Another feature of this comparison is that a target scenario can have higher absolute scores than the tuning scenario. For instance, DER’s selected-settings average accuracy is 72.93% on ImageNet-100-1 and 77.12% on ImageNet-100-2. The held-out test is valuable even when this happens. The authors compare algorithms under the same target conditions and observe which conclusions survive the new scenario. The numerical gap from a tuning score to an evaluation score also reflects the different data used to produce them, so its sign alone gives an incomplete picture of transfer.
Changing the distance between the datasets
The 50-class experiments give each tuning dataset a closer and a more distant evaluation partner. In one direction the authors tune on CIFAR-50-1 and evaluate on CIFAR-50-2 or ImageNet-50-2. In the other they tune on ImageNet-50-1 and evaluate on ImageNet-50-2 or CIFAR-50-2. The matched partner shares a parent benchmark with the tuning dataset. The other partner tests a cross-dataset move. Results are reported for both schedule shapes.
Final accuracy on CIFAR-50-2 with settings selected on CIFAR-50-1, 10 Tasks
DER leads the final-accuracy comparison, with MEMO and FOSTER its closest competitors.
The numbers
| System or setting | Acc % |
|---|---|
| Replay | 45.42 |
| iCaRL | 47.12 |
| BiC | 52.83 |
| WA | 54.89 |
| PODNet | 51.20 |
| DER (this paper) | 63.51 |
| FOSTER | 60.00 |
| BEEF | 57.24 |
| MEMO | 60.72 |
On the related but disjoint CIFAR-50-2 sequence in the chart, DER also has the highest average accuracy, 75.04%. Moving the same tuning selections to ImageNet-50-2 gives DER 63.40% final accuracy and 72.67% average accuracy in the 10 Tasks setup. FOSTER is close by final accuracy on that target, at 62.09%, and has an average accuracy of 70.24%. BEEF has a reported score for the CIFAR target in this comparison. For the ImageNet target its entry is NaN, marking the failure to obtain a valid result.
The 6 Tasks comparisons show why the paper examines more than one schedule. With CIFAR-50-1 as the tuning dataset and ImageNet-50-2 as the evaluation dataset, PODNet achieves 64.30% final accuracy and 73.56% average accuracy. Those scores are higher than WA’s 61.47% final accuracy and 69.67% average accuracy under the same conditions. DER still leads that comparison with 70.68% final accuracy and 76.56% average accuracy. In the other transfer direction, taking settings from ImageNet-50-1 to CIFAR-50-2 with 6 tasks, FOSTER leads DER. Its final and average accuracies are 65.31% and 73.80%, compared with 64.76% and 72.89% for DER.
These comparisons show the scope of the general ranking. DER leads in most of these settings, with an identifiable exception. PODNet is especially competitive in several of the schedules with the large first task. Replay can outperform iCaRL, although iCaRL has the better final score in the 10 Tasks CIFAR-50-2 comparison in the chart. The paper identifies BiC and MEMO as particularly sensitive across the similarity conditions. A conclusion about which method travels well is therefore supported by a set of comparisons across data and schedules, instead of a single list ordered by publication date.
Starting from a pretrained image network
The second suite uses CUB-200, ImageNet-R and ImageNet-A. Each of the full datasets in this suite has 200 classes. The authors also use 100-class subsets for comparisons that include closely related tuning and evaluation data. In their 20 Tasks setup, the full datasets introduce 10 classes per task and the subsets introduce 5. In their 10 Tasks setup, the corresponding counts are 20 and 10. Every task has the same number of classes within a sequence in this suite. ImageNet-R comes from work on out-of-distribution generalization.
The prompt-based comparison includes L2P, DualPrompt and CODA-Prompt. The representation-based comparison includes Adam-Adapter, Ranpac and EASE. The results sometimes shorten Adam-Adapter to Adam, which here denotes the continual learning baseline. Within each family the paper treats CODA-Prompt and EASE as prominent recent methods. It excludes DAP because the survey it cites raises a question about the fairness of comparing it in this setup. The use of a common pretrained backbone and PILOT implementation settings gives the selected algorithms a shared basis for the comparison.
On the CUB-200 tuning sequence with 10 tasks, the paper reports that the selected settings improve average accuracy across the tested methods. The authors note that Ranpac and EASE are close on the tuning data once run-to-run variation is considered. With their original settings, their CUB-200 tuning average accuracies are 83.24% for Ranpac and 82.65% for EASE. Among the prompt methods with original settings, CODA-Prompt records 80.27% average accuracy, next to 76.82% for L2P and 74.39% for DualPrompt. The tuned comparison gives the authors a way to ask whether a similar ordering will hold when the settings leave CUB-200.
On the 10 Tasks ImageNet-R evaluation sequence, using settings selected on CUB-200, Ranpac reaches 84.46% average accuracy and EASE reaches 67.74%. On the ImageNet-A sequence with the same task count and tuning source, their average accuracies are 73.63% and 58.30%. Ranpac leads both comparisons. EASE loses the near parity with Ranpac that the authors observe on the tuning data. Among the prompt methods, CODA-Prompt records 78.49% average accuracy on ImageNet-R and 61.00% on ImageNet-A. L2P achieves 77.42% and 53.57%, respectively. The size of CODA-Prompt’s lead over L2P thus depends on the evaluation dataset, even with the tuning source and task count held fixed.
A comparison with DualPrompt makes the change in rankings concrete. In the same 10 Tasks transfer from CUB-200, DualPrompt has 73.03% average accuracy on ImageNet-R and 52.58% on ImageNet-A. In both of those sequences it trails L2P. In a different comparison, with settings chosen on CUB-100-1 and evaluated on the related CUB-100-2 subset over 20 tasks, DualPrompt records 59.83% final accuracy, ahead of CODA-Prompt at 58.16% and L2P at 54.12%. The prompt methods are also closely grouped in final accuracy when the same CUB-100-1 tuning source is used for the 20 Tasks ImageNet-R-2 target. The paper’s broader point is that consistent improvement across successive prompt methods is difficult to establish once the tuning data are separated from the evaluation sequence.
Strong average results can coexist with difficult runs
The representation-based methods generally outperform the prompt-based ones in the paper’s comparisons, but the choice among them depends on the target. For example, in the 10 Tasks transfer from CUB-100-1 to ImageNet-R-2, Ranpac finishes with 80.40% final accuracy and Adam-Adapter with 72.73%, compared with 63.36% for EASE. On the closely related CUB-100-2 target with the same tuning source and task count, Ranpac finishes with 90.60%, Adam-Adapter with 86.76%, and EASE with 85.86%. EASE’s standing relative to the other representation methods is substantially closer on that target.
Ranpac’s record has its own qualification. The following comparison uses settings tuned on ImageNet-R-1 and evaluates them on ImageNet-A-2 over 20 tasks. The final-accuracy winner is Adam-Adapter. Among the prompting methods, DualPrompt finishes ahead of CODA-Prompt, even though CODA-Prompt leads the prompt methods on the 10 Tasks transfer from full CUB-200 discussed above.
Final accuracy on ImageNet-A-2 with settings selected on ImageNet-R-1, 20 Tasks
Adam-Adapter leads this transfer, and DualPrompt finishes ahead of CODA-Prompt among the prompt methods.
The numbers
| System or setting | Acc % |
|---|---|
| L2P | 25.13 |
| DualPrompt | 31.96 |
| CODA-Prompt | 30.48 |
| Adam-Adapter (this paper) | 44.25 |
| Ranpac | 35.06 |
| EASE | 42.49 |
Ranpac’s final accuracy in that comparison has a standard deviation of 15.86, while Adam-Adapter’s is 0.86. Their average accuracies across stages are 47.04% and 55.84%, respectively. Ranpac’s unusual spread also appears when the authors tune on full ImageNet-R and evaluate on full ImageNet-A with 20 tasks. There it reports 38.53% final accuracy with a standard deviation of 31.11. Its average accuracy is 67.65%, higher than its competitors’ average accuracies in that comparison. The final score and the trajectory average reflect different experiences of the same run set. The size of the spread matters when judging how much confidence to place in the final mean.
The strongest result of the pretrained suite is therefore about the conditions of a comparison. Ranpac frequently leads when the configurations travel to new data. Adam-Adapter can be a better choice on particular evaluation scenarios within the experiment, including the ImageNet-A-2 case in the chart. EASE’s results on the tuning sequences give an incomplete account of how it does after transfer. Together with the results without pretraining, these experiments show why a claim about continual learning capacity needs to specify where selection occurred, where evaluation occurred, and which measure summarizes the sequence.
What the ablations show
What the paper changes in its comparisons
The paper does not present a systematic component ablation of the algorithms. Its main controlled comparisons change the source of the hyper-parameters, the relationship between the tuning and evaluation datasets, or the structure of the task sequence. It also examines training trajectories, costs and failures. These analyses help explain what the protocol reveals about deployment with fixed settings. They provide less direct evidence about which component of a particular continual learning algorithm causes a ranking change.
The comparison between original and selected hyper-parameters directly tests the importance of the configuration. The algorithm and scenario are held in place while the configuration changes. BiC’s improvement in final accuracy on ImageNet-100-1, for example, shows that a weak result under original settings can substantially understate what the same implementation achieves with a fresh search on the local scenario. FOSTER and MEMO show why looking at both measures matters. Their selected settings lift average accuracy on the tuning data but give lower final accuracy there than the original settings. Hyper-parameter choice can alter the shape of the training trajectory as well as the final result.
The evaluation of those same selected settings on new data addresses a different question. A method that improves during the search can still do poorly when the search loses access to the target. In the 10 Tasks ImageNet-100 experiment, DER remains strong when its selected settings transfer. FOSTER’s average accuracy falls in the same transfer. The appendix notes that FOSTER has the largest number of hyper-parameters among the algorithms in the group. The authors suggest the extra flexibility gives it more opportunity to fit the tuning scenario closely. That is a plausible reading of the comparison. The experiment does not remove hyper-parameters from FOSTER or match its search space to DER’s, so the number of adjustable settings remains an explanation to investigate.
Crossing the tuning and evaluation sources is a further check on how much the result belongs to a particular dataset pair. Starting from CIFAR-50-1, for instance, the authors can evaluate the selected configuration on both the related CIFAR-50-2 and the more distant ImageNet-50-2. Starting from ImageNet-50-1 gives a different tuning history for evaluation on those same target subsets. Holding the target fixed across these comparisons helps locate the dependence on where the settings were chosen. Holding the tuning source fixed and changing the target shows how far a particular selection travels. Changing the schedule adds another kind of evidence because the initial class allocation changes the learning problem the configuration was selected to solve.
Variation across the learning sequence
On CIFAR-50-2 with 10 tasks, after tuning on CIFAR-50-1, the paper plots accuracy at each stage with a band showing standard deviation over 5 trials. DER generally stays ahead of FOSTER, BEEF and MEMO over the sequence. FOSTER and MEMO have trajectories that the authors regard as nearly indistinguishable given the size of the variation. WA is relatively strong among the other algorithms. The trajectory gives a clearer basis for these observations than the final checkpoint alone. It can show whether a final advantage has been present for much of the run or has emerged near its end.
The corresponding pretrained analysis takes settings selected on ImageNet-R-1 and evaluates on ImageNet-A-2 in the 20 Tasks scenario. Ranpac has stages with particularly large spreads across trials. Its mean can obscure that instability, especially when reduced to an average over all stages. CODA-Prompt and EASE also fail to hold a consistent lead over the comparison baselines in their respective families. The plot shows when the differences appear. The reported standard deviation summarizes variation across the runs, which incorporate shuffled class order and a new initialization, and gives a reason to judge a narrow mean advantage cautiously.
Together the trajectory and endpoint comparisons answer complementary questions about the selected configuration. The trajectory indicates whether it delivers a reliable sequence of learning updates. The final measurement indicates what remains available after the last group of classes. When both are reported, an algorithm that performs well for much of training but becomes unreliable late in the sequence is visibly different from one that is consistently weaker. Ranpac on full ImageNet-A is an example of that distinction in the paper’s numerical results.
Performance in relation to training time and size
For the CIFAR-50 transfer, the authors also compare the final parameter count and total training time with the accuracy achieved under each algorithm’s selected settings. That compares complete training recipes. A setting that increases the epoch count may help accuracy but takes time to run. The cost plots therefore describe what it takes to obtain the measured performance from the selected configuration. Earlier cost comparisons described by the authors had often fixed the number of epochs or limited training iterations, making those studies useful for a different question about performance under a common budget.
DER is relatively quick in this analysis and has the highest accuracy. Its overall parameter count grows linearly with the number of tasks, giving it a cost that the running time alone would miss. BiC, BEEF and MEMO have comparable or longer training times in this comparison while achieving weaker results. The plots distinguish a method that buys accuracy by increasing capacity from a method whose higher measured cost does not translate into an accuracy advantage on this particular target.
The pretrained analysis uses the number of trainable parameters. That distinction matters because a pretrained network can participate in prediction even when much of it is frozen. The prompting approaches have similar training times in the ImageNet-A-2 comparison. CODA-Prompt uses more trainable parameters than DualPrompt and performs worse in that setting. Within the representation-based group, Adam-Adapter gives the best performance in the comparison and does so with low trainable parameter and time costs. These observations refer to the displayed scenario and selected configurations. They help explain why ordering methods by published accuracy alone gives an incomplete account of the practical tradeoffs.
Diagnosing BEEF’s invalid losses
The BEEF failures prompted a more targeted set of checks. When experiments on ImageNet-scale data with ResNet-18 repeatedly produced NaN values, the authors checked the original paper’s training settings, including a learning rate of 0.1 with the stepwise scheduler and a mini-batch size of 256 in that diagnostic. They next tried lower learning rates of 0.001, 0.005, 0.01, 0.015 and 0.02. Every configuration in that follow-up still yielded invalid training on some seeds. Consequently, the recurring failures could not be resolved simply by turning down the learning rate over the tested range.
The appendix lists two representative configurations for ImageNet-100. In the seed labeled 0, the first configuration obtains 49.24% final accuracy and 59.22% average accuracy. The second obtains 46.40% final accuracy and 58.31% average accuracy for that seed. Both have NaN entries in the rows labeled seed 1 through seed 4. The per-seed rows make the extent of the failure clear without treating those trials as zero-accuracy predictions or using the successful rows as a substitute for performance across the full set of runs.
The authors also trace the problem through the PyCIL code. They observe extreme growth in the feature maps of a copied network during the process that generates adversarial training examples for BEEF’s energy loss. They judge this process to be the source of the invalid values in the runs they investigate. They suggest adding regularization during example generation and note that doing so could affect the method’s accuracy. Their diagnosis thus identifies a concrete point of failure in the tested setup. The paper presents the regularization change as a possible repair and provides no measured result for it.
Limitations
Limits identified by the authors
The authors identify computational cost as a direct limitation of GTEP. A search requires repeated sequential training, with each candidate evaluated over multiple orders. Their experiments use 30 sampled configurations and 5 seeds per configuration. They report that for most algorithms, the search had found settings close to its eventual best result within 20 trials, with little improvement afterwards. This observation concerns the candidate sets, objectives and algorithms in their experiments. Developing a search that uses fewer training runs, perhaps by identifying which hyper-parameters matter most before committing to a broad search, is an open direction in the paper.
The setup also assumes that the structure of the future scenario is sufficiently predictable to construct the tuning sequence. The number of tasks and the expected class allocation are known in the experiments. This is useful for isolating the ability to transfer settings across data while keeping the workload comparable. It leaves out streams in which boundaries are unclear, class distributions shift in unexpected ways, or the algorithm has to decide when to adapt its own hyper-parameters. The authors propose testing those cases, including methods that can change their settings as the stream unfolds.
The experiments cover offline class-incremental image classification. The authors propose extending the protocol to online continual learning and to settings such as semantic segmentation, self-supervised learning and reinforcement learning. They argue that the separation of tuning from evaluation is general enough to carry across these domains, provided the scenario generator reflects the structure of each learning problem. The experiments establish its behavior for the tested image classification sequences. Whether the same kinds of failures dominate elsewhere, and how expensive the procedure becomes there, are empirical questions left open by the study.
Limits visible in the experimental design
The high- and low-similarity labels identify a relationship between datasets. They offer a useful way to arrange comparisons. They do not measure exactly how far apart the learning problems are. Distinct class subsets of the same parent dataset may have different classification difficulty. Different benchmarks may change several properties of the scenario at once. As a consequence, an accuracy change between phases includes the effects of the new classes and their data, as well as any mismatch between the hyper-parameters and the target. Comparing algorithms on the same held-out scenario supports conclusions about their relative performance there. It does not decompose the change from the original tuning score into separate causes.
The selection is also conditional on the published search. A random search with 30 configurations samples from finite sets defined by the researchers. The highest-scoring sampled configuration depends on those sets, the number of options a method has, the trial variation, and the harmonic mean used for selection. It need not be the best configuration that a different search space or objective would uncover. The stronger claim supported by the design is that the configuration chosen by the stated procedure had to prove itself on a scenario that played no role in choosing it. A more sample-efficient search or a different selection objective could produce a different set of transferred results.
The same concern applies to the reported standard deviations. They describe the spread over 5 trials in each setting. In comparisons where the trajectories are close, the paper uses that spread to temper claims about a lead. The values do not isolate the contribution of the initial weights from that of the class ordering. Nor does a narrow spread in one benchmark establish stability over all unseen sequences. The broad experiments make the variation visible across several scenarios, while the causal contribution of each feature of a sequence remains harder to determine.
Accuracy has its own scope. The stage-average metric gives each checkpoint equal weight even though those checkpoints cover different numbers of classes. A later drop could reflect forgetting earlier categories, difficulty learning the incoming ones, or problems distinguishing the combined label set. Stage and final accuracy establish that prediction quality changed. A diagnosis of retention and acquisition separately would require a breakdown that distinguishes old and new categories. Similarly, the paper’s comparisons of training time and parameter counts document costs in chosen settings. They do not establish which algorithms would lead under an identical compute budget, or compare the full cost of tuning and deployment for every scenario.
Finally, some interpretations depend on the implementation. DER’s strong results and parameter growth apply to the partial implementation evaluated by the authors. The BEEF diagnosis draws on observed failures and code inspection in PyCIL. Those results are important for interpreting the benchmark because reproducibility and completion are part of what an algorithm must deliver. The stronger suggestion that the instability is intrinsic to BEEF merits separate verification across implementations and any proposed regularization changes. The comparison establishes persistent failures for the tested conditions and a plausible mechanism for them.
What came after
The paper ends with future tests of its proposal. These include tuning with fewer full training runs, evaluating streams whose structure changes during learning, and applying the separation of tuning and evaluation to online and other continual learning settings. No follow-up study adopting or extending GTEP is documented here.
Cite
Cite as Sungmin Cha and Kyunghyun Cho. 2024. Hyperparameters in Continual Learning: A Reality Check. arXiv (Cornell University).
@misc{cha2024hyperparameters,
title = {{Hyperparameters in Continual Learning: A Reality Check}},
author = {Sungmin Cha and Kyunghyun Cho},
year = {2024},
doi = {10.48550/arxiv.2403.09066},
eprint = {2403.09066},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2403.09066}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cha-2024-hyperparameters-continual-learning-reality-check/