Question: How they compute similarity between the representations?
Answer: similarity is computed as the cosine of the produced $h_{L}$ and $h_{R}$ sentence/image representations