Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes
Accepted

Why are Siamese Neural Networks used instead of a single neural network?

I come up with multiple advantages for siamese against a single neural network for similarity measuring: Training Phase. If using a single network to replace Siamese, it might be required a double ...
OmG's user avatar
  • 1,816
4 votes
Accepted

How contrastive loss work intuitively in siamese network

I think you are confused about why the margin exists. The margin exists in contrastive learning because we only want the model to output embeddings where negative samples are far from each other to a ...
DKDK's user avatar
  • 329
3 votes

Why are Siamese Neural Networks used instead of a single neural network?

In addition to @Omg's answer note that Siamese networks are typically used in situations where applying (A,B) to the inputs must generate the same output as ...
Andre Holzner's user avatar
2 votes

What is the difference between the triplet loss and the contrastive loss?

These are not the same loss, but are often confused because many people use the term contrastive to refer to the triplet loss. Contrastive Loss is defined in the paper "Dimensionality Reduction ...
Dr. Snoopy's user avatar
  • 1,355

Only top scored, non community-wiki answers of a minimum length are eligible