Analyzing Multi-Layer Visual Representations of Large Vision-Language Models for Anomaly Detection
Organizations: KDDI Research, Inc.
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.
Figures & tables
| Task | Benchmark | Protocol | Method | Best feature | Best AUROC |
|---|---|---|---|---|---|
| Video AD | UBnormal | Supervised | Cls. | V-All | 70.92 |
| Weakly-supervised | Cls. | V-Deep | 68.55 | ||
| One-class | Pred. | L-27 | 57.68 | ||
| One-class | Recon. | L-20 | 60.10 | ||
| UCSD Ped2 | Supervised | Cls. | L-13 | 78.89 | |
| Weakly-supervised | Cls. | V-All | 76.82 |
| Vision | LLM | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | V-7 | V-15 | V-23 | V-31 | V-Proj | V-Shallow | V-Deep | V-All | L-06 | L-13 | L-20 | L-27 | L-Shallow | L-Deep | L-All |
| Supervised | 60.24 | 63.38 | 66.53 | 66.80 | 70.23 | 61.63 | 68.73 | 70.92 | 62.20 | 60.49 | 66.65 | 65.45 | 63.11 | 64.53 | 65.36 |
| Weakly-supervised | 54.90 | 53.32 | 58.20 | 60.24 | 67.48 | 54.96 | 68.55 | 62.46 | 53.95 | 53.92 | 60.16 | 61.55 | 50.77 | 60.25 | 59.42 |
| One-Class-Pred | 53.99 | 55.37 | 55.44 | 55.47 | 54.08 | 55.37 | 54.39 | 54.63 | 55.12 | 54.92 | 57.21 | 57.68 | 55.14 | 57.54 | 56.28 |
| One-Class-Recon | 56.46 | 58.00 | 58.57 | 57.71 | 55.98 | 57.25 | 56.72 | 56.90 | 57.90 | 56.87 | 60.10 | 59.53 | 57.12 | 59.99 | 58.78 |
| Vision | LLM | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | V-7 | V-15 | V-23 | V-31 | V-Proj | V-Shallow | V-Deep | V-All | L-06 | L-13 | L-20 | L-27 | L-Shallow | L-Deep | L-All |
| Supervised | 72.95 | 69.98 | 78.30 | 72.50 | 75.58 | 73.44 | 77.33 | 74.10 | 72.29 | 78.89 | 73.23 | 74.53 | 76.44 | 76.49 | 77.58 |
| Weakly-supervised | 74.25 | 69.15 | 75.08 | 67.29 | 72.93 | 75.26 | 76.62 | 76.82 | 67.54 | 74.04 | 71.98 | 70.17 | 69.70 | 72.59 | 70.01 |
| One-Class-Pred | 58.46 | 71.51 | 71.23 | 58.83 | 51.05 | 64.63 | 58.32 | 59.24 | 59.74 | 68.02 | 62.34 | 57.50 | 69.63 | 60.28 | 62.33 |
| One-Class-Recon | 90.17 | 92.28 | 93.77 | 96.06 | 93.16 | 95.44 | 95.60 | 96.45 | 91.38 | 95.51 | 94.42 | 90.85 | 94.47 | 93.99 | 95.89 |
| Vision | LLM | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Metric | V-7 | V-15 | V-23 | V-31 | V-Proj | V-Shallow | V-Deep | V-All | L-06 | L-13 | L-20 | L-27 | L-Shallow | L-Deep | L-All |
| One-Class-Recon | Overall | 63.75 | 70.81 | 79.81 | 84.80 | 85.60 | 68.46 | 84.23 | 81.27 | 80.90 | 80.67 | 82.97 | 81.40 | 81.42 | 82.95 | 82.29 |
| One-Class PatchCore | Overall | 80.96 | 94.01 | 93.53 | 82.32 | 79.43 | 91.83 | 82.46 | 87.57 | 75.60 | 81.39 | 80.24 | 79.14 | 78.50 | 78.54 | 80.14 |
| Vision | LLM | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Metric | V-7 | V-15 | V-23 | V-31 | V-Proj | V-Shallow | V-Deep | V-All | L-06 | L-13 | L-20 | L-27 | L-Shallow | L-Deep | L-All |
| One-Class-Recon | Overall | 70.49 | 73.73 | 76.34 | 78.67 | 77.84 | 72.66 | 78.33 | 79.92 | 74.57 | 71.70 | 72.77 | 71.88 | 73.43 | 72.47 | 73.12 |
| One-Class PatchCore | Overall | 67.58 | 69.09 | 71.40 | 67.42 | 62.37 | 70.14 | 64.01 | 67.42 | 63.52 | 68.41 | 66.99 | 65.36 | 65.73 | 67.82 | 68.94 |
| MVTec AD | MVTec LOCO | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Metric | Bottle | Cable | Capsule | Carpet | Grid | Hazelnut | Leather | MetalNut | Pill | Screw | Tile | TBrush | Trans. | Wood | Zipper | Brkfst | Juice | Screw | Push | Splice |
| One-Class-Recon | Layer | V-S | V-23 | V-S | L-20 | L-D | V-23 | L-D | V-23 | V-23 | V-23 | V-31 | V-S | V-15 | L-A | V-P | V-D | V-A | V-A | V-S | V-23 |
| AUROC | 98.7 | 94.7 | 92.2 | 93.0 | 80.8 | 99.6 | 97.6 | 95.6 | 92.4 | 90.6 | 98.3 | 94.7 | 83.5 | 100 | 86.6 | 88.0 | 93.0 | 76.6 | 79.0 | 82.9 | |
| One-Class PatchCore | Layer | V-15 | V-15 | V-15 | V-23 | V-23 | V-23 | V-15 | V-15 | V-23 | V-S | V-23 | V-31 | V-15 | L-27 | V-23 | L-20 | V-A | V-S | V-7 | V-23 |
| AUROC | 99.7 | 93.0 | 99.8 | 99.8 | 100 | 99.8 | 100 | 100 | 98.3 | 97.9 | 99.3 | 98.9 | 98.0 | 99.8 | 94.2 | 81.6 | 88.7 | 70.6 | 62.5 | 80.2 | |
Feature Fusion
Feature fusion combines complementary representations across modalities, scales, layers, or feature types to improve prediction and perception.
See all 128 papers