Efficient siamese structure