Skip to main content
QUICK REVIEW

[Paper Review] A note on the triangle inequality for the Jaccard distance

Sven Kosub|arXiv (Cornell University)|Dec 8, 2016
Point processes and geometric inequalitiesMathematics13 references13 citations
TL;DR

This paper provides two concise, direct proofs of the triangle inequality for the Jaccard distance using nonnegative, monotone, submodular set functions. It establishes that the standard Jaccard distance satisfies the triangle inequality for modular functions, while introducing a new variant, $J^{ riangle}_{ ext{δ},f}$, that maintains the triangle inequality for general submodular functions, offering a robust generalization of the Jaccard distance in metric learning and similarity analysis.

ABSTRACT

Two simple proofs of the triangle inequality for the Jaccard distance in terms of nonnegative, monotone, submodular functions are given and discussed.

Motivation & Objective

  • To provide simple, direct proofs of the triangle inequality for the Jaccard distance using submodular function theory.
  • To generalize the Jaccard distance beyond set cardinality to nonnegative, monotone, submodular set functions.
  • To identify which variants of the Jaccard distance satisfy the triangle inequality under submodularity.
  • To clarify the distinction between two candidate submodular Jaccard distances: $J_{\delta,f}$ and $J^{\triangle}_{\delta,f}$.
  • To establish conditions under which the triangle inequality holds, particularly distinguishing modular from general submodular functions.

Proposed method

  • Uses the fundamental identity $|A \cup B| + |A \cap B| = |A| + |B|$ as a basis for a generic proof of the triangle inequality.
  • Applies submodularity and monotonicity of set functions to derive the inequality $f(A \cap C) \cdot f(B \cup C) + f(A \cup C) \cdot f(B \cap C) \leq f(C) \cdot (f(A) + f(B))$.
  • Introduces two variants of the submodular Jaccard distance: $J_{\delta,f}(A,B) = 1 - \frac{f(A \cap B)}{f(A \cup B)}$ and $J^{\triangle}_{\delta,f}(A,B) = \frac{f(A \triangle B) - f(\emptyset)}{f(A \cup B)}$.
  • Employs a decomposition of set $C$ into $C_0 \subseteq A \cup B$ and $C_1 \subseteq \overline{A \cup B}$ to prove the triangle inequality for $J^{\triangle}_{\delta,f}$.
  • Leverages monotonicity and submodularity to bound the sum of distances via $f(A \cup B \cup C_1)$ and $f((A \cap B) \cup C)$.
  • Uses the condition $f(A \cup \{x\}) - f(A) \geq f(B \cup \{x\}) - f(B)$ for $A \subseteq B$, $x \notin B$, to characterize submodularity.

Experimental results

Research questions

  • RQ1Does the standard Jaccard distance satisfy the triangle inequality for nonnegative, monotone, submodular set functions?
  • RQ2Can a generalized Jaccard distance be defined that preserves the triangle inequality for submodular functions?
  • RQ3What distinguishes $J_{\delta,f}$ from $J^{\triangle}_{\delta,f}$ in terms of metric properties?
  • RQ4Under what conditions does the triangle inequality fail for $J_{\delta,f}$ in the submodular case?
  • RQ5Is $J^{\triangle}_{\delta,f}$ a valid (pseudo)metric for submodular functions, and how does it relate to the standard Jaccard distance?

Key findings

  • The triangle inequality holds for $J_{\delta,f}$ if and only if $f$ is modular, as shown by a counterexample using non-modular submodular functions.
  • The inequality $f(A \cap C) \cdot f(B \cup C) + f(A \cup C) \cdot f(B \cap C) \leq f(C) \cdot (f(A) + f(B))$ is proven using submodularity and monotonicity.
  • Corollary 2 establishes $f(S \cap T) \cdot f(S \cup T) \leq f(S) \cdot f(T)$ for all $S,T \subseteq X$, a key identity in the proof.
  • The variant $J^{\triangle}_{\delta,f}$ satisfies the triangle inequality for all nonnegative, monotone, submodular functions, as proven via decomposition and bounding techniques.
  • For modular $f$, $J_{\delta,f} = J^{\triangle}_{\delta,f}$, recovering the standard Jaccard distance.
  • Concrete counterexamples exist where $J_{\delta,f}$ fails the triangle inequality for non-modular submodular functions, such as budget-constrained linear costs or neighborhood sizes in bipartite graphs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.