Abstract
Standard cross-entropy loss often results in neural networks with complex, brittle decision boundaries, making them vulnerable to adversarial attacks. This paper introduces the Gaussian class-conditional simplex (GCCS) loss, a training objective that maps input data into a latent feature space where classes follow well-separated Gaussian distributions centered on the vertices of a regular simplex. This approach not only achieves state-of-the-art accuracy on standard benchmarks but also significantly enhances model robustness against adversarial perturbations without the need for computationally expensive adversarial training.
Introduction
Deep neural networks (DNNs) have achieved remarkable success in various classification tasks, yet they remain notoriously susceptible to adversarial attacks—small, often imperceptible changes to input data that lead to incorrect predictions. The authors argue that the standard cross-entropy loss function is a primary contributor to this brittleness. Cross-entropy tends to push data points toward the edges of decision boundaries, creating narrow margins that are easily exploited by attackers.
To address this, the researchers propose the Gaussian class-conditional simplex (GCCS) loss. By explicitly controlling the geometry and distribution of features in the latent space, GCCS builds robustness directly into the model's architecture.
The GCCS Framework
The core innovation of GCCS lies in replacing the standard softmax-cross-entropy layer with a structured latent space mapping. Instead of maximizing label likelihood, the network is trained as an encoder that maps inputs into a feature space $z$ where each class is assigned a specific target distribution.
Simplex Geometry and Gaussian Targets
The target means for each class are positioned at the vertices of a regular simplex. In a $D$-dimensional space, a regular simplex ensures that every class center is equidistant from every other center, maximizing inter-class separation uniformly. Each class is then modeled as a $D$-variate Gaussian distribution centered at its respective vertex.
Loss Function and Decision Rule
The GCCS loss function incorporates two primary terms:
- Kullback-Leibler (KL) Divergence: Aligns the network's output feature distribution with the target Gaussians.
- Kurtosis Regularization: Constrains the "tails" of the distributions to ensure features remain tightly clustered around their class centers.
Classification is performed using a simple Voronoi partition: a sample is assigned to the class whose simplex vertex is closest in the latent space. This eliminates the need for complex final layers and ensures a clear, geometric decision boundary.
Experimental Results
The GCCS method was evaluated on standard benchmarks including MNIST, SVHN, and CIFAR-10/100 using ResNet-18 and Shake-Shake architectures.
Accuracy and Robustness
On CIFAR-10, GCCS achieved a top accuracy of 97.06%, surpassing the 95.78% achieved by standard cross-entropy. More importantly, the model demonstrated exceptional resilience to adversarial attacks like Projected Gradient Descent (PGD) and the Jacobian-based Saliency Map Attack (JSMA). While standard models often see their accuracy plummet to near zero under these attacks, GCCS-trained models maintain high performance.
As shown in the visualizations above, GCCS maintains highly separable feature distributions. This "uniformity" in the feature space means there are no "weak spots" for an attacker to exploit, as the distance required to push a sample into another class's territory is maximized and consistent across all classes.
Conclusion
GCCS offers a "plug-and-play" alternative to cross-entropy that significantly improves both accuracy and adversarial robustness. By shifting the focus from boundary-finding to feature-distribution shaping, it provides a more principled way to build reliable neural networks. Future work may explore non-Gaussian distributions or adaptive simplex geometries for even larger-scale datasets with thousands of classes.
Summary updated