CoolFace
Modelpublic

Omartificial-Intelligence-Space/GATE-AraBert-v1

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
20likes11kdownloads
Model Card

GATE-AraBert-V1

This is GATE | General Arabic Text Embedding trained using SentenceTransformers in a multi-task setup. The system trains on the AllNLI and on the STS dataset. It is described in detail in the paper GATE: General Arabic Text Embedding for Enhanced Semantic Textual Similarity with Hybrid Loss Training.

Project page: https://huggingface.co/collections/Omartificial-Intelligence-Space/arabic-matryoshka-embedding-models-666f764d3b570f44d7f77d4e

Model Details

Model Description

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("Omartificial-Intelligence-Space/GATE-AraBert-v1")
# Run inference
sentences = [
    'الكلب البني مستلقي على جانبه على سجادة بيج، مع جسم أخضر في المقدمة.',
    'لقد مات الكلب',
    'شخص طويل القامة',
]
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

ModelDim# Params.STS17STS22-v2Average
Arabic-Triplet-Matryoshka-V2768135M856475
Arabert-all-nli-triplet-Matryoshka768135M836474
AraGemma-Embedding-300m768303M846273
GATE-AraBert-V1767135M836373
Marbert-all-nli-triplet-Matryoshka768163M826172
Arabic-labse-Matryoshka768471M826172
AraEuroBert-Small768210M806171
E5-all-nli-triplet-Matryoshka384278M806070
text-embedding-3-large3072-815970
Arabic-all-nli-triplet-Matryoshka768135M825468
AraEuroBert-Mid1151610M835368
paraphrase-multilingual-mpnet-base-v2768135M795567
AraEuroBert-Large23042.1B795567
text-embedding-ada-0021536-716266
text-embedding-3-small1536-725765

<span style="color:blue">Acknowledgments</span>

The author would like to thank Prince Sultan University for their invaluable support in this project. Their contributions and resources have been instrumental in the development and fine-tuning of these models.

markdown
## Citation

If you use the GATE, please cite it as follows:

@article{nacar2025gate,
  title={GATE: General Arabic Text Embedding for Enhanced Semantic Textual Similarity with Matryoshka Representation Learning and Hybrid Loss Training},
  author={Nacar, Omer and Koubaa, Anis and Sibaee, Serry and Al-Habashi, Yasser and Ammar, Adel and Boulila, Wadii},
  journal={arXiv preprint arXiv:2505.24581},
  year={2025}
}