/ Модель

Характеристики

Контекст
8 192 токена
Параметры
140 млн
Лицензия
MIT
Архитектура
modernbert · dense
Базовая модель
mmBERT-small
Библиотека
transformers
Опубликована
7 апр 2026

tifilBERT-Base

Сходство предложенийТекст → score7 профессий

Турецкий энкодер tifilBERT-Base создаёт семантические представления предложений и оценивает их сходство.

228скачиваний за 30 дней4лайкавеса обновлены9 апр 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

tifilBERT-Base — турецкий энкодер предложений и экстрактор признаков, разработанный Şuayp Talha Kocabay в AI-клубе TÜBİTAK Science High School (TFLai). Это дообученная версия jhu-clsp/mmBERT-small на архитектуре ModernBERT с 140,5 млн параметров; модель предназначена прежде всего для получения семантических представлений предложений и оценки их сходства. Карточка сообщает о языковой адаптации и контрастивном выравнивании, а метаданные указывают контекст до 8192 токенов. Для обучения и оценки использовались, в частности, турецкие данные NLI и набор OPUS-100; автор приводит результаты на задачах классификации, NLI и QA.

Модель рассчитана главным образом на короткие и средние турецкие тексты и может служить основой для дообучения под классификацию, распознавание сущностей и другие NLP-задачи. Контрастивное обучение усиливает семантическое сходство, но может ухудшать оценку грамматической приемлемости. README указывает практический предел около 512 токенов и предупреждает о возможных предвзятостях данных из Википедии, новостей и интернета; это расходится с контекстом 8192 токена в метаданных. Лицензия модели — MIT.

Сценарии применения

  • поиск семантически похожих турецких предложений
  • ранжирование турецких текстов по смысловому сходству
  • извлечение эмбеддингов предложений для поиска
  • дообучение турецкой модели для классификации текста
  • подготовка признаков для задач NLI и анализа тональности

Ограничения

Модель преимущественно оптимизирована для коротких и средних текстов; README рекомендует ориентироваться на предел около 512 токенов, тогда как метаданные заявляют контекст 8192 токена. Контрастивное обучение усиливает семантическое представление, но может ослаблять оценку грамматической приемлемости; модель также может наследовать предвзятости турецких интернет-данных.

Для каких профессий подходит7

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

tifilBERT-Base: Highly Efficient Turkish Sentence Encoder

tifilBERT-Base is a highly efficient Turkish sentence encoder and feature extractor developed by Şuayp Talha Kocabay under the TÜBİTAK Science High School AI Club (TFLai).

Designed to overcome the "anisotropy" (vector collapse) problem common in standard Masked Language Models (MLM), tifilBERT was engineered with a specific goal: To create a perfectly distributed, highly meaningful vector space for the Turkish language. Unlike traditional models that are pre-trained from scratch specifically for Turkish (requiring massive GPU clusters and hundreds of compute hours), tifilBERT leverages an efficient cross-lingual transfer learning strategy. By building upon the robust foundation of mmBERT-small, tifilBERT achieved its remarkable performance using only 8 GPU hours of language adaptation on a single NVIDIA B200, followed by a 10-minute contrastive alignment phase on an A100. This approach proves that strategic knowledge transfer can fiercely compete with, and often outperform, models trained from scratch.

🏆 Benchmarks

Linear Probing Across 11 Benchmarks

Evaluated using the highly efficient encoder-fast-eval framework across 11 diverse Turkish NLP tasks (Linear Probing), tifilBERT showcased extraordinary semantic alignment and reasoning capabilities.

Despite its extremely constrained compute budget (a fraction of the resources used by its competitors), tifilBERT massively outperforms its base architecture (mmBERT-small) and fiercely competes with heavily scaled, trillion-token models which are trained from scratch specifically for Turkish.

