Downloads ยท 30 days
7
25% of all-time downloads
Shubham-Mehrotra-PML/fin-bge-v1
fin-bge-v1 is a machine learning model from Shubham-Mehrotra-PML. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuned BGE model specialized for financial domain embeddings
Downloads ยท 30 days
7
25% of all-time downloads
All-time downloads
28
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB ยท 100%
From the Hugging Face model README
Fine-tuned BGE model specialized for financial domain embeddings
This model is a fine-tuned version of BAAI/bge-base-en-v1.5 specifically optimized for financial domain embeddings. It has been trained on a comprehensive dataset of financial terms, concepts, and relationships to provide high-quality embeddings for finance-related NLP tasks.
| Model | Overall Avg | Finance Avg | Non-Finance Avg | Description |
|---|---|---|---|---|
| BGE Fine-tuned | 0.5609 | 0.5160 | 0.6509 | Our fine-tuned model |
| BGE Base | 0.6208 | 0.5871 | 0.6884 | Base BGE model |
| MPNet Fine-tuned | 0.4598 | 0.4243 | 0.5307 | MPNet fine-tuned |
๐ฏ Finance-Specific Improvements:
๐ก๏ธ Maintained Non-Finance Performance:
Below are the comprehensive similarity scores for all 36 test pairs across the three models:
| Text 1 | Text 2 | BGE Base | BGE Fine-tuned | MPNet Fine-tuned | Improvement |
|---|---|---|---|---|---|
| asset turnover | price to earnings ratio | 0.6168 | 0.2612 | 0.2123 | -57.6% |
| asset turnover | efficiency ratios | 0.6217 | 0.4906 | 0.5578 | -21.1% |
| valuation | what is the valuation of paytm | 0.7583 | 0.7553 | 0.7781 | -0.4% |
| valuation | market capitalization | 0.6375 | 0.4919 | 0.4558 | -22.8% |
| valuation | discounted cash flow analysis | 0.6575 | 0.9190 | 0.8382 | +39.8% |
| valuation | book value | 0.7760 | 0.7216 | 0.5971 | -7.0% |
| valuation | return on equity | 0.6702 | 0.4356 | 0.3736 | -35.0% |
| PE Ratio | price to earnings ratio | 0.7233 | 0.9779 | 0.9863 | +35.2% |
| PE Ratio | P/E | 0.7720 | 0.9863 | 0.9903 | +27.7% |
| PE Ratio | Fundamental Analysis | 0.6342 | 0.5515 | 0.6127 | -13.0% |
| PE Ratio | Technical Analysis | 0.6333 | 0.3818 | 0.1781 | -39.7% |
| PE Ratio | Valuation | 0.5757 | 0.8707 | 0.5001 | +51.2% |
| PE Ratio | Profit | 0.5843 | 0.4688 | 0.2193 | -19.8% |
| PE Ratio | return on equity | 0.6051 | 0.4411 | 0.3304 | -27.1% |
| Text 1 | Text 2 | BGE Base | BGE Fine-tuned | MPNet Fine-tuned | Improvement |
|---|---|---|---|---|---|
| PE Ratio | mutual funds | 0.5693 | 0.3778 | 0.2457 | -33.6% |
| stock market | how does the stock exchange work? | 0.7421 | 0.7450 | 0.7144 | +0.4% |
| stock market | tell me about investing in stocks. | 0.7430 | 0.6896 | 0.5569 | -7.2% |
| stock market | explain the concept of inflation. | 0.5822 | 0.3570 | 0.2229 | -38.7% |
| financial statement | balance sheet | 0.7660 | 0.8846 | 0.7200 | +15.5% |
| financial statement | income statement | 0.8785 | 0.7492 | 0.6727 | -14.7% |
| financial statement | cash flow statement | 0.8384 | 0.6572 | 0.6377 | -21.6% |
| stock | equity | 0.6676 | 0.9741 | 0.7942 | +45.9% |
| stock | share market | 0.7393 | 0.8979 | 0.8003 | +21.4% |
| stock | nifty 50 | 0.5641 | 0.5426 | 0.4244 | -3.8% |
| Text 1 | Text 2 | BGE Base | BGE Fine-tuned | MPNet Fine-tuned | Improvement |
|---|---|---|---|---|---|
| valuation | what to have for lunch | 0.4820 | 0.3258 | 0.3115 | -32.4% |
| valuation | how to bake a cake | 0.4567 | 0.3752 | 0.2159 | -17.9% |
| valuation | the capital of France | 0.4367 | 0.4365 | 0.3202 | -0.0% |
| valuation | weather forecast for tomorrow | 0.5093 | 0.3756 | 0.2967 | -26.2% |
| valuation | learn to play guitar | 0.4761 | 0.3575 | 0.2344 | -24.9% |
| PE Ratio | how to bake a cake | 0.5193 | 0.3631 | 0.2267 | -30.1% |
| PE Ratio | the capital of France | 0.4165 | 0.3976 | 0.2825 | -4.5% |
| PE Ratio | weather forecast for tomorrow | 0.5264 | 0.2904 | 0.2353 | -44.8% |
| PE Ratio | learn to play guitar | 0.4316 | 0.3301 | 0.1838 | -23.5% |
| stock market | what is the weather forecast for today? | 0.5773 | 0.3955 | 0.2508 | -31.5% |
| financial statement | types of clouds | 0.4855 | 0.3477 | 0.2337 | -28.4% |
| stock | mutual funds | 0.6764 | 0.5707 | 0.3409 | -15.6% |
๐ฏ Strongest Improvements (BGE Fine-tuned vs Base):
๐ก๏ธ Better Noise Reduction:
๐ Performance Summary by Category:
๐ฏ Model Behavior Analysis:
Note: Negative "improvements" often indicate better discrimination - the model correctly assigns lower similarity to semantically distant or loosely related concepts, showing improved precision over the base model's broader but less accurate associations.
The model was trained using a multi-objective approach:
from sentence_transformers import SentenceTransformer, util
model_name = 'sentence-transformers/all-mpnet-base-v2'
model = SentenceTransformer(model_name)
test_pairs = [
("valuation", "price to earnings ratio"),
("valuation", "earnings per share")
]
# Calculate and print similarity scores for each pair
print("Cosine similarity scores for test pairs:")
for sentence1, sentence2 in test_pairs:
embedding1 = model.encode(sentence1, convert_to_tensor=True)
embedding2 = model.encode(sentence2, convert_to_tensor=True)
cosine_score = util.cos_sim(embedding1, embedding2)
print(f"'{sentence1}' vs '{sentence2}': {cosine_score[0][0].item():.4f}")
The model was trained on a comprehensive finance dataset including:
@misc{finance-embeddings-bge-v1,
title={Finance Embeddings BGE v1: Specialized Financial Domain Embeddings},
author={Finance Embeddings Team},
year={2025},
url={https://huggingface.co/models/fin-bge-v1}
}
This model is released under the same license as the base BAAI/bge-base-en-v1.5 model.
Model trained on 2025-09-27 | Last updated: 2025-09-27