"Kernelized" Self-Organizing Maps for Structured Data

Fabio Aiolli, Giovanni Da San Martino, Alessandro Sperduti, Markus Hagenbuchner

Abstract

This paper introduces "Activation Mask Kernels," a hybrid approach that combines the structural compression of Self-Organizing Maps for Structured Data (SOM-SD) with the discriminative power of kernel methods. By mapping complex tree structures onto a SOM and defining kernels based on the resulting activation patterns, the authors significantly outperform traditional tree kernels and standard SOMs in classifying XML data. The method effectively bridges the gap between unsupervised structural compression and supervised classification accuracy.

Introduction

Most machine learning algorithms are designed for flat, vectorial data. However, real-world information—such as the link structure of the web, molecular compositions, or XML documents—is often inherently structured as graphs or trees. Processing this data typically involves a trade-off. Tree kernels (e.g., Subtree or Subset Tree kernels) are powerful but suffer from "sparsity" in large datasets with many unique symbols. Conversely, recursive models like SOM-SD compress structures into low-dimensional maps but are unsupervised, potentially discarding critical structural nuances during compression.

Methodology

The authors propose a multi-step pipeline to integrate the strengths of both approaches:

  1. SOM-SD Training: A Self-Organizing Map for Structured Data is trained to process directed acyclic graphs by recursively encoding node labels and the coordinates of their children.
  2. Activation Mapping: Every node of a given tree is presented to the trained SOM, triggering a specific winning neuron and its neighborhood.
  3. The Activation Mask Kernel (AM): This core innovation creates a "mask" representing the entire activation profile of the tree on the SOM grid. A similarity measure is defined based on the intersection of these activation "clouds," using a weighting function ($Q_\epsilon$) to prioritize neurons closer to the winning neuron of a subtree. This allows standard classifiers like Support Vector Machines (SVMs) to operate on the compressed structural data.

Experimental Evaluation

The approach was evaluated using the INEX Initiative corpus (m-db-s-0), consisting of 9,640 XML documents containing over 684,000 nodes. The task involved categorizing documents into one of 11 target classes based purely on structural XML tags.

Results and Discussion

The hybrid approach showed a dramatic improvement over both baseline methods. While traditional tree kernels like Subtree (ST) and Subset Tree (SST) yielded error rates above 11%, the Activation Mask (AM) Kernel achieved a significantly lower error rate of 5.69%.

Comparison of mean error rates and standard deviations across methods.

A key finding was the consistency of the AM Kernel. While the best individual SOM-SD map performed well (6.10%), the performance of standard SOM-SD varied wildly depending on the map configuration, with error rates reaching as high as 14.06%.

Error rates for individual SOM-SD maps showing high variability.

In contrast, the AM Kernel demonstrated low standard deviation across different configurations, suggesting that the kernel approach can extract highly useful features even if the underlying SOM is not perfectly optimized. By using the SOM to "cluster" similar sub-structures, the method effectively smooths the feature space and prevents the "all-or-nothing" matching problem found in traditional kernels.

Conclusion

The Activation Mask Kernel provides a robust framework for structured data classification. By leveraging the topological information of SOMs within a kernel-based classifier, the researchers nearly halved the error rates of traditional methods. Future work will explore the computational overhead of training SOM-SD on larger datasets and the generalization of this method to more complex, non-hierarchical graphs.

Summary updated

BibTeX
@inproceedings{aiolli2007kernelized,
  author = {Fabio Aiolli and Giovanni Da San Martino and Alessandro Sperduti and Markus Hagenbuchner},
  title = {{"Kernelized" Self-Organizing Maps for Structured Data}},
  booktitle = {ESANN},
  year = {2007},
}
Figure