Task / DatasetMetricmmBERT-smallytu-ce-cosmos/modernbert-tr-base-1kTFLai/tifilBERT-Baseboun-tabilab/TabiBERT
turkish-wikiNERF10.48510.60000.56790.3939
Beyazperde ReviewsR20.28490.51740.48230.3287
SentiTurca (E-commerce)F10.50050.60910.58350.5225
SentiTurca (Hate)F10.36330.49490.47460.4420
SentiTurca (Movies)F10.71810.80430.78480.7570
TrCOLAF10.57670.68760.51550.6380
TurkishHateMapF10.35120.47060.44960.4320
BuyukSinemaF10.17430.24340.23310.1596
Sinefil ReviewsR20.16000.32140.30340.1734
Vitamins/Supplements ReviewsR20.35500.56930.57490.4063
Offenseval2020_trF10.62330.78790.70860.6684
Average-0.41750.55510.51610.4474
  • Massive Leap from Base: tifilBERT demonstrates a gigantic leap from its foundational mmBERT-small architecture across all metrics, almost doubling the R2 performance on regression tasks like Beyazperde and Sinefil.
  • Outperforming Established Domain Models: When evaluated with frozen representations (Linear Probing), tifilBERT comfortably surpasses the well-established TabiBERT on average (0.5161 vs 0.4474). It shows dramatic superiority in tasks requiring granular semantic separation, such as regression mapping for reviews (e.g., Sinefil: 0.3034 vs 0.1734) and NER (0.5679 vs 0.3939).
  • Punching Above its Weight Class: In continuous value prediction tasks (Regression), tifilBERT's mathematically aligned vector space shines brilliantly. It surpasses models trained from scratch on massive Turkish corpora (like ytu-ce-cosmos/modernbert-tr-base-1k) on the Vitamins/Supplements dataset (0.5749 vs 0.5693), proving the raw power of Supervised Contrastive Learning in adapting pre-trained multilingual knowledge to specific target languages.
  • Semantics Over Syntax: The only benchmark where TabiBERT holds a clear lead over tifilBERT is TrCOLA (Linguistic Acceptability). This perfectly aligns with our architectural choices: tifilBERT heavily prioritizes extracting deep conceptual meaning over checking rigid syntactic grammar, a direct and intended result of its contrastive alignment phase.

TabiBench Results Across 14 Subtasks

While the benchmarks in the previous section utilized Linear Probing to test frozen embeddings, the TabiBench suite evaluates the model's performance under Full Fine-Tuning conditions. This provides a clear picture of tifilBERT's adaptability as a pre-trained backbone when its entire weight architecture is optimized for a specific Turkish NLP challenge.

🎯 General Summary Table (Comparison of All Task Groups)

A collective view of the weighted averages of all models across the 5 main task groups:

Task GroupMetrictifilBERT-BaseBERTurkTabiBERT
Set 1 (Medical/Academic)Macro F169.70%70.90%71.91%
Set 2 (NLI)Macro F183.87%84.33%84.51%
Set 3 (QA)F1 Score77.14%60.16%69.71%
Set 4 (STS)Pearson86.00%85.33%84.75%
Set 5 (General Classification)Macro F184.17%83.42%83.44%

Set 1 (Academic / Medical Text Classification) - Metric: Macro F1

DatasetNumber of SamplestifilBERT-BaseBERTurkTabiBERT
PubMed RCT1,5000.74160.75610.7532
Sci-Cite TR1,5590.80770.81600.8329
Thesis Abstract1,6830.48850.49200.5077
MedNLI1,4220.77520.79900.8085
Weighted Average6,1640.69700.70900.7191

Set 2 (Natural Language Inference - NLI) - Metric: Macro F1

DatasetNumber of SamplestifilBERT-BaseBERTurkTabiBERT
MultiNLI4,9230.79440.78570.8060
SNLI9,8240.86080.87210.8647
Weighted Average14,7470.83870.84330.8451

Set 3 (Question Answering - QA) - Metric: F1 Score

DatasetNumber of SamplestifilBERT-BaseBERTurkTabiBERT
TQuAD2,5200.80110.63300.7234
XQuAD1790.35140.15960.3261
Weighted Average2,6990.77140.60160.6971

Set 4 (Semantic Textual Similarity - STS) - Metric: Pearson Correlation

DatasetNumber of SamplestifilBERT-BaseBERTurkTabiBERT
SICK-TR4,9270.85840.85950.8500
STSb-TR1,3790.86540.83120.8384
Weighted Average6,3060.86000.85330.8475

