Introduction
In the field of computer vision, "foundation models" such as CLIP, MAE, and SimCLR are typically evaluated on their semantic prowess—their ability to identify objects like dogs, cars, or toasters. However, in real-world machine learning pipelines, these embeddings are often used for tasks where non-semantic information is crucial, such as detecting image manipulation, assessing quality for data cleaning, or identifying artistic styles. This research explores whether these models discard non-semantic details during training or if such information remains accessible within the embedding space.
Methodology: Probing the Embeddings
The authors employed a technique called probing. They took several popular pre-trained models, froze their weights to ensure the embeddings remained unchanged, and trained small, lightweight Multi-Layer Perceptrons (MLPs) on top of the resulting vectors.
The probes were tested on two primary challenges:
- Fine-grained Prediction: Identifying which of 30 specific transformations (e.g., "Motion Blur," "Solarize," or "Van Gogh Style") was applied to an ImageNet image.
- Generalization: Categorizing unseen transformations within the same family. For instance, after learning various artistic styles, can the probe recognize a "Pasta" style transfer as a "Style" transformation?
The study utilized ImageNet-1k as the base dataset, synthetically applying over 30 transformations across categories including filtering (blur, pixelation), noise (Gaussian, impulse), style transfer, occlusion (icons, text overlays), and color/quality adjustments (hue shifts, JPEG compression).
Key Insights
The researchers evaluated six major models: CAN, MAE, SimCLR, CLIP, ALIGN, and a supervised ViT baseline. Several key findings emerged:
- The "Style" Superpower of Image-Text Models: CLIP and ALIGN, trained on image-caption pairs, are significantly better at recognizing the abstract concept of style. They can identify artistic styles they weren't specifically shown during the probe's training phase, suggesting that language supervision helps models organize visual information into higher-level abstract categories.
- SimCLR’s Hidden Knowledge: Contrastive models like SimCLR are explicitly trained to be invariant to color and brightness. However, the authors found that while the final "projection head" might ignore these details, the layer immediately preceding it still retains that information.
- Masking vs. Contrastive Learning: Models using masking (like MAE and CAN) are generally more sensitive to spatial and quality-based transformations compared to contrastive models.
- No Trade-off Required: Surprisingly, the authors found that a "two-headed" model can predict both the object (semantics) and the transformation (style/quality) without hurting the performance of either task.
Key Results
- Fine-grained Accuracy: Almost all foundation models were highly sensitive to transformations, with most achieving over 93% accuracy. The CAN model led with 98.27%.
- Style Generalization: CLIP achieved 86.24% accuracy on unseen styles, vastly outperforming vision-only models like MAE (28.92%).
- Noise Generalization: MAE proved superior at noise detection, identifying unseen noise types with 94.67% accuracy, compared to 59.55% for SimCLR.
- Robustness vs. Invariance: The results challenge the "common wisdom" that models must be invariant to noise to be robust. Instead, these models are robust despite being highly sensitive to the presence of noise.
Limitations and Future Work
While synthetic transformations allowed for controlled experiments, real-world domain shifts (like natural lighting changes) may behave differently. Future research directions include developing "lossless" embeddings that retain low-level information without sacrificing semantic performance and investigating how "transformation awareness" can improve text-to-image generative models.
Summary updated