> For the complete documentation index, see [llms.txt](https://theshank.gitbook.io/ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theshank.gitbook.io/ai/continual-learning/icarl-incremental-classifier-and-representation-learning.md).

# iCaRL: Incremental Classifier and Representation Learning

## Summary

New training strategy to learning in class-incremental setting without catastrophic forgetting. Only the training data for a small number of classes has to be present at the same time and new classes can be added progressively.&#x20;

It simultaneously learns classifiers and feature representations in the class-incremental setting.&#x20;

Conponents:

* classification by a nearest-mean-of-examplars rule
* prioritized exemplar selection based on herding.
* representation learning using knowledge distillation and prototype rehearsal.&#x20;

## Background

**Class Incremental Setting**: When stream of data is provided to train and different classes occur at different time. Computational requirement and memory footprint should remain bounded.&#x20;

**Catastrophic forgetting:** When naively use SGD for training in class incremental training, the classification accuracy deteriorates as more classed comes, because network forgets about previous classes seen during training.&#x20;

## Methodology

**Classification:** sets $$P1, ...P\_t$$of exemplar images, each set corresponding to each class of image. Total number of exemplar images never exceeds parameter K.&#x20;

**mean-of-exemplars classifier:**

![](/files/-MSQh_q4Fc8Yx5eet661)

**Training:** This procedure determines the update of network weights and exemplar sets, etc.&#x20;

![](/files/-MSQiMyAn5yNSO1jnggD)

**Architecture:** We interpret the network as a trainable feature extractor, ϕ : X → Rd, fol- lowed by a single classification layer with as many sigmoid output nodes as classes observed so far. All feature vectors are L2-normalized, and the results of any operation on feature vectors, e.g. averages, are also re-normalized, which we do not write explicitly to avoid a cluttered notation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://theshank.gitbook.io/ai/continual-learning/icarl-incremental-classifier-and-representation-learning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
