Probabilistic Similarity and Bayesian Evidence Ratios

This direction is split into other directions: probabilistic similarity modeling, probabilistic agglomerative clustering. Its last version stays readable and citable here.

Version 1 of 171 papers90 conceptsfrozen 2026-10-04

In traditional machine learning, we often treat similarity as a geometric problem. We represent data as points in a high-dimensional space and calculate the distance between them—Euclidean, Cosine, or Jaccard. But geometry is a rigid master. It struggles when data is sparse, when noise varies across the feature space, or when the "meaning" of similarity changes based on context.

A growing body of research suggests a more flexible alternative: treating similarity as a statistical inference problem. Instead of asking "how far apart are these points?", we ask "how likely is it that these two observations were generated by the same underlying process?"

Similarity as a Hypothesis Test

The core intuition behind this shift is to frame similarity as a binary hypothesis test. When comparing two items, $x$ and $y$, we weigh two competing explanations:

  1. The Same-Source Hypothesis ($H_s$): Both items were generated by the same latent model or belong to the same cluster.
  2. The Different-Source Hypothesis ($H_d$): The items were generated independently by different models or by a background "noise" process.

By calculating the Likelihood Ratio—the probability of the data under $H_s$ divided by the probability under $H_d$—we get a score that represents the strength of evidence for their similarity. Selim Aksoy demonstrated in Probabilistic vs. Geometric Similarity Measures for Image Retrieval that this approach significantly outperforms geometric metrics because it naturally accounts for the underlying distribution of the data rather than assuming a uniform, flat space.

Why Probabilistic Scores Beat Geometric Distances

Geometric distances often fail in high-dimensional, sparse environments because they only measure the direction or magnitude of a vector, ignoring the amount of evidence available.

Consider the "author name disambiguation" problem. Gao Cong and colleagues introduced the Categorical Sampling Likelihood Ratio (CSLR) in Author Name Disambiguation Using a New Categorical Distribution Similarity to solve this. If two papers share a rare co-author, that is much stronger evidence of a match than if they share a common co-author. A geometric metric might treat both overlaps as "one unit of similarity," but a likelihood ratio weights the rare event much more heavily.

Similarly, in collaborative filtering, Aydin Buluc and Veronika Strnadová-Neeley developed LiRa (LiRa: A New Likelihood-Based Similarity Score for Collaborative Filtering). LiRa explicitly models the probability of observing specific rating differences by chance. This allows the system to be "confident" about a match when two users agree on many items, while remaining skeptical when they only have one or two items in common—a nuance that Cosine similarity misses.

Bayesian Hierarchical Clustering

This probabilistic framing transforms how we group data. Traditional agglomerative clustering merges the two "closest" clusters. In contrast, Bayesian Hierarchical Clustering (BHC), pioneered by Makoto Iwayama and Takenobu Tokunaga in Hierarchical Bayesian Clustering for Automatic Text Classification, merges pairs that maximize the posterior probability of the resulting partition.

Katherine A Heller and Zoubin Ghahramani extended this in Tree-Based Inference for Dirichlet Process Mixtures, showing that at each step of the hierarchy, we can perform a formal statistical test: "Is it more likely that these two groups of data came from one component, or from two?" This provides a principled way to decide where to stop the clustering process, avoiding the need for arbitrary distance thresholds.

Context and Generative Similarity

One of the most powerful aspects of the probabilistic approach is its ability to handle context. As Rahul G Krishnan notes in Max-margin learning with the Bayes factor, a red chair is similar to a blue chair in the context of "furniture," but similar to a red car in the context of "color." By using the ratio of conditional likelihood to marginal likelihood (the Bayes Factor), we can quantify how much a specific query set increases the probability of a target observation.

This aligns machine learning more closely with human cognition. Raja Marjieh and Jake Snell argue in Learning Human-Aligned Representations with Contrastive Learning and Generative Similarity that humans perceive similarity not as distance, but as a shared generative process. Their GenSim framework uses Bayesian odds ratios to induce human-like perceptions of abstract geometry and semantic hierarchies in neural networks, proving that when we model the process that created the data, we understand the data itself much better.

Papers in this version

Showing 60 of 71 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_probabilistic_similarity_and_bayesian_ev_72f5413b,
  title = {Probabilistic Similarity and Bayesian Evidence Ratios},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/probabilistic-similarity-and-bayesian-evidence-ratios/rdr_72f5413bc5e04f7b88b15721b76d170b},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_probabilistic_similarity_and_bayesian_ev_72f5413b_v1,
  title = {Probabilistic Similarity and Bayesian Evidence Ratios},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/probabilistic-similarity-and-bayesian-evidence-ratios/rdr_72f5413bc5e04f7b88b15721b76d170b/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}