Abstract: In this paper, we propose a new object similarity algorithm (OSA) to address the problem of similarity calculation on complex graph networks by integrating the entity and attribute similarity of graph nodes. Our proposed method can solve similarity judgment for objects that typically lack links or attributes. Extensive experimental results have shown that our proposed object similarity method has the advantage of assessing the similarity of objects comprehensively. Our method can correct one-sided judgment errors and improve the ability to distinguish similarity among graph objects.
Introduction
In the fields of graph theory and social network analysis, determining the similarity between two objects is a fundamental challenge. Traditional similarity measures generally fall into two categories: link-based methods (who you are connected to) and semantic-based methods (what your properties are).
Link-based methods, such as SimRank, are powerful but brittle. If two nodes are similar in nature but do not share a direct link or a common neighbor—perhaps due to competition or data collection errors—these algorithms often fail to identify the connection. Conversely, purely semantic methods might ignore the broader structural context of the network. This paper introduces the Object Similarity Algorithm (OSA), a hybrid approach designed to bridge this gap by looking at both the connections and the characteristics of objects.
The Object Similarity Algorithm (OSA)
The OSA framework operates by integrating two distinct perspectives of similarity into a single, comprehensive score. This allows the algorithm to maintain accuracy even when network links are sparse or attribute data is noisy.
1. Entity Similarity ("Who You Know")
The algorithm utilizes the established P-Rank method to calculate similarity based on structural links. Unlike SimRank, which primarily considers in-links, P-Rank accounts for both in-links and out-links, capturing the "global" character of the network and how nodes relate to each other through various paths.
2. Attribute Similarity ("What You Are")
The authors introduce a new Attribute Similarity Algorithm (ASA). It calculates a ratio based on shared attributes: the number of common attributes divided by the maximum number of attributes between two objects. This captures the "local" character or the specific properties of the nodes.
3. Integration
Finally, the two scores are combined using a weighted sum:
$$Sim(a,b) = \lambda \cdot simE(a,b) + (1-\lambda) \cdot simA(a,b)$$
Here, $\lambda$ serves as a tuning parameter. If the network links are sparse or unreliable, $\lambda$ can be decreased to rely more on attributes. Conversely, if attributes are missing, $\lambda$ can be increased to prioritize the link structure.
Experimental Evaluation
The paper evaluates the OSA algorithm using a controlled experimental graph. This synthetic dataset is designed to mirror the structures used in original SimRank and P-Rank studies, providing a clear environment to observe how the algorithm handles specific edge cases, such as nodes with many shared attributes but few shared links.
Key Results and Discussion
The researchers compared OSA against SimRank and P-Rank across several node pairs within the experimental graph. Key findings include:
- Nuanced Differentiation: For node pairs like {m2, m3}, OSA provided a similarity score of 0.3975, whereas P-Rank yielded 0.295. The authors argue that OSA's score is more accurate because it accounts for shared attributes that P-Rank ignores.
- Self-Similarity Consistency: All three algorithms correctly identified a similarity of 1.0 for identical objects (e.g., {c, c}), proving that the integration of attributes does not compromise basic logical consistency.
- Distinguishing Power: OSA demonstrated a superior ability to distinguish between "similar but not identical" pairs by balancing global and local factors, preventing the "flattening" of scores often observed in SimRank.
By integrating both data types, OSA can "correct" a low link-based score if the attribute-based score is high, leading to a more holistic assessment and mitigating the "one-sided judgment" errors common in traditional algorithms.
Limitations and Future Work
The primary limitation of the current OSA implementation is its computational complexity. The algorithm has a worst-case time complexity of $O(n^4)$ and requires significant memory ($3 \times n^2$) to store similarity matrices. This makes the current version unsuitable for massive social networks with millions of nodes.
Future research should focus on optimizing the algorithm to reduce this complexity, potentially through approximation methods or parallel computing, to make it viable for large-scale industrial applications.
Summary updated