Abstract
Node embeddings are low-dimensional vectors that capture node properties, typically learned through unsupervised structural similarity objectives or supervised tasks. While recent efforts have focused on post-hoc explanations for graph models, intrinsic interpretability in unsupervised node embeddings remains largely underexplored. To bridge this gap, we introduce DiSeNE (Disentangled and Self-Explainable Node Embedding), a framework that learns self-explainable node representations in an unsupervised fashion. By leveraging disentangled representation learning, DiSeNE ensures that each embedding dimension corresponds to a distinct topological substructure of the graph, thus offering clear, dimension-wise interpretability. We introduce new objective functions grounded in principled desiderata, jointly optimizing for structural fidelity, disentanglement, and human interpretability. Additionally, we propose several new metrics to evaluate representation quality and human interpretability. Extensive experiments on multiple benchmark datasets demonstrate that DiSeNE not only preserves the underlying graph structure but also provides transparent, human-understandable explanations for each embedding dimension.
Introduction
In Graph Machine Learning, nodes are typically represented as low-dimensional embedding vectors. While these representations are effective for downstream tasks like link prediction or node classification, they are notoriously opaque. A high value in a specific dimension of an embedding vector often lacks a clear, human-understandable meaning. Existing explainability tools for graphs are primarily post-hoc and local, explaining individual predictions rather than the embedding space itself. DiSeNE addresses this gap by focusing on intrinsic interpretability, forcing each embedding dimension to represent a distinct mesoscale structure, such as a community or a specific motif, within the graph.
Methodology
DiSeNE (Disentangled and Self-Explainable Node Embedding) optimizes representations through three core pillars:
- Connectivity Preservation: Utilizing random walks and a skip-gram objective, the framework ensures that nodes in close proximity within the graph remain close in the embedding space.
- Dimensional Interpretability: The framework employs an attribution method to determine which embedding dimension is responsible for the existence of specific edges, mapping dimensions to "topological components."
- Structural Disentanglement: A novel loss function ($L_{dis}$) enforces soft-orthogonality between the structures represented by different dimensions. This ensures that each dimension captures a unique part of the graph's topology without redundancy.
To ensure all dimensions are utilized effectively, an entropy-based regularizer encourages each dimension to capture a meaningful amount of information, preventing the model from leaving dimensions empty.
Key Insights and Results
DiSeNE treats embedding dimensions as "detectors" for specific subgraphs. A high value in a dimension indicates a node's proximity to that dimension's associated "anchor" subgraph. Unlike local explainers, DiSeNE provides a global vocabulary of structures for the entire graph.
Experimental Performance
- Topological Alignment: DiSeNE significantly outperformed baselines like DeepWalk and GraphSAGE in matching embedding dimensions to ground-truth communities, often doubling alignment scores.
- Plausibility: In synthetic tests, important features identified by classifiers using DiSeNE corresponded directly to ground-truth motifs (e.g., cliques or grids).
- Accuracy-Interpretability Balance: DiSeNE remains competitive with state-of-the-art unsupervised methods in link prediction and node classification while providing significantly higher transparency.
Discussion and Future Work
While DiSeNE excels at capturing topological structures, it currently focuses primarily on graph structure. Future iterations could integrate node attributes (e.g., text or features) directly into the disentanglement process. Additionally, while the disentanglement loss is linear with respect to nodes and edges, its $O(K^2)$ scaling with the number of dimensions $K$ may pose challenges for extremely high-dimensional embeddings. Future research may also involve human-centric validation to align discovered topological components with domain-specific expert knowledge in fields like biology or social science.
Summary updated