An Analysis of Fusion Functions for Hybrid Retrieval

Sebastian Bruch, Siyu Gai, Amir Ingber · DOI

TL;DR

This paper analyzes how to best combine the strengths of lexical (keyword-based) and semantic (meaning-based) search for information retrieval. The authors find that a simple convex combination of scores, when properly normalized, is more robust and sample-efficient than Reciprocal Rank Fusion (RRF), a popular alternative. This work clarifies the trade-offs between different fusion strategies, offering practical guidance for building better hybrid search systems.

What Problem Does This Paper Address?

Information retrieval systems aim to find the most relevant documents for a given query. Traditionally, this has been done using "lexical search," which relies on exact keyword matching (like BM25). While efficient and effective, lexical search struggles with vocabulary mismatches and doesn't understand the nuances of meaning. "Semantic search," powered by deep learning models (like BERT), excels at capturing meaning but can be computationally expensive and sometimes underperforms lexical search on out-of-domain data.

Hybrid retrieval aims to get the best of both worlds by combining lexical and semantic search. However, the best way to fuse these two types of scores has been an open question. Previous work has explored methods like convex combinations and Reciprocal Rank Fusion (RRF), but there's been a lack of in-depth analysis comparing their theoretical underpinnings and empirical performance, especially concerning their sensitivity to parameters and normalization. This paper aims to fill that gap by dissecting these fusion functions.

Methods

The authors analyze two primary fusion functions:

  • Convex Combination (CC): This is a linear combination of lexical and semantic scores, typically expressed as $f_{CONVEX}(q, d) = \alpha f_{SEM}(q, d) + (1 - \alpha) f_{LEX}(q, d)$, where $\alpha$ is a tunable parameter. A key aspect of their analysis is the role of score normalization (e.g., min-max scaling, z-score normalization) applied to the lexical and semantic scores before fusion. They theoretically and empirically show that while normalization is crucial for consistency, the specific choice of normalization is less critical than previously thought, as different normalization schemes can lead to rank-equivalent fusion functions.
  • Reciprocal Rank Fusion (RRF): This method combines the ranks of documents from different retrieval systems, rather than their raw scores. The formula is $f_{RRF}(q, d) = \frac{1}{\eta + \pi_{LEX}(q, d)} + \frac{1}{\eta + \pi_{SEM}(q, d)}$, where $\pi$ denotes rank and $\eta$ is a parameter. The authors take a parametric view of RRF, considering multiple parameters, and contrast this with the non-parametric view often taken.

They also introduce a smoothed version of RRF (SRRF) to investigate the role of Lipschitz continuity in fusion functions.

Datasets

The study uses a variety of publicly available benchmark datasets, categorized as in-domain and out-of-domain:

  • In-domain: MS MARCO Passage Retrieval v1, Natural Questions (NQ), QUORA. These datasets are considered in-domain because the semantic models used were either trained or fine-tuned on them.
  • Out-of-domain: NFCORPUS, HOTPOTQA, FEVER, SCIFACT, DBPEDIA, FIQA. These are used to evaluate how well fusion methods generalize to data not seen during semantic model training.

Key Insights and Ideas

  • Normalization is Key, but Specifics Matter Less for CC: For convex combinations, score normalization is essential to create a bounded and consistent fusion. However, the exact normalization method (min-max, z-score, etc.) is less critical than the fact that some normalization is applied. Different normalized schemes can lead to rank-equivalent fusion functions.
  • Convex Combination is Sample-Efficient: Tuning the parameter $\alpha$ for convex combination requires very few training queries to achieve good performance, even with significant domain shifts. This makes it highly practical.
  • RRF is Sensitive and Less Robust: Unlike convex combinations, RRF is sensitive to its parameters and can generalize poorly to out-of-domain datasets. Its reliance on ranks, rather than raw scores, means it can discard valuable information about score distributions.
  • Lipschitz Continuity Matters: Functions that preserve the distribution of raw scores (like normalized convex combinations) tend to perform better. RRF, which distorts score distributions by focusing on ranks, is less "information-preserving" and can lead to suboptimal results.
  • Convex Combination Outperforms RRF: Empirically, the authors find that their proposed normalized convex combination (TM2C2) consistently outperforms RRF, contrary to some prior claims.

Key Results

  • TM2C2 (Normalized CC) beats RRF: On most datasets, TM2C2 achieved significantly better NDCG scores than RRF, especially on out-of-domain datasets. For example, on MS MARCO, TM2C2 achieved 0.454 NDCG@1000 compared to RRF's 0.425.
  • Sample Efficiency: TM2C2's parameter $\alpha$ converges to optimal values with less than 5% of the training data, demonstrating remarkable sample efficiency. RRF, even when tuned, is less sample-efficient and often performs worse.
  • Normalization's Impact: Figures show that while different normalizations for convex combinations lead to similar performance curves, using unnormalized scores can severely degrade ranking quality, especially on in-domain datasets where semantic models are already strong.
  • RRF Parameter Sensitivity: The performance of RRF can vary wildly with its parameters ($\eta$), and optimal settings for in-domain datasets do not necessarily transfer to out-of-domain settings.

Limitations and Future Work

  • Per-Query Tuning: The current analysis primarily focuses on tuning fusion parameters for a collection of queries. The authors acknowledge that per-query tuning might yield further improvements but is a more complex endeavor.
  • Non-Linearity: The paper focuses on linear fusion functions (convex combination). Exploring non-linear fusion functions or normalization could be a future direction.
  • More Than Two Retrieval Systems: The current work primarily fuses two systems (lexical and semantic). Extending the analysis to fuse three or more retrieval systems is a natural next step.
  • Theoretical Guarantees for RRF: While the paper provides empirical evidence, further theoretical work might be needed to fully understand RRF's limitations.

Summary updated

BibTeX
@article{bruch2022analysis,
  author = {Sebastian Bruch and Siyu Gai and Amir Ingber},
  title = {{An Analysis of Fusion Functions for Hybrid Retrieval}},
  journal = {ACM Trans. Information Systems},
  year = {2022},
  doi = {10.1145/3596512},
}
Figure