Revealing the Numeracy Gap: An Empirical Investigation of Text Embedding Models

Ningyuan Deng, Hanyu Duan, Yixuan Tang, Yi YangarXiv 2025 · DOI

Introduction

Modern text embedding models are the cornerstone of Natural Language Processing (NLP), enabling sophisticated semantic search and Retrieval-Augmented Generation (RAG). While these models excel at capturing broad semantic context, they often exhibit a significant "numeracy gap." In critical domains such as finance or healthcare, where numerical precision is paramount, treating "blood pressure is 120/80" and "blood pressure is 180/110" as semantically identical can be dangerous. This study introduces the EmbedNum-1K benchmark to investigate whether current models—from classic encoders to large language model (LLM)-based embedders—truly understand numerical values or merely treat them as interchangeable tokens.

Methodology

The researchers developed a specialized retrieval task to evaluate numeracy. Given a question ($Q$) and two candidate answers ($A^+$ and $A^-$), the model must rank the correct answer closer to the question in the embedding space using cosine similarity. The candidate answers are identical except for their numeric values (e.g., comparing a 20% stake vs. a 5% stake for a question about ownership over 15%).

The study evaluated 13 models, including encoder-based models (RoBERTa, MPNet), LLM-based models (gte-Qwen2, e5-mistral-7b), and commercial APIs (OpenAI’s text-embedding-3-small). To test robustness, the EmbedNum-1K dataset was constructed with 1,000 synthetic samples across 18 variants, including different numeric formats like integers, decimals, and written forms.

Key Findings

The Complexity Penalty

A primary insight from the study is the "Cognitive Load for AI." Similar to human cognition, models struggle as numerical complexity increases. There is a strong negative correlation between the number of significant figures and model accuracy. For instance, models handle simple decimals (e.g., 0.8) much more effectively than high-precision values (e.g., 8.7713).

Accuracy vs. Significant Figures

Asymmetric Reasoning

The evaluation revealed a systematic bias in how models handle numerical relationships. Models consistently perform better on "greater-than" conditions compared to "less-than" conditions. This asymmetry suggests that the training data or the underlying architectural biases favor certain directional relationships over others.

Greater-than vs. Less-than Accuracy

Performance Overview

While LLM-based embedding models generally outperformed encoder-based models by approximately 5 percentage points (0.56 vs. 0.51), overall performance remained low. The average retrieval accuracy across all models was just 0.54, only marginally better than random chance (0.50). Interestingly, while encoder-based models were easier to "probe" for exact numbers via linear regression, this did not translate to better performance on the retrieval task, suggesting a gap between representation and reasoning.

Format Sensitivity and Tokenization

Models are highly sensitive to numerical formatting. Accuracy peaked for simple decimals but plummeted for 4-digit integers. Representing numbers in written form (e.g., "twenty-four") provided a slight performance boost, likely because these words are part of the model's standard vocabulary and avoid the fragmentation often seen with digit-based tokenization.

Conclusion

The "numeracy gap" remains a significant hurdle for text embedding models. Current architectures struggle with fine-grained numerical differences, particularly as precision increases. Future research should focus on "numeracy-aware" training objectives that move beyond broad semantic similarity to explicitly model the relationships between numerical values. While synthetic datasets like EmbedNum-1K provide a controlled environment for testing, expanding this research to real-world, messy data in specialized domains will be crucial for developing truly reliable NLP systems.

Summary updated

BibTeX
@misc{deng2025revealing,
  author = {Ningyuan Deng and Hanyu Duan and Yixuan Tang and Yi Yang},
  title = {{Revealing the Numeracy Gap: An Empirical Investigation of Text Embedding Models}},
  year = {2025},
  eprint = {2509.05691},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.05691},
}
Figure