\begin{equation}
\begin{aligned}
&\mathcal{L}_{\text {InfoNCE }} \\
=& - \log \frac{\exp \left(\boldsymbol{z}_u^{\mathrm{r},\top} \boldsymbol{z}_u^{\mathrm{a}} / \tau\right)}{\sum_v \exp \left(\boldsymbol{z}_u^{\mathrm{r},\top} \boldsymbol{z}_v^{\mathrm{a}} / \tau\right)+\sum_{v \neq u} \exp \left(\boldsymbol{z}_u^{\mathrm{r},\top} \boldsymbol{z}_v / \tau\right)},
\end{aligned}
\end{equation}
