Introduction
Standard deep learning training relies heavily on the Cross-Entropy (CE) loss function. While effective, CE imposes several constraints: it requires a fixed output dimension matching the number of classes, forces all samples of a class into a single point in the output space (topological distortion), and uses arbitrary one-hot encodings. Researchers have proposed a novel alternative based on graph signal smoothness that addresses these limitations by focusing on the relative positioning of data points in a similarity graph.
Methodology: Graph Smoothness Loss
The proposed method leverages Graph Signal Processing (GSP) to define a loss function that maximizes the distance between outputs of different classes on a similarity graph.
- Graph Construction: For each mini-batch, a $k$-nearest neighbor (k-NN) graph is constructed based on the $d$-dimensional representations produced by the network.
- Smoothness Optimization: Instead of pulling same-class items together (like Triplet Loss), the Graph Smoothness Loss focuses on ensuring that label signals are not smooth across the graph. This forces representations of different classes to be distant while allowing a single class to form multiple natural clusters.
This approach decouples the output dimension from the class count, allowing for greater architectural flexibility. For instance, a 100-class problem could be mapped to a 10-dimensional space without the rigid constraints of one-hot encoding.
Experimental Results
The method was evaluated on CIFAR-10, CIFAR-100, and the Street View House Numbers (SVHN) datasets using a PreActResNet-18 architecture.
Performance and Accuracy
The proposed loss function proves to be highly competitive with traditional Cross-Entropy. Notably, on the SVHN dataset, the Graph Smoothness Loss (using a 10-NN classifier) achieved a test error of 3.34%, outperforming the 3.69% error rate of the standard CE-Argmax approach.
Robustness to Noise
Beyond raw accuracy, the flexibility of the graph-based approach enhances model robustness. By allowing data to form natural clusters rather than forcing them into rigid boundaries, the network becomes more resilient to input corruption. In evaluations using the Mean Corruption Error (MCE) metric, the proposed method scored 95.28, significantly better than the baseline CE score of 100 (where lower is better).
Discussion and Future Work
The Graph Smoothness Loss offers a promising path toward more flexible and robust neural architectures. By moving away from fixed label vectors, it enables incremental learning and better preserves the natural topology of data.
However, the method introduces new hyperparameters, such as the number of neighbors ($k$) and the output dimension ($d$), which require careful tuning. Future research may focus on optimizing architectures specifically for graph-based losses and improving the scalability of mini-batch graph construction for extremely large datasets.
Summary updated