Demystifying Relational Latent Representations

Sebastijan Dumancic, Hendrik Blockeel

Introduction

Deep learning on relational data often relies on black-box embeddings that are notoriously difficult to interpret. While these latent representations improve predictive performance in complex domains like knowledge graphs, their lack of transparency is a significant hurdle for high-stakes applications. This paper investigates relational latent features generated by CUR²LED (Clustering-based Unsupervised Relational Latent Representation Learning), an approach that learns features by clustering instances based on their relational neighborhoods. We demonstrate how to extract human-readable rules from these clusters and explain why they enhance model performance through properties like sparsity and low label entropy.

Methodology: Extracting Meaning from Latent Features

To bridge the gap between opaque embeddings and interpretable logic, we utilize neighborhood trees—directed graphs that summarize an instance and its n-hop relationships. Each latent feature in CUR²LED corresponds to a cluster of instances.

Prototypical Neighborhoods

We define the meaning of a latent feature by identifying the "prototypical" neighborhood tree for its corresponding cluster. This involves:

  1. Calculating the relative frequencies of relational elements (attributes, edge types, vertex identities) within the cluster.
  2. Applying a $θ$-confidence threshold to select elements with low standard deviation across the cluster.
Figure 4: Extracting meaning from clusters by analyzing the distribution and variance of relational elements across different instances.

These consistent elements form a descriptive "definition" of the latent feature, allowing us to translate a cluster ID into a human-understandable concept.

Analyzing Effectiveness and Redundancy

We analyze the effectiveness of these features using Label Entropy (measuring the purity of a cluster relative to the target label) and Sparsity (the proportion of instances to which a feature applies). Furthermore, to manage the high volume of generated features, we introduce an overlap parameter ($α$) based on the Adjusted Rand Index (ARI). If a new cluster overlaps significantly with an existing one, it is pruned to maintain a compact feature set.

Experimental Evaluation

We evaluated the approach on several relational benchmarks:

  • IMDB: Predicting person roles (actor vs. director).
  • UWCSE: Classifying university members (student vs. professor).
  • Hepatitis & TerroristAttack: Used for quantitative analysis of sparsity and entropy. (Note: Mutagenesis was excluded from qualitative analysis due to the high domain expertise required for interpretation).

Key Results and Insights

Our analysis reveals that unsupervised features naturally align with supervised labels. Even without access to target labels during generation, the clusters exhibit very low label entropy, effectively pre-sorting the data for downstream classifiers.

Complexity Reduction

Relational decision trees trained on these latent features are significantly more concise. On the UWCSE dataset, the decision tree size was reduced from three nodes to one. On the Hepatitis dataset, complexity dropped from 22 nodes to 5, while accuracy increased by 11%.

Figure 5: Comparison of decision trees using raw relational predicates (a) versus latent cluster features (b) on the IMDB dataset, demonstrating model simplification.

The Power of Local Sparsity

Latent features succeed by identifying small, highly specific local regions of the instance space. Unlike global rules, these sparse features capture high-certainty patterns. Quantitatively, histograms show that latent representations are heavily skewed toward high sparsity and low label entropy compared to raw data.

Redundancy Pruning

By filtering overlapping clusters using the ARI-based $α$ threshold, we can reduce the number of latent features by 20% to 30% without any loss in predictive accuracy.

Conclusion

This work demonstrates that relational latent features can be made transparent. By mapping clusters back to neighborhood distributions, we provide a path toward interpretable relational deep learning. Future work will explore more sophisticated feature selection methods and aim to refine the rule extraction syntax to align more closely with standard first-order logic.

Summary updated

BibTeX
@inproceedings{dumancic2017demystifying,
  author = {Sebastijan Dumancic and Hendrik Blockeel},
  title = {{Demystifying Relational Latent Representations}},
  booktitle = {ILP},
  year = {2017},
  url = {https://openreview.net/forum?id=j0_RQYA38H},
}
Figure