Class-incremental learning (CIL) is a continual learning scenario where a model sequentially learns to discriminate between an expanding set of classes, without access to a task identifier during inference, and without catastrophic forgetting of previously learned classes. It is distinguished from task-incremental learning by this absence of a task ID at test time, forcing the model to internally maintain a unified decision boundary across all encountered classes. The core challenge is the stability-plasticity dilemma: balancing the retention of old knowledge with the integration of new information.
Glossary
Class-Incremental Learning

What is Class-Incremental Learning?
A precise definition of the challenging continual learning scenario where a model must sequentially learn new classes without forgetting old ones.
Standard approaches to CIL include replay-based methods like iCaRL, which stores exemplars in a replay buffer, and regularization-based methods like Elastic Weight Consolidation, which penalizes changes to important parameters. A critical evaluation protocol is the Split CIFAR benchmark. Performance is measured by final average accuracy across all classes and the degree of backward transfer (forgetting), making CIL a key test for production models that must adapt to new data over time.
Core Challenges of Class-Incremental Learning
Class-incremental learning presents unique, interconnected difficulties that stem from the model's lack of a task identifier at inference time and its inability to revisit past data.
Catastrophic Forgetting
Catastrophic forgetting is the primary obstacle, where a neural network's performance on previously learned classes degrades sharply when its parameters are updated to accommodate new ones. This occurs because gradient-based optimization overwrites the weights that encoded knowledge of old tasks. Unlike task-incremental learning, the model cannot rely on a task ID to select specialized parameters, forcing all updates through a shared network. The stability-plasticity dilemma is central here: the model must be plastic enough to learn new classes but stable enough to retain old ones.
Task-Agnostic Inference
A defining constraint of class-incremental learning is that the model is not provided with a task identifier during evaluation. It must correctly classify an input among all classes seen so far without knowing which 'task' or data phase it belongs to. This eliminates simpler solutions like using a multi-head output layer where each head corresponds to a known task. The model must develop a unified, discriminative representation space that separates all classes—old and new—simultaneously, which is significantly harder than task-aware scenarios.
Balanced Representation & Bias
Models suffer from a representation bias toward newly learned classes and a classification bias toward the most recent task. As the model trains extensively on new data, its feature extractor tunes its representations to discriminate within the new class set, often at the expense of separability for old classes. Consequently, at test time, there is a strong tendency to misclassify samples as belonging to a new class. Techniques like knowledge distillation and nearest-mean-of-exemplars classification are used to combat this, but maintaining a balanced decision boundary across an expanding number of classes remains a major challenge.
Exemplar Memory Management
Since storing all past data is typically infeasible, a small replay buffer or exemplar set is maintained. This introduces critical sub-problems:
- Selection Strategy: Which old samples to retain? Common approaches include herding (selecting prototypes closest to the class mean) or random selection.
- Budget Allocation: How many exemplars per old class? A fixed total budget must be distributed fairly as the number of classes grows, often leading to fewer examples per class over time.
- Rehearsal Scheduling: When and how often to interleave replay of old data with new training? Poor management directly amplifies forgetting and bias.
Expanding Output Space
The model's output layer must grow to accommodate new classes. This requires:
- Dynamic Architecture: Adding new output neurons (heads) for each new class or group of classes.
- Initialization: Sensibly initializing new weights to integrate with the existing classifier without disrupting it.
- Consolidation: Algorithms like iCaRL replace the standard softmax classifier with a nearest-mean rule using exemplars to avoid the need to retrain the entire output layer, which is prone to bias. Managing this expansion efficiently, without a performance drop, is a key algorithmic design consideration.
Evaluation & Metrics
Rigorous evaluation is complex. Key metrics include:
- Average Incremental Accuracy: The average test accuracy over all classes seen after each learning phase.
- Forgetting Measure: The drop in accuracy on a task from its peak performance after subsequent training.
- Intransigence: The inability to learn new tasks, measuring plasticity loss. Benchmarks like Split CIFAR-100 (10 tasks of 10 classes) or Split ImageNet simulate the incremental setting. Results must be reported over multiple random task orders, and the exemplar memory budget (e.g., 2000 total samples) must be clearly stated for fair comparison.
How Class-Incremental Learning Algorithms Work
Class-incremental learning (CIL) is a challenging continual learning scenario where new classes are introduced over time, and the model must learn to discriminate between all seen classes without access to a task identifier at test time.
Class-incremental learning (CIL) is a continual learning paradigm where a model sequentially learns to classify new, disjoint sets of classes without forgetting previous ones, and must perform inference without a task identifier. This creates a fundamental stability-plasticity dilemma, as the model must be plastic enough to integrate new knowledge while remaining stable to preserve old representations. The core challenge is catastrophic forgetting, where training on new data overwrites parameters critical for old tasks.
Algorithms address this through three primary strategies: regularization, rehearsal, and dynamic architectures. Regularization methods like Elastic Weight Consolidation (EWC) penalize changes to important parameters. Rehearsal methods, such as Experience Replay (ER), store a subset of past examples in a replay buffer for interleaved training. Architectural approaches, like iCaRL, combine distillation with an exemplar-based classification rule. These mechanisms enable the model to expand its output space and maintain a unified classifier over all seen classes.
Class-Incremental vs. Other Continual Learning Scenarios
A comparison of the defining protocols, constraints, and evaluation metrics for the primary scenarios within continual learning.
| Protocol Feature | Class-Incremental Learning | Task-Incremental Learning | Domain-Incremental Learning | Online Continual Learning |
|---|---|---|---|---|
Task Identifier at Test Time | ||||
Output Space Changes | Per Task | Varies (often true) | ||
Input Distribution Changes | Possible | Possible | ||
Primary Challenge | Class Discrimination without Task ID | Task Routing | Domain Adaptation | Single-Pass Efficiency & Forgetting |
Typical Evaluation Metric | Average Accuracy (all classes) | Average Task Accuracy | Accuracy on Current Domain | Online Accuracy / Forgetting Measure |
Common Benchmark | Split CIFAR-100, ImageNet-Subset | Permuted MNIST, Split Mini-Imagenet | Rotated MNIST, PACS | Stream-51, CLOC |
Exemplar Memory Use | Critical for rehearsal | Optional for rehearsal | Optional for rehearsal | Highly constrained (< 1% of stream) |
Model Architecture Constraint | Single-head classifier | Multi-head classifier | Single-head classifier | Single-head, highly efficient |
Common Class-Incremental Learning Algorithms
Class-incremental learning (CIL) presents a uniquely challenging scenario where a model must sequentially learn new classes without forgetting old ones, all without a task identifier at test time. The following algorithms represent core strategies to solve this problem.
Frequently Asked Questions
Class-incremental learning (CIL) is a demanding continual learning scenario where a model must sequentially learn to recognize new classes without forgetting old ones, and without a task identifier at inference time. These FAQs address its core challenges, mechanisms, and benchmarks.
Class-incremental learning (CIL) is a continual learning scenario where a model is presented with a sequence of tasks, each containing data from a new, disjoint set of classes, and must learn to discriminate between all classes seen so far without being told which task the data belongs to during evaluation.
Unlike task-incremental learning, where a task ID is provided at test time, CIL requires the model to perform a single, unified classification across an expanding output space. This creates the core challenge of catastrophic forgetting of old classes while learning new ones, compounded by the lack of a task identifier to trigger task-specific parameters or heads. Successful CIL algorithms typically combine strategies like knowledge distillation, experience replay, and dynamic architectural adjustments to manage the stability-plasticity dilemma.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Class-incremental learning is a core challenge within the broader field of continual learning. These related concepts define the specific scenarios, metrics, and algorithmic strategies used to build models that learn sequentially without forgetting.
Catastrophic Forgetting
Catastrophic forgetting is the tendency of a neural network to abruptly and drastically lose performance on previously learned tasks when trained on new data. It is the primary problem that continual learning algorithms, including class-incremental learning, are designed to solve. The phenomenon occurs due to unconstrained parameter overwriting during gradient-based optimization on new tasks, which erodes the representations needed for old tasks.
Task-Incremental Learning
Task-incremental learning is a continual learning scenario where tasks are presented sequentially, and the model is provided with an explicit task identifier during both training and inference. This is a less challenging setting than class-incremental learning because the task ID acts as a selector, allowing the model to use dedicated sub-networks or heads. The core challenge shifts from pure discrimination to managing parameter isolation and forward transfer between tasks.
Domain-Incremental Learning
Domain-incremental learning is a scenario where the input data distribution (domain) changes over time, but the underlying output classes and task remain the same. For example, a model must recognize digits (0-9) when the data stream shifts from MNIST (handwritten) to SVHN (street view house numbers). The challenge is to maintain a stable decision boundary while adapting to new visual styles, testing the model's feature robustness and representation stability.
Experience Replay (ER)
Experience Replay (ER) is a foundational technique for mitigating catastrophic forgetting by storing a subset of past training examples in a fixed-size replay buffer. During training on new data, the model interleaves batches from the buffer, rehearsing old patterns. Key engineering decisions include:
- Buffer sampling strategy (e.g., reservoir sampling for online streams)
- Buffer management policy for which old examples to retain
- The rehearsal loss function, often the standard cross-entropy
Knowledge Distillation for Retention
This technique uses knowledge distillation to preserve a model's existing capabilities. When learning a new task, the model's predictions on new data are guided by two objectives: the standard loss for the new task and a distillation loss that penalizes deviation from the old model's outputs. This creates a soft regularization that encourages the new parameters to remain consistent with the old function's behavior on the input space, even without old data.
Stability-Plasticity Dilemma
The stability-plasticity dilemma is the fundamental trade-off in continual learning systems. Stability refers to the system's ability to retain knowledge of old tasks. Plasticity is its capacity to learn new information efficiently. All continual learning algorithms, including class-incremental methods, navigate this tension:
- Regularization-based methods (e.g., EWC) favor stability by constraining important parameters.
- Replay-based methods (e.g., ER) attempt to balance both by rehearsing old data.
- Architectural methods (e.g., Progressive Nets) maximize plasticity by adding capacity but can reduce parameter efficiency.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us