← Homepage
University of Toronto

Probing vision transformers across abstraction and style

Poster notes: abstraction retrieval on Toronto Scenes, and content/style probing on Things × ArtBench. Figures, failure cases, and extra plots are below.

Overview

Two measurements on frozen ViT-B models: (1) how retrieval changes when Toronto Scenes photographs are driven toward line drawings, and (2) whether a linear probe on CLS can recover artistic style when raw cosine kNN cannot.

Key findings

  1. Content and style can be read off the same CLS token with two linear probes. Freeze a ViT-B/16, take CLS at a given layer, and train two independent linear maps: one for object identity, one for artistic style. On Things × ArtBench, raw cosine kNN on late CLS barely retrieves style (Recall@1 under 1%). The 256-D style probe reaches about 88%. Content is already easy from the same token.
  2. Sketch-level category retrieval depends on how the ViT was pretrained. Same architecture (ViT-B/16), Toronto Scenes at λ=0: DINOv3 category R@1 is 97.9%, MAE is 25.5%.
  3. Stronger style probes make more in-category mistakes. As probe dimension and layer depth grow, incorrect style neighbors more often share the query’s object class. The probe is picking style while still leaking content.
  4. Short prefixes of the style probe work if you L2-normalize them. Nested slices of the 256-D style vector stay close to the full probe after re-normalization. Without it, truncated prefixes drop.

1. Diffusion Abstraction Spectrum (DAS)

Source photographs come from the Toronto Scenes dataset. We morph each scene with SDXL + ControlNet along an abstraction axis λ ∈ [0,1] (line drawing → photograph). Models are evaluated with zero-shot instance / category retrieval along the spectrum. Expanded figures and curves live on the visual abstraction report.

Abstraction spectrum grid
Toronto Scenes examples across λ. At λ=0, DINOv3 category retrieval is high; MAE is not.

2. Style benchmark (Things100 × ArtBench)

UCAST-style pairings[1] give independent content and style labels using THINGS objects[2] and ArtBench styles[3]: the same object under many artistic styles, and the same style across many objects. This enables dual zero-shot retrieval (content vs style). See the zero-shot style report for the full probing suite.

5x5 content by style grid
5×5 content×style matrix (Starry Night, The Scream, Great Wave, Kandinsky, Seurat).

3. Method: CLS token linear probing

Freeze a ViT-B/16 backbone. At every layer ℓ ∈ {1…12}, take the CLS token h^(ℓ) ∈ R^768 and train two independent linear maps to 256-D embeddings for content and style with a sigmoid contrastive loss. Evaluation is zero-shot kNN with cosine similarity (Recall@1 / mAP).

Method architecture
Dual content/style probes on frozen CLS features.

4. Results: probes recover style

Across Supervised, CLIP, BEiT3, DINOv3, and MAE, raw late-layer CLS style retrieval is under 1%. Trained probes raise style Recall@1 / mAP; higher probe dimensions help, and the unprobed CLS baseline stays low in late layers.

Model comparison style mAP
Style-split mAP across layers and probe dimensions (solid = probed; dashed = raw CLS).
Style-probe within-category incorrect heatmap
Style-probe within-category incorrect %. As probe dimension and depth grow, more style mistakes land inside the same content class.

The poster keeps this single style heatmap for simplicity. Full content+style grids, per-split breakdowns, Recall@1 curves, and the Matrioshka re-normalization study are in Bonus analyses.

5. Full incorrect-retrieval gallery

The poster shows four representative pairs. Below are curated incorrect neighbors from the DINOv3 dim-256 content probe. Several pairs share artistic style and differ in object class (tagged below).

