---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:35934
- loss:MatryoshkaLoss
- loss:MultipleNegativesRankingLoss
widget:
- source_sentence: Stating purpose of the current research with reference to gaps
or issues in the literature
sentences:
- During the 15-year study, 10% of the osseointegrated implants in the edentulous
jaw showed signs of peri-implantitis, leading to their failure.
- This paper provides an in-depth exploration of the qualitative case study methodology,
addressing the lack of comprehensive guidance for novice researchers in this area.
- As a novice researcher in management science, I have been drawn to the qualitative
case study methodology due to its ability to provide rich, in-depth insights into
complex real-world situations.
- source_sentence: Indicating missing, weak, or contradictory evidence
sentences:
- This paper contributes to the literature on the financial system by examining
the relationship between bank size, bank capital, and the bank lending channel
using a unique dataset of US banks during the global financial crisis.
- A total of 150 patients with a clinical diagnosis of osteoarthritis of the hip
or knee, according to the American College of Rheumatology criteria, were included
in the study.
- Despite the widespread use of the WOMAC (Western Ontario and McMaster Universities
Osteoarthritis Index) questionnaire in clinical practice and research, there is
a lack of consensus regarding its responsiveness to antirheumatic drug therapy
in patients with osteoarthritis of the hip or knee.
- source_sentence: 'Establishing the importance of the topic for the world or society:
time frame given'
sentences:
- The Th/Hf ratios of the basaltic lavas from the British Tertiary Volcanic Province
range from 4.2 to 5.5, as shown in Table 1.
- The use of organometal halide perovskites as visible-light sensitizers for photovoltaic
cells has gained significant attention in the optoelectronics community due to
their promising photovoltaic performance and cost-effective fabrication since
the late 2000s.
- Table 1 summarizes the power conversion efficiencies (PCEs) and certifications
of the best-performing perovskite solar cells reported in the literature.
- source_sentence: Describing the research design and the methods used
sentences:
- This study aims to evaluate the efficacy and safety of preoperative radiotherapy
followed by total mesorectal excision in the treatment of resectable rectal cancer.
- TREE-PUZZLE's parallel computing implementation significantly reduces the time
required for maximum likelihood phylogenetic analysis compared to traditional
methods, supporting previous findings of the importance of parallelization in
phylogenetics.
- This study investigates the efficacy of preoperative radiotherapy followed by
total mesorectal excision in the treatment of resectable rectal cancer.
- source_sentence: 'Surveys and interviews: Introducing excerpts from interview data'
sentences:
- Previous research on international trade under the WTO regime has explored various
approaches to understanding the uneven promotion of trade (Hoekstra & Kostecki,
2001; Cline, 2004, ...).
- Through surveys and interviews, multiliterate teachers expressed a shared belief
in the importance of fostering students' ability to navigate multiple discourse
communities.
- The authors employ a constructivist approach to learning, where students build
knowledge through active engagement with multimedia texts and collaborative discussions.
datasets:
- Corran/SciGenTriplets
pipeline_tag: sentence-similarity
library_name: sentence-transformers
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
model-index:
- name: SentenceTransformer
results:
- task:
type: information-retrieval
name: Information Retrieval
dataset:
name: SciGen Eval Set
type: SciGen-Eval-Set
metrics:
- type: cosine_accuracy@1
value: 0.8918076580587712
name: Cosine Accuracy@1
- type: cosine_accuracy@3
value: 0.9307658058771149
name: Cosine Accuracy@3
- type: cosine_accuracy@5
value: 0.9481300089047195
name: Cosine Accuracy@5
- type: cosine_accuracy@10
value: 0.9668299198575245
name: Cosine Accuracy@10
- type: cosine_precision@1
value: 0.8918076580587712
name: Cosine Precision@1
- type: cosine_precision@3
value: 0.3102552686257049
name: Cosine Precision@3
- type: cosine_precision@5
value: 0.18962600178094388
name: Cosine Precision@5
- type: cosine_precision@10
value: 0.09668299198575243
name: Cosine Precision@10
- type: cosine_recall@1
value: 0.8918076580587712
name: Cosine Recall@1
- type: cosine_recall@3
value: 0.9307658058771149
name: Cosine Recall@3
- type: cosine_recall@5
value: 0.9481300089047195
name: Cosine Recall@5
- type: cosine_recall@10
value: 0.9668299198575245
name: Cosine Recall@10
- type: cosine_ndcg@10
value: 0.9279217256301748
name: Cosine Ndcg@10
- type: cosine_mrr@10
value: 0.9156546382281018
name: Cosine Mrr@10
- type: cosine_map@100
value: 0.9171082586239344
name: Cosine Map@100
---
# SentenceTransformer
This is a [sentence-transformers](https://www.SBERT.net) model trained on the [sci_gen_colbert_triplets](https://huggingface.co/datasets/Corran/SciGenColbertTriplets) dataset. 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
- **Maximum Sequence Length:** inf tokens
- **Output Dimensionality:** 768 dimensions
- **Similarity Function:** Cosine Similarity
- **Training Dataset:**
- [sci_gen_colbert_triplets](https://huggingface.co/datasets/Corran/SciGenColbertTriplets)
### 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): StaticEmbedding(
(embedding): EmbeddingBag(30522, 768, mode='mean')
)
)
```
## 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("Corran/SciGenNomicEmbedStatic")
# Run inference
sentences = [
'Surveys and interviews: Introducing excerpts from interview data',
"Through surveys and interviews, multiliterate teachers expressed a shared belief in the importance of fostering students' ability to navigate multiple discourse communities.",
'The authors employ a constructivist approach to learning, where students build knowledge through active engagement with multimedia texts and collaborative discussions.',
]
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: `SciGen-Eval-Set`
* Evaluated with [InformationRetrievalEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| cosine_accuracy@1 | 0.8918 |
| cosine_accuracy@3 | 0.9308 |
| cosine_accuracy@5 | 0.9481 |
| cosine_accuracy@10 | 0.9668 |
| cosine_precision@1 | 0.8918 |
| cosine_precision@3 | 0.3103 |
| cosine_precision@5 | 0.1896 |
| cosine_precision@10 | 0.0967 |
| cosine_recall@1 | 0.8918 |
| cosine_recall@3 | 0.9308 |
| cosine_recall@5 | 0.9481 |
| cosine_recall@10 | 0.9668 |
| **cosine_ndcg@10** | **0.9279** |
| cosine_mrr@10 | 0.9157 |
| cosine_map@100 | 0.9171 |
## Training Details
### Training Dataset
#### sci_gen_colbert_triplets
* Dataset: [sci_gen_colbert_triplets](https://huggingface.co/datasets/Corran/SciGenColbertTriplets) at [44071bd](https://huggingface.co/datasets/Corran/SciGenColbertTriplets/tree/44071bdd857e9598233bd44a26a9433b46f25458)
* Size: 35,934 training samples
* Columns: query
, positive
, and negative
* Approximate statistics based on the first 1000 samples:
| | query | positive | negative |
|:--------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|
| type | string | string | string |
| details |
Previous research: highlighting negative outcomes
| Despite the widespread use of seniority-based wage systems in labor contracts, previous research has highlighted their negative outcomes, such as inefficiencies and demotivating effects on workers.
| This paper, published in 1974, was among the first to establish the importance of rank-order tournaments as optimal labor contracts in microeconomics.
|
| Synthesising sources: contrasting evidence or ideas
| Despite the observed chronic enterocolitis in Interleukin-10-deficient mice, some studies suggest that this cytokine plays a protective role in intestinal inflammation in humans (Kurimoto et al., 2001).
| Chronic enterocolitis developed in Interleukin-10-deficient mice, characterized by inflammatory cell infiltration, epithelial damage, and increased production of pro-inflammatory cytokines.
|
| Previous research: Approaches taken
| Previous research on measuring patient-relevant outcomes in osteoarthritis has primarily relied on self-reported measures, such as the Western Ontario and McMaster Universities Arthritis Index (WOMAC) (Bellamy et al., 1988).
| The WOMAC (Western Ontario and McMaster Universities Osteoarthritis Index) questionnaire has been widely used in physical therapy research to assess the impact of antirheumatic drug therapy on patient-reported outcomes in individuals with hip or knee osteoarthritis.
|
* Loss: [MatryoshkaLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
```json
{
"loss": "MultipleNegativesRankingLoss",
"matryoshka_dims": [
768,
384,
256,
128,
64,
32
],
"matryoshka_weights": [
1,
1,
1,
1,
1,
1
],
"n_dims_per_step": -1
}
```
### Evaluation Dataset
#### sci_gen_colbert_triplets
* Dataset: [sci_gen_colbert_triplets](https://huggingface.co/datasets/Corran/SciGenColbertTriplets) at [44071bd](https://huggingface.co/datasets/Corran/SciGenColbertTriplets/tree/44071bdd857e9598233bd44a26a9433b46f25458)
* Size: 4,492 evaluation samples
* Columns: query
, positive
, and negative
* Approximate statistics based on the first 1000 samples:
| | query | positive | negative |
|:--------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|
| type | string | string | string |
| details | Providing background information: reference to the purpose of the study
| This study aimed to investigate the impact of socioeconomic status on child development, specifically focusing on cognitive, language, and social-emotional domains.
| Children from high socioeconomic status families showed significantly higher IQ scores (M = 112.5, SD = 5.6) compared to children from low socioeconomic status families (M = 104.3, SD = 6.2) in the verbal IQ subtest.
|
| Providing background information: reference to the literature
| According to previous studies using WinGX suite for small-molecule single-crystal crystallography, the optimization of crystal structures leads to improved accuracy in determining atomic coordinates.
| This paper describes the WinGX suite, a powerful tool for small-molecule single-crystal crystallography that significantly advances the field of crystallography by streamlining data collection and analysis.
|
| General comments on the relevant literature
| Polymer brushes have gained significant attention in the field of polymer science due to their unique properties, such as controlled thickness, high surface density, and tunable interfacial properties.
| Despite previous reports suggesting that polymer brushes with short grafting densities exhibit poorer performance in terms of adhesion and stability compared to those with higher grafting densities (Liu et al., 2010), our results indicate that the opposite is true for certain types of polymer brushes.
|
* Loss: [MatryoshkaLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
```json
{
"loss": "MultipleNegativesRankingLoss",
"matryoshka_dims": [
768,
384,
256,
128,
64,
32
],
"matryoshka_weights": [
1,
1,
1,
1,
1,
1
],
"n_dims_per_step": -1
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: steps
- `per_device_train_batch_size`: 4096
- `per_device_eval_batch_size`: 4096
- `learning_rate`: 0.02
- `num_train_epochs`: 50
- `warmup_ratio`: 0.1
- `fp16`: True
#### All Hyperparameters