use case · basics · emergent 14×14 foreground PCA & outlier norms · Apache-2.0

Inside DINO v1: Emergent 14×14 Foreground PCA & Patch Outlier Norm Lab

Project all 196 patch embeddings ([196, 384] → [14, 14, 3]) onto their top 3 principal axes to reveal emergent unsupervised object segmentation, alongside a live Patch L2-Norm Outlier Map showing the classic background high-norm "artifact" patches that later motivated DINOv2-Registers and DINOv3.

1. Initialise DINO v1 & Tune Emergent PCA

Initialise DINO v1 ViT-S/16 above to inspect emergent 14×14 RGB PCA and patch L2-norm outliers.

PCA Top-3 Variance–
Foreground Patches–
[CLS] L2 Norm–
Patch Norm Median–
Patch Norm Max–
Outliers (>1.5× Med)–
Tensor NaN Count–

2. Emergent Foreground PCA vs Patch L2-Norm Outlier Map

3-Component RGB PCA ([196, 384] → [14, 14, 3])

Colors map PC1→R, PC2→G, PC3→B across the 196 patch embeddings — foreground objects separate from the background without labels.

Waiting for DINO v1 inference…

Patch L2-Norm Outlier Map (0 Register Tokens)

Gold outlines mark patches whose L2 norm exceeds 1.5× median or mean + 2σ — where register-free ViTs stash global context in low-texture background patches.

Waiting for DINO v1 inference…

Token Norm Spread

Compare with DINOv2-Registers and DINOv3 ViT-S/16: adding 4 register tokens removes these high-norm spatial patch spikes.

Export Diagnostics

Download the exact 196-patch PCA projections, L2 norms, and outlier flags.

Top-8 highest L2-norm patches in the 14×14 DINO v1 grid
Rank Grid Cell (row, col) Patch L2 Norm Ratio to Median Spike Flag
Run DINO v1 above to inspect top-norm patches.

Show the code

Show the code — dino-core.mjs: computePatchPcaRgb() (3-component power-iteration PCA)
Show the code — dino-core.mjs: computeNormDiagnostics() (register-free outlier spike detection)
Show the code — worker.js: ensureLoaded() (shared Transformers.js q8 WASM load)