Term
hinge loss
Meaning
A margin-based adversarial loss in which each score contributes only when it falls on the wrong side of a fixed margin, typically through a max(0, 1 − y·score) style term. In GANs it is applied to discriminator scores for real and generated samples, and the generator is trained to raise the discriminator score of its samples.
Source Spectral Normalization for Generative Adversarial Networks
How papers use it 5 papers
Spectral Normalization for Generative Adversarial Networks
Use Used as an alternative objective to the standard GAN loss, with separate discriminator and generator losses built from hinge terms on the discriminator outputs. SN-GANs trained with this loss performed better than with the standard loss on CIFAR-10 and STL-10, according to the reported inception scores and FID. The loss is applied in the experiments that compare it with the standard loss.
Real-world Anomaly Detection in Surveillance Videos
Use Used in the supervised SVM objective and, in its ranking form, as the loss between the highest-scored segment in a positive bag and the highest-scored segment in a negative bag. The loss pushes the positive maximum above the negative maximum by a margin of 1.
Meaning A margin-based loss that equals zero when a correctly ordered or correctly classified example exceeds a margin, and grows linearly with the amount by which that margin is violated.
Free-Form Image Inpainting with Gated Convolution
Use Serves as the adversarial objective of SN-PatchGAN. The generator loss is the negative mean discriminator output on generated images, while the discriminator loss applies ReLU(1 minus the score) to real samples and ReLU(1 plus the score) to generated samples. It is combined with a pixel-wise l1 reconstruction loss at a 1:1 balance.
Meaning A margin-based objective that penalizes scores on the wrong side of a fixed margin, written with ReLU terms of the form one minus or one plus the discriminator score.
Recent Advances in Convolutional Neural Networks
Use Discussed as one of four representative loss functions in the loss function part of the improvements section. The paper notes that the squared form is differentiable and penalizes margin violations more heavily than the L1 form. It cites a result from [19] comparing softmax with L2-SVMs in deep networks, where the L2-SVM was reported to outperform softmax on MNIST.
Meaning A margin-based loss used to train large-margin classifiers such as support vector machines. For each sample it sums the penalties max(0, 1 − δ wᵀx) over the classes, where δ is +1 for the correct class and −1 otherwise. The exponent p selects the L1 form (p = 1) or the squared L2 form (p = 2).
Semantic Image Synthesis with Spatially-Adaptive Normalization
Use Replaces the least squares adversarial term of the pix2pixHD training objective when training the SPADE generator and its multi-scale discriminator, while the other pix2pixHD loss weights are kept.
Meaning A margin-based adversarial loss for training GAN discriminators and generators, which penalizes scores that fall on the wrong side of a fixed margin instead of penalizing squared distance to target values.