/ Модель

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

Контекст
1 024 токена
Параметры
152 млн
Лицензия
CC BY 4.0
Архитектура
modernbert · dense
Опубликована
20 ноя 2025

ne-bert

Заполнение пропусковТекст → текст3 профессии

NE-BERT — ModernBERT-модель для предсказания пропущенных слов в языках северо-востока Индии.

191скачиваний за 30 дней1лайквеса обновлены20 авг 2026

Бенчмарки

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

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

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

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

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

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

NE-BERT — модель на архитектуре ModernBERT от MWirelabs, обученная для работы с языками северо-востока Индии, включая языки с малым количеством обучающих данных. Это masked language model на 151,9 млн параметров с контекстом до 1024 токенов; она предсказывает пропущенные слова в тексте. Для токенизации используется собственный Unigram SentencePiece с размером словаря 50 368. В README заявлены более высокая эффективность токенизации и сильные результаты на региональных языках по сравнению с mBERT и IndicBERT.

Модель подходит для восстановления пропусков и оценки языковой согласованности текста на поддерживаемых языках. В обучении применялись взвешенная выборка и динамическое маскирование, чтобы усилить представление языков с малым корпусом. В неоднозначных контекстах на мейтей возможны предсказания слов на хинди или санскрите; модель также может хуже справляться с узкотехническими и поэтическими текстами. Лицензия — CC BY 4.0.

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

  • восстановление пропущенных слов в ассамском тексте
  • восстановление пропусков в тексте на мейтей
  • проверка языковой согласованности текста на кхаси
  • подбор вероятного слова в предложении на языках северо-востока Индии

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

NE-BERT: Northeast India's Multilingual ModernBERT

NE-BERT is a state-of-the-art transformer model designed specifically for the complex, low-resource linguistic landscape of Northeast India. It achieves strong Regional State-of-the-Art (SOTA) performance across multiple Northeast Indian languages and 2x to 3x faster inference compared to general multilingual models.

Built on the ModernBERT architecture, it supports a context length of 1024 tokens, utilizes Flash Attention 2 for high-efficiency inference, and treats Northeast languages as first-class citizens.


Quick Start

NE-BERT is built on the ModernBERT architecture. You must use transformers>=4.48.0.

# First, install the library:
# pip install -U transformers

from transformers import AutoTokenizer, AutoModelForMaskedLM
import torch

# Load NE-BERT (No remote code needed for transformers >= 4.48)
model_name = "MWirelabs/ne-bert"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForMaskedLM.from_pretrained(model_name)

