Continual Learning Evaluation › The Accuracy Matrix

Michael BrenndoerferFebruary 23, 20263 min read
Language AI HandbookAll chapters
Part 46 of 67Continual Learning
Chapter 356Continual Learning Evaluation › The Accuracy Matrix
Reading section 3 of 14 · The Accuracy Matrix · 3 minSection 3 of 14 · 3 min

Book contents

Section 3 of 14 · 3 min read

Continual Learning Evaluation › The Accuracy MatrixOne section · Sections in this chapter3 / 14 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

The foundation of continual learning evaluation is a matrix of test accuracies recorded throughout training. After training on each task TiT_i, you evaluate the model on every task TjT_j seen so far. This produces an accuracy matrix RR, where entry Ri,jR_{i,j} is the accuracy on task TjT_j immediately after training on task TiT_i.

To understand what this matrix captures, consider a five-task example. Immediately after finishing task T1T_1, you record a single row: the model's accuracy on T1T_1 itself. After finishing T2T_2, you record two values: accuracy on T2T_2 (the new task) and accuracy on T1T_1 (which may have degraded). The matrix grows one row at a time:

R=(R1,1R2,1R2,2R3,1R3,2R3,3⋮⋮⋮⋱RN,1RN,2⋯RN,N)R = \begin{pmatrix} R_{1,1} & & & \\ R_{2,1} & R_{2,2} & & \\ R_{3,1} & R_{3,2} & R_{3,3} & \\ \vdots & \vdots & \vdots & \ddots \\ R_{N,1} & R_{N,2} & \cdots & R_{N,N} \end{pmatrix}

where:

  • Ri,jR_{i,j} is the test accuracy on task TjT_j after the model has been trained sequentially through task TiT_i
  • Ri,iR_{i,i} (the diagonal) captures immediate performance right after the model finishes learning task TiT_i
  • Ri,jR_{i,j} for j<ij < i (lower-left entries) captures how well the model retains task TjT_j after subsequent training on tasks Tj+1,…,TiT_{j+1}, \ldots, T_i
  • NN is the total number of tasks

The diagonal entries represent the model at its best for each task in the sequential setting. The off-diagonal entries track degradation. A matrix with high diagonal values and off-diagonal values close to those diagonal values indicates excellent retention. A matrix where off-diagonal values collapse toward chance indicates catastrophic forgetting.

Reading the accuracy matrix provides an immediate visual diagnosis. If the matrix looks nearly uniform across every row for a given column, the model has maintained consistent performance on that task throughout training. If the entries in a column drop sharply from left to right (that is, from earlier rows to later ones), the model is forgetting that task as it learns new ones. If the diagonal entries are all high but the off-diagonal entries drop, that is the signature of a model that learns each task perfectly in isolation but loses what it once knew. If the diagonal entries themselves are lower than expected, the model has difficulty learning new tasks, perhaps because prior weight adjustments have made certain regions of parameter space harder to reach.

The matrix is the raw material from which every summary metric is derived. Rather than discarding all this information into a single number, the matrix preserves the full history of the model's performance trajectory. When you want to understand why a method works or fails, you return to the matrix and examine which entries change and by how much.

Baseline Accuracy

Before computing any continual learning metric, it is useful to record bjb_j: the accuracy on task TjT_j when a fresh model is trained on it in isolation, without any other tasks. This baseline captures the best the model can achieve on each task without interference from other tasks. Comparing Ri,jR_{i,j} against bjb_j reveals how much continual training has helped or hurt retention of task TjT_j. The baseline also provides the denominator for normalizing transfer metrics, and is a sanity check: any method that consistently performs far below bjb_j on every task is failing to learn, not just to retain.