/ Модель

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

Контекст
514 токенов
Параметры
328 млн
Лицензия
Apache 2.0
Архитектура
xlm-roberta · dense
Базовая модель
xlm-roberta-base
Библиотека
transformers
Опубликована
17 авг 2026

VEXMLM

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

VEXMLM — модель XLM-RoBERTa с расширенным словарём для восстановления замаскированных фрагментов и последующего дообучения для NLP-задач на амхарском и тигринья.

53скачиваний за 30 дней0лайковвеса обновлены25 сен 2026

Бенчмарки

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

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

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

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

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

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

VEXMLM — модель для языкового моделирования с расширенным словарём для амхарского и тигринья, разработанная как продолжение FacebookAI/xlm-roberta-base. Это XLM-RoBERTa с архитектурой XLMRobertaForMaskedLM: в токенизатор SentencePiece встроено 30 000 новых токенов письма геэз, а расширенная модель продолжала предобучение на амхарских и тигринья монолингвальных текстах. Метаданные указывают 328,3 млн параметров, контекст до 514 токенов и лицензию Apache-2.0.

Основная задача модели — восстанавливать замаскированные фрагменты текста. Она предназначена для исследований NLP на амхарском и тигринья и как основа для дообучения под распознавание сущностей, извлечение ответов на вопросы и классификацию текстов. Расширение словаря снижает фрагментацию слов на подслова в обоих языках; в сообщённых экспериментах модель показала результаты на NER и диагностической задаче TiQuAD.

Модель не является готовой системой ответов на вопросы или классификатором: для этих сценариев требуется дообучение соответствующей головой. Она обучалась и оценивалась только на амхарском и тигринья; результаты по тональности близки к случайным, а абсолютное качество извлечения ответов ограничено. Источник предобучающих текстов не документирован, их лицензия неизвестна; при этом лицензия репозитория модели — Apache-2.0.

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

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

Ограничения

Модель обучалась и оценивалась только на амхарском и тигринья и требует дообучения для классификации, распознавания сущностей или ответов на вопросы; результаты на тональности близки к случайным, а качество извлечения ответов ограничено. Источник предобучающих текстов не задокументирован, а их лицензия неизвестна.

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

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

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

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

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

Открыть на Hugging Face

VEXMLM

Vocabulary Expansion for Low-Resource Multilingual Language Modeling.

VEXMLM extends xlm-roberta-base with 30,000 Ge'ez-script subword tokens merged natively into its SentencePiece model, then adapts the expanded model with continued masked-language-model pretraining on Amharic and Tigrinya.

Official implementation: https://github.com/hailaykidu/VEXMLM

Languages

Amharic (am) and Tigrinya (ti) — the two highest-resource Ge'ez-script languages. Both are covered by the pretraining corpus and by every reported evaluation.

Model details

Base modelFacebookAI/xlm-roberta-base
ArchitectureXLMRobertaForMaskedLM, 12 layers, hidden 768, 12 heads
Parameters301,365,186
Vocabulary280,002 (250,002 base + 30,000 added)
Max position embeddings514
TokenizerXLMRobertaTokenizerFast (SentencePiece)

Tokenizer

The 30,000 new tokens are merged directly into the SentencePiece model rather than appended as Hugging Face added_tokens. Appending them causes the added-token matcher to run before SentencePiece segmentation, which emits the ▁ word-boundary marker mid-word and corrupts decoding; the merged construction avoids this.

New embedding rows are initialized to the mean of the existing embedding matrix (global_mean), then trained during continued pretraining.

Tokenizer quality

Measured on Amharic and Tigrinya development corpora (2,588 / 2,811 sentences):

MetricLanguageXLM-RVEXMLM
Fertility (subwords/word) ↓Amharic2.06921.4888
Tigrinya3.13001.6928
Compression (chars/token) ↑Amharic2.29503.1896
Tigrinya1.45912.6979
OOV word round-trip ↑Amharic1.00001.0000
Tigrinya0.99540.9987

Tigrinya fertility falls 45.9% and compression rises 84.9%. Added tokens carry 24.2% (Amharic) and 45.5% (Tigrinya) of token mass, so they are actively used.

Training

Continued MLM pretraining on Amharic and Tigrinya monolingual corpora (200,001 and 200,000 non-empty lines; 9.09M and 6.98M characters). The text comes from a prepared local collection whose original source is not documented; it matches no named corpus available to the authors, its licence is unknown, and it is not redistributed. An earlier attribution to HornMT is ruled out.

HyperparameterValue
Max sequence length256
Batch size32
Epochs56 completed of 60 configured
Learning rate5e-5
LR scheduleLinear decay, 6% warmup
Weight decay0.01
MLM probability0.15
Gradient clipping1.0
OptimizerAdamW (β₁ 0.9, β₂ 0.999, ε 1e-8)
Precisionbf16
Hardware1× NVIDIA A100

Released checkpoint is the best-by-validation-loss model at epoch 56 (24,808 of 26,580 steps): best validation loss 3.7120; the final re-evaluation of this checkpoint gives loss 3.7299 (perplexity 41.67).

