ReMem: A Dynamic Memory Evolution Detector for Zero-Shot Anomaly Detection

Ling Yi, Zhe Chen, Gaochang Wu, Jinliang Ding, Xiaojie Wang, Zhaolong NingCVPR 2026 Findings 2026

TL;DR

ReMem is a training-free, prompt-free zero-shot anomaly detection framework that replaces vulnerable, one-shot static memory banks with a dynamically self-evolving memory bank. By iteratively refining normal feature representations and applying a dual-path enhancement strategy for objects and textures, it sets a new state-of-the-art on standard industrial benchmarks without requiring any textual prompt engineering.

What Problem Does This Paper Address?

Industrial Anomaly Detection (IAD) is vital for maintaining product quality on manufacturing lines, but collecting large amounts of anomalous data for training is notoriously difficult. Zero-Shot Anomaly Detection (ZSAD) solves this by identifying defects without task-specific training data.

Current ZSAD methods generally fall into two camps:

  1. Vision-Language Models (VLMs): Methods using models like CLIP rely heavily on complex, hand-crafted text prompts and often struggle to cleanly separate normal and anomalous industrial semantics.
  2. Memory-Bank Methods: Methods that build a reference bank of normal features directly from unlabeled test data based on the assumption that normal patches appear frequently across images, while anomalies are rare.

However, existing memory-bank approaches suffer from a major flaw: they construct the bank in a single, static step. If the initial selection is noisy or accidentally includes anomalous samples, the memory bank becomes contaminated, leading to severe downstream detection errors.

Methods

ReMem introduces a dynamic, multi-stage framework that progressively purifies and expands its memory bank over multiple iterations, decomposing a single high-stakes decision into a well-controlled evolution process.

Figure 2. Overview of the ReMem framework. It comprises three components: Initial Memory Bank, Update Memory Bank, and Anomaly Scoring.
  1. Initial Memory Bank & Mutual Scoring: Features are first extracted using a frozen, pre-trained DINOv2 vision encoder. A Mutual-Scoring Selection Module (MSSM) evaluates similarities across the unlabeled test set to filter out noise and select the highest-confidence normal samples to seed the initial bank.
  2. Dual-Path Feature Enhancement (DPFE): Industrial anomalies differ wildly depending on whether the product is an object (like a gear) or a texture (like leather). ReMem automatically routes samples based on their foreground area ratio:
  3. Object Path: Uses K-Means and PCA-based masking to isolate the foreground and suppress background noise.
  4. Texture Path: Uses Multi-Layer Multi-Scale Pooling (MLMP) to capture fine-grained local details.
  5. Iterative Memory Evolution: Instead of keeping the memory bank static, ReMem re-scores candidate samples against the current bank at each step $t$. Crucially, it uses anomaly scores as a diversity criterion to select the top $\gamma\%$ highest-scoring patches from normal candidate images. This injects informative, non-redundant features into the bank, steadily broadening its coverage until a predefined expansion budget ($\tau\%$) is reached.

Datasets

The authors evaluated ReMem on two standard, highly challenging industrial anomaly detection benchmarks:

  • MVTec AD: Contains 15 categories (10 objects, 5 textures) with a total of 1,725 high-resolution test images.
  • VisA: Comprises 12 object categories across 962 normal and 1,200 anomalous images, exhibiting high structural and surface diversity.

Key Insights and Ideas

  • Decomposing High-Stakes Decisions: Moving from a one-shot static memory bank to an iterative process mitigates early-stage errors. If an anomaly accidentally slips into the initial bank, subsequent iterations dilute its impact by expanding the coverage of true normal variations.
  • Counter-Intuitive Patch Selection: When updating the memory bank, ReMem selects patches with higher anomaly scores from the candidate normal images. While it seems intuitive to pick the most "normal-looking" patches, those are highly redundant. Selecting higher-scoring patches broadens the memory bank's boundaries without introducing actual anomalous noise.
  • Unified Object/Texture Handling: Rather than using a one-size-fits-all feature representation, explicitly routing features into background-suppressed object paths or detail-enhanced texture paths significantly boosts localization accuracy.

Key Results

ReMem achieves state-of-the-art performance across both datasets, outperforming existing zero-shot methods and even beating some few-shot methods that have access to labeled normal samples:

  • MVTec AD: Achieves 98.7% image-level AUROC and 95.5% pixel-level PRO, surpassing the second-best zero-shot method (PA-CLIP) and outperforming the 4-shot AnomalyDINO baseline.
  • VisA: Achieves 94.3% image-level AUROC and 94.7% pixel-level PRO.
  • Qualitative Excellence: As shown in the qualitative visualizations, ReMem produces significantly cleaner and more precise anomaly heatmaps, successfully separating true anomalies from complex normal structures that confuse baseline models.
Figure 3. Visualization of anomaly detection results on the MVTec AD and VisA datasets. Each column corresponds to a different category: the first row shows the input image, the second row shows the ground-truth mask, and the third to fifth rows show the detection results of AnomalyCLIP, MuSc, and ReMem, respectively.

Limitations and Future Work

The authors do not explicitly detail limitations, but a few constraints are apparent from the methodology:

  • Test Set Distribution Dependency: ReMem relies on mutual scoring across the test set, assuming that normal patterns are frequent and anomalies are rare. If a test batch is extremely small or heavily skewed (e.g., consisting mostly of defects), the scoring mechanism might degrade.
  • Foundation Model Reliance: The performance is tightly coupled with the feature extraction capabilities of the frozen foundation model (DINOv2).

Future work could explore adaptive thresholding for the memory expansion budget or extending this dynamic evolution paradigm to multi-modal inputs (e.g., combining 3D point clouds with 2D images).

Summary updated

BibTeX
@inproceedings{yi2026remem,
  author = {Ling Yi and Zhe Chen and Gaochang Wu and Jinliang Ding and Xiaojie Wang and Zhaolong Ning},
  title = {{ReMem: A Dynamic Memory Evolution Detector for Zero-Shot Anomaly Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=gsn4VRvnxj},
}
Figure