AI engineering glossary · NLP embeddings

What is siamese network?

Siamese network (also called Twin network): A neural architecture that passes two inputs through the same network with shared weights and then compares the outputs. It is trained so that similar pairs land close together and dissimilar pairs land far apart.

Level: intermediateTopic: NLP embeddings

Siamese network: an example

Two job descriptions are encoded by the same network, and their vectors are compared to decide if they describe the same role.

Related terms

More NLP embeddings terms

Where you learn it

Siamese network is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.