Evaluation

Fine-tuned downstream, seeds 42–46, one configuration (hash ce27cc194946) on A100-PCIE-40GB with deterministic kernels. Mean ± standard deviation over 5 seeds.

TaskDatasetMetricVEXMLM
NERMasakhaNER AmharicAccuracy0.9413 ± 0.0026
Macro-F10.7423 ± 0.0122
Entity-F10.6347 ± 0.0148
NERTigrinya NERAccuracy0.9515 ± 0.0005
Macro-F10.8219 ± 0.0069
Entity-F10.7282 ± 0.0079
QAAmQAEM32.57 ± 0.77
F148.85 ± 0.96
QATIGQAEM2.39 ± 0.82
F19.76 ± 0.97
SAAfriSenti (Amharic)Accuracy0.4978 ± 0.0331
Macro-F10.4971 ± 0.0193

Supplementary — TiQuAD is a diagnostic task, not a paper benchmark: EM 50.24 ± 0.48, F1 58.90 ± 0.66 (926 questions).

TIGQA has only 67 development questions, too few to support a QA claim on its own; TiQuAD is reported alongside it for that reason.

Ablation — downstream NER OOV accuracy

Tigrinya NER, 4 configurations × 5 seeds. A word is out-of-vocabulary when the baseline xlm-roberta-base tokenizer emits <unk>, fails to round-trip it, or fragments it into more subwords than the expanded tokenizer. All arms are scored on one identical set: 3,491 of 4,677 word types (74.6%).

ConfigurationOOV Acc. (%)Δ
XLM-R baseline94.57 ± 0.16—
+ VocabExp (Random Init)87.04 ± 0.20−7.52
+ VocabExp (Mean Init)87.63 ± 0.14+0.59
+ Continued Pretraining95.66 ± 0.09+8.02

Vocabulary expansion alone degrades OOV accuracy: the newly added embedding rows are untrained, and the classifier must work around them. Continued pretraining adapts the expanded vocabulary, recovers that loss, and finishes 1.09 points above the baseline.

Note that arms 2 and 3 receive no continued pretraining at all, so the +8.02 attributed to it also includes the effect of 56 additional epochs of training on Amharic/Tigrinya text. Separating embedding adaptation from general continued training would require an unexpanded arm given the same budget, which was not run.

Usage

from transformers import AutoTokenizer, AutoModelForMaskedLM
import torch

tokenizer = AutoTokenizer.from_pretrained("Hailay/VEXMLM")
model = AutoModelForMaskedLM.from_pretrained("Hailay/VEXMLM")
model.eval()

text = "ትግርኛ <mask> ቋንቋ እዩ።"
inputs = tokenizer(text, return_tensors="pt")

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

mask_pos = (inputs.input_ids[0] == tokenizer.mask_token_id).nonzero()[0, 0]
top = logits[0, mask_pos].topk(3).indices.tolist()
print([tokenizer.decode([t]).strip() for t in top])

This is a masked-language model. For token classification, question answering, or sequence classification, fine-tune it with the corresponding AutoModelFor... class — see the GitHub repository for the fine-tuning scripts and configurations used to produce the results above.

Intended use

Intended for research on Amharic and Tigrinya NLP: as a starting point for fine-tuning on token classification, extractive QA, and sequence classification, and for studying vocabulary expansion in low-resource multilingual models.

Limitations

  • Two languages only. Amharic and Tigrinya. Other Ge'ez-script languages were not part of pretraining and are not evaluated here.
  • Extractive QA remains weak in absolute terms. TIGQA EM of 2.39 reflects a very small dataset (67 development questions) and a hard task, not a usable QA system.
  • Sentiment results are near chance on AfriSenti Amharic (accuracy 0.4978 on a 3-class task).
  • Tokenizer parity is not reported. It requires a sentence-aligned parallel corpus, which was unavailable; parity computed on non-parallel text reflects content differences rather than tokenizer fairness.
  • The XLM-R baseline is single-seed. Its seed-42 run records are in the repository (results/baselines/xlmr_seed42/); no multi-seed head-to-head claim is made. No downstream Glot500 result is reported.
  • Continued pretraining conflates embedding adaptation with additional training budget, as noted in the ablation section.
  • The pretraining text is of undocumented origin (licence unknown); samples contain religious translations alongside general web prose, and the model may reflect those distributions and any biases present in them.

Citation

@inproceedings{teklehaymanot2026vexmlm,
  title     = {Vocabulary Expansion for Low-Resource African Languages:
               A Case Study in Amharic and Tigrinya},
  author    = {Teklehaymanot, Hailay Kidu and Yadeta, Debela Desalegn and
               Nejdl, Wolfgang},
  booktitle = {Proceedings of the Workshop on Language Models for
               Underserved Communities (LM4UC) at IJCAI},
  year      = {2026}
}

Accepted at the LM4UC Workshop, IJCAI 2026.

License

Apache 2.0, following xlm-roberta-base.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
XLMRobertaForMaskedLM
Ревизия весов
0ad9317

0 моделей