A reservoir activation kernel for trees

Davide Bacciu, Claudio Gallicchio, Alessio Micheli

Abstract

Tree-structured data is ubiquitous across domains ranging from bioinformatics to web engineering. However, effectively measuring similarity between trees remains a challenge, often forcing a trade-off between the computational efficiency of syntactic kernels and the flexibility of adaptive models. This paper introduces the Kernel on Tree Echo State Networks (KTESN), a "soft-matching" kernel that leverages the untrained, recursive encoding of a Reservoir Computing model. By exploiting the topographic organization of a contractive reservoir, KTESN achieves state-of-the-art classification accuracy on diverse benchmarks using as few as 10 neurons, significantly outperforming much larger, fully trained models.

Introduction

Representing and classifying tree-structured data—such as XML documents, website hierarchies, or molecular glycans—is a core task in machine learning. Traditional approaches generally fall into two categories: syntactic kernels, which rely on exact sub-structure matching, and adaptive kernels, which learn representations through models like Self-Organizing Maps (SOM). While syntactic kernels are often brittle and computationally expensive, adaptive models require costly training phases and large numbers of hidden units.

The KTESN approach bridges this gap by utilizing the inherent properties of Reservoir Computing (RC). It provides a framework that is as flexible as learned models but as efficient as syntactic ones, without requiring a supervised training phase for the recursive component.

Methodology: Tree Echo State Networks

The core of the proposed method is the Tree Echo State Network (TreeESN). Unlike standard neural networks, a TreeESN uses a reservoir of sparsely connected neurons with fixed, random weights. The network processes a tree from the leaves up to the root; at each node, the reservoir generates a state vector based on the node's label and the states of its children.

Figure 1: Illustration of the mapping from the input tree space to the TreeESN state space, highlighting the ε hyperball used for soft-matching.

A critical feature of this reservoir is its contractive nature. By scaling the weights appropriately, the authors ensure that similar sub-trees map to neighboring states in the high-dimensional reservoir space—a property known as topographic organization. The KTESN then defines a kernel function that compares two trees by calculating the Euclidean distances between their reservoir states. A "weight function" ($W_\epsilon$) acts as a soft-match: similarity is only contributed if two states fall within a distance $\epsilon$ (the "hyperball") of each other.

Experimental Evaluation

The authors evaluated KTESN across three distinct benchmarks:

  1. INEX 2006: A large-scale dataset comprising 12,107 XML documents across 18 classes, testing the model's scalability.
  2. KEGG/Glycan (Leukemia & Cystic): Two datasets of molecular trees (442 and 160 molecules, respectively) related to specific diseases. These test the kernel's versatility on smaller, structurally different trees.

Key Results and Insights

One of the most striking findings is the efficiency of the KTESN. In the INEX 2006 benchmark, a KTESN with only 10 neurons achieved an accuracy of 43.41%, outperforming a standard TreeESN with 500 neurons (42.62%) and several established syntactic kernels.

Figure 3: Classification accuracy on the INEX 2006 dataset. KTESN with N=10 neurons outperforms larger models and traditional syntactic kernels.

On the Glycan datasets, KTESN demonstrated superior performance as well. On the Leukemia dataset, it reached an Area Under the Curve (AUC) of 0.9769, and on the Cystic dataset, it achieved 0.8385—a significant improvement over the 0.7719 achieved by the standard TreeESN. These results suggest that the kernel is exceptionally adept at extracting structural information from the reservoir's state space, even when the reservoir itself is extremely small and untrained.

Conclusion

KTESN represents a significant advancement in tree-structured data classification. By combining the efficiency of untrained reservoirs with the discriminative power of a distance-based kernel, it achieves high accuracy with minimal computational cost. Future work will explore the theoretical connections between these reservoir kernels and Binet-Cauchy kernels, as well as the potential for using root node states as explicit features.

Summary updated

BibTeX
@inproceedings{bacciu2016reservoir,
  author = {Davide Bacciu and Claudio Gallicchio and Alessio Micheli},
  title = {{A reservoir activation kernel for trees}},
  booktitle = {ESANN},
  year = {2016},
}
Figure