HomeAI & Machine LearningMatching Networks: Attention-Weighted Few-Shot Classification

Matching Networks: Attention-Weighted Few-Shot Classification

Interactive 3D lab: drag a query point around an embedding space and watch attention weights over a labelled support set decide its class in real time, the core mechanic behind Matching Networks for few-shot learning.

AI & Machine Learning3DModerate60 FPS📱 Mobile-adapted
ds-topic-49 ↗ Open standalone

Few-shot classifiers like Matching Networks never fine-tune on a new class — instead they attend over a small labelled support set and vote. This simulation lays that attention mechanism out as real 3D geometry: support points from N classes sit in an embedding plane, a draggable query point casts a distance-weighted attention line to every one of them, and the predicted class is whichever label collects the most attention mass. A sharpness slider morphs the vote continuously between a soft, blurry consensus and a hard nearest-neighbour lookup, while live readouts track prediction confidence and attention entropy as you move the query across the plane.

⚙ Under the hood

Drag a query point around a labelled embedding space and watch attention weights over the support set decide its class in real time, the core mechanic behind Matching Networks for few-shot learning.

meta-learningfew-shot-learningattentionmatching-networksembeddingsclassification

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)