Domain-Adversarial Transfer Learning: The Gradient Reversal Layer (2D)
Interactive 2D simulator of Domain-Adversarial Neural Networks (DANN): watch a gradient-reversal layer fight a domain classifier to pull a shifted target-domain point cloud back onto the source distribution in a live 2D embedding-space scatter plot with a scrubbable accuracy-history chart, drag-to-pan/zoom view, and fully exposed adaptation hyperparameters.
Transfer learning breaks down the moment a model's target data doesn't look like the data it was trained on — a domain shift. This simulator renders a real 2D feature-embedding space with a labelled source-domain point cloud (circles) and a shifted, unlabelled target-domain cloud (diamonds), then runs the actual gradient-reversal-layer update from Domain-Adversarial Neural Networks (DANN) every frame: a logistic-regression domain classifier tries to tell the two clouds apart while the reversed gradient pushes both clouds toward a shared, domain-invariant representation. A live accuracy-history strip tracks the domain classifier's accuracy (it should collapse toward chance level, 50%, as adaptation succeeds) alongside the target domain's task accuracy under a source-only decision boundary, so you can watch domain confusion directly translate into recovered classification accuracy — or watch it collapse the task entirely if λ is pushed too high. Drag the main view to pan and scroll to zoom, exactly like inspecting an embedding space in a real ML notebook.
Interactive 2D visualizer of a Domain-Adversarial Neural Network (DANN): a domain classifier fights a gradient reversal layer over a live labelled source cloud and shifted unlabelled target cloud in a pannable/zoomable 2D embedding-space scatter plot, with a rolling accuracy-history chart tracking domain-classifier accuracy and recovered target-task accuracy.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install