# Example: Nagamese Creole (ISO: nag)
text = "Moi bhat <mask>." # "I [eat] rice"
inputs = tokenizer(text, return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

# Retrieve top prediction
mask_token_index = (inputs.input_ids == tokenizer.mask_token_id)[0].nonzero(as_tuple=True)[0]
predicted_token_id = logits[0, mask_token_index].argmax(axis=-1)
print(tokenizer.decode(predicted_token_id))
# Output: "khai" (eat)

Training Data & Strategy

NE-BERT was trained on a meticulously curated corpus using a Smart-Weighted Sampling strategy to ensure the low-resource languages were not drowned out by anchor languages.

LanguageHF TagScriptCorpus SizeTraining Strategy
Assameseasm-BengBengali-Assamese~1M SentencesNative
Meitei (Manipuri)mni-BengBengali-Assamese~1.3M SentencesNative
Khasikha-LatnRoman~1M SentencesNative
Mizolus-LatnRoman~1M SentencesNative
Nyishinjz-LatnRoman~55k SentencesOversampled (20x)
Nagamesenag-LatnRoman~13k SentencesOversampled (20x)
Garogrt-LatnRoman~10k SentencesOversampled (20x)
Pnarpbv-LatnRoman~1k SentencesOversampled (100x)
Kokboroktrp-LatnRoman~2.5k SentencesOversampled (100x)
Anchor Languageseng-Latn/hin-DevaRoman/Devanagari~660k SentencesDownsampled

Note on Oversampling

To address the extreme data imbalance (e.g., 1k Pnar sentences vs 3M Hindi sentences), we applied aggressive upsampling to micro-languages. To prevent overfitting on these repeated examples, we utilized Dynamic Masking during training. This ensures that the model sees different masking patterns for the same sentence across epochs, forcing it to learn semantic relationships rather than memorizing token sequences.


Evaluation and Benchmarks: Regional SOTA

We evaluated NE-BERT against industry-standard multilingual models (mBERT and IndicBERT) on a final, complex, held-out test set to ensure reproducibility and rigor.

1. The "Eye Test": Qualitative Comparison

The superiority of NE-BERT is evident when predicting missing words in low-resource languages. While generic models predict punctuation or sub-word fragments, NE-BERT predicts coherent, culturally relevant words.

LanguageInput SentenceNE-BERT (Ours)mBERTIndicBERT
Assameseমই ভাত <mask> ভাল পাওঁ। (I like to [eat] rice)খাই (Eat) Correct Verb##ি Fragment, Punctuation
KhasiNga leit sha <mask>. (I go to [home/market])iing (Home) Correct Noun. Periods Character
GaroAnga <mask> cha·jok. (I [ate] ...)nokni (Of house) Real Word- Symbol. Period

2. Effectiveness: Perplexity (PPL)

Perplexity measures the model's fluency and understanding of text (lower is better). This comparison proves NE-BERT's superior language modeling across the board, particularly in low-resource settings.

LanguageNE-BERTmBERTIndicBERTVerdict
Pnar (pbv)2.513.748.253x Better than IndicBERT
Khasi (kha)2.582.946.16Best Specialized Model
Kokborok (trp)2.673.797.91Strong SOTA
Assamese (asm)4.192.347.26Competitive
Mizo (lus)3.093.136.45Best Specialized Model
Garo (grt)3.803.328.64Crushes IndicBERT

3. Efficiency: Token Fertility (Inference Speed)

Token Fertility (Tokens per Word) is the key metric for inference speed and memory footprint (lower is better). NE-BERT's custom Unigram tokenizer delivers massive efficiency gains.

Result: NE-BERT is 2x to 3x more token-efficient on major languages than mBERT and IndicBERT, translating directly to faster inference and lower VRAM consumption in production.


Training Performance

  • Final Training Loss: 1.62
  • Final Validation Loss: 1.64
  • Convergence: The model achieved optimal convergence where validation loss tracked closely with training loss, indicating robust generalization despite the small dataset size of rare languages.

Technical Specifications

  • Architecture: ModernBERT-Base (Pre-Norm, Rotary Embeddings)
  • Parameters: ~149 Million
  • Context Window: 1024 Tokens
  • Tokenizer: Custom Unigram SentencePiece (Vocab: 50,368)
  • Training Hardware: NVIDIA A40 (48GB)
  • Training Duration: 10 Epochs

Limitations and Bias

While NE-BERT significantly outperforms existing models on these languages, users should be aware:

  • Meitei/Hindi Leakage: Due to the shared script and the high volume of Hindi anchor data, the model may sometimes predict Hindi/Sanskrit words (e.g., "Narayan") in Meitei contexts if the sentence structure is ambiguous.
  • Domain Specificity: The model is trained largely on general web text. It may struggle with highly technical or poetic domains in micro-languages due to limited data size.

Citation

If you use this model in your research, please cite:

@inproceedings{nyalang-2026-ne,
    title = "{NE}-{BERT}: A Multilingual Language Model for Nine {N}ortheast {I}ndian Languages",
    author = "Nyalang, Badal",
    booktitle = "Proceedings of the Second Workshop on Language Models for Low-Resource Languages ({L}o{R}es{LM} 2026)",
    month = mar,
    year = "2026",
    address = "Rabat, Morocco",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.loreslm-1.1/",
    pages = "1--12",
    ISBN = "979-8-89176-377-7"
}

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

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

GPU в ailist

Универсальный рантайм · fill-mask

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

Подбираем GPU…

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

0 моделей