Analogical Reasoning with Relational Bayesian Sets

Ricardo Bezerra de Andrade e Silva, Katherine A. Heller, Zoubin GhahramaniAISTATS 2007

Introduction

Analogical reasoning is a cornerstone of human cognition, centered on understanding relationships rather than merely comparing isolated objects. A classic example—"an electron is to a nucleus as a planet is to the Sun"—is coherent because of the shared orbiting relationship, despite the vast physical differences between the entities involved. In the context of exploratory data analysis, researchers often seek to identify pairs of objects in relational databases (e.g., protein interactions or citation networks) that share a specific underlying mechanism.

Traditional information retrieval often fails here because it focuses on superficial object-level similarities. This paper introduces Relational Bayesian Sets (RBSets), a framework that treats analogical reasoning as a relational retrieval problem. By extending Bayesian Sets to discriminative models over pairs, RBSets can identify analogous relations without requiring explicit query rules.

Methodology: Relational Bayesian Sets

The core innovation of RBSets is modeling the latent function that predicts the existence of a relationship between two objects, rather than modeling the generative distribution of the objects themselves.

For any pair of objects $(A, B)$, a feature vector is constructed from their individual attributes (e.g., via normalized element-wise products). RBSets employs a logistic regression model with multivariate Gaussian priors to predict the likelihood of a link based on these features.

Bayesian Scoring

Given a query set of linked pairs $\mathbf{S}$, the system evaluates candidate pairs using a Bayes factor. This score represents the probability that a new pair's link is governed by the same underlying model parameters as the query set, compared to being generated independently. To maintain computational efficiency, the authors utilize a variational Bayesian approximation for the logistic regression integrals.

Graphical models representing the shared parameter hypothesis (a) versus the independent parameter hypothesis (b) used in the Bayes factor calculation.

As illustrated in the graphical models above, the relational approach explicitly accounts for the dependencies between objects in a pair. The authors demonstrate that "flattening" relational data into standard Bayesian Sets (SBSets) fundamentally fails to capture these dependencies and is highly sensitive to the specific objects in the query.

Experimental Evaluation

The authors evaluated RBSets against standard Bayesian Sets (SBSets) and Cosine distance baselines across synthetic and real-world datasets.

Datasets

  1. Synthetic Dataset: 500 objects with 20-dimensional Bernoulli features, where pairs were assigned to six relationship classes via a softmax classifier.
  2. WebKB Dataset: A collection of webpages from four universities (Cornell, Texas, Washington, Wisconsin). Relations consist of directed hyperlinks between page types such as student, course, faculty, and project.

Key Results

On synthetic data, RBSets consistently outperformed baselines in precision across various recall levels. The real-world performance on the WebKB dataset further validated the approach. For the student -> course query, RBSets dominated the Area Under the Precision/Recall Curve (AUC-PR), achieving a score of 0.88 on the Wisconsin split compared to 0.77 for SBSets.

Precision-Recall curves for student-course and faculty-project relationships across four university datasets, comparing RBSets against baselines.

Even on the more challenging faculty -> project query, RBSets maintained superior performance, outperforming the best baseline in three out of four university splits. These results underscore that treating analogies as latent functions allows the model to ignore superficial similarities that typically confound standard retrieval algorithms.

Conclusion and Future Work

Relational Bayesian Sets provide a probabilistically sound method for retrieving analogous relations by focusing on the "mechanism" of the link. While highly effective, the current model requires a shared feature space for all objects, limiting its use in cross-domain analogies. Future extensions could involve hierarchical Bayesian formulations to bridge disparate feature spaces and incorporating network structure beyond simple link independence. Ultimately, a complete system should not only retrieve analogous pairs but also explain the structural reasons for their similarity.

Summary updated

BibTeX
@article{silva2007analogical,
  author = {Ricardo Bezerra de Andrade e Silva and Katherine A. Heller and Zoubin Ghahramani},
  title = {{Analogical Reasoning with Relational Bayesian Sets}},
  journal = {AISTATS},
  year = {2007},
}
Figure