Encoding Labeled Graphs by Labeling RAAM

Alessandro Sperduti

Introduction

This paper introduces the Labeling RAAM (LRAAM), an evolution of Pollack’s Recursive Auto-Associative Memory. While the original RAAM was limited to tree structures, LRAAM can encode complex labeled graphs—including those with cycles—by treating hidden layer activations as explicit pointers. Furthermore, it demonstrates that these networks can be repurposed as analog Hopfield networks to retrieve data "by content" rather than just following pointers.

The Problem with Early Connectionist Memory

In the early 1990s, a major challenge in connectionist (neural network) research was representing structured symbolic data—like lists, trees, and stacks—within distributed numerical vectors. Jordan Pollack’s RAAM was a breakthrough, allowing networks to "compress" a tree into a single vector.

However, RAAM had two major limitations:

  1. Cycles: It couldn't easily represent graphs where nodes point back to themselves or previous nodes.
  2. Access: To find a specific piece of information, you had to decode the entire structure recursively from the top down. You couldn't simply ask the network, "Which node has the label 'X'?"

Alessandro Sperduti tackles these gaps by introducing a labeling mechanism and a method for "content-addressable" memory.

Methods: The LRAAM Architecture

The LRAAM is a standard feed-forward autoencoder trained to learn the identity function. The innovation lies in how the input and output layers are structured to handle pointers and labels.

LRAAM Architecture
  • Layer Partitioning: The input and output layers are split into a Label field and several Pointer fields.
  • Recursive Pointers: Crucially, the size of each pointer field matches the size of the hidden layer. This allows the compressed representation (the hidden activation) of one node to be used directly as the input pointer for another node.
  • Dynamic Training: Because pointers are based on hidden activations that change as the network learns, the training set is "dynamic." The network essentially chases a moving target until the representations of the nodes stabilize.
  • Content Access via Hopfield Transformation: By feeding the network's output back into its input, the author transforms the LRAAM into an analog Hopfield network. By "clamping" the label units to a specific value and letting the pointer units relax into a stable state, the network can perform a search by content.

Datasets and Key Insights

The paper uses synthetic structural datasets to validate the model, including a custom labeled directed graph with cycles and a larger hierarchical labeled tree. To handle terminal nodes, the author addresses the "nil" pointer problem by using a specific bit in the label to denote whether a pointer is void, treating the rest of the pointer as a "don't care" value. This gives the network more degrees of freedom during training, leading to faster convergence.

Stability is Key: Encoding cycles is risky because approximation errors during decoding can compound, causing the "pointer" to drift. Sperduti provides a mathematical theorem proving that if the Jacobian of the transformation meets certain criteria, the decoding sequence is asymptotically stable—meaning the network naturally corrects small errors.

Hybrid Retrieval: The paper suggests a "dual-system" approach. Pointer-based access is extremely fast for nodes near the root of a tree, while content-based access (the Hopfield method) is more efficient for finding leaves or nodes buried deep in the structure.

Key Results

Retrieval Results Table
  • Graph Encoding: The LRAAM successfully encoded a cyclic graph in 5,450 epochs. In testing, "Access by Label" for this graph was 100% successful across all nodes, with no errors or spurious retrievals.
  • Tree Encoding: A tree was encoded in 1,719 epochs. While pointer access was reliable, content-based access was more volatile. For some nodes, success was 100%, but for others, it dropped significantly (e.g., 0% for node $l_0$) due to the emergence of "spurious memories"—stable states in the Hopfield network that don't correspond to real data.
  • Efficiency: The "mean iterations" for the Hopfield relaxation were relatively low (ranging from ~4 to ~62), suggesting that content-based retrieval is computationally feasible in an analog implementation.

Limitations and Future Work

The primary drawback of the content-access method is the existence of spurious stable states. The network sometimes settles on a "hallucinated" pattern that shares features with the key but isn't a valid node. Additionally, while the paper proves the concept on small graphs, scaling up complexity makes maintaining stability and avoiding interference between representations significantly harder. Finally, because the model relies on explicit pointers, it is less "naturally compositional" than the original RAAM, leaving room for future work to integrate labels more fluidly without sacrificing the ability to handle cycles.

Summary updated

BibTeX
@inproceedings{sperduti1993encoding,
  author = {Alessandro Sperduti},
  title = {{Encoding Labeled Graphs by Labeling RAAM}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1993},
}
Figure