Set 5 (General Text Classification) - Metric: Macro F1

DatasetNumber of SamplestifilBERT-BaseBERTurkTabiBERT
NewsCat2500.95980.95600.9520
BilTweetNews1500.48040.57870.5011
GenderHateSpeech2,0000.68080.68250.6901
ProductReviews35,2750.85150.84300.8432
Weighted Average37,6750.84170.83420.8344

💡 Key Insights & Takeaways from TabiBench

The Full Fine-Tuning results on TabiBench perfectly illustrate the success of tifilBERT's non-traditional training pipeline:

  • Dominance in Complex Reasoning (QA & STS): tifilBERT achieves a massive lead in Question Answering (+7.43% over TabiBERT) and Semantic Textual Similarity (+1.25% over the average). This directly validates our Phase 2 (Supervised Contrastive Learning) strategy. By explicitly destroying vector space anisotropy, the model captures profound semantic nuances that standard MLM models miss, making it exceptionally powerful for retrieval and reasoning tasks.
  • Highly Competitive in Domain-Specific Tasks: Even in highly specialized domains like Medical/Academic texts (Set 1) and NLI (Set 2), tifilBERT performs neck-and-neck with heavily scaled, trillion-token models specifically trained from scratch for Turkish.
  • The Power of Transfer Learning: The ultimate takeaway is the efficiency of cross-lingual adaptation. tifilBERT demonstrates that instead of pre-training a language model from scratch (which requires massive datasets and thousands of GPU hours), applying rigorous mathematical alignment and strategic cross-lingual knowledge transfer to a strong base model in under 9 hours can yield representations that fiercely rival, and in many domains surpass, natively trained Turkish models.

📌 A Note on Reproducibility & Evaluation Dynamics

Please note that when reproducing these downstream tasks or fine-tuning the model for your own use cases, minor variations in the final metrics are completely normal and expected. Differences in fine-tuning hyperparameters (like learning rate and batch size), random seed initializations, and specific hardware training dynamics can lead to slight fluctuations.


🧠 Training Methodology (Efficient Cross-Lingual Transfer)

Instead of relying on sheer compute power, tifilBERT was trained using a highly strategic, two-phase pipeline to maximize hardware efficiency:

Phase 1: Continual Pre-Training & Cross-Lingual Transfer (TLM + MLM)

  • Hardware Compute (Adaptation Phase): ~8 Hours on 1x NVIDIA B200 (excluding the original pre-training compute of the base mmBERT-small model).
  • Base Architecture: Initialized from the highly capable mmBERT-small.
  • Objective: Transfer the rich, conceptual English intelligence of the base model into Turkish.
  • Data: A massive 2.8M row interleaved dataset combining Diffutron Pretraining Corpus (Pure Turkish Wikipedia/News/Web, 70%) and OPUS-100 (English-Turkish Translation Pairs, 30%).
  • Mechanism: By using Translation Language Modeling (TLM) with aggressive random masking, the model was forced to build deep mathematical bridges between English and Turkish concepts.

Phase 2: Anisotropy Destruction (Supervised Contrastive Learning)

  • Hardware Compute: ~10 Minutes on 1x NVIDIA A100 (80GB).
  • Objective: Standard MLM models tend to cluster sentence vectors too closely. We needed to shatter this space to create distinct semantic boundaries.
  • Data: emrecan/all-nli-tr (Anchor, Positive, Negative Triplets).
  • Mechanism: Trained using Multiple Negatives Ranking Loss (MNRL) with a massive batch size of 512. In a single forward pass, the model pushed one anchor sentence towards its positive pair while simultaneously repelling it from 511 negative sentences.
  • Result: A perfectly crystallized vector space where semantic differences (sentiment, intent, logical contradiction) are separated by massive distances, making the embeddings incredibly robust.

💻 Usage

tifilBERT is primarily designed for generating highly meaningful sentence embeddings, but its perfectly aligned vector space makes it an exceptional backbone for any NLP task.

Option 1: Sentence Transformers (Recommended for Embeddings/RAG)

pip install -U sentence-transformers
from sentence_transformers import SentenceTransformer

