---
base_model: BAAI/bge-base-en-v1.5
datasets: []
language:
- en
library_name: sentence-transformers
license: apache-2.0
metrics:
- cosine_accuracy@1
- cosine_accuracy@3
- cosine_accuracy@5
- cosine_accuracy@10
- cosine_precision@1
- cosine_precision@3
- cosine_precision@5
- cosine_precision@10
- cosine_recall@1
- cosine_recall@3
- cosine_recall@5
- cosine_recall@10
- cosine_ndcg@10
- cosine_mrr@10
- cosine_map@100
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:6300
- loss:MatryoshkaLoss
- loss:MultipleNegativesRankingLoss
widget:
- source_sentence: Teams across Delta have worked together to make an impact through
enhanced landing procedures, optimizations to flight routing and speed, and weight
reduction initiatives, saving over 20 million gallons of jet fuel in 2022 and
2023.
sentences:
- What was the percentage increase in Services net sales from 2022 to 2023?
- How much jet fuel did Delta Air Lines save between 2022 and 2023 through optimizations
in aircraft operations?
- How did Ford Pro's EBIT in 2023 compare to the previous year, and what contributed
to this change?
- source_sentence: On February 14, 2022, the State of Texas filed a lawsuit against
us in Texas state court (Texas v. Meta Platforms, Inc.) alleging that "tag suggestions"
and other uses of facial recognition technology violated the Texas Capture or
Use of Biometric Identifiers Act and the Texas Deceptive Trade Practices-Consumer
Protection Act, and seeking statutory damages and injunctive relief.
sentences:
- What did the auditor’s report dated February 9, 2024, state about the effectiveness
of Enphase Energy’s internal control over financial reporting as of December 31,
2023?
- What legal action did the State of Texas initiate against Meta Platforms, Inc.
on February 14, 2022?
- What caused the pretax loss in the Corporate & Other segment to increase in 2023
compared to 2022?
- source_sentence: Our two operating segments are "Compute & Networking" and "Graphics."
Refer to Note 17 of the Notes to the Consolidated Financial Statements in Part
IV, Item 15 of this Annual Report on Form 10-K for additional information.
sentences:
- What are the two operating segments of NVIDIA as mentioned in the text?
- How much did the gross margin increase in 2023 compared to 2022?
- What is the total assets and shareholders' equity of Chubb Limited as of December
31, 2023?
- source_sentence: The increase in marketing and sales expenses in fiscal year 2023
was mainly due to higher advertising and promotional spending related to Apex
Legends Mobile and the FIFA franchise.
sentences:
- What are included in Part IV, Item 15(a)(1) of the Annual Report on Form 10-K?
- What was the net income reported for the fiscal year ending in August 2023?
- What was the primary cause of the increase in marketing and sales expenses in
fiscal year 2023?
- source_sentence: 'Information on legal proceedings is included in Contact Email PRIOR
HISTORY: None PLACEHOLDER FOR ARBITRATION.'
sentences:
- Where can information about legal proceedings be found in the financial statements?
- What remaining authorization amount was available for share repurchases as of
January 28, 2023?
- What is the total amount authorized for the repurchase of common stock up to December
2023?
model-index:
- name: BGE base Financial Matryoshka
results:
- task:
type: information-retrieval
name: Information Retrieval
dataset:
name: dim 768
type: dim_768
metrics:
- type: cosine_accuracy@1
value: 0.71
name: Cosine Accuracy@1
- type: cosine_accuracy@3
value: 0.8428571428571429
name: Cosine Accuracy@3
- type: cosine_accuracy@5
value: 0.8771428571428571
name: Cosine Accuracy@5
- type: cosine_accuracy@10
value: 0.9142857142857143
name: Cosine Accuracy@10
- type: cosine_precision@1
value: 0.71
name: Cosine Precision@1
- type: cosine_precision@3
value: 0.28095238095238095
name: Cosine Precision@3
- type: cosine_precision@5
value: 0.1754285714285714
name: Cosine Precision@5
- type: cosine_precision@10
value: 0.09142857142857141
name: Cosine Precision@10
- type: cosine_recall@1
value: 0.71
name: Cosine Recall@1
- type: cosine_recall@3
value: 0.8428571428571429
name: Cosine Recall@3
- type: cosine_recall@5
value: 0.8771428571428571
name: Cosine Recall@5
- type: cosine_recall@10
value: 0.9142857142857143
name: Cosine Recall@10
- type: cosine_ndcg@10
value: 0.8151955748060781
name: Cosine Ndcg@10
- type: cosine_mrr@10
value: 0.783174603174603
name: Cosine Mrr@10
- type: cosine_map@100
value: 0.7866554834362436
name: Cosine Map@100
- task:
type: information-retrieval
name: Information Retrieval
dataset:
name: dim 512
type: dim_512
metrics:
- type: cosine_accuracy@1
value: 0.7028571428571428
name: Cosine Accuracy@1
- type: cosine_accuracy@3
value: 0.8457142857142858
name: Cosine Accuracy@3
- type: cosine_accuracy@5
value: 0.88
name: Cosine Accuracy@5
- type: cosine_accuracy@10
value: 0.9157142857142857
name: Cosine Accuracy@10
- type: cosine_precision@1
value: 0.7028571428571428
name: Cosine Precision@1
- type: cosine_precision@3
value: 0.2819047619047619
name: Cosine Precision@3
- type: cosine_precision@5
value: 0.176
name: Cosine Precision@5
- type: cosine_precision@10
value: 0.09157142857142857
name: Cosine Precision@10
- type: cosine_recall@1
value: 0.7028571428571428
name: Cosine Recall@1
- type: cosine_recall@3
value: 0.8457142857142858
name: Cosine Recall@3
- type: cosine_recall@5
value: 0.88
name: Cosine Recall@5
- type: cosine_recall@10
value: 0.9157142857142857
name: Cosine Recall@10
- type: cosine_ndcg@10
value: 0.8131832672898918
name: Cosine Ndcg@10
- type: cosine_mrr@10
value: 0.7799625850340134
name: Cosine Mrr@10
- type: cosine_map@100
value: 0.7833067978748278
name: Cosine Map@100
- task:
type: information-retrieval
name: Information Retrieval
dataset:
name: dim 256
type: dim_256
metrics:
- type: cosine_accuracy@1
value: 0.6985714285714286
name: Cosine Accuracy@1
- type: cosine_accuracy@3
value: 0.8457142857142858
name: Cosine Accuracy@3
- type: cosine_accuracy@5
value: 0.8785714285714286
name: Cosine Accuracy@5
- type: cosine_accuracy@10
value: 0.9071428571428571
name: Cosine Accuracy@10
- type: cosine_precision@1
value: 0.6985714285714286
name: Cosine Precision@1
- type: cosine_precision@3
value: 0.2819047619047619
name: Cosine Precision@3
- type: cosine_precision@5
value: 0.17571428571428568
name: Cosine Precision@5
- type: cosine_precision@10
value: 0.0907142857142857
name: Cosine Precision@10
- type: cosine_recall@1
value: 0.6985714285714286
name: Cosine Recall@1
- type: cosine_recall@3
value: 0.8457142857142858
name: Cosine Recall@3
- type: cosine_recall@5
value: 0.8785714285714286
name: Cosine Recall@5
- type: cosine_recall@10
value: 0.9071428571428571
name: Cosine Recall@10
- type: cosine_ndcg@10
value: 0.8072080679843728
name: Cosine Ndcg@10
- type: cosine_mrr@10
value: 0.7746224489795912
name: Cosine Mrr@10
- type: cosine_map@100
value: 0.7782328948106179
name: Cosine Map@100
- task:
type: information-retrieval
name: Information Retrieval
dataset:
name: dim 128
type: dim_128
metrics:
- type: cosine_accuracy@1
value: 0.6914285714285714
name: Cosine Accuracy@1
- type: cosine_accuracy@3
value: 0.8428571428571429
name: Cosine Accuracy@3
- type: cosine_accuracy@5
value: 0.8714285714285714
name: Cosine Accuracy@5
- type: cosine_accuracy@10
value: 0.9057142857142857
name: Cosine Accuracy@10
- type: cosine_precision@1
value: 0.6914285714285714
name: Cosine Precision@1
- type: cosine_precision@3
value: 0.28095238095238095
name: Cosine Precision@3
- type: cosine_precision@5
value: 0.17428571428571427
name: Cosine Precision@5
- type: cosine_precision@10
value: 0.09057142857142855
name: Cosine Precision@10
- type: cosine_recall@1
value: 0.6914285714285714
name: Cosine Recall@1
- type: cosine_recall@3
value: 0.8428571428571429
name: Cosine Recall@3
- type: cosine_recall@5
value: 0.8714285714285714
name: Cosine Recall@5
- type: cosine_recall@10
value: 0.9057142857142857
name: Cosine Recall@10
- type: cosine_ndcg@10
value: 0.80532196181792
name: Cosine Ndcg@10
- type: cosine_mrr@10
value: 0.7725623582766435
name: Cosine Mrr@10
- type: cosine_map@100
value: 0.7764353709024747
name: Cosine Map@100
- task:
type: information-retrieval
name: Information Retrieval
dataset:
name: dim 64
type: dim_64
metrics:
- type: cosine_accuracy@1
value: 0.6757142857142857
name: Cosine Accuracy@1
- type: cosine_accuracy@3
value: 0.8114285714285714
name: Cosine Accuracy@3
- type: cosine_accuracy@5
value: 0.85
name: Cosine Accuracy@5
- type: cosine_accuracy@10
value: 0.8842857142857142
name: Cosine Accuracy@10
- type: cosine_precision@1
value: 0.6757142857142857
name: Cosine Precision@1
- type: cosine_precision@3
value: 0.2704761904761904
name: Cosine Precision@3
- type: cosine_precision@5
value: 0.16999999999999998
name: Cosine Precision@5
- type: cosine_precision@10
value: 0.08842857142857141
name: Cosine Precision@10
- type: cosine_recall@1
value: 0.6757142857142857
name: Cosine Recall@1
- type: cosine_recall@3
value: 0.8114285714285714
name: Cosine Recall@3
- type: cosine_recall@5
value: 0.85
name: Cosine Recall@5
- type: cosine_recall@10
value: 0.8842857142857142
name: Cosine Recall@10
- type: cosine_ndcg@10
value: 0.7835900962247281
name: Cosine Ndcg@10
- type: cosine_mrr@10
value: 0.7508775510204081
name: Cosine Mrr@10
- type: cosine_map@100
value: 0.7557906355020412
name: Cosine Map@100
---
# BGE base Financial Matryoshka
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)
- **Maximum Sequence Length:** 512 tokens
- **Output Dimensionality:** 768 tokens
- **Similarity Function:** Cosine Similarity
- **Language:** en
- **License:** apache-2.0
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("NickyNicky/bge-base-financial-matryoshka")
# Run inference
sentences = [
'Information on legal proceedings is included in Contact Email PRIOR HISTORY: None PLACEHOLDER FOR ARBITRATION.',
'Where can information about legal proceedings be found in the financial statements?',
'What remaining authorization amount was available for share repurchases as of January 28, 2023?',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Evaluation
### Metrics
#### Information Retrieval
* Dataset: `dim_768`
* Evaluated with [InformationRetrievalEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| cosine_accuracy@1 | 0.71 |
| cosine_accuracy@3 | 0.8429 |
| cosine_accuracy@5 | 0.8771 |
| cosine_accuracy@10 | 0.9143 |
| cosine_precision@1 | 0.71 |
| cosine_precision@3 | 0.281 |
| cosine_precision@5 | 0.1754 |
| cosine_precision@10 | 0.0914 |
| cosine_recall@1 | 0.71 |
| cosine_recall@3 | 0.8429 |
| cosine_recall@5 | 0.8771 |
| cosine_recall@10 | 0.9143 |
| cosine_ndcg@10 | 0.8152 |
| cosine_mrr@10 | 0.7832 |
| **cosine_map@100** | **0.7867** |
#### Information Retrieval
* Dataset: `dim_512`
* Evaluated with [InformationRetrievalEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| cosine_accuracy@1 | 0.7029 |
| cosine_accuracy@3 | 0.8457 |
| cosine_accuracy@5 | 0.88 |
| cosine_accuracy@10 | 0.9157 |
| cosine_precision@1 | 0.7029 |
| cosine_precision@3 | 0.2819 |
| cosine_precision@5 | 0.176 |
| cosine_precision@10 | 0.0916 |
| cosine_recall@1 | 0.7029 |
| cosine_recall@3 | 0.8457 |
| cosine_recall@5 | 0.88 |
| cosine_recall@10 | 0.9157 |
| cosine_ndcg@10 | 0.8132 |
| cosine_mrr@10 | 0.78 |
| **cosine_map@100** | **0.7833** |
#### Information Retrieval
* Dataset: `dim_256`
* Evaluated with [InformationRetrievalEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| cosine_accuracy@1 | 0.6986 |
| cosine_accuracy@3 | 0.8457 |
| cosine_accuracy@5 | 0.8786 |
| cosine_accuracy@10 | 0.9071 |
| cosine_precision@1 | 0.6986 |
| cosine_precision@3 | 0.2819 |
| cosine_precision@5 | 0.1757 |
| cosine_precision@10 | 0.0907 |
| cosine_recall@1 | 0.6986 |
| cosine_recall@3 | 0.8457 |
| cosine_recall@5 | 0.8786 |
| cosine_recall@10 | 0.9071 |
| cosine_ndcg@10 | 0.8072 |
| cosine_mrr@10 | 0.7746 |
| **cosine_map@100** | **0.7782** |
#### Information Retrieval
* Dataset: `dim_128`
* Evaluated with [InformationRetrievalEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| cosine_accuracy@1 | 0.6914 |
| cosine_accuracy@3 | 0.8429 |
| cosine_accuracy@5 | 0.8714 |
| cosine_accuracy@10 | 0.9057 |
| cosine_precision@1 | 0.6914 |
| cosine_precision@3 | 0.281 |
| cosine_precision@5 | 0.1743 |
| cosine_precision@10 | 0.0906 |
| cosine_recall@1 | 0.6914 |
| cosine_recall@3 | 0.8429 |
| cosine_recall@5 | 0.8714 |
| cosine_recall@10 | 0.9057 |
| cosine_ndcg@10 | 0.8053 |
| cosine_mrr@10 | 0.7726 |
| **cosine_map@100** | **0.7764** |
#### Information Retrieval
* Dataset: `dim_64`
* Evaluated with [InformationRetrievalEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| cosine_accuracy@1 | 0.6757 |
| cosine_accuracy@3 | 0.8114 |
| cosine_accuracy@5 | 0.85 |
| cosine_accuracy@10 | 0.8843 |
| cosine_precision@1 | 0.6757 |
| cosine_precision@3 | 0.2705 |
| cosine_precision@5 | 0.17 |
| cosine_precision@10 | 0.0884 |
| cosine_recall@1 | 0.6757 |
| cosine_recall@3 | 0.8114 |
| cosine_recall@5 | 0.85 |
| cosine_recall@10 | 0.8843 |
| cosine_ndcg@10 | 0.7836 |
| cosine_mrr@10 | 0.7509 |
| **cosine_map@100** | **0.7558** |
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 6,300 training samples
* Columns: positive
and anchor
* Approximate statistics based on the first 1000 samples:
| | positive | anchor |
|:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
| type | string | string |
| details |
For the year ended December 31, 2023, $305 million was recorded as a distribution against retained earnings for dividends.
| How much in dividends was recorded against retained earnings in 2023?
|
| In February 2023, we announced a 10% increase in our quarterly cash dividend to $2.09 per share.
| By how much did the company increase its quarterly cash dividend in February 2023?
|
| Depreciation and amortization totaled $4,856 as recorded in the financial statements.
| How much did depreciation and amortization total to in the financial statements?
|
* Loss: [MatryoshkaLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
```json
{
"loss": "MultipleNegativesRankingLoss",
"matryoshka_dims": [
768,
512,
256,
128,
64
],
"matryoshka_weights": [
1,
1,
1,
1,
1
],
"n_dims_per_step": -1
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: epoch
- `per_device_train_batch_size`: 40
- `per_device_eval_batch_size`: 16
- `gradient_accumulation_steps`: 16
- `learning_rate`: 2e-05
- `num_train_epochs`: 20
- `lr_scheduler_type`: cosine
- `warmup_ratio`: 0.1
- `bf16`: True
- `tf32`: True
- `optim`: adamw_torch_fused
- `batch_sampler`: no_duplicates
#### All Hyperparameters