Note that since we use SGD to learn our parameters, we take the max over each mini-batch (this is similar to<cite> Kiros et al. (2014)</cite> , while empty circles are negative samples for the query i. The dashed circles on the two sides are drawn at the same radii.