randomDude26/mbart_mktg_sft
mBART-50 — joint SFT for Mizo, Khasi, Tulu, Gondi
mBART-50 supervised fine-tuned jointly on four low-resource Indian language pairs, with three new language tokens added to the tokenizer.
A LoRA adapter — load it on top of the base model facebook/mbart-large-50.
Training data
Fine-tuned jointly on four low-resource pairs from `randomDude26/mi_kh_tulu_dataset`:
The validation and test splits are decontaminated: no exact or near duplicate of any test/val sentence appears in training (exact pair, exact source, exact target, ≥0.90 character similarity, ≥0.80 4-gram containment, ≥0.80 token Jaccard). All scores below are on those decontaminated test sets.
Gondi has 737 test sentences rather than 800 — after decontamination only 737 clean sentences remain.
Results
Decontaminated test sets. BLEU and chrF++ via sacrebleu (BLEU(effective_order=True), CHRF(word_order=2)).
Checkpoint used for these scores: mbart-sft-joint-upsample-20260525_223852/final_adapter
Against the zero/few-shot baselines (BLEU)
Configuration
LoRA
The embedding matrix and LM head are trained in full (modules_to_save) because three new language tokens — kha_Latn, tcy_Knda, gon_Deva — were added to the tokenizer. None of the four target languages is native to mBART-50.
Training
Trained jointly on all four pairs, with upsampling of the lower-resource pairs.
Usage
import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
from peft import PeftModel
REPO = "randomDude26/mbart_mktg_sft"
tokenizer = AutoTokenizer.from_pretrained(REPO)
base = AutoModelForSeq2SeqLM.from_pretrained(
"facebook/mbart-large-50", dtype=torch.bfloat16
)
base.resize_token_embeddings(len(tokenizer), mean_resizing=False)
model = PeftModel.from_pretrained(base, REPO).merge_and_unload().cuda().eval()
tokenizer.src_lang = "en_XX"
inputs = tokenizer("The temple is very old.", return_tensors="pt").to("cuda")
out = model.generate(
**inputs,
forced_bos_token_id=tokenizer.convert_tokens_to_ids("tcy_Knda"),
num_beams=4, max_new_tokens=256,
)
print(tokenizer.batch_decode(out, skip_special_tokens=True)[0])Citation
Paper under anonymous review. Dataset: `randomDude26/mi_kh_tulu_dataset`.