#01 broccolilobster wrong class · same style
query broccoli
Query
retrieved lobster
Incorrect NN
#02 pumpkinlemon wrong class · same style
query pumpkin
Query
retrieved lemon
Incorrect NN
#03 applelemon wrong class · same style
query apple
Query
retrieved lemon
Incorrect NN
#04 plateplate wrong instance · same style
query plate
Query
retrieved plate
Incorrect NN
#05 catwolf wrong class · same style
query cat
Query
retrieved wolf
Incorrect NN
#06 anthedgehog wrong class · same style
query ant
Query
retrieved hedgehog
Incorrect NN
#07 broccolibroccoli wrong instance · same style
query broccoli
Query
retrieved broccoli
Incorrect NN
#08 elephantdeer wrong class · same style
query elephant
Query
retrieved deer
Incorrect NN
#09 lemonlemon wrong instance · same style
query lemon
Query
retrieved lemon
Incorrect NN
#10 orangeorange wrong instance · same style
query orange
Query
retrieved orange
Incorrect NN
#11 potatopotato wrong instance · cross style
query potato
Query
retrieved potato
Incorrect NN
#12 leopardant wrong class · cross style
query leopard
Query
retrieved ant
Incorrect NN
#13 zebracow wrong class · cross style
query zebra
Query
retrieved cow
Incorrect NN
#14 potatopotato wrong instance · same style
query potato
Query
retrieved potato
Incorrect NN
#15 duckkey wrong class · cross style
query duck
Query
retrieved key
Incorrect NN
#16 duckturtle wrong class · same style
query duck
Query
retrieved turtle
Incorrect NN
#17 lemonlemon wrong instance · same style
query lemon
Query
retrieved lemon
Incorrect NN
#18 penguinleopard wrong class · cross style
query penguin
Query
retrieved leopard
Incorrect NN
#19 pumpkinpumpkin wrong instance · same style
query pumpkin
Query
retrieved pumpkin
Incorrect NN
#20 eagleeagle wrong instance · same style
query eagle
Query
retrieved eagle
Incorrect NN
#21 squirrelshark wrong class · cross style
query squirrel
Query
retrieved shark
Incorrect NN
#22 plateplate wrong instance · same style
query plate
Query
retrieved plate
Incorrect NN
#23 grapelobster wrong class · cross style
query grape
Query
retrieved lobster
Incorrect NN
#24 lemonlemon wrong instance · same style
query lemon
Query
retrieved lemon
Incorrect NN
#25 koalagrape wrong class · cross style
query koala
Query
retrieved grape
Incorrect NN
#26 rabbitgrape wrong class · cross style
query rabbit
Query
retrieved grape
Incorrect NN
#27 plateplate wrong instance · same style
query plate
Query
retrieved plate
Incorrect NN
#28 pigkoala wrong class · same style
query pig
Query
retrieved koala
Incorrect NN
#29 helicopterhelicopter wrong instance · same style
query helicopter
Query
retrieved helicopter
Incorrect NN
#30 lemonlemon wrong instance · same style
query lemon
Query
retrieved lemon
Incorrect NN

Extra plots

Plots that did not fit on the poster: retrieval grids, within-category heatmaps, total-error heatmaps, and nested-dimension (Matrioshka) re-normalization.

B1. Full model comparison grids

Style and instance splits for both mAP and Recall@1. Solid curves = probed dimensions; dashed = raw CLS kNN baseline.

Style-split mAP grid
Style split · mAP.
Instance-split mAP grid
Instance split · mAP.
Style-split Recall@1 grid
Style split · Recall@1.
Instance-split Recall@1 grid
Instance split · Recall@1.

B2. Within-category incorrect heatmaps

Fraction of incorrect retrievals that still land in the same content category. Useful for separating style-looking mistakes from random neighbors.

Content and style within-category heatmaps
Left: content probe · Right: style probe (the poster uses the right panel).
Within-category incorrect by evaluation split
2×2 by probe × split (instance vs style evaluation).

B3. Total incorrect-retrieval heatmaps

Total incorrect retrievals heatmap
Average number of incorrect retrievals (content vs style probes).
Total incorrect by split
Broken down by evaluation split.

B4. Matrioshka / nested-dimension study

Nested slices of the 256-D probe test whether early dimensions already carry the task, and whether L2 re-normalization of a truncated prefix matches the full vector. For style, small K with re-norm stays close to the full 256-D probe. Without re-norm, truncated prefixes degrade.

Matrioshka study style split
Matrioshka study · style split.
Matrioshka study instance split
Matrioshka study · instance split.

6. References

  1. Zhang et al., A Unified Arbitrary Style Transfer Framework via Adaptive Contrastive Learning, arXiv 2023.
  2. Hebart et al., THINGS: A database of 1,854 object concepts and more than 26,000 naturalistic object images, PLOS ONE 2019.
  3. Liao et al., The ArtBench Dataset: Benchmarking Generative Models with Artworks, arXiv 2022.