Introduction
Deep Neural Networks (DNNs) have revolutionized machine learning through their ability to learn complex features end-to-end. However, this flexibility often comes at a cost: the intermediate "latent spaces" within hidden layers remain largely unconstrained. Without structural guidance, networks may develop redundant features or highly distorted geometries, making them susceptible to adversarial attacks and incidental noise.
This paper proposes a novel framework using Latent Geometry Graphs (LGGs) to model and constrain the relationships between data points as they pass through a network. By leveraging Graph Signal Processing (GSP) concepts, the authors introduce a way to enforce desirable properties on latent representations without requiring rigid, hand-crafted features.
Methodology: Latent Geometry Graphs
The core idea is to shift focus from individual data points to the relationships within a batch of points. For any given layer in a DNN, an LGG is constructed where each vertex represents a data point in the batch. Edges are established based on the similarity (e.g., cosine similarity or RBF kernel) of their intermediate representations. The graph is typically thresholded to keep only the $k$-nearest neighbors and then normalized.
Measuring Label Variation
To quantify how well a latent space separates different classes, the authors utilize the concept of label variation ($\sigma$). This metric, derived from GSP, calculates the weighted sum of connections between nodes belonging to distinct classes.
A lower label variation indicates that the network has successfully clustered similar classes together in that specific layer's latent space.
Applications across the Pipeline
The authors demonstrate the utility of LGGs in three key areas:
- Graph Knowledge Distillation (GKD): By training a smaller "student" network to mimic the LGGs of a larger "teacher," knowledge is transferred via relative topologies rather than absolute coordinates. This makes the process dimension-agnostic.
- Latent Embedding Design: Instead of relying solely on cross-entropy at the output, the network can be trained to directly minimize label variation in its final latent layers, encouraging natural class separation.
- Robustness Regularization: By enforcing a "smooth evolution" of label variation across successive layers, the network is prevented from making sudden, brittle deformations of the latent space.
Experimental Results
The framework was evaluated using ResNet architectures on the CIFAR-10 dataset and its corrupted variants.
Knowledge Distillation
The proposed GKD method achieved a 9.71% error rate, significantly outperforming standard Relational Knowledge Distillation (10.05%) and the baseline student (10.34%). This demonstrates that matching relational graphs is a more effective compression strategy than matching absolute distances.
Robustness and Generalization
Training with label variation as a primary loss function improved model robustness against incidental noise. While the clean error rate was slightly higher (5.63% vs. 5.06%), the relative Mean Corruption Error (MCE) improved from 100 to 90.33.
Furthermore, the smooth-evolution regularizer proved highly effective against adversarial attacks. Under attack, the regularized model maintained a 49.5% error rate, a substantial improvement over the baseline's 66.3% and the competing Parseval method's 55.0%.
Discussion and Future Work
The use of LGGs provides a powerful, dimension-agnostic abstraction for understanding DNN internals. By focusing on relative distances and graph topology, the method avoids the pitfalls of absolute distance metrics which often fail in high-dimensional spaces. Future research directions include exploring more advanced graph construction techniques and applying this formalism to enhance model interpretability.
Summary updated