Memory-Bounded Continuation of Greedy Sampling for Continual Anomaly Detection
This paper introduces ContCore, a continual anomaly detection method that maintains a fixed memory budget by iteratively applying greedy sampling to new and existing data, thereby preserving coreset representativeness with theoretical guarantees and achieving state-of-the-art performance across multiple benchmarks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the factories that build our cars, the hospitals that scan our bodies, and the networks that secure our data, a silent guardian is needed: a system that can spot the one thing that is wrong. This is the job of anomaly detection. Unlike a security guard who knows exactly what a burglar looks like, these systems are often trained only on the "normal" things—the perfect gears, the healthy tissues, the clean code. They learn the shape of what is right so well that when something deviates, even slightly, they raise an alarm. The challenge grows when the environment changes. Imagine a factory that starts producing a new type of engine part, then another, and another. A system trained only on the first part might forget how to recognize it once it learns the new ones, or it might simply run out of room in its memory to store the details of everything it has ever seen. This is the problem of "catastrophic forgetting," where learning new things causes a machine to lose its knowledge of old things, and the problem of "memory limits," where a system cannot keep an infinite list of examples.
Researchers have long tried to solve this by creating a small, perfect summary of all the normal data, a collection of key examples that represents the whole. The best way to build such a summary is to pick examples that are as different from each other as possible, ensuring that no part of the "normal" world is left out. However, when new tasks arrive one after another, keeping this summary perfect without letting it grow infinitely large is incredibly difficult. If you simply add new examples, the memory fills up. If you delete old ones to make room, you risk losing the ability to recognize the original tasks. A team of researchers led by Yoon Gyo Jung and colleagues has found a way to keep this summary both small and perfect, no matter how many new tasks the system encounters. They developed a method called ContCore, which allows a machine to learn a continuous stream of new normal patterns without ever forgetting the old ones, all while using a fixed amount of memory.
The core of their discovery lies in how they update the memory. Instead of trying to store every single new example or using complex neural networks that can easily forget, they use a simple but powerful strategy of selection. When a new batch of normal data arrives, the system first looks for the new examples that are most different from what it already remembers. It picks these "most distant" examples to add to its collection. Then, to ensure the total number of examples stays within the strict memory limit, it performs a second selection. It looks at the entire collection—the old examples plus the new ones—and picks out the most spread-out group of examples that fits the size limit. This two-step process, which they call "greedy expansion" followed by "greedy consolidation," ensures that the memory always contains the most representative samples of everything it has seen so far.
The researchers showed that this method works because it preserves the "shape" of the normal data. Even though the system discards many examples at every step to stay within its memory budget, the ones it keeps are chosen so carefully that they still cover the entire range of normal variations. They proved mathematically that the gap between this small, constantly updated memory and a perfect, unlimited memory is always small and controlled. In practice, this means the system does not suffer from the catastrophic forgetting that plagues other methods. When tested on a wide variety of tasks, from simple single-class updates to complex sequences of many different classes, their system consistently outperformed existing state-of-the-art methods. On standard industrial datasets, it achieved higher accuracy in spotting defects while forgetting almost nothing of what it learned previously.
What makes this approach particularly robust is its efficiency. Unlike other methods that require massive amounts of computing power or huge amounts of data to retrain, this system updates its memory with a simple selection process. It does not need to re-learn old tasks or store vast amounts of raw images. In tests where the system had to learn from data one image at a time, a scenario where other methods failed significantly, ContCore maintained high performance. The researchers also demonstrated that this method works well across different types of data and hardware, proving that the principle of carefully selecting a small, representative group is more powerful than simply throwing more computing power at the problem. By keeping the memory bounded but the representativeness high, they have provided a reliable way for machines to adapt to a changing world without losing their past.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.