DriftAD: Visually-Guided Text Drift for Few-Shot Industrial Anomaly Detection
DriftAD is a few-shot industrial anomaly detection framework that overcomes the limitations of static text prompts by introducing a Visually-Guided Text Drift mechanism to dynamically generate spatially and layer-wise adaptive anomaly descriptors, significantly improving detection performance on MVTec-AD and VisA datasets.
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 vast, automated world of modern manufacturing, keeping products perfect is a constant battle against the invisible. Machines assemble thousands of identical items every hour, but the moment a tiny scratch appears on a metal surface or a subtle discoloration mars a fabric, the entire batch risks failure. For decades, computers have struggled to spot these flaws because they are rare and unpredictable. Traditional methods required teaching a computer to recognize what "normal" looks like for every single type of product, a slow and expensive process that broke down as soon as a factory introduced a new item. Recently, a new approach emerged using artificial intelligence models that were originally trained to understand both images and language. These models can read a description like "a damaged bottle" and look for it in a picture, offering a flexible way to find defects without needing thousands of examples. However, even these advanced systems have a blind spot: they tend to treat a defect as a single, uniform idea, failing to notice that a flaw might look different depending on where it is or how deep it sits within the layers of the image data.
Researchers at Nanyang Technological University and Huazhong University of Science and Technology have developed a new system called DriftAD to fix this specific weakness. Their work, presented for the 2026 ACM International Conference on Multimedia, introduces a way to make the computer's understanding of a defect "drift" or shift dynamically as it looks at different parts of an image. Instead of using a single, static description of a flaw that stays the same no matter what the computer sees, DriftAD allows that description to change based on the local visual context. Imagine a security guard who, instead of holding a single, rigid description of a suspect, adjusts their mental image of that suspect in real-time as they scan different areas of a crowd, accounting for lighting, distance, and angle. In the same way, this new method takes a frozen, unchanging text description of a defect and gently nudges it to match the specific visual details of the area it is currently examining.
The process begins by sharpening the computer's view of the image. The system first uses specialized branches to highlight subtle signals that might otherwise be hidden by the dominant, perfect patterns of a normal product. It looks at the image through both a spatial lens, comparing each small patch to its immediate neighbors to find deviations, and a frequency lens, analyzing the underlying patterns of the image to spot irregularities that the eye might miss. Once these faint defect signals are amplified, the system engages its core innovation: Visually-Guided Text Drift. Here, the computer takes the standard text description of an anomaly and, guided by the visual features it just amplified, shifts that description into a new, customized version for every single layer of its analysis. This means that as the computer peels back the layers of the image, from the broad shapes down to the fine textures, the definition of what constitutes a "defect" evolves to fit the specific scale and location of the potential flaw.
To ensure these shifting descriptions are useful, the system uses them as probes to scan the image again. It asks the visual features, "Does this part of the image match the current, customized description of a defect?" If the answer is yes, that part of the image is highlighted; if not, it is ignored. This creates a highly focused map of where the problem lies, filtering out the noise of the background. The researchers tested this approach on two major industrial datasets, MVTec-AD and VisA, which contain thousands of images of various products ranging from metal nuts to cables and carpets. They challenged the system with very limited data, providing it with only one, two, or four examples of a perfect product to learn from, a scenario known as few-shot learning.
The results were decisive. In tests measuring how well the system could identify defective images and pinpoint the exact location of the flaw, DriftAD outperformed all existing methods across every setting. On the MVTec-AD dataset, the system achieved an image-level accuracy score of 97.2 percent with just one example, and a pixel-level precision of 96.8 percent. On the VisA dataset, which features more complex and varied defects, it reached 93.1 percent accuracy for image detection and 97.4 percent for locating the specific pixels of the defect. These numbers represent a significant leap forward, surpassing the previous best methods by a clear margin. The study confirms that by allowing the text description of a defect to move and adapt to the visual reality of the image, rather than forcing the image to fit a rigid description, machines can detect industrial flaws with a level of precision that was previously out of reach. This approach does not require retraining the entire system for every new product, making it a scalable solution for the dynamic needs of modern manufacturing.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.