Mizo-RoBERTa is a transformer-based language model for Mizo, a Tibeto-Burman language spoken by approximately 1.1 million people primarily in Mizoram, Northeast India. Built on the RoBERTa architecture and trained on a large-scale curated corpus, this model provides state-of-the-art language understanding capabilities for Mizo NLP applications.
This work is part of MWireLabs' initiative to develop foundational language models for underserved languages of Northeast India, following our successful KhasiBERT model.
Custom Tokenizer: Trained specifically for Mizo (30K BPE vocabulary)
Efficient: Single-epoch training on A40 GPU
Open Source: Model, tokenizer, and training code publicly available
Model Details
Architecture
Component
Specification
Base Architecture
RoBERTa-base
Parameters
109,113,648 (~110M)
Layers
12 transformer layers
Attention Heads
12
Hidden Size
768
Intermediate Size
3,072
Max Sequence Length
512 tokens
Vocabulary Size
30,000 (custom BPE)
Training Configuration
Setting
Value
Training Data
5.94M sentences (138.7M tokens)
Public Dataset
4M sentences available on HuggingFace
Batch Size
32 per device
Learning Rate
1e-4
Optimizer
AdamW
Weight Decay
0.01
Warmup Steps
10,000
Training Epochs
2
Hardware
1x NVIDIA A40 (48GB)
Training Time
~4-6 hours
Precision
Mixed (FP16)
Training Data
Trained on a large-scale Mizo corpus comprising 5.94 million sentences (138.7 million tokens) with an average of 23.3 tokens per sentence. The corpus includes:
News articles from major Mizo publications
Literature and written content
Social media text
Government documents and official communications
Web content from Mizo language websites
Public Dataset: 4 million sentences are openly available at MWireLabs/mizo-language-corpus-4M for research and development purposes.
Data Preprocessing
Unicode normalization
Language identification and filtering
Deduplication (exact and near-duplicate removal)
Quality filtering based on length and character distributions
Custom sentence segmentation for Mizo punctuation
Data Split
Training: 5,350,122 sentences (90%)
Validation: 297,229 sentences (5%)
Test: 297,230 sentences (5%)
Performance
Language Modeling
Metric
Value
Test Perplexity
15.85
Test Loss
2.76
Qualitative Examples
The model demonstrates strong understanding of Mizo linguistic patterns and context:
Example 1: Geographic Knowledge
Input: "Mizoram hi India rama <mask> tak a ni"
Top Predictions:
• pawimawh (important) - 9.0%
• State - 4.9%
• ropui (big) - 4.5%
Example 2: Urban Context
Input: "Aizawl hi Mizoram <mask> a ni"
Top Predictions:
• khawpui (city) ✓ - 12.9%
• ta - 5.1%
• chhung - 3.9%
✓ Correctly identifies Aizawl as a city (khawpui)
Comparison with Multilingual Models
While we haven't performed direct evaluation against multilingual models on this test set, similar monolingual approaches for low-resource languages (e.g., KhasiBERT for Khasi) have shown 45-50× improvements in perplexity over multilingual baselines like mBERT and XLM-RoBERTa. We expect Mizo-RoBERTa to demonstrate comparable advantages for Mizo language tasks.
Usage
Installation
pip install transformers torch
Quick Start: Masked Language Modeling
python
1from transformers import RobertaForMaskedLM, RobertaTokenizerFast, pipeline
23# Load model and tokenizer4model = RobertaForMaskedLM.from_pretrained("MWireLabs/mizo-roberta")5tokenizer = RobertaTokenizerFast.from_pretrained("MWireLabs/mizo-roberta")67# Create fill-mask pipeline8fill_mask = pipeline('fill-mask', model=model, tokenizer=tokenizer)910# Predict masked words11text ="Mizoram hi <mask> rama state a ni"12results = fill_mask(text)1314for result in results:15print(f"{result['score']:.3f}: {result['sequence']}")
Extract Embeddings
python
1import torch
23# Encode text4text ="Mizo tawng hi kan hman thin a ni"5inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)67# Get contextualized embeddings8model.eval()9with torch.no_grad():10 outputs = model(**inputs, output_hidden_states=True)1112# Use last hidden state13 last_hidden = outputs.hidden_states[-1]1415# Mean pooling for sentence embedding16 sentence_embedding = last_hidden.mean(dim=1)1718print(f"Embedding shape: {sentence_embedding.shape}")19# Output: torch.Size([1, 768])
1# Process multiple sentences efficiently2sentences =[3"Aizawl hi Mizoram khawpui ber a ni",4"Mizo tawng hi Mizoram official language a ni",5"India ram Northeast a Mizoram hi a awm"6]78# Tokenize batch9inputs = tokenizer(sentences, padding=True, truncation=True, return_tensors="pt")1011# Get predictions12with torch.no_grad():13 outputs = model(**inputs)1415# Process outputs as needed
Applications
Mizo-RoBERTa can be fine-tuned for various downstream NLP tasks:
Text Classification (sentiment analysis, topic classification, news categorization)
Information Retrieval (semantic search in Mizo content)
Language Understanding (natural language inference, textual entailment)
Limitations
Dialectal Coverage: The model may not comprehensively represent all Mizo dialects
Domain Balance: Formal written text may be overrepresented compared to conversational Mizo
Pretraining Objective: Only trained with Masked Language Modeling (MLM); may benefit from additional objectives
Context Length: Limited to 512 tokens; longer documents require chunking
Low-resource Constraints: While large for Mizo, the training corpus is still smaller than high-resource language datasets
Ethical Considerations
Representation: The model reflects the content and potential biases present in the training corpus
Intended Use: Designed for research and applications that benefit Mizo language speakers
Misuse Potential: Should not be used for generating misleading information or harmful content
Data Privacy: Training data was collected from publicly available sources; no private information was used
Cultural Sensitivity: Users should be aware of cultural context when deploying for Mizo-speaking communities
Citation
If you use Mizo-RoBERTa in your research or applications, please cite:
bibtex
1@misc{mizoroberta2025,
2 title={Mizo-RoBERTa: A Foundational Transformer Language Model for the Mizo Language},
3 author={MWireLabs},
4 year={2025},
5 publisher={HuggingFace},
6 howpublished={\url{https://huggingface.co/MWireLabs/mizo-roberta}}
7}
For questions, issues, or collaboration opportunities:
Organization: MWireLabs
Email: Contact through HuggingFace
Issues: Report on the model's HuggingFace page
License
This model is released under the Apache 2.0 License. See LICENSE file for details.
Acknowledgments
We thank the Mizo language community and content creators whose publicly available work made this model possible. Special thanks to all contributors to the open-source NLP ecosystem, particularly the HuggingFace team for their excellent tools and infrastructure.