Fuzzy Jaccard Index: A robust comparison of ordered lists

Matej Petkovic, Blaz Skrlj, Dragi Kocev, Nikola SimidjievskiarXiv 2020 · DOI

TL;DR

This paper introduces the Fuzzy Jaccard Index (FUJI), a new metric for comparing ordered lists that improves upon the traditional Jaccard Index by incorporating rank information. FUJI offers more stable and accurate similarity estimates, particularly in machine learning tasks like feature ranking, and is demonstrated to be more robust than existing methods.

What Problem Does This Paper Address?

In many data-driven fields, such as machine learning and bioinformatics, it's crucial to compare ordered lists, often representing rankings of features or items. The standard Jaccard Index is a common tool for this, but it has limitations: it's sensitive to small changes, doesn't account for the actual scores or ranks of items (only their presence/absence), and lacks a mechanism to correct for chance. This can lead to unstable and inaccurate similarity assessments, especially in high-dimensional settings where only a subset of features is truly relevant. The authors aim to address these shortcomings by developing a more robust and informative similarity measure.

Methods

The core contribution is the Fuzzy Jaccard Index (FUJI). FUJI builds upon the Jaccard Index by introducing a fuzzy membership function. Instead of a binary "in" or "out" for an item in a set, FUJI assigns a membership value based on the item's rank and its relevance score relative to the k-th ranked item. This allows FUJI to consider not just which items are in the top-k, but also how relevant they are.

Key aspects of their approach include:

  • Fuzzy Membership Function: Defined as 1 for items within the top-k, and ri/r(k) for items outside the top-k but with relevance greater than zero, where r(k) is the relevance score of the k-th item.
  • Theoretical Properties: The paper delves into the theoretical properties of FUJI, including its boundedness, maximum achievement, and comparison to Jaccard. They prove that FUJI is a generalization of Jaccard and is generally more stable.
  • Efficient Algorithm: An efficient algorithm for computing FUJI similarity scores and curves is proposed, with a focus on avoiding redundant calculations.

Datasets

The paper evaluates FUJI on 24 classification datasets, covering various domains like medicine, chemistry, and handwriting recognition. These datasets vary in size and dimensionality. The authors specifically highlight their analysis on the genes dataset (TCGA pan-cancer study) and the p53 dataset due to their high dimensionality, which is a key motivation for developing FUJI. No new benchmarks were introduced; instead, existing datasets were used to compare FUJI against established methods.

Key Insights and Ideas

  • Rank Matters: The most significant insight is that incorporating rank and relevance scores into similarity measures for ordered lists leads to more stable and accurate comparisons, especially when dealing with noisy or high-dimensional data.
  • Jaccard's Limitations: The paper clearly demonstrates how the standard Jaccard Index can be unstable and misleading, particularly in scenarios with slight variations or when items have similar relevance scores but different ranks.
  • FUJI as a Generalization: FUJI is shown to be a generalization of the Jaccard Index, meaning that under certain conditions (e.g., very high relevance scores), FUJI converges to Jaccard. This provides a theoretical link and explains why FUJI can be more informative.
  • Robustness in Practice: The empirical results consistently show FUJI outperforming Jaccard and other benchmark scores in detecting true similarities, especially in synthetic scenarios designed to expose the weaknesses of simpler metrics.

Key Results

  • Improved Stability and Accuracy: FUJI consistently provides more stable and accurate similarity estimates compared to Jaccard and other standard measures across various synthetic scenarios and real-world datasets.
  • Distinguishing Similarities: In experiments, FUJI was able to differentiate between rankings that Jaccard struggled to distinguish, particularly in cases of correlated items or when dealing with ensemble-based feature rankings.
  • Efficiency: An efficient algorithm for computing FUJI is presented, making it practical for use in real-world applications.
  • Theoretical Guarantees: The paper provides theoretical insights into FUJI's properties, including its bounds and how it relates to Jaccard.

Limitations and Future Work

  • Computational Complexity: While an efficient algorithm is provided, the worst-case time complexity for computing FUJI curves is O(n²). The authors suggest that in practice, early stopping and optimized computations can mitigate this.
  • Correction for Chance: The paper notes that while Jaccard can be adapted for correction for chance, the exact distribution for FUJI is more complex and would require separate determination per use case.
  • Broader Applications: The authors suggest that FUJI's utility extends beyond feature ranking, mentioning potential applications in comparing decision tree splits, machine learning methods across metrics, and analyzing node centralities in complex networks. They also propose its use in detecting biases in natural language processing models by analyzing attention vectors.

Summary updated

Abstract

We propose Fuzzy Jaccard Index (FUJI) -- a scale-invariant score for assessment of the similarity between two ranked/ordered lists. FUJI improves upon the Jaccard index by incorporating a membership function which takes into account the particular ranks, thus producing both more stable and more accurate similarity estimates. We provide theoretical insights into the properties of the FUJI score as well as propose an efficient algorithm for computing it. We also present empirical evidence of its performance on different synthetic scenarios. Finally, we demonstrate its utility in a typical machine learning setting -- comparing feature ranking lists relevant to a given machine learning task. In real-life, and in particular high-dimensional domains, where only a small percentage of the whole feature space might be relevant, a robust and confident feature ranking leads to interpretable findings as well as efficient computation and good predictive performance. In such cases, FUJI correctly distinguishes between existing feature ranking approaches, while being more robust and efficient than the benchmark similarity scores.
BibTeX
@misc{petkovic2020fuzzy,
  author = {Matej Petkovic and Blaz Skrlj and Dragi Kocev and Nikola Simidjievski},
  title = {{Fuzzy Jaccard Index: A robust comparison of ordered lists}},
  year = {2020},
  eprint = {2008.02216},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.02216},
}
Figure