Introduction
Traditional machine learning algorithms, such as Support Vector Machines or standard feedforward neural networks, are designed to ingest data as fixed-size, $n$-dimensional vectors. However, a vast amount of real-world data is inherently structured and does not naturally fit into a flat vector format. Examples include text and time series (sequences), parse trees and XML documents (trees), or molecules and social networks (graphs).
This paper provides a high-level taxonomy and overview of state-of-the-art methods for learning vectorial representations (embeddings) of such structured data. It equips researchers with a conceptual toolbox—spanning kernels, distances, and neural networks—to translate complex, non-Euclidean data into formats suitable for standard machine learning algorithms. Instead of manually engineering features, representation learning attempts to automatically discover a mapping from the structured data space into a continuous vector space, facilitating downstream tasks like classification or regression.
A Unified Taxonomy of Methods
The authors categorize existing approaches into three main families based on the type of data and the algorithmic approach. This taxonomy, summarized in Table 1, distinguishes between methods for sequences, trees, graphs, and individual nodes.
1. Kernels and Distances
Kernels compute pairwise similarities between structures based on pre-defined algorithms. They implicitly map data to a vector space by counting characteristic substructures, such as $n$-grams for sequences or subtrees for trees. Distances quantify the "effort" required to transform one structure into another via edit operations. While distances do not output vectors directly, they can be converted into explicit embeddings using dimensionality reduction techniques like t-SNE.
2. Neural Network Architectures
Neural networks learn explicit vectorial representations directly from the data. The architecture is typically tailored to the input structure:
- Recurrent Neural Networks (RNNs): Process sequential data step-by-step, often using gating mechanisms to handle long-term dependencies.
- Recursive Neural Networks: Extend RNNs to tree structures, typically processing data bottom-up from leaves to root.
- Graph Convolutional Networks (GCNs): Generate node embeddings by iteratively aggregating information from a node's local neighborhood.
Key Insights and Challenges
A core distinction in the field is whether a method yields an implicit representation (like kernels and distances) or an explicit representation (like neural networks).
The paper also highlights that encoding is generally easier than decoding. Mapping a graph to a vector (encoding) is well-established, but mapping a vector back to a valid graph (decoding) is provably harder. Overcoming this requires clever workarounds, such as forcing a specific generation order or using context-free grammars to ensure syntactic validity.
Furthermore, modern GCNs share deep mathematical roots with earlier "constructive" neural network approaches, relying on the same core concept of neighborhood information aggregation.
Limitations and Future Directions
Several ongoing challenges remain fertile ground for future research:
- Graph Decoding: Generating graphs from arbitrary distributions remains a significant hurdle.
- Unknown Graph Structures: Vanilla GCNs require the graph structure to be known a priori. Extending these networks to handle unknown or dynamic structures (e.g., via attention mechanisms) is a critical next step.
- Semantic Constraints: Ensuring generated structures obey real-world semantic rules (like valid chemical bond properties) requires integrating deeper domain knowledge into decoder networks.
Summary updated