---
title: "A Review of Bangla Natural Language Processing Tasks and the"
description: "A survey and benchmark of Bangla natural language processing, comparing Bangla-only and multilingual transformers across nine tasks."
canonical: "https://research.elamur.ai/free/en/papers/alam-2021-review-bangla-natural-language-processing/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/alam-2021-review-bangla-natural-language-processing/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / A Review of Bangla Natural Language Processing Tasks and the Utility of Transformer Models

# A Review of Bangla Natural Language Processing Tasks and the Utility of Transformer Models

Paper · 2021 · Firoj Alam, Md. Arid Hasan, Tanvirul Alam et al.

**Authors:** [Firoj Alam](https://md.research.elamur.ai/free/en/authors/firoj-alam/), [Md. Arid Hasan](https://md.research.elamur.ai/free/en/authors/md-arid-hasan/), [Tanvirul Alam](https://md.research.elamur.ai/free/en/authors/tanvirul-alam/), [Khan](https://md.research.elamur.ai/free/en/authors/khan/), [Akib](https://md.research.elamur.ai/free/en/authors/akib/), [Tajrin](https://md.research.elamur.ai/free/en/authors/tajrin/), [Janntatul](https://md.research.elamur.ai/free/en/authors/janntatul/), [Naira Khan](https://md.research.elamur.ai/free/en/authors/naira-khan/) and [Shammur Absar Chowdhury](https://md.research.elamur.ai/free/en/authors/shammur-absar-chowdhury/) · **Year:** 2021 · **Venue:** arXiv (Cornell University) · **Licence:** [CC BY-NC-SA 4.0 (arXiv)](https://creativecommons.org/licenses/by-nc-sa/4.0/)

arXiv (Cornell University) · [licence](https://creativecommons.org/licenses/by-nc-sa/4.0/)

- [arXiv 2107.03844](https://arxiv.org/abs/2107.03844)

## Summary

Bangla has nearly 230 million native speakers, yet researchers have relatively few annotated digital datasets on which to train and compare language-processing systems. Even when a dataset exists, differences in labels, access, or the choice of test examples can make results difficult to reproduce. Alam and colleagues address both parts of the problem. They review 108 papers on Bangla [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) and run 175 sets of experiments to establish benchmarks that other researchers can build on.

The experiments cover tasks at several levels. Some require a decision about each word, such as identifying its grammatical category, recovering its dictionary form, recognizing a name, or restoring punctuation. Others give an entire text a label for sentiment, emotion, authorship, or news category. A separate experiment translates Bangla into English. For the classification and tagging tasks, the authors adapt pretrained [transformers](https://md.research.elamur.ai/free/en/concepts/transformer/) to each dataset and compare systems trained on Bangla alone with systems trained on several languages. They also test what happens when they pool compatible datasets and publish the training, development, and test splits they can share.

In the authors’ ranking across the tasks with several transformer systems, multilingual XLM-RoBERTa leads six of eight, while Bangla-only Indic-BERT leads in news categorization and authorship attribution. Pooling sentiment data improves the reported performance across the systems tested. Adding tagged corpora leaves part-of-speech performance without a gain on the original test set. The translation system places second among the results compared on SUPara, with rare words and variation in reference translations among the difficulties the authors identify.

The paper also measures a practical cost of the higher scores. On the combined sentiment test set, XLM-RoBERTa achieves 82.0% weighted F1, compared with 64.1% for a support vector machine. The respective inference times are 1 minute 21 seconds and 4 seconds on the reported setup. Results like these give researchers a starting point for choosing a system and a dataset. They also show why a benchmark needs to specify which texts, labels, and evaluation conditions produced a score.

## Deep dive: A Review of Bangla Natural Language Processing Tasks and the Utility of Transformer Models

A survey and benchmark of Bangla natural language processing, comparing Bangla-only and multilingual transformers across nine tasks. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A widely spoken language with uneven research resources

The paper uses *low-resource* in a specific sense. Bangla has a large speaker population, a long literary tradition, and a range of dialects. The scarcity the authors describe concerns material prepared for computer use, especially texts whose words or passages have been assigned reliable labels. An archive of articles supplies text. A grammatical tagging corpus also has to say which grammatical category applies at each position, using a consistent set of distinctions. The authors identify limited support for building such resources as a reason Bangla is still grouped with [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/).

The available material also varies by task. The paper points to sentiment datasets, categorized news, an authorship collection, speech corpora, parallel translations, and pronunciation lexicons. Each answers a different kind of question. Aligned Bangla and English sentences give a translation system examples of corresponding meanings. A pronunciation lexicon records how written forms are pronounced. Neither activity produces the labels needed to decide where a named person begins and ends in a piece of running text. A broader supply of digital Bangla helps, but how that material is collected and labeled determines what can be studied with it.

Earlier attempts to describe the field had a wider remit than any single experiment could cover. A book published in 2013 treated topics ranging from fonts and character recognition to translation, speech, and sentiment. A more recent survey examined approaches appearing from 1999 to 2021, spanning classical and deep learning methods. Alam and colleagues likewise review earlier work, then use an experimental program to give a selected group of tasks shared points of comparison. The focus is on text classification, word-level labeling, and translation. The authors discuss speech and character recognition as parts of the larger field.

#### From explicit rules to learned representations

The history traced in the paper begins in the early 1990s with rule-based lexical and morphological processing. [Morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) concerns the structure of words and the ways their forms change. For Bangla, researchers could write rules for recognizing suffixes, describing an inflected form, or recovering a stem. These decisions put linguistic knowledge directly into the system. The subsequent work described in the paper includes grammatical tagging, grammar checking, parsing, translation, speech recognition and synthesis, and optical character recognition. Work on document categories, sentiment, and emotion added questions about the meaning or function of larger pieces of text.

Statistical and classical [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) methods shifted some of the work from writing decisions by hand to learning them from examples. Designers still chose which properties of the text to expose. A document classifier might use individual words or [n-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/), which are consecutive sequences of items such as characters or words. A tagger might use a word’s prefix and suffix, its neighbors, or information from a lexicon. Features such as abbreviations and digits offered clues that a system could use even when it had seen relatively few labeled examples of the exact word.

The choice of algorithm followed the shape of the task. Classifiers such as naive Bayes, support vector machines, and random forests could assign a category to a text represented by its features. For a sequence of labels, earlier researchers used methods including hidden Markov models and conditional random fields. These approaches could take account of relationships between nearby decisions. The paper also describes later experiments with recurrent and convolutional neural networks. These systems could learn from [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), which represent words as vectors, or use representations at the character level.

#### What earlier work exposed about the individual tasks

In [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), the system assigns grammatical categories such as noun or verb to words in context. The survey describes early work that combined small tagged collections with much larger quantities of untagged text. Other researchers supplied dictionary information, suffixes, or the output of a morphological analyzer to help with unfamiliar words. The studies also used different label inventories. A tagger distinguishing a broad noun category and a tagger distinguishing several kinds of nouns face different classification problems. The surveyed work on Bangla–English social media widened the setting further, since words from different languages could occur in the same text.

[Stemming](https://md.research.elamur.ai/free/en/concepts/stemming/) and [lemmatization](https://md.research.elamur.ai/free/en/concepts/lemmatization/) both bring related forms together, with different intended outputs. A stemmer removes morphological variation to recover a stem. A lemmatizer aims to identify the base lexical form associated with a word in context. Bangla stemming studies surveyed in the paper included lists of known roots and suffixes, recursive removal of endings, and clustering methods. Several evaluated the normalizer as part of a search system. Lemmatization work included suffix rules, string matching, and eventually recurrent networks that could use context. The distinction between evaluation settings is important. Finding better documents for a query and assigning the correct lemma to a particular occurrence are separate tests.

In [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), the system has to find the boundaries and types of mentions in running text. Earlier Bangla studies leaned heavily on news collections and shared-task data. The review describes methods that drew on dictionaries, hand-written rules, word sequences, and combinations of classifiers. The label definitions varied across corpora. One newspaper study annotated people, locations, and organizations, while the Bangla Content Annotation Bank later used a wider inventory that included facilities, times, and units. These inventories determine which mentions a system is expected to find. They also determine whether an apparent miss counts as an error.

Punctuation restoration has a different immediate purpose. A transcript produced by an automatic recognizer may have words without the marks that organize written sentences. Restoring those marks helps readers and can make the transcript more suitable for [speech and language processing](https://md.research.elamur.ai/free/en/topics/speech/) applications that expect punctuated input. The earlier literature drew on words, acoustic cues, or prosody, the patterns of timing and emphasis in speech. The paper finds relatively little work specific to Bangla. The principal Bangla study it discusses applied multilingual transformers to written text and speech transcriptions, giving Alam and colleagues an existing basis for evaluating Bangla-only alternatives.

The survey of [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) follows a progression from hand-built transfer rules and example-based methods to statistical phrase-based approaches and neural systems. Some rule-based studies analyzed prepositions or used syntactic trees to transfer a sentence into the target language. Statistical approaches learned correspondences from aligned passages, including newspaper material and collections of sentences paired across languages. Neural studies then used recurrent architectures and transformers. This literature contains several datasets and translation directions. A result for one direction or corpus supplies context about the field, with the closest comparison coming from systems evaluated in the same direction on the same test material.

#### How document classification developed

The Bangla literature on [sentiment and emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) includes both lexical resources and labeled text. An early sentiment lexicon was adapted from English resources using a bilingual dictionary. Other work tackled polarity in movie reviews, Facebook posts, newspaper comments, and cricket discussions. These studies ranged from rule-based and classical classifiers to recurrent and convolutional networks. Social media raised a particular issue for Bangla because writers sometimes represented it in Roman script or switched between Bangla and English.

Emotion classification received less attention in the literature reviewed. The authors discuss both affective word lists adapted from English and a study of annotated YouTube comments. Sentiment and emotion can be studied in similar texts while producing different labels. A polarity system asks whether the writer expresses a positive or negative attitude. An emotion system tries to distinguish responses such as joy, sadness, or anger. This changes both what annotators must decide and what counts as a correct prediction.

Authorship attribution asks which writer produced a passage. The literature the paper reviews includes a Bangla collection developed for this task and experiments using character-level representations. News categorization assigns subjects to articles. Earlier work used character sequences, frequency-based features, and approaches such as [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/), which gives weight to terms according to their occurrence in a document and across the collection. As the studies progressed to learned word representations and neural classifiers, the methods changed while the role of the dataset stayed central. A benchmark for attributing literary passages and one for categorizing news each depend on how the input texts and output labels were selected.

This history explains the value of revisiting established datasets. Where the original split can be recovered, a new system can face the same test items as a published baseline. Where a corpus or its split is unavailable, an earlier result can still explain the state of the field, but supports a weaker comparison. The authors’ survey brings those circumstances into the account of Bangla [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/).

### The method, step by step

#### Fix the task and preserve the test

The study begins by organizing the literature by task and identifying prior datasets, tools, and results. For the experimental part, the authors select collections with relevant annotations and prepare splits. The training set provides examples from which the system learns. The development set supports choices during that process, including which trained version to take forward where that procedure is specified. The test set is the final evaluation. Preserving an earlier split can make a published result a direct point of comparison, provided the systems also follow comparable rules about access to labels, lexicons, and other information.

The next choice is what the system must predict. In document classification, the output is a label for a full input, which might be a comment or a literary passage. In sequence classification, it is a label at each position. Translation requires a new sequence in English. The authors use the same broad transfer procedure for the classification tasks and describe a separate encoder–decoder procedure for translation. Sharing an approach across several tasks makes it easier to compare pretrained systems without redesigning the entire classifier for each corpus.

From prior Bangla datasets to benchmark scores The steps in order.

#### Start with a pretrained encoder

The classification systems begin with an encoder that has already learned from text. An encoder gives each input token a numerical representation that reflects its context. The authors then use labeled task data for [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/), which updates the encoder along with the new prediction layers. In practical terms, the text representation learned during pretraining becomes the starting point for learning how to spot an entity, attribute a passage, or make another task-specific decision.

The paper describes BERT pretraining through masked-token prediction and next-sentence prediction. For masked-token prediction, selected input tokens are hidden and the system is asked to recognize the original vocabulary item using its surrounding text. For next-sentence prediction, consecutive sentences supply positive examples, and sentences from separate documents supply negative examples. The multilingual BERT pretraining corpus draws on Wikipedia in 104 languages, including Bangla. The sampling procedure gives smaller Wikipedia collections more influence than they would receive from an allocation directly proportional to corpus size.

The BERT choices differ in training data even when they share a broad architectural design. BERT-m is the multilingual release. BERT-bn has the BERT-base design and was pretrained on Bangla Common Crawl and Wikipedia material, with 102,025 vocabulary entries. Indic-BERT is the Bangla version from Indic-Transformers, trained on about 3 GB of text. The paper gives BERT-base as the reference configuration with 12 layers, a hidden width of 768, and 12 attention heads. It also describes BERT-large with 24 layers, a hidden width of 1,024, and 16 heads. These are reference designs. The authors note that some of the pretrained Bangla releases depart from the original architectures associated with their names.

RoBERTa changes the BERT training recipe. The account in the paper includes a larger batch, longer training with more data, longer inputs, and masking that changes during training. The objective centers on masked-token prediction. The multilingual XLM-RoBERTa used in the benchmarks is the large release, pretrained on 2.5 terabytes of filtered Common Crawl text across one hundred languages. The Bangla-only Indic-RoBERTa and Indic-XLM-RoBERTa releases are described as using about 6 GB and about 3 GB of training text, respectively. Despite the shared XLM-RoBERTa name, the Indic release in this comparison was pretrained on a monolingual corpus.

DistilBERT uses distillation, in which a smaller system is trained partly to reproduce information from a larger one. The objective described in the paper combines a term based on the teacher’s predictions, a masked-token prediction term, and a term based on the similarity of vector representations. DistilBERT-m is derived from multilingual BERT and draws on Wikipedia in 104 languages. Indic-DistilBERT is the Bangla-only variant, with about 6 GB of pretraining material. Bangla Electra uses a different objective. A generator proposes substitutes for some input tokens, and a discriminator learns to detect which tokens were replaced. The Electra release used here was trained with a 5.8 GB web crawl corpus and a 414 MB Bangla Wikipedia dump.

These choices give the authors a comparison of packages that differ in several practical respects. XLM-RoBERTa is the largest system on the configuration dimensions the paper lists, including vocabulary, layer count, hidden width, and attention heads. Bangla Electra is the smallest on those dimensions. The packages also differ in their pretraining text and objectives. The comparison therefore addresses what happens when a researcher chooses among these particular releases for Bangla tasks. Attributing the result to any one property would require a more narrowly controlled design.

#### Add a prediction layer at the right level

For [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/), the paper uses a representation intended to summarize the input sequence. The position occupied by the special token that opens the input is where this usually comes from. A linear output layer maps the representation to scores for the available labels. The RoBERTa variants receive an additional hidden layer before the linear output. The same arrangement can be used for a YouTube comment or a news article, with the output categories changed to fit the task. The labels correspond to sentiment, emotion, writer identity, or news subject.

For sequence tasks, the encoder supplies a contextual representation for positions throughout the input. Those representations feed a bidirectional long short-term memory network, or LSTM. It processes the sequence in each direction and joins the resulting representations at each position. A fully connected output layer then predicts the label for that position. Access to context on both sides is useful when a word has more than one possible grammatical function or when a name extends across several words. The authors apply this design to grammatical tags, lemmas, entities, and punctuation. For named entities, they also test versions that supply grammatical tags and gazetteer information, meaning information from lists of names and related expressions.

[Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) defines the pieces sent to the encoder. A piece can be a whole word or a smaller unit. With [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/), a word unfamiliar as a whole can sometimes be represented through smaller pieces that the system recognizes. The token pieces depend on the selected pretrained release. This matters in Bangla because vocabulary coverage may change how much of an inflected or unusually written word survives in the input representation. The authors examine a concrete example of that difference in their error analysis.

#### Prepare parallel text for translation

For translation, each training example pairs a Bangla sentence with an English sentence. The paper describes training the base encoder–decoder transformer using the WMT architecture in fairseq. The encoder processes the Bangla sequence. The decoder uses the encoded source and the English words already produced to predict what should come next. Masked self-attention in the decoder restricts access to later positions in the target. A separate attention layer connects it to the encoded Bangla input. Special markers called `[START]` and `[END]` identify the sequence boundaries.

Preparation starts by removing parallel sentence pairs whose Bangla side contains English words. The BNLP Toolkit tokenizes the Bangla and the NLTK tokenizer handles the English. Then subword-nmt applies byte pair encoding. Segmenting the text into recurring smaller units gives rare words a chance to share pieces with forms encountered during training. The fairseq preprocessing script converts the result into the binary format used for training.

The translation experiment uses Adam optimization, with weight decay of 0.0001, a learning rate of 5e-4, and dropout of 0.3. The inverse square root schedule varies the learning rate during training, with 8000 warmup updates. For validation, the authors use beam search with a beam size of 5. Beam search keeps several possible partial translations in consideration as it extends the output. The evaluation then uses the SUPara test set. This setup gives a single translation result to compare with earlier systems on that test, while the classification experiments are built around comparisons among several pretrained encoders.

#### Match the score to the prediction

For classification, the study reports weighted precision, recall, and F1. Precision asks how many predictions of a category were correct. Recall asks how many examples of that category the system recovered. F1 combines the two, so low precision or low recall affects the result. In a weighted average, categories with more examples contribute more to the aggregate. Accuracy, reported in some of the experiments and prior work, asks how often the predicted label is correct. The choice matters when the authors compare with a prior study that published accuracy or when individual categories occur at very different frequencies.

The task can also determine what is counted as a correct prediction. The named entity comparison uses exact matches. The boundary and the category of the mention have to agree with the annotation. The punctuation aggregate excludes positions where the target has no mark and focuses on performance for the punctuation categories. For translation, the authors use the [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/), which evaluates a system translation through its overlap with reference translations. The paper describes these measures in prose and gives no mathematical derivation. Its translation examples illustrate how wording differences between a prediction and a reference can affect the score.

### Experiments and results

#### Part-of-speech tagging on the LDC test set

The LDC corpus, which Microsoft Research India developed, serves as the primary benchmark for tagging. It contains 7,393 sentences and 102,937 tokens drawn from blogs, Wikipedia, and other sources. The corpus has several annotation layers. The experiment uses its inventory of 30 part-of-speech tags. The authors preserve an earlier file-based split, using 60% of the tokens for training and 20% each for development and testing. They report that approximately 51% of the development and test tokens are of types unseen in training. Here, unseen describes the labeled training split. A pretrained tokenizer can still recognize an unseen word or represent it through familiar pieces.

The extra training data come from the IITKGP and CRBLP corpora. IITKGP contributes 5,473 sentences and 72,400 tokens, with a source inventory of 38 tags. CRBLP comprises 1176 sentences from BDNews24 with about 20K manually tagged tokens. The authors map the source label sets to the LDC scheme. They then add the mapped corpora to the LDC training material, keeping evaluation on the same LDC development and test sets. This makes the benchmark ask a focused question about whether additional labeled material helps on LDC.

The additional corpora produce no overall improvement on that test. Indic-DistilBERT and XLM-RoBERTa perform similarly and ahead of the other systems in the authors’ account. Bangla Electra is the weakest of the Bangla-only alternatives. The authors describe an absolute gain of only 0.6% over an earlier result. They qualify that comparison because the earlier LSTM–CRF tagger used a lexicon constructed from the training, development, and test portions. The data split is thus familiar, while the information available to the systems differs.

The corpus statistics give some sense of what the aggregate can obscure. The authors count 59 interjection particles, labeled CIN, in the complete LDC corpus and 15 reciprocal pronouns, labeled PRC. Nouns, main verbs, and punctuation are more frequent across the tagging collections. A score on the full test set reflects an inventory in which the evidence available to learn and evaluate different labels is uneven.

#### Lemmatization on literature and news

The lemmatization corpus supplies annotated lemmas for word forms in short stories by Rabindranath Tagore and news articles from several domains. The authors divide it by sentence, with 70% assigned to training, 15% to development, and 15% to testing. The task uses the same sequence classification design as grammatical tagging. The system can draw on context when assigning a lemma to a form that would be ambiguous if presented alone.

The relevant earlier system used successive bidirectional recurrent networks for context-sensitive lemmatization. Its published results include 91.14% accuracy for the BiLSTM–BiLSTM configuration with restricted output classes. The review uses accuracy to compare with the earlier approach and reports an absolute test accuracy improvement of 1% for its best system, XLM-RoBERTa. BERT-bn is second by accuracy and F1 in the authors’ results. Indic-DistilBERT, which is competitive on part-of-speech tagging, is weaker on lemmatization. The comparison shows how rankings can change between two tasks that use the same sequence architecture and label the same unit of input.

#### Named entity recognition in Bangladeshi news

The Bangla Content Annotation Bank contains 35 news articles and 2,137 sentences, with roughly 35 K words. Its articles cover areas such as politics, sports, and entertainment. The labels identify people, places, organizations, facilities, times, units, and miscellaneous mentions. The IOB2 format marks the beginning of a mention, marks tokens inside it, and assigns the label O to tokens outside any mention. Over 50% of the content is labeled O. People are more frequent among the entity types, and units are underrepresented. Titles and subtitles can lengthen a person mention considerably, increasing the number of positions whose labels must work together to produce an exact match.

The paper follows the earlier corpus split, with about 70% of tokens for training, about 10% for development, and about 20% for testing. To fine-tune the model, Adam runs for 10 epochs using batches of 8, a learning rate of 1e-5, and sequences capped at 256. The published comparison comes from the work that introduced the corpus and used features such as tokens, grammatical tags, and gazetteers. That work gave both partial- and exact-match results. The review uses the exact-match result for its baseline comparison.

With token input alone, every tested transformer except Bangla Electra improves over the earlier baseline in the authors’ account. The experiments that add part-of-speech and gazetteer information achieve further gains. XLM-RoBERTa leads the comparison. Multilingual BERT is second for token-only input. Indic-BERT is second when tokens, grammatical tags, and gazetteer information are supplied together. The ranking is therefore conditional on which information is available at the input. For this task, the paper’s account of the results gives the direction of the comparisons without stating the individual exact-match scores in the discussion.

#### Punctuation in news and speech transcripts

The punctuation benchmark starts from a prior Bangla newspaper dataset with training, development, and test partitions. It also includes manually transcribed and automatically recognized test material from 65 minutes of speech drawn from four short stories. The label inventory groups several literal marks together. Comma covers commas, colons, and dashes. Full stops, exclamation marks, and semicolons all fall under Period. Question is for a question mark, and O indicates no mark. The experiment thus measures recovery of these groups. It does not require the system to choose among the literal marks within a group.

The news and transcript sets distribute these decisions differently. Question marks account for less than 1% in the news data and occur more often in the transcripts. The transcripts also contain a higher proportion of Period labels and have shorter average sentences. The dialogue in the stories gives the authors a reason to expect more questions than in news articles. The training and test data therefore differ both in genre and in how frequently certain punctuation decisions arise.

For this task, the review uses Adam to train the Bangla-only encoders for 10 epochs, with batches of 8, a learning rate of 1e-5, and sequences capped at 256. It takes the multilingual comparisons from earlier experiments using the same splits. The prior XLM-RoBERTa large system leads on the news and transcript sets. Indic-DistilBERT leads among the Bangla-only alternatives, with F1 of 80% on the news test, 61.5% on the manual transcript test, and 58.0% on the automatic transcript test. The overall F1 used here leaves out the no-punctuation label.

Overall F1 for Bangla punctuation restoration on the manual transcript test set The multilingual system from the earlier study scores higher than the strongest Bangla-only system in the review.

**The numbers**

| System or setting | F1 (percentage scale) |
| --- | --- |
| Indic-DistilBERT | 61.5 |
| XLM-RoBERTa large with data augmentation (this paper) | 69.5 |

The same difficulty ordering occurs across the systems discussed in the paper. News text gives the strongest results, manual transcripts are harder, and automatic transcripts are harder still. The earlier XLM-RoBERTa result with data augmentation, which adds examples during training, is 69.5 F1 on the manual transcripts and 64.0 F1 on the automatic transcripts. The review also singles out Comma as especially difficult in the transcribed sets. Errors introduced by speech recognition are one explanation for the drop from manual to automatic transcripts, while the news-to-transcript comparison also involves a change in the genre and distribution of punctuation.

#### Bangla-to-English translation on SUPara

The translation training set pools 1,162,504 sentence pairs, with approximately 15.4M Bangla tokens and 15.1M English tokens. The components encompass several kinds of text. SIPC draws from often viewed Wikipedia articles, and Open Subtitles supplies lines from films. The Indic Languages Multilingual Parallel Corpus includes film and television subtitles. SUPara contains material translated from several kinds of newspaper text. Other sources include crowdsourced pairs from AmaderCAT, examples originating in the Penn Treebank, and alignments from Global Voices. Tatoeba supplies another collection of pairs, and Tanzil contributes Quran translations.

This mixture is substantially broader than the evaluation source. SUPara has about 70.8K parallel sentences for training and 500 each for development and testing. The paper evaluates on the 2018 SUPara test set of 500 parallel sentences. The size of the pooled training material and the size of the final evaluation answer different questions. The training total describes the exposure available to the system. The test size describes the sample on which the published BLEU comparison is based.

The paper places its transformer second among the SUPara test results it compares. A prior transformer system reported 32.10 BLEU on the SUPara test set. The literature review also describes earlier SUPara results of 19.76 BLEU for a neural system using pretrained embeddings and 19.98 BLEU for a bidirectional LSTM. The results discussion gives the new system’s rank and discusses examples of its output without restating its BLEU score in prose. The ranking establishes its position among the baselines the authors used. The test alone leaves open how the system would fare on subtitles, religious material, or the other sources that contributed training data.

The translation examples illustrate distinct ways an output can diverge from the reference. In some cases, the authors judge the system’s wording appropriate and question the reference. They point out the difference between writing out US Dollar and using USD, forms that can express the same thing while yielding different word overlap. In another example, the authors judge the system’s output wrong and associate the error with a rare word. Their broader observation is that an unfamiliar word can contribute to a failure that affects the meaning of the whole sentence. Sub-word segmentation offers a way to represent such words, and the observed output shows the remaining problem of choosing a translation for them.

#### Sentiment on individual and pooled sources

The sentiment datasets differ in what people were writing about and where they wrote. SAIL provides Twitter posts. Its original splits contain 1000 training, 500 development, and 500 test tweets. The experiment uses only the original training portion and divides that portion into its own splits. The aspect-based dataset provides cricket commentary collected from several sites and restaurant material translated from an English benchmark. It introduces a distinction between the overall subject of a text and the particular aspect about which a writer is expressing an opinion.

The YouTube sentiment data originally provide annotations with three and five classes. The authors use the three-class annotations and map the finer inventory to the same set, yielding 2,796 comments for the individual experiment. The publicly accessible part of BengFastText has 8,420 posts, drawn from sources including newspapers, books, and social media. The authors combine its available partitions before making new ones. CogniSenti contains Facebook posts and tweets, with 4,599 examples for training, 985 for development, and 986 for testing.

The authors follow the earlier comparative study’s 70%, 15%, and 15% allocation for training, development, and testing. For the consolidated setting, they join the training portions together and do the same separately for the development and test portions. They use the task-specific classification layer and fine-tune the pretrained encoder. The sentiment training section lists a cleaning procedure that removes items such as URLs, punctuation, and hashtag signs. Elsewhere, the paper describes using tokenizer-only input during its discussion of error analysis. The distinction matters when reconstructing particular runs.

The earlier sentiment comparison included classical approaches and three multilingual transformers and presented F1 results for individual datasets. The review adds more pretrained systems and reports accuracy, precision, recall, and F1. BERT variants perform well on several individual datasets, while XLM-RoBERTa leads the combined setting. Indic-DistilBERT, Indic-BERT, and BERT-bn give comparable performance to one another in that setting. The authors see consistent improvement with the pooled dataset across the systems tested. Because the pooled benchmark includes material from the different test partitions, a score on it characterizes that mixture.

The authors also run a direct performance and computation comparison on the combined data, with 16,213 examples for training and 3,741 for testing. They tune a support vector machine and fine-tune XLM-RoBERTa. The machine used for the comparison has 22 CPUs, 50GB of memory, and a GPU with 16GB of memory. The support vector machine takes 2 hours 32 minutes 30 seconds to train and 4 seconds for inference on the test set. XLM-RoBERTa takes 3 hours 42 minutes 41 seconds to train and 1 minute 21 seconds for test inference. The reported timing includes each system’s own training procedure, with hyper-parameter tuning for the support vector machine and ten epochs of fine-tuning for the transformer.

Weighted F1 on the combined Bangla sentiment test set Fine-tuned XLM-RoBERTa achieves higher weighted F1 than the tuned support vector machine.

**The numbers**

| System or setting | weighted F1 % |
| --- | --- |
| Support vector machine | 64.1 |
| XLM-RoBERTa (this paper) | 82.0 |

This is a case where the paper gives both a direct score comparison and the time needed to produce the predictions. The higher weighted F1 is accompanied by a longer inference run. A reader considering the result for an application can see the performance and timing under the same reported dataset conditions, rather than having to infer the cost from the size of the encoder.

#### Emotion classification on YouTube comments

Bangla, English, and romanized Bangla are the languages of the 2,890 YouTube comments in the emotion dataset. Its labels are anger or disgust, joy, sadness, fear or surprise, and none. The texts come from videos selected in domains including music, sports, drama, and news. After reserving 10% for testing, the authors allocate 80% of what remains to training and 20% to development. The percentages for training and development therefore refer to the remaining portion, while the test percentage refers to the whole dataset.

With sequences of length 30 and a learning rate of 1e-5, training runs for 10 epochs. The planned mini-batch contains 32 samples. If that batch exceeds GPU memory, as it can with XLM-RoBERTa, the authors use the largest batch they can fit. The parameters of the full network are updated, and the system selected on development performance is evaluated on the test set.

The earlier YouTube study used recurrent and convolutional networks with an embedding layer and reported 59.2% accuracy for emotion classification. In the review’s own test comparison, XLM-RoBERTa is strongest. DistilBERT-m follows it among the multilingual systems, and Indic-RoBERTa leads among the Bangla-only systems. The language and script mixture is relevant to the task, but the ranking comes from the full test set. The result gives no separate comparison for each language or writing system in the comments.

#### Categorizing news and attributing literary passages

The news benchmark has six labels and uses established splits of 11,284 training articles, 1411 development articles, and 1411 test articles. International news is relatively infrequent in this collection. The authors train with Adam and cross-entropy, which penalizes the system for assigning low probability to the correct category. They use 10 epochs, a learning rate of 1e-5, and an input length of 300 tokens. Short inputs are padded and long inputs are truncated. The targeted batch size is 32 articles, with a smaller batch when GPU memory requires it. Performance on the development set determines which trained version is tested.

The earlier news comparison used a nearest-neighbor classifier with fastText embeddings. Another prior study fine-tuned multilingual BERT and XLM-RoBERTa on the task. On the retained split, the transformers in the review score higher in accuracy than the fastText nearest-neighbor results. Indic-BERT takes first place. Indic-XLM-RoBERTa comes next, followed by multilingual XLM-RoBERTa. Here the choice among systems depends on the particular test, and the strongest architecture across the paper does not lead this benchmark.

The authorship corpus contains writings by 14 authors from an online Bangla e-library. The source documents are 750 words long and come from material such as novels and stories. The paper reports 14,047 writings in the training split, 3,511 in development, and 750 in testing. It also describes balancing the data for training by taking the minimum count of 469 samples per class. The input length is limited to 300 because of GPU memory. The authorship decision thus uses the portion of each writing that fits within that limit.

One earlier comparison used character- and word-level convolutional networks and obtained its best result with fastText skip-gram embeddings. Most of the transformers exceed that earlier result. Bangla Electra, Indic-RoBERTa, and DistilBERT-m are the exceptions the authors identify. Indic-BERT reaches 95.2% accuracy on the authorship test set. The authors’ reported improvement of 14% absolute uses the best result from that earlier convolutional study as its reference. The review also mentions a separate prior multilingual transformer result of 93.8% accuracy on the same dataset. Keeping the two baselines distinct matters when judging the size of the progress.

### What the ablations show

#### Change the training data and follow where it helps

The paper offers controlled comparisons of training data and input features, along with broader comparisons among pretrained systems. The part-of-speech experiment keeps the LDC development and test splits fixed while adding data from the other tagging corpora. Since the same test remains in place, the lack of a gain directly addresses transfer to the LDC benchmark. The source corpora bring more tagged text, but the resulting training configurations yield no better overall score there. Aligning the tag inventories makes pooling feasible. It leaves questions about how closely the annotations and the distributions of words match across the sources.

The sentiment consolidation produces the opposite result in the authors’ account. All tested systems improve with combined data. An important design difference is that the sentiment experiment pools test portions as well as training portions, whereas the tagging test remains LDC. The combined sentiment benchmark demonstrates performance on the mixture of sources assembled by the authors. To isolate what pooling contributes on an individual source, the relevant comparison would evaluate individual-source and pooled training against that same source’s unchanged test set. The paper’s stated conclusion concerns the pooled setup it reports.

#### Change the information available to the entity recognizer

The named entity comparison starts with token input and adds grammatical tags and gazetteer information. The improvement under richer input shows that those sources can contribute even when the words already have contextual representations. A grammatical tag can help characterize the role of a word at a potential entity boundary. A gazetteer can supply a clue that a text string resembles a known name. These are possible ways the features can help. The results do not attribute individual saved errors or a share of the gain to each source.

The change in second place is part of the evidence. Multilingual BERT is second with tokens alone, and Indic-BERT is second with the combined token, grammatical, and gazetteer input. XLM-RoBERTa leads in both conditions. Measuring the richer system on exact matches also means that gains can depend on getting a complete span right. Without a breakdown by boundary error and category error, the results establish the benefit of the feature setting as evaluated, while leaving the mechanism at the level of a hypothesis.

#### Compare architectures with their training histories attached

In its cross-task comparison, the paper gives ranks for eight tasks and treats translation separately because it benchmarked a single translation architecture. XLM-RoBERTa leads six of those tasks and Indic-BERT leads two. Indic-DistilBERT and Indic-XLM-RoBERTa each place second in three tasks. For punctuation, the multilingual result comes from earlier experiments on the same splits. The ranking is a convenient view of where each system was competitive, provided its entries are read with the corresponding task setup.

The authors suggest that XLM-RoBERTa’s size helps explain its performance. Its vocabulary, hidden layers, and attention configuration all differ from smaller alternatives. Its pretraining corpus and language coverage also differ. The ranking supports choosing among the releases on the reported benchmarks, and the comparison with Indic-DistilBERT raises a question about how much performance can be retained with fewer parameters. The experimental design supplies no isolated estimate of changing the number of layers, changing the pretraining language mix, or changing vocabulary size alone.

#### Look at individual inputs and predictions

The paper examines a Bangla sentence with the XLM-RoBERTa large and BERT-base tokenizers. For BERT-base, the final two words become unknown tokens even though the authors describe them as ordinary Bangla words. Its first word is divided into several pieces. In the example, XLM-RoBERTa represents the input more successfully. This shows a concrete route by which vocabulary coverage can matter. A word mapped to an unknown symbol loses distinctions that could be available if it retained recognized sub-word pieces. The example illustrates the mechanism without measuring its frequency in the test sets or its contribution to the task scores.

The sentiment analysis uses Captum to visualize word importance for selected predictions, an example of [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). The authors show a positive prediction with probability 0.997, a negative prediction with probability 0.963, and another positive prediction with probability 0.980. In the first example, a positive word receives strong emphasis, while a mildly negative opening is also reflected in the attribution. In the second, the negative word contributes in the expected direction, but the intensifier is highlighted in the opposite direction. The authors take that behavior as a possible difficulty with interpreting the phrase as a unit. In the final example, the system identifies a positive overall tone despite words with negative associations.

The probabilities belong to individual predictions. They are distinct from the contribution shown for an individual word and from the weighted F1 on the test set. The examples make it possible to inspect cases in which a decision looks reasonable and cases in which the explanation is less straightforward. Selecting individual examples leaves open how often the same attribution patterns occur.

The translation and punctuation analyses provide a different kind of evidence. In translation, the authors inspect both questionable references and genuine system errors involving rare vocabulary. In punctuation, the variation across news, manual transcription, and automatic transcription shows a consistent difference between the evaluation conditions, with particularly weak comma recovery in transcripts. These observations help locate what a finer experiment would need to vary. The sets differ in several ways at once, including writing style, label distribution, and the presence of recognition errors.

### Limitations

#### Limits the authors identify

The authors emphasize three problems with the resource base. Some datasets are difficult to access. Others have uncertain annotation reliability because guidelines or measures of agreement are missing. Still others lack established training, development, and test partitions. The survey catalogs 25 public and proprietary datasets and records details such as source, size, and license where possible. Coverage is uneven, with more resources for grammatical tagging, translation, and sentiment than for several other tasks. The authors share splits for data they can make available. For private resources, access may depend on contacting the owners.

The paper also asks dataset builders to document annotation guidelines, agreement between annotators, and the annotators’ demographics. Agreement addresses whether people given the same instructions tend to make the same decisions. The demographic details give context about whose judgments are represented. Together with licensing and fixed partitions, such documentation makes a benchmark easier to reuse and inspect. Publication of a split establishes which examples belong where. It does not by itself resolve uncertainty about the labels attached to them.

The authors flag the earlier part-of-speech lexicon as a limit on the historical comparison. Building it with access to the held-out portions may have made the previous score more favorable than a procedure that builds its resources from training data alone. For translation, they report difficulties with unusual or highly inflected words, especially nouns. They also identify issues with reference quality, variation between American and British English, and differences in how words from Indian and Bangladeshi Bangla are rendered. These factors affect the interpretation of BLEU and complicate the task of learning a consistent translation from heterogeneous data.

The translation discussion also raises source-specific problems. The Tanzil material includes long sentences and focuses on religious subject matter. Global Voices includes long segments that pose difficulties of their own. The authors identify noise and domain variation as possible reasons the larger training collection fell short of their expectations. Their examples illustrate what those problems can look like. The experiment gives no separate estimate of how much each source, wording convention, or sentence length affects the final score.

The authors treat computation as a substantive limitation of the stronger systems. Their sentiment timing shows that inference as well as training can cost more. GPU memory constrains the batch size for some encoders and the amount of text used in tasks such as authorship attribution. They call for larger and more diverse Bangla-only pretraining collections and regard the prospect of surpassing XLM-RoBERTa with such resources as a research direction. The survey’s experimental scope is selected text tasks, with speech recognition, speech synthesis, and optical character recognition identified as areas for further work.

#### Limits that follow from the benchmark design

The test sets define which conclusions can travel beyond the experiments. The entity benchmark is drawn from Bangladeshi newspapers. The emotion benchmark consists of YouTube comments drawn from selected video domains, and the authorship test draws from a literary collection with a fixed set of writers. Each is suited to the task for which it was assembled. The scores give no direct estimate for recognizing entities in conversation, detecting emotions on another platform, or attributing a passage to a writer outside the set of candidates. Even within the same genre, a new test would be needed to establish transfer.

Weighted scores also make common labels count more than rare ones. That matters for reciprocal pronouns in the tagging corpus, units in the entity corpus, and international articles in the news dataset. High aggregate performance can coexist with weak coverage of smaller categories. For punctuation, excluding O focuses evaluation on the marks the system is intended to restore. The resulting overall score has a different interpretation from accuracy across all token positions. Comparing tasks by their headline scores can therefore be misleading even when both scores are expressed on a similar scale.

The paper associates higher performance on some tasks with the amount of research attention they have received. The resource survey is consistent with that explanation. The test comparisons also vary in label inventory, genre, difficulty, and scoring. The comparison between grammatical tagging and punctuation restoration, for instance, does not hold those factors constant. The study documents uneven investment and uneven benchmark results. The link between the two is an interpretation of the pattern, with room for several other contributing factors.

Differences in preprocessing add uncertainty to reproducibility. The sentiment training description lists removal of stop words, invisible characters, punctuation, URLs, and hashtag signs. The error-analysis discussion says the authors used the system-specific tokenizers without separate cleaning. The paper leaves the relation between those statements unclear for individual sentiment runs. Accordingly, the attention paid to a word in a selected illustration and the classification score on a particular split cannot, on the basis of those statements alone, be assumed to come from identical input preparation.

The cross-system comparison also bundles changes in tokenizer, vocabulary, architecture, objective, and training material. The larger multilingual release performs especially well across the studied tasks, and Bangla-only releases lead the news and authorship benchmarks. Those are statements about the systems actually tested. An estimate of the independent effect of multilingual pretraining would require more comparable Bangla-only and multilingual systems, with the other factors controlled. Similarly, the timing result describes one hardware setup, one sentiment dataset, and the reported tuning and fine-tuning procedures. A different input length, batch size, or deployment environment would need its own timing measurements.

Finally, the translation setup uses training material from several domains and evaluates against one named SUPara test set. It filters sentence pairs containing English words on the Bangla side, while the emotion dataset includes language mixing and romanized Bangla. Each decision makes sense for the experiment it belongs to. Taken together, the experiments do not offer a single test of how Bangla systems handle language mixing. Similarly, the sentiment attributions and translation error examples establish that particular behaviors occur, while their prevalence across domains and test cases remains open.

### What came after

In 2024, a citing study took one of the review’s central classification tasks, Bangla sentiment analysis, and compared two ways of obtaining predictions. One uses a prompt with no labeled examples or with a small set of examples, the latter setting known as [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/). The other adapts a system through fine-tuning. The later study narrows the scope from a suite of Bangla tasks to a comparison of adaptation strategies within sentiment. [Zero- and Few-Shot Prompting for Bangla Sentiment Analysis](https://md.research.elamur.ai/free/en/papers/hasan-2024-zero-few-shot-prompting-llms/)

That comparison changes the role of labeled examples. In the review’s sentiment benchmark, the training examples help determine the parameters used at test time. In a prompted comparison, any examples are placed in the input used to elicit the prediction. This extends the question of how systems should be compared when a language has uneven access to labeled data. The later study’s citation and topic establish the connection to the review. Whether it reused the same corpora, splits, or baselines remains unspecified, so the connection supports a comparison of research questions instead of a numerical comparison of results.

## Cite

Cite as Firoj Alam, Md. Arid Hasan, Tanvirul Alam, Akib Khan, Janntatul Tajrin, Naira Khan and Shammur Absar Chowdhury. 2021. A Review of Bangla Natural Language Processing Tasks and the Utility of Transformer Models. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2107.03844](https://doi.org/10.48550/arxiv.2107.03844) · [arXiv 2107.03844](https://arxiv.org/abs/2107.03844)

```bibtex
@misc{alam2021review,
  title = {{A Review of Bangla Natural Language Processing Tasks and the Utility of Transformer Models}},
  author = {Firoj Alam, Md. Arid Hasan, Tanvirul Alam, Akib Khan, Janntatul Tajrin, Naira Khan and Shammur Absar Chowdhury},
  year = {2021},
  doi = {10.48550/arxiv.2107.03844},
  eprint = {2107.03844},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2107.03844}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
