Skip to content
image-classification · wild Rotation · Crop · Mirror · Blur · Low-Light · Synset Audit WASM q8 · 32.32 MB License: Apache-2.0

Wild: Robustness, Window-Boundary & Synset Ambiguity Lab

Shifted-window Transformers use fixed 7×7 local windows with relative position bias. Stress-test Swin-Tiny live across Rotation (90°/180°), Center Crop (60%), Horizontal Mirror, Blur, Low-Light, High Contrast, and a +14px half-window shift, and audit how ImageNet-1k sibling synsets compete inside the top-5 distribution.

1 · Perturbation & boundary stress probe

Initialising model loader…

transform: clean (224×224)

Baseline Top-1–
Perturbed Top-1–
Probability shift–
Target retention–
Mean |prob shift|–
Top-1 rank flips–
Top-1 rank flip & probability shift table (every perturbation vs clean baseline)
Perturbation Group Transform Top-1 prediction Prob shift Retention Rank flip Latency
Run the full 9-step stress suite to populate the rank flip & shift table.

2 · Top-5 ImageNet synset ambiguity audit

Selected reference photo for synset ambiguity audit

Inspecting the top-5 probability distribution separates true model uncertainty from fine-grained ImageNet synset crowding (e.g. sibling dog breeds or dishware).

Ambiguity verdict–
Top-1 vs Top-2 margin–
Top-5 mass–
Sibling synsets–
Top-5 runner-up synset competition vs Top-1
Rank Competing synset Probability Ratio to Top-1 Relation
Run clean baseline or any perturbation to audit top-5 ImageNet synset ambiguity.

See inside the code

Show the code — swin-core.mjs: evaluatePerturbation() & summarizeStressSuite()
Show the code — swin-core.mjs: analyzeSynsetAmbiguity() (top-5 ImageNet sibling audit)
Show the code — swin.js: renderPerturbedInput() (rotate, crop, mirror, shift, filters)

References