Representation Independent Proximity and Similarity Search

Yodsawalai Chodpathumwan, Amirhossein Aleyasen, Arash Termehchy, Yizhou SunarXiv 2015

Abstract

Graph similarity search algorithms usually leverage the structural properties of a database. Hence, these algorithms are effective only on some structural variations of the data and are ineffective on other forms, which makes them hard to use. Ideally, one would like to design a data analytics algorithm that is structurally robust, i.e., it returns essentially the same accurate results over all possible structural variations of a dataset. We propose a novel approach to create a structurally robust similarity search algorithm over graph databases. We leverage the classic insight in the database literature that schematic variations are caused by having constraints in the database. We then present RelSim algorithm which is provably structurally robust under these variations. Our empirical studies show that our proposed algorithms are structurally robust while being efficient and as effective as or more effective than the state-of-the-art similarity search algorithms.

Introduction

In the domain of graph databases, similarity search is a fundamental operation used to identify entities that share common characteristics. Traditionally, popular algorithms like SimRank, PathSim, or Random Walk with Restart (RWR) rely heavily on the graph's topology—the specific arrangement of nodes and edges—to compute similarity scores. However, this reliance introduces a significant vulnerability: structural instability.

The same real-world information can be represented through various schemas. For instance, a relationship between a research paper and its field might be direct in one database but mediated through a conference node in another. Standard algorithms often produce wildly different results when applied to these structurally distinct but semantically equivalent representations. This lack of "structural generalizability" prevents the development of robust, off-the-shelf models that can operate across heterogeneous datasets without extensive manual tuning.

Structural variations of bibliographic data in DBLP and SIGMOD Record fragments.

As illustrated in Figure 1, identical semantic information can be structured differently. In the DBLP fragment (a), research areas are linked to mining sub-fields, which are then linked to venues. In the SIGMOD Record fragment (b), research areas are linked directly to venues, while sub-fields are separately linked to those same venues. A robust algorithm should recognize that the underlying relationships remain consistent despite these physical representation changes.

Methodology: The RelSim Approach

To address this, we introduce RelSim, an algorithm designed to be representation-independent. Our approach bridges database theory and machine learning through several core innovations:

  1. Formalizing Robustness: We define structural robustness using the concept of invertible transformations from database literature. If a transformation from Schema A to Schema B is information-preserving, a robust similarity algorithm must yield identical results on both schemas.
  2. Rich-Relationship Expressions (RRE): We propose a new language for defining paths. RRE extends standard regular path queries by adding "nested" and "skip" operations, allowing the algorithm to "see through" intermediate nodes that may exist in one schema but not another.
  3. Automated Pattern Generation: Recognizing that RREs are complex to write, we developed a system that leverages database constraints (tuple-generating dependencies) to automatically generate all equivalent RRE patterns that might exist across different structural variations.

Experimental Evaluation

We evaluated RelSim across four diverse real-world datasets: DBLP (bibliographic), Microsoft Academic Search (MAS), WSU Course Dataset, and BioMed (genetics and pharmacology).

Key Results

  • Perfect Robustness: In tests where schemas were transformed (e.g., DBLP to a SIGMOD-style record), RelSim maintained a ranking difference of 0. In contrast, SimRank, RWR, and PathSim showed significant ranking shifts, with differences ranging from 0.11 to 0.60.
  • Effectiveness: On the BioMed dataset, RelSim achieved a Mean Reciprocal Rank (MRR) of 0.077, matching or slightly exceeding the state-of-the-art HeteSim, proving that robustness does not come at the cost of accuracy.
  • Efficiency: Despite the added complexity of RREs, RelSim’s query processing remains highly efficient. On the large DBLP dataset, average query times were approximately 0.034 seconds, making it viable for production-scale graphs.

Conclusion and Future Work

RelSim demonstrates that by incorporating database constraints into the similarity search process, we can achieve structural robustness. This allows for more generalizable data analytics that are not brittle to changes in data representation. Future work will focus on handling cyclic schema mappings and exploring "approximate robustness" for transformations that involve minor information loss.

Summary updated

BibTeX
@misc{chodpathumwan2015representation,
  author = {Yodsawalai Chodpathumwan and Amirhossein Aleyasen and Arash Termehchy and Yizhou Sun},
  title = {{Representation Independent Proximity and Similarity Search}},
  year = {2015},
  eprint = {1508.03763},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.03763},
}
Figure