(2005) used a convolutional network and designed a contrastive loss function for optimizing a Eucliden distance metric.
the network of S2Net is equivalent to a linear projection matrix and has a pairwise loss function.