Overview
This paper introduces Contextual SOM-SD, an unsupervised neural network architecture designed to cluster nodes in a graph based on their global context. By recursively incorporating parent-node information from previously trained maps, the model distinguishes between identical substructures appearing in different parts of a graph, effectively overcoming the "causality" limitations inherent in standard graph-based Self-Organizing Maps.
Problem Statement: The Contextual Blind Spot
Traditional Self-Organizing Maps (SOMs) are highly effective for clustering vector data but struggle with structured data like graphs. Extensions like the SOM-SD (Self-Organizing Map for Structured Data) process directed acyclic graphs (DAGs) in a "bottom-up" fashion, where a node’s representation is determined by its own label and the coordinates of its children on the map.
However, this approach creates a contextual blind spot. Because the process is strictly bottom-up, a node only possesses information about its descendants. Consequently, if two identical sub-trees appear in different locations within a graph (e.g., one as a root and another as a leaf), a standard SOM-SD will map them to the exact same location. This research addresses the need for "contextual processing," allowing a node's position on the map to be influenced by its parents and ancestors.
Methodology: Multi-Level Recursive Training
The authors propose a multi-level recursive training strategy to propagate contextual information:
- Level 0 (Standard SOM-SD): A standard SOM-SD is trained to cluster nodes based on labels and children's positions. At this stage, identical substructures are grouped together regardless of their parentage.
- Level $i$ (Contextual Map): To introduce context, a new map is trained. The input vector for a node at this level is expanded to include the node's data label ($l_v$), the coordinates of its children in the current level's map (bottom-up information), and the coordinates of its parent(s) from the previous level's map (top-down contextual information).
- Recursive Refinement: This process is repeated $d$ times (where $d$ is the maximum path length) to ensure information from the furthest ancestors propagates down to every node.
- Weighted Distance: A diagonal weight matrix ($\Lambda$) is used in the Best Matching Unit (BMU) calculation, allowing tuning of the relative influence of the label ($\mu_1$), children ($\mu_2$), and parent context ($\mu_3$).
Experimental Evaluation
The model was evaluated using an artificial dataset of 1,250 trees (9,420 vertices total). These trees featured a maximum out-degree of six and a maximum path length of two. Each vertex was assigned a two-dimensional numerical label. This dataset was specifically designed with many shared identical substructures to test the model's ability to differentiate them based on context.
Key Results and Discussion
Visualizations of the maps demonstrate the model's success in breaking structural symmetry. At Level 0, identical sub-trees are mapped to the same neurons. However, by Level 2, these same sub-trees are moved to distinct areas of the map as the model accounts for their different "neighborhoods" within the larger graphs.
Quantitatively, the authors used a metric $E$ to measure contextual mapping quality (higher is better). The results showed a significant improvement:
- Level 0: $E = 0.278$
- Level 1: $E = 0.488$
The nearly doubling of the $E$ value from Level 0 to Level 1 confirms that parent information significantly enhances the model's ability to diversify identical patterns based on context.
Insights and Future Directions
The core innovation is the realization that parent information from a static, already-trained map can be used as a feature for a new map, sidestepping the computational complexity of simultaneous top-down and bottom-up dependencies. Furthermore, the training algorithm maintains linear complexity relative to the dataset size and graph depth, ensuring scalability.
Despite these successes, some limitations remain:
- Hyperparameter Sensitivity: The weight $\mu_3$ (parent context influence) requires manual tuning.
- Structural Constraints: The model currently requires a priori knowledge of graph dimensions and is limited to Directed Acyclic Graphs (DAGs).
- Future Work: The authors suggest moving toward "online" learning, where parent and child states are updated within a single training pass.
Summary updated