Fine-tuned mT5_multilingual_XLSum for abstractive summarization of Bangla-language resumes, section by section. Developed as part of the Onneshon thesis project at Bangladesh University of Professionals (BUP).
Given the raw sentences of a resume section (Objective, Experience, Education, or Skill), the model generates a fluent 2–3 sentence Bangla summary with strong semantic alignment to human-verified references.
<2bn> prepended to all inputs (required by mT5_multilingual_XLSum)
Training data
317 resume-summary pairs (80% of Onneshon dataset)
Validation data
79 resume-summary pairs (20% of Onneshon dataset)
Epochs
5 (with early stopping, patience=2)
Learning rate
5e-4
Batch size
4
Max input tokens
512
Max output tokens
128
Dataset
Trained on Onneshon — an original Bangla resume dataset of 100 annotated resumes spanning 20+ professions.
Published on Mendeley Data: DOI: 10.17632/4md7bx6fd7.1
Reference summaries were generated using GPT-OSS-120B (via OpenRouter) and human-verified, producing 396 section-level summary pairs across 4 categories: Objective, Experience, Education, Skill.
Evaluation Results
Evaluated against human-verified abstractive reference summaries using a Bengali-aware ROUGE tokenizer and semantic similarity:
Note on ROUGE scores: ROUGE measures exact word overlap. Since references are abstractive paraphrases and Bangla has rich morphology, ROUGE can still underestimate quality relative to semantic similarity. Semantic similarity of 0.818 — the highest among all 4 methods evaluated — confirms this model produces summaries most aligned in meaning with human-verified references.
Per-section ROUGE-1 and Semantic Similarity:
Section
ROUGE-1
Semantic Sim
Objective
0.6697
0.9120
Experience
0.4892
0.7209
Education
0.7557
0.8585
Skill
0.5487
0.7782
Comparison: BanglaT5 vs mT5
Metric
BanglaT5
mT5
Better for
ROUGE-1
0.620
0.617
BanglaT5 (marginal)
Semantic Sim
0.808
0.818
mT5
Objective Sem
0.848
0.912
mT5
Experience R1
0.504
0.489
BanglaT5
mT5 produces more fluent, semantically natural summaries (higher semantic sim overall). BanglaT5 has higher word-level fidelity (higher ROUGE) for factual sections. Use mT5 when fluency and meaning alignment are priorities.
Usage
⚠️ Important: This model requires the Bengali language token <2bn> prepended to every input. Without it, the model defaults to non-Bengali output.
python
1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
23LANG_TOKEN ="<2bn>"45tokenizer = AutoTokenizer.from_pretrained("your-username/bangla-resume-summarizer-mt5", use_fast=False)6model = AutoModelForSeq2SeqLM.from_pretrained("your-username/bangla-resume-summarizer-mt5")7model.eval()89defsummarize(text):10# Prepend Bengali language token — required for this model11 input_text = LANG_TOKEN +" "+ text.strip()12 inputs = tokenizer(input_text, return_tensors="pt", truncation=True, max_length=512)13 outputs = model.generate(14 inputs["input_ids"],15 max_length=128,16 min_length=20,17 num_beams=4,18 length_penalty=1.2,19 repetition_penalty=2.0,20 no_repeat_ngram_size=3,21 early_stopping=True22)23return tokenizer.decode(outputs[0], skip_special_tokens=True)2425# Example — Objective section26text ="অভিজ্ঞতা সম্পন্ন সফ্টওয়্যার ইঞ্জিনিয়ার হিসেবে একটি ডায়নামিক টিমে যোগদান করা যেখানে আমার জাভা এবং স্প্রিং ফ্রেমওয়ার্কের দক্ষতা কাজে লাগিয়ে প্রতিষ্ঠানের সাফল্যে অবদান রাখতে পারি"27print(summarize(text))
Input Format
Feed one section at a time. Join multiple sentences with । (Bengali danda). The <2bn> token is added automatically in the usage example above:
<2bn> sentence_1 । sentence_2 । sentence_3
Limitations
Trained on only 317 pairs — a small dataset by deep learning standards. Outputs may be generic for unusual professions.
Optimized for resume text. Performance on other Bangla document types is untested.
Not suitable for very long inputs (>512 tokens); truncation will occur.
The <2bn> language token is mandatory — omitting it will cause incorrect (non-Bengali) output.
Compared to BanglaT5, this model has lower ROUGE on factual sections (Experience, Skill) but higher semantic similarity overall.
Citation
If you use this model, please cite the Onneshon dataset and XL-Sum:
bibtex
1@misc{onneshon2026,
2 title = {Onneshon: A Bangla Resume NLP Dataset},
3 author = {Tanvir and Shruti Khisa and Shaira Akther Diba and Fazli Rabbi Noor},
4 year = {2026},
5 doi = {10.17632/4md7bx6fd7.1},
6 publisher = {Mendeley Data}
7}
89@inproceedings{hasan-etal-2021-xl,
10 title = {XL-Sum: Large-Scale Multilingual Abstractive Summarization for 44 Languages},
11 author = {Hasan, Tahmid and Bhattacharjee, Abhik and Islam, Md. Saiful and Mubasshir, Kazi and Li, Yuan-Fang and Kang, Yong-Bin and Rahman, M. Sohel and Shahriyar, Rifat},
12 booktitle = {Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021},
13 year = {2021},
14 pages = {4693--4703}
15}
Project
Part of the Onneshon thesis project — a Bangla NLP pipeline for resume processing.