# Load the model
model = SentenceTransformer("TFLai/tifilBERT-Base")

# Sentences we want to encode
sentences = [
    "Hakem maçı mükemmel yönetti, kararları çok isabetliydi.",
    "Hakem maçı mükemmel katletti, tüm kararları taraflıydı.",
    "Yarın hava güneşli olacakmış."
]

# Generate embeddings
embeddings = model.encode(sentences)

# Calculate similarities (Cosine Similarity)
similarity_1_2 = model.similarity(embeddings[0], embeddings[1])
similarity_1_3 = model.similarity(embeddings[0], embeddings[2])

print(f"Similarity (Positive vs Negative Review): {similarity_1_2.item():.4f}")
print(f"Similarity (Review vs Weather): {similarity_1_3.item():.4f}")

Option 2: Fine-Tuning for Downstream Tasks (Classification, Regression, NER)

Beyond zero-shot feature extraction and Linear Probing, tifilBERT serves as an exceptionally strong, pre-aligned backbone for full fine-tuning. You can attach task-specific heads (using AutoModelForSequenceClassification or AutoModelForTokenClassification) and fine-tune the model for Text Classification (sentiment, hate speech), Token Classification (NER, POS), and Regression tasks. Because the vector space is already highly organized, the model requires significantly fewer epochs to converge during fine-tuning compared to standard MLM models.

Option 3: Hugging Face Transformers (Raw Access)

from transformers import AutoTokenizer, AutoModel
import torch

tokenizer = AutoTokenizer.from_pretrained("TFLai/tifilBERT-Base")
model = AutoModel.from_pretrained("TFLai/tifilBERT-Base")

sentences = ["Yapay zeka modelleri gün geçtikçe küçülüyor ve hızlanıyor."]

# Tokenize
inputs = tokenizer(sentences, padding=True, truncation=True, return_tensors="pt")

# Get hidden states
with torch.no_grad():
    outputs = model(**inputs)

# Extract [CLS] token embedding for sentence representation
sentence_embedding = outputs.last_hidden_state[:, 0, :]
print(sentence_embedding.shape) # Output: torch.Size([1, hidden_size])

⚠️ Limitations & Bias

  • Context Length: The model is highly optimized for short-to-medium text spans (max 512 tokens). For extremely long documents (e.g., full academic papers or books), models natively trained on ultra-long contexts might be more suitable.
  • Syntactic vs. Semantic Focus: Due to the heavy Contrastive Learning phase, the model prioritizes deep semantic meaning over rigid grammatical syntax (e.g., Linguistic Acceptability tasks).
  • Training Data Bias: As the model utilizes Wikipedia, news, and internet datasets, it may inherit the social, cultural, and political biases present in the Turkish web corpus.

🏫 Institution & Acknowledgements

  • Institution: TÜBİTAK Fen Lisesi (TÜBİTAK Science High School) - TFLai (Artificial Intelligence Club)
  • Special Thanks & Citations: This model was made possible thanks to the incredible open-source contributions of the NLP community. We extend our deepest gratitude to:
    • Boğaziçi University TABİ Lab for their inspirational work and for providing the comprehensive TabiBench evaluation suite.
    • mrbesher for the highly efficient encoder-fast-eval benchmark framework used to evaluate this model.
    • Diffutron for supplying the massive, high-quality Turkish pre-training corpus used in Phase 1.
    • Helsinki-NLP for the OPUS-100 English-Turkish translation pairs that enabled our cross-lingual transfer strategy.
    • emrecan for curating the all-nli-tr triplet dataset, which was the absolute cornerstone of our Contrastive Learning phase.

📝 Citation

If you use this model in your research or projects, please cite it as follows:

@misc{kocabay2026tifilbert,
  title={tifilBERT: Highly Efficient Turkish Sentence Encoder via Contrastive Transfer Learning},
  author={Kocabay, {\c{S}}uayp Talha and TFLai},
  year={2026},
  publisher={Hugging Face},
  howpublished={\url{[https://huggingface.co/TFLai/tifilBERT-Base](https://huggingface.co/TFLai/tifilBERT-Base)}}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
ModernBertModel
Ревизия весов
e538a69

0 моделей