Skip to main content
QUICK REVIEW

[Paper Review] Do We Need Domain-Specific Embedding Models? An Empirical Investigation

Yuan Yan Tang, Yixin Yang|arXiv (Cornell University)|Sep 27, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper investigates whether domain-specific embedding models are necessary despite the availability of general-purpose LLM-based embeddings. By introducing FinMTEB, a finance-specific benchmark, and evaluating seven state-of-the-art models, the authors find a significant performance drop on domain-specific tasks, even after controlling for dataset complexity—demonstrating that general-purpose models fail to capture financial domain nuances, and performance on general benchmarks does not predict performance in specialized domains.

ABSTRACT

Embedding models play a crucial role in representing and retrieving information across various NLP applications. Recent advancements in Large Language Models (LLMs) have further enhanced the performance of embedding models, which are trained on massive amounts of text covering almost every domain. These models are often benchmarked on general-purpose datasets like Massive Text Embedding Benchmark (MTEB), where they demonstrate superior performance. However, a critical question arises: Is the development of domain-specific embedding models necessary when general-purpose models are trained on vast corpora that already include specialized domain texts? In this paper, we empirically investigate this question, choosing the finance domain as an example. We introduce the Finance Massive Text Embedding Benchmark (FinMTEB), a counterpart to MTEB that consists of financial domain-specific text datasets. We evaluate the performance of seven state-of-the-art embedding models on FinMTEB and observe a significant performance drop compared to their performance on MTEB. To account for the possibility that this drop is driven by FinMTEB's higher complexity, we propose four measures to quantify dataset complexity and control for this factor in our analysis. Our analysis provides compelling evidence that state-of-the-art embedding models struggle to capture domain-specific linguistic and semantic patterns. Moreover, we find that the performance of general-purpose embedding models on MTEB is not correlated with their performance on FinMTEB, indicating the need for domain-specific embedding benchmarks for domain-specific embedding models. This study sheds light on developing domain-specific embedding models in the LLM era. FinMTEB comes with open-source code at https://github.com/yixuantt/FinMTEB

Motivation & Objective

  • To determine whether domain-specific embedding models are necessary in the era of large language models (LLMs) pre-trained on broad corpora.
  • To investigate whether the strong performance of general-purpose embedding models on general benchmarks like MTEB generalizes to specialized domains such as finance.
  • To develop a standardized, domain-specific benchmark to fairly evaluate embedding models in financial NLP tasks.
  • To analyze whether performance degradation on domain-specific tasks is due to domain shift or increased dataset complexity.
  • To assess the correlation between general benchmark performance (MTEB) and domain-specific performance (FinMTEB) for state-of-the-art embedding models.

Proposed method

  • Introduced FinMTEB, a finance-specific benchmark with 64 datasets and seven NLP tasks (classification, clustering, retrieval, etc.), modeled after MTEB.
  • Evaluated seven state-of-the-art embedding models on both MTEB and FinMTEB to measure performance drop across domains.
  • Proposed four complexity metrics: ChatGPT response error rate, readability (Flesch-Kincaid), information entropy, and mean dependency distance (MDD) to quantify dataset complexity.
  • Used ANOVA to isolate the effect of benchmark domain from model-specific factors on performance.
  • Applied complexity controls in regression analysis to assess performance differences independent of dataset difficulty.
  • Measured correlation between MTEB and FinMTEB performance scores to evaluate transferability of general benchmark performance.
Figure 1: An overview of tasks and datasets used in FinMTEB. All the dataset descriptions and examples are provided in the Appendix C .
Figure 1: An overview of tasks and datasets used in FinMTEB. All the dataset descriptions and examples are provided in the Appendix C .

Experimental results

Research questions

  • RQ1Does the performance of general-purpose embedding models degrade significantly when evaluated on a finance-specific benchmark compared to a general-purpose benchmark?
  • RQ2To what extent is the performance drop on FinMTEB attributable to increased dataset complexity rather than domain-specific linguistic patterns?
  • RQ3Is there a significant correlation between a model’s performance on MTEB and its performance on FinMTEB?
  • RQ4Do state-of-the-art LLM-based embedding models fail to capture domain-specific semantic and syntactic patterns in financial texts?
  • RQ5Can complexity-aware evaluation distinguish between domain shift and inherent dataset difficulty in benchmark performance?

Key findings

  • General-purpose embedding models exhibit a significant performance drop on FinMTEB compared to MTEB, with average F1-score reductions across tasks indicating domain-specific performance degradation.
  • ANOVA results show that the performance difference is primarily driven by the benchmark domain (MTEB vs. FinMTEB), not by model-specific characteristics.
  • Even after controlling for dataset complexity using four metrics (ChatGPT error rate, readability, entropy, MDD), general-purpose models still underperform on FinMTEB, indicating domain shift is the main factor.
  • The performance of models on MTEB shows no significant correlation with their performance on FinMTEB, suggesting that strong generalization to specialized domains cannot be assumed.
  • The performance drop is more pronounced on complex financial texts, and the gap widens with increasing syntactic and semantic complexity, as measured by MDD and entropy.
  • FinMTEB is shown to be a valid and necessary benchmark for evaluating domain-specific embedding models, as it reveals limitations of general-purpose models in financial NLP.
(a) ChatGPT Error Rate
(a) ChatGPT Error Rate

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.