Source domain (labelled) Target domain (unlabelled)
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Domain-Adversarial Transfer Learning: The Gradient Reversal Layer

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 3D feature-embedding space with a labelled source-domain point cloud (spheres) and a shifted, unlabelled target-domain cloud (octahedra), 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. Live readouts track the domain classifier's accuracy (it should collapse toward chance level, 50%, as adaptation succeeds) and 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.