Large vision language models layers compared for anomaly detection

Analyzing Multi-Layer Visual Representations of Large Vision-Language Models for Anomaly Detection

Computer Vision and Pattern Recognition

Summary

Detecting unusual or unexpected things in images is important for many tasks. This paper looks at how different layers inside big vision-language AI models help find such anomalies. The layers near the start focus on details like shapes and textures, while deeper layers capture meanings linked to language. The authors compare using single layers versus combining layers and show which choices work best for spotting anomalies. Their work helps people pick the right parts of these complex models for vision tasks.

What this means in practice

  • For security system developers: Improve detection of unusual activities or objects in surveillance by selecting optimal model layers for image anomaly detection.
  • For quality control engineers: Enhance automated visual inspection systems to better identify defects in products by using multi-layer features from vision-language models.

Authors

Satoshi Hashimoto, Hitoshi Nishimura, Mori Kurokawa

Abstract

In this paper, we analyze multi-layer visual representations in large vision-language models (LVLMs) and examine the effectiveness of layer-wise features and multi-layer fusion for anomaly detection. Representative LVLMs connect visual encoder features to a language model through a projector. In this design, deep visual encoder features carry high-level semantics and alignment with text representations, whereas shallow and intermediate layers retain information relevant to vision-centric tasks, such as local appearance and fine-grained shape. It is therefore important to choose layer representations and fusion methods according to the nature of the downstream task. Focusing on anomaly detection, we compare layer-wise features and multi-layer fusion across multiple supervision levels and a variety of classifiers, and examine from several perspectives how multi-layer visual representations affect downstream performance. By analyzing the resulting performance differences, we further discuss the contribution of each layer representation to anomaly detection and provide empirical insights into representation selection for vision-centric tasks.