Siamese Network

Category: Neural Networks & Architectures

A neural network architecture with two identical subnetworks sharing weights, designed to learn similarity between input pairs.

Full Explanation

Siamese Networks consist of two identical subnetworks that share the same architecture and weights, processing two inputs simultaneously and producing embeddings that can be compared using a distance metric. The network is trained with pairs (or triplets) of examples to learn an embedding space where similar items are close together and dissimilar items are far apart. Common loss functions include contrastive loss (for pairs) and triplet loss (for triplets). Siamese networks are widely used for face verification (determining if two faces belong to the same person), signature verification, one-shot learning, and visual object tracking. The shared weights ensure that both inputs are encoded consistently in the same embedding space. Siamese networks were an early and influential approach to metric learning and representation learning, predating the widespread use of contrastive learning methods.

Related Terms

More in Neural Networks & Architectures

Explore More

  • AI Tools Library — Discover AI tools related to Siamese Network
  • AI Education — Courses to learn about Neural Networks & Architectures
  • AI News — Latest news and updates