[Paper Review] Building Graph Representations of Deep Vector Embeddings
This paper proposes a novel method to transform deep convolutional neural network (CNN) embeddings into a topological graph structure, enabling the application of graph analytics—particularly community detection—on image data. By leveraging full-network embeddings with spatial pooling, standardization, and discretization, the approach constructs a graph where nodes represent images and features, and edges encode semantic and structural relationships. The key result shows that FluidC community detection on this graph achieves moderate to high NMI (up to 0.54) and AMI (up to 0.46) scores on benchmark datasets, demonstrating the feasibility of extracting semantically meaningful clusters from deep representations via graph topology.
Patterns stored within pre-trained deep neural networks compose large and powerful descriptive languages that can be used for many different purposes. Typically, deep network representations are implemented within vector embedding spaces, which enables the use of traditional machine learning algorithms on top of them. In this short paper we propose the construction of a graph embedding space instead, introducing a methodology to transform the knowledge coded within a deep convolutional network into a topological space (i.e. a network). We outline how such graph can hold data instances, data features, relations between instances and features, and relations among features. Finally, we introduce some preliminary experiments to illustrate how the resultant graph embedding space can be exploited through graph analytics algorithms.
Motivation & Objective
- To explore whether deep neural network representations can be effectively modeled as topological graphs to enable new types of analysis.
- To develop a methodology for constructing a graph embedding space that captures images, features, and their interrelations from pre-trained CNNs.
- To evaluate whether graph-based algorithms like community detection can extract meaningful, semantically coherent clusters from deep embeddings.
- To demonstrate that graph representations of embeddings enable alternative learning paradigms beyond traditional vector-based methods.
Proposed method
- The method uses full-network embeddings (FNE) that aggregate activations from all convolutional and fully-connected layers of a pre-trained CNN (e.g., VGG16).
- Spatial average pooling is applied to convolutional layer outputs to reduce dimensionality and unify feature representation across layers.
- Feature standardization normalizes neuron activations across layers to prevent dominance by high-activation output-layer neurons.
- Discretization maps each feature to -1, 0, or 1 using fixed thresholds (-0.25, 0.15), reducing noise and regularizing the embedding space.
- A graph is constructed with image instances and features as nodes, and edges are formed based on co-activation patterns across the embedding space.
- The graph is analyzed using the FluidC community detection algorithm, which identifies cohesive groups of nodes based on topological connectivity.
Experimental results
Research questions
- RQ1Can deep neural network embeddings be effectively transformed into a topological graph structure that preserves semantic and structural relationships?
- RQ2How well can graph analytics algorithms, such as community detection, identify meaningful clusters in image data when applied to such a graph representation?
- RQ3Does the graph-based representation enable the discovery of clusters that differ meaningfully from those found via traditional vector-space clustering (e.g., K-means)?
- RQ4What is the performance of graph-based clustering on image datasets when using full-network embeddings as input?
Key findings
- The graph representation successfully encodes both image instances and features, along with their interrelations, into a single topological structure.
- The FluidC community detection algorithm achieved a normalized mutual information (NMI) score of 0.54 on the flowers102 dataset, indicating strong alignment with ground-truth labels.
- On the mit67 dataset, the NMI score was 0.44 and AMI was 0.36, showing consistent but moderate performance across diverse image categories.
- The textures dataset yielded an NMI of 0.42 and AMI of 0.37, suggesting the method generalizes across different visual domains.
- The wood dataset showed lower performance (NMI 0.26, AMI 0.20), possibly due to class imbalance or lower discriminative signal in the embedding space.
- The results demonstrate that graph-based analysis of deep embeddings can uncover semantically meaningful clusters without relying on distance metrics, highlighting a distinct learning paradigm.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.