Adapting Pretrained Representations for Anomaly Detection

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 118 papers23 conceptsfrozen 2026-10-04

In the world of computer vision, we often take for granted that a model trained on ImageNet—a massive dataset of cats, dogs, and everyday objects—will provide a "good enough" foundation for any downstream task. However, in Anomaly Detection (AD), this assumption often fails. Whether identifying a hairline crack on a ceramic tile or a subtle pathology in a retinal scan, the features required to distinguish "normal" from "abnormal" are fundamentally different from those used to distinguish a "husky" from a "wolf."

Recent research has converged on a shared insight: to achieve high-precision anomaly detection, we must bridge the domain gap by adapting general-purpose representations into specialized, anomaly-aware features.

The Problem with Genericity

General-purpose feature extractors are optimized for global object classification. They are designed to be invariant to small textures or local noise to better recognize a "car" regardless of the lighting. But in industrial or medical contexts, that "noise" is often the anomaly itself.

As Yun Liang 0003 and colleagues argue in ToCoAD: Two-Stage Contrastive Learning for Industrial Anomaly Detection, frozen backbones trained on generic datasets miss the subtle textures of the sterile manufacturing world. Similarly, Jia-Chang Feng notes in MIST: Multiple Instance Self-Training Framework for Video Anomaly Detection that features optimized for broad action recognition (like "running") lack the discriminative power to identify specific abnormal behaviors in a surveillance context.

Aligning the Feature Space to "Normal"

The most common strategy for adaptation is to fine-tune or project features using only "normal" data from the target domain. By exposing the model to the specific statistical patterns of a healthy retina or a functional machine, the feature space "contracts" around the expected distribution.

In Anomaly Detection and Biomarkers Localization in Retinal OCT Scans, Liran Tiosano demonstrates that fine-tuning exclusively on normal examples allows a model to detect diverse pathologies like edema with near-perfect accuracy. This works because the adaptation process aligns the feature space with the specific characteristics of the target data, making any deviation—no matter how small—stand out as a statistical outlier.

Learning from Synthetic Deviations

If we only have "normal" data, how do we teach a model what an anomaly looks like? Researchers have turned to synthetic anomaly generation and contrastive learning to force the model to learn discriminative boundaries.

Shuai Lyu and Dongmei Mo introduced the REB (Reducing Biases in Representation) framework, which uses a "DefectMaker" to create artificial anomalies. By training the model to distinguish these synthetic defects from real normal samples, they "unlearn" the biases of natural scene datasets. Similarly, Hanxi Li uses a contrastive loss in Cascade Patch Retrieval to optimize a deep metric encoder specifically for distinguishing between normal and anomalous patches, moving beyond the limitations of frozen features.

Efficient Adaptation via Projection

Retraining a massive neural network for every new factory line is computationally expensive. To solve this, researchers use lightweight "projection heads" that sit on top of frozen backbones.

Beyond Vision: Graphs and Speech

This philosophy of adaptation extends to other modalities. In MetaGAD, Xiongxiao Xu shows that raw embeddings from graph encoders lack the specificity for anomaly detection. They use a meta-learning layer to translate general structural information into "anomaly-aware" features. Even in speech processing, Tzeviya Fuchs and Joseph Keshet found that adapting self-supervised features is necessary to distinguish word boundaries (treated as anomalies) from internal speech patterns in their DSegKNN framework.

Summary of Intuition

The shift in the field is from feature utilization to feature refinement. By treating pretrained models as a starting point rather than a final solution, researchers are building systems that are sensitive to the "local" nuances of a specific domain while ignoring the "global" distractions of the natural world. This adaptation is what allows a model to finally see the hairline crack that ImageNet would have ignored.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_adapting_pretrained_representations_for__92bbecbc,
  title = {Adapting Pretrained Representations for Anomaly Detection},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/adapting-pretrained-representations-for-anomaly-detection/rdr_92bbecbca57346e88d2ef93aff014734},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_adapting_pretrained_representations_for__92bbecbc_v1,
  title = {Adapting Pretrained Representations for Anomaly Detection},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/adapting-pretrained-representations-for-anomaly-detection/rdr_92bbecbca57346e88d2ef93aff014734/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}