Question about BG-SPP loss
Opened this issue · 1 comments
Hui-design commented
Hi, thank you for the excellent work !
I would like to ask, if we replace the logp term in BG-SPP loss with pair-wise distances, is it equivalent to conventional contrastive loss? Roughly, the BG-SPP loss can be understood as a variation of contrastive loss within the normalized-Flow framework?
xcyao00 commented
I think you can consider that the abnormal and normal boundaries are used as contrastive object in our BG-SPP loss. After replacing the logo term with pair-wise distances, our BG-SPP loss can be seen as a limited contrastive loss because we only push the distances between anomalies and normals out of the abnormal boundary, while pulling the distances between normals and normals closer to the normal boundary.