Evaluating Embedding Models: Investigating Factors Affecting Performance Through the Medical Domain
Abstract
In this paper, we investigated the performance of embedding models on two different domains, using models of different embedding dimensions, and even varying dimension to fully understand the impacting factors for the models. We ran tests for seven state-of-the-art models across natural questions and medial QA datasets to investigate the models' out-of-domain performance, and how factors such as the number of training parameters and fine-tuning affect accuracy and speed. We also explored the potential impact of several other variables, such as how model architecture could be the only factor affecting processing speed and how training data could have a significant effect on out-of-domain accuracy. The results show that the accuracy of the models follows a decreasing exponential relationship with the number of embedding dimensions and that the number of training parameters has little effect on model performance. The models we found to have the best accuracy were the nq-distillbert for natural questions and MedEmbed-base for medical QA. The model with the lowest encode time and the best accuracy-to-speed ratio by far across both datasets, as well as the best out-of-domain performance, was the all-miniLM.
References
- Wang, B., Wang, A., Chen, F., Wang, Y., and Kuo, C.-C. J. (2019a). Evaluating word embedding models: Methods and experimental results. APSIPA transactions on signal and information processing, 8: e19.
- Wang, Y., Ruffinelli, D., Gemulla, R., Broscheit, S., and Meilicke, C. (2019b). On evaluating embedding models for knowledge base completion.
- Tang, Y. and Yang, Y. (2025). Do we need domain-specific embedding models? an empirical investigation.
- Nooralahzadeh, F., Øvrelid, L., and Lønning, J. T. (2018). Evaluation of domain-specific word embeddings using knowledge resources. In Proceedings of the eleventh international conference on language resources and evaluation (LREC 2018).
- Reimers, N. and Gurevych, I. (2019). Sentence-bert: Sentence embeddings using siamese bert networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
- Chen, J., Cai, Z., Ji, K., Wang, X., Liu, W., Wang, R., Hou, J., and Wang, B. (2024). Huatuogpt-o1, towards medical complex reasoning with llms. arXiv preprint arXiv: 2412.18925.