Triplet Network

Category: Neural Networks & Architectures

A network trained with triplets of anchor, positive, and negative examples to learn embeddings where similar items are closer than dissimilar ones.

Full Explanation

Triplet Networks extend the Siamese network concept by processing three inputs simultaneously: an anchor, a positive example (similar to the anchor), and a negative example (dissimilar to the anchor). The network is trained with triplet loss, which encourages the distance between anchor and positive embeddings to be smaller than the distance between anchor and negative embeddings by at least a specified margin. This approach directly optimizes the relative ordering of distances in embedding space. Mining hard or semi-hard negatives (examples that are close to the anchor but from a different class) is crucial for effective training, as randomly sampled negatives are often too easy. Triplet networks are widely used in face recognition (FaceNet), image retrieval, person re-identification, and any task requiring learned similarity metrics. The approach produces embeddings suitable for nearest-neighbor search and clustering.

Related Terms

More in Neural Networks & Architectures

Explore More

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