Elamur Research

Experimental Evaluation of Deep Learning Models for Marathi Text Classification

Paper · 2022 · Atharva Kulkarni, Meet Mandhane, Manali Likhitkar et al.

Summary

A Marathi news service may have only a short headline to work with when it needs to decide which category a story belongs in. A full article gives a classifier more language to work with, but it also contains details that can distract from the main subject. The authors study both versions of this text classification problem. Their question is how much Marathi classifiers gain from different kinds of training and text representation when publicly available labeled data are scarce. Marathi has rich morphology, so grammatical changes can produce varying forms of a word. A system’s way of representing those forms is part of what the authors want to test.

The study compares convolutional and recurrent networks trained for the classification task with systems adapted from pretrained language encoders. For the convolutional and recurrent classifiers, the authors try randomly initialized representations of words or word pieces. They also initialize word vectors from Marathi FastText releases by Facebook and IndicNLP, then test whether to keep those vectors fixed or update them during training. The other approaches use ULMFiT, multilingual BERT, and IndicBERT. The evaluations use the IndicNLP collection of full news articles and the iNLTK collection of headlines. Both tasks assign a news category, with different category sets and substantially different input lengths.

The clearest finding is that the choice of pretrained vectors can make a compact classifier competitive with IndicBERT. A convolutional network initialized with IndicNLP FastText leads the headline evaluation by a small margin over IndicBERT. On full articles, the authors describe the gain from IndicNLP vectors over simpler starting points as small, whereas they observe a clearer gain on headlines. IndicBERT leads multilingual BERT in the reported comparisons, and systems using Facebook FastText fall short of their IndicNLP FastText counterparts. Updating the pretrained word vectors provides only a slight overall advantage over keeping them fixed.

The authors suggest that news material used in pretraining may help explain why IndicNLP FastText and IndicBERT work well on these news tasks. The experiments compare resources that already exist, so they show the performance of the combinations as tested and leave the contribution of the pretraining domain unresolved. That distinction matters for the paper’s practical conclusion. A straightforward Marathi classifier can work well when it starts with suitable word vectors, and the evidence for that conclusion comes from news categories. The experiments leave open how the same systems would compare on Marathi sentiment or on text from other domains.

Deep dive: Experimental Evaluation of Deep Learning Models for Marathi Text Classification

A Marathi news classification study compares FastText, convolutional and recurrent networks, ULMFiT, and BERT on headlines and full articles. · about 33 minutes to read

The problem and its context

A widely used language with limited labeled data

The paper puts the number of Marathi speakers in India at more than 83 million. It describes Marathi as the country’s third most spoken language, after Hindi and Bengali, and as the native language of Maharashtra, with speakers also in Goa and other parts of western India. Its written form uses a variant of Devanagari. The authors connect their study to the growth of Marathi writing online and to a gap between that use and the attention Marathi had received in natural language processing. They point to a larger body of research on Hindi and Bengali and describe English as the focus of much of the field.

The resource problem in the paper concerns what those researchers can use to train and evaluate a system. A collection of Marathi writing provides examples of the language. A classification collection also has to specify the category of each example. That extra information, a form of linguistic annotation, gives the training procedure an answer to learn from and gives the evaluation an answer against which to check a prediction. The authors identify the scarcity of large annotated collections as an obstacle to testing and documenting new approaches for low-resource languages. The amount of public writing and the range of questions researchers can answer with existing labeled data are distinct parts of that problem.

The available categories matter as much as the volume of text. A collection labeled for sports, entertainment, and lifestyle is useful for learning that distinction. For sentiment analysis, the answer concerns the attitude expressed in the text. A reader can see the difference in an unfavorable article about a sporting event. The article’s subject can be sports even when its attitude is negative. The authors highlight the absence, in their resource overview, of a simple public Marathi sentiment classification collection alongside the news resources they do identify. Their evaluation therefore begins with an area where comparable labeled data are available.

What the representation has to preserve

The paper describes two properties of Marathi that bear on the input to a classifier. Grammatical relationships can be reflected in changes to word forms. Sentence order can also vary while the conveyed meaning remains stable. The authors illustrate the latter with different arrangements of a Marathi sentence about someone being unavailable to come and play. The example concerns the same message appearing in different sequences. For classification, that raises a concrete question about how well evidence learned from a particular form or arrangement carries over to another.

A classifier operating on whole words can assign each observed form its own representation. The training data then have to support whatever relationship the classifier learns between those forms. A representation that uses recurring pieces of words can share some information across forms. The study explores that possibility in two ways. FastText can make internal word information available through a pretrained vector for the whole word. Explicit word-piece input instead gives the classifier a sequence in which those smaller units are the positions it processes. The distinction is important when interpreting a comparison between word and sub-word settings. Changing the unit of the sequence changes what neighboring positions mean to the network as well as what gets an entry in its vocabulary.

The authors situate these choices alongside familiar preprocessing operations. Tokenization determines the units the system receives, which can include words, characters, or portions of words. Stop-word removal discards items judged to have little value for the task. Stemming reduces word forms to a common stem. The study sets the latter operations aside. The authors point to neural methods and representations based on smaller word units as ways to handle some variation without explicitly reducing the text to stems. Their experiments can establish how particular representations fare under the chosen procedure. A comparison of explicit stemming with the neural alternatives would require a separate condition.

Earlier classification and shared resources

The Marathi document classification efforts described in the paper cover both supervised methods and clustering. In one line of work, researchers used an ontology, an organized representation of categories and their relationships, together with supervised learning. Candidate categories included festivals, sports, tourism, and literature. The procedure took documents through preparation and feature extraction before predicting their labels. The paper also describes work using the Label Induction Clustering Algorithm, or LINGO, to group Marathi documents. Those clustering studies used custom collections of 100-200 documents. They show the kinds of problems researchers had tackled and the scale on which some earlier Marathi document studies operated.

The resource landscape also included collections and pretrained systems intended for several Indian languages. IndicNLP gathered sentence-level material from the web, produced FastText vectors, and offered labeled data for tasks including article genre classification and headline prediction. It also released IndicBERT, a multilingual encoder based on ALBERT. The iNLTK toolkit supported Marathi alongside other Indian languages and offered pretrained resources, including ULMFiT. In the paper’s account, iNLTK had already used pretraining to address tasks with limited labeled data. These projects supplied resources the authors could bring into the same Marathi evaluation.

That common evaluation serves a different purpose from an inventory of resources. A set of vectors becomes useful to this study once it can initialize the inputs to a specified classifier. A pretrained encoder becomes comparable once it can assign the categories in the same collection. Earlier Marathi categorization work provides the background for the task, while IndicNLP and iNLTK supply resources that enter the experiments directly. This lets the authors ask whether access to a useful Marathi word representation can narrow the gap between a relatively simple classifier and a pretrained encoder adapted to the task.

The move towards multilingual and cross-lingual NLP provides another reason to ask that question. The paper describes a trend toward training shared systems for multiple languages. Such a system is relevant when one application has to process more than Marathi. A Marathi news classifier has a more specific target. Its evaluation can give useful evidence about the quality of that particular assignment even when it says little about the value of the system’s language coverage. The paper examines both kinds of approach using Marathi labels, which gives the comparison a well-defined common outcome.

The method, step by step

From a news record to a category

Each run begins with a record that consists of text and a known news category. For the article task, the text is the body of a longer news item. For the headline task, the headline itself is the input. Within a dataset, the classifiers learn to choose among the same category names. Their routes from the written record to a prediction differ. A small convolutional or recurrent network starts with a sequence of numeric vectors for words or word pieces. A system such as IndicBERT starts with an encoder that already acquired parameters through language pretraining and is adapted to the labeled task.

The paper separates two decisions in the simpler networks. The first is how to divide the input and where to obtain its vectors. The second is how to process the resulting sequence. For instance, a convolutional classifier can take vectors that start randomly or vectors from one of the released FastText collections. The convolution, pooling, and classification layers provide the rest of the route to a prediction. Comparing those runs gives a reader a way to examine the representation while keeping the named architecture in view. Comparing CNN and LSTM with the same vector setting gives a different view, centered on how the input sequence is processed.

From Marathi news text to a category prediction

The steps in order.

From Marathi news text to a category predictionStep 1: Select an article or headline from its split1. Select an article or headline from its splitStep 2: Divide the text into the configured input units2. Divide the text into the configured input unitsStep 3: Represent the units with vectors or encoder features3. Represent the units with vectors or encoder featuresStep 4: Process the sequence with the selected architecture4. Process the sequence with the selected architectureStep 5: Reduce its features to a record representation5. Reduce its features to a record representationStep 6: Train the classifier on the known categories6. Train the classifier on the known categoriesStep 7: Measure how often predictions match the recorded labels7. Measure how often predictions match the recorded labels

The flow shows the stages the approaches have in common. The source of the features and the way they become a record representation depend on the branch. In the small neural networks, the paper specifies a maximum operation over the sequence. In one BERT variant, the classifier uses the encoder output associated with a designated sequence token. This is the difference between the route to a category and the category prediction itself. Both routes must eventually express a judgment about the same labels, even though their intermediate representations have different meanings.

Choose the units and initialize their vectors

The word-based classifiers begin with word embeddings, vectors that express words as lists of numbers. An embedding layer associates an input word with its vector so the network can perform operations on a sequence of words. In the randomly initialized word setting, the classifier begins with a word inventory and numerical values that have yet to learn anything from Marathi text. Training on the labeled collection can give those values a useful shape by adjusting them as part of learning the task. The paper names this setting random-word.

The corresponding word-piece experiment uses subword tokenization. The authors train a unigram SentencePiece tokenizer and set the sub-word vocabulary size to 12k. A vocabulary here is the inventory of units the tokenizer can use when it divides a record. Because a written word can be represented by multiple pieces, portions of a word can recur across different forms. The tokenizer learns the inventory and segmentation. The vectors for those units start randomly in the classification experiment, and the paper names the condition random-subword. Learning where to divide the text is therefore a separate part of the procedure from learning the numeric features that support the category decision.

This separation helps explain what a comparison between the random settings can tell a reader. Moving from words to pieces changes the identities the network can see and can also change how many positions it has to process for a record. A convolution with the same kernel size covers the same number of input positions in the two settings. The text span within those positions can differ. In a word sequence the kernel covers adjacent words. In a sub-word sequence it can cover a mixture of word pieces that fit inside one word or cross between words. The architecture can be held fixed while the evidence available to its operations changes.

For the pretrained word settings, the authors use the public Marathi FastText vectors from Facebook and the vectors released with IndicNLP. Each release supplies starting values that have already been learned from text outside the task-specific labeled data. FastText incorporates information from the internal form of words. The classification network in these word settings still receives an embedding per word. In the explicit SentencePiece setting, the network receives an embedding per tokenized piece, and those embeddings lack the pretrained FastText values. The paper’s comparison thus distinguishes a ready-made Marathi word representation from an explicit decomposition whose task vectors are learned from scratch.

The authors use each FastText release in static and trainable modes. A static layer makes its existing vectors available at every training step with their values held fixed. The layers that process those values and decide the category still learn from the labels. A trainable embedding layer begins with the same type of pretrained information and allows the task’s training process to change it. One way to understand the distinction is to follow a word through repeated encounters in training. In the static condition, the classifier can change what it does with that word’s vector. In the trainable condition, it can also change the vector it will see when that word appears again.

Process the sequence with convolution or recurrence

The CNN uses embeddings of length 300. A one-dimensional convolution, called Conv1D in the paper, passes 300 filters over the sequence. A filter is a learned operation applied at successive positions. The kernel size is 3, which defines the width of the input window on which the operation acts. Given the word representation, a filter can respond to features spread across a short run of neighboring words. Because the same filter is applied at successive locations, the classifier can use a response when the relevant local wording appears in different parts of a record.

The next stage, global maximum pooling, takes the largest response along the sequence for each feature. This gives the classifier a fixed-size representation even when different records produce different numbers of sequence positions. A large response early in a headline and a large response near the end of an article can both reach the classifier through the same feature. The resulting representation emphasizes the strongest response, while its position and the number of other occurrences fall away at this stage. That operation provides a precise sense in which the CNN can pick out a useful local cue from a longer record.

The pooled CNN output goes to a dense layer of size 100. A dense layer mixes its input features into new values used by the following layer. The final dense layer has as many outputs as there are target categories. The labels therefore determine the width of the final layer. The earlier widths specify how the network represents and processes the input. The CNN’s category decision comes from what it learned to detect through its filters and how the dense layers learned to use the strongest responses.

The unidirectional recurrent classifier starts with embeddings of length 300 and uses a long short-term memory layer, or LSTM, with cell size 300. It reads the sequence in order, producing a feature representation at successive positions while carrying forward information from earlier ones. A feature at a position can therefore reflect what the recurrent layer has retained from earlier in the text. Global maximum pooling then selects the strongest response over time for each of the reported output features. The paper places a dense layer of size 100 after pooling and ends with a layer sized to the number of classes.

The bidirectional LSTM, or BiLSTM, extends the recurrent approach by processing the sequence in both directions. A position can contribute features informed by the text on either side of it. The paper gives the bidirectional layer a cell size of 300 and again describes maximum pooling over the time positions. Next comes a 100-unit dense layer, followed by a final dense layer that makes the prediction. The paper specifies the common pooling and dense stages clearly enough to locate the principal architecture change in this comparison. It concerns how the sequence features are produced before those features are condensed into one representation.

The three classifiers consequently have a similar final path to the labels. Their differences become clearer if a reader follows a single feature through that path. In the CNN, a strong value can come from an operation on a local window. In an LSTM it can come from a state that carries information through the sequence. In the bidirectional version the feature can incorporate evidence from both directions. Pooling then asks the same kind of question of the resulting feature sequences. It retains how strongly each feature responded somewhere in the record. The eventual accuracy comparison concerns these complete architectures, including their shared preference for strong responses over positional detail.

Adapt pretrained language encoders

ULMFiT begins with a pretrained language model from iNLTK. The experiment uses fine-tuning, in which parameters learned before the classification experiment serve as the starting point for adapting to a target task. The basic transfer in this branch is broader than using pretrained word vectors alone. The classifier can draw on a system that had already learned parameters for processing language. The authors adapt the public iNLTK release to the Marathi classification datasets. Their method description identifies that starting point and the target tasks, with the detailed fine-tuning schedule left unspecified.

The BERT branch uses pretrained encoders based on the Transformer and attention. The paper tests multilingual BERT, abbreviated mBERT, and IndicBERT from IndicNLP. These are alternative pretrained starting points for producing features from the input sequence. The authors then try two ways of obtaining input for the classification layer, so the comparison includes both the choice of encoder and the choice of how the classifier reads its output.

In the CLS variant, classification uses the representation associated with the encoder’s designated CLS token. That token provides a particular position from which to take a feature vector for the sequence. The category concerns the whole record, so the classifier receives this sequence representation and maps it to a news label. The choice of CLS concerns how the encoder’s features are read. It gives the classifier an assigned output position rather than requiring it to combine a sequence of output positions on its own.

For the other variant, the paper describes fine-tuning the final layers and using their outputs for classification. The results discussion identifies a BiLSTM in this path. In that description, sequence features from the encoder pass to a recurrent stage before the category decision. Conceptually, this lets the classifier process the ordered outputs as a sequence. The stated difference from the CLS approach is sufficient to understand what is being compared. The paper leaves exact layer selection and other implementation details of that path open.

These branches clarify the different meanings of transfer in the experiment. The FastText runs import numerical representations of words into a task-specific processing architecture. ULMFiT starts with a pretrained system for processing language and adapts it to classification. The BERT variants also start with pretrained sequence encoders, then vary how the classifier gets a representation of the record from the encoder. An accuracy comparison among the branches tests the usefulness of each route as implemented. The branches differ in several respects at once, so the interpretation of such a comparison differs from the interpretation of freezing versus updating the same embedding layer.

Keep the labeled tasks distinct from the pretraining resources

The article dataset comes with its own training, validation, and test partitions. The headline experiments use the iNLTK dataset with the partitions made available through the IndicNLP catalog. Training examples provide the labeled records from which the classifier learns. Validation and test examples have separate roles in the dataset design, with validation available during development and test data supplying a check on predictions on reserved examples. The authors give the sizes of each partition. Their description does not specify the full sequence of validation decisions that produced the reported comparisons.

The authors also catalog publicly available Marathi text collections, including cleaned Wikipedia articles and material derived from web crawls. They identify the IndicNLP corpus as a further source of Marathi text. Such collections explain where the broader supply of training text can come from for work on the language. In these experiments, the authors obtain the benefits of pretraining through the released vectors and encoders. They describe the monolingual corpora as resources available to the field and say that they did not explicitly use those corpora in this study. Their task-specific data procedure therefore has a narrower scope than the full resource catalog.

That distinction is especially relevant for SentencePiece and FastText. The authors train the tokenizer used in their explicit sub-word condition and start its classification embeddings randomly. They reuse the two releases of FastText embeddings. These choices put different kinds of prior information into different runs. Keeping track of what was trained for the current task and what came from an existing release makes it possible to read a result about one source of pretrained embeddings without treating it as a general result about all sub-word inputs.

The architecture descriptions specify the widths and the order of operations in prose. The paper presents the procedure without mathematical formulas. Its retrievable implementation details are the stages, settings, and data resources it names. Those details identify the experimental contrasts, while questions such as exactly how training progress determined which classifier to evaluate remain relevant to reproducibility.

Experiments and results

What the two datasets ask a classifier to do

The IndicNLP News Article Dataset contains 4779 Marathi articles in 3 categories. Its labels are sports, entertainment, and lifestyle. The pre-defined training partition contains 3823 articles, the test partition contains 479, and the validation partition contains 477. The average length is roughly 250 words per article. A prediction therefore draws on a substantially longer input than a headline prediction, with room for repeated topic cues, details about people or places, and language that can be incidental to the main story.

The iNLTK Headline Dataset contains 12,092 Marathi headlines and likewise has 3 categories. Its labels are entertainment, sports, and state. The version cataloged by IndicNLP supplies 9672 training headlines, 1210 test headlines, and 1210 validation headlines. Its records average 7 words. Each prediction has to work with the evidence that fits in a headline. The dataset provides more labeled examples than the article collection, while each example contains much less text. Both differences matter to how a reader interprets the value of pretraining.

The two datasets have sports and entertainment in common. The remaining category changes from lifestyle in the article collection to state in the headline collection. That makes the experiments separate classification problems, each with its own label boundaries. A system that recognizes sports wording still has to learn which other examples to distinguish from sports in the relevant collection. The length of the records, the number of training items, and the label set can all affect that task. Comparing the outcomes across collections shows how the systems fared in two settings that differ on these dimensions together.

The training partitions give a numerical comparison of the two benchmark settings on their supply of labeled training examples. The star marks the headline setting, where the authors’ CNN with IndicNLP FastText leads the reported accuracy comparison. The plotted quantities are training records, and the direction refers to the size of the allocation.

Labeled training records in the Marathi article and headline datasets

The headline setting gives classifiers more labeled training examples.

Labeled training records in the Marathi article and headline datasetsIndicNLP News Article Dataset: 3823IndicNLP News Article Dataset3823iNLTK Headline Dataset (this paper): 9672iNLTK Headline Dataset (this paper)9672
The numbers
System or settingtraining records
IndicNLP News Article Dataset3823
iNLTK Headline Dataset (this paper)9672

The amount of training text and the number of training records answer different questions. Record count measures how many labeled decisions the classifier can learn from. Average length describes how much text the classifier typically sees for one such decision. The longer collection gives more evidence within an average document, and the headline collection gives more separate examples with labels. The study does not vary these quantities independently. The difference is particularly relevant when interpreting the authors’ observation that better pretrained vectors help more clearly on headlines.

How the systems are compared

The comparison uses classification accuracy. A prediction counts as correct when the selected category matches the recorded category for an evaluated item. In the article task, that item is an article. In the headline task, it is a headline. Overall accuracy describes how frequently that match occurs across the evaluation set. It gives a shared outcome for the different systems within each dataset. Per-category results would answer a further question about whether any gains were concentrated in the labels that contributed most examples.

The baselines include CNN, LSTM, and BiLSTM with random word embeddings. The paper also evaluates randomly initialized embeddings with explicit sub-word tokenization. Those runs give different starting points for evaluating the methods that import pretrained representations. The FastText comparisons place Facebook and IndicNLP vectors into the simpler architectures and vary whether the vectors may change during training. ULMFiT, mBERT, and IndicBERT provide comparisons with systems adapted from pretrained encoders. The paper reruns the public pretrained approaches on the target tasks, putting their results in the context of the word-vector experiments.

There are useful comparisons at several scales within that design. A run using fixed Facebook vectors can be compared with a run using fixed IndicNLP vectors in the same network family. A trainable version can be compared with a static version of the corresponding embedding source. A CNN initialized from IndicNLP can be compared with IndicBERT on the full classification task. These comparisons all have accuracy as their outcome. The component comparisons address narrower questions, while the full-system comparison shows how well an entire starting point and architecture work together.

The paper refers to a table of classification accuracies and summarizes its rankings in the results discussion. That discussion gives a rough magnitude for a comparison with mBERT but does not specify the individual accuracy values. The level of precision available therefore varies by finding. The order of the leading headline systems is clear in the discussion. The exact size of that lead, and the individual values for static and trainable runs, remain unspecified. The numerical training chart describes the setup on which those accuracy comparisons depend.

The strongest headline classifier uses IndicNLP FastText

On the headline task, the authors report the best performance from the CNN combined with IndicNLP FastText. IndicBERT follows by what they describe as a small margin. This result compares two practical routes to the same headline labels. In one, externally learned word vectors enter a convolutional classifier trained for the task. In the other, a pretrained multilingual encoder is adapted to the classification problem. Under the conditions of this evaluation, the compact convolutional route reaches the highest reported accuracy.

The authors distinguish the strength of that headline result from the behavior on articles. Using IndicNLP word vectors improves the simpler classifier more clearly in the headline experiments, in their account. The gain on full articles over a simple starting point is smaller. That observation describes how the effect varies across the two tasks. It does not measure the gain for headlines and articles at the same length or for identical labels. The comparison supports the practical idea that a good set of vectors mattered for these short news inputs.

What the classifier can learn from a very short record helps explain the interest of the result. A headline offers a limited sequence in which to recognize a category cue. A useful representation of a word in that sequence can make the cue easier for a local filter to detect. A full article can contain additional language that helps a classifier place the story even when some individual word representations start weaker. These are interpretations that fit the reported pattern. The experiments measure accuracy by dataset and do not trace individual predictions to those mechanisms.

The CNN also has a slight edge over LSTM and BiLSTM in the authors’ general account of the comparisons. Global maximum pooling gives the networks a way to keep a strong feature found at any position. Since the CNN features arise from local windows, the headline result is consistent with those features carrying enough category information for the task. The accuracy ordering leaves open which features the classifier actually used and how many records would benefit from the contextual information that a recurrent network can encode.

IndicBERT and the other pretrained approaches

The paper places IndicBERT ahead of mBERT and describes IndicBERT and the IndicNLP FastText classifiers as broadly comparable. Its numerical characterization is that the strongest IndicNLP-based approaches perform approximately 4% better than mBERT in absolute accuracy terms. That figure describes the reported comparison with mBERT across the two Marathi news evaluations. The authors give it as a rough characterization, with no separate numerical gap for each dataset or encoder readout. In particular, it is distinct from the small CNN lead over IndicBERT on headlines.

The authors’ statement that IndicBERT works best for both datasets occurs in their discussion of the BERT systems. They then explicitly identify the CNN with IndicNLP FastText as the overall headline leader. Read together, these statements give IndicBERT the stronger result among the BERT choices and put it in the leading group for the tasks overall. The narrative does not give a similarly precise ordering of the individual article variants. It does identify both IndicBERT and the IndicNLP FastText runs as the strongest approaches on the evaluated collections.

The Facebook vectors occupy a different position in the comparisons. The authors say that their results fall in the same general range as mBERT’s and below those from IndicNLP FastText. This matters because both vector resources use FastText. The results show a difference between the particular Marathi releases in this setting. The fact that one performs better gives the finding a more specific meaning than a statement about the benefits of pretraining in general. A practitioner reading the comparison needs the name of the embedding release and the task it was tested on to understand what the favorable result refers to.

ULMFiT has an intermediate position in the authors’ account. They put it between mBERT and IndicBERT and report that it beats systems using random word vectors or Facebook FastText. The conclusion describes it as stronger than the basic CNN and LSTM configurations. The configurations initialized with IndicNLP vectors are the important qualification to that broader description of the simpler architectures. The architecture name alone is an incomplete description of their performance, because changing the inputs can move a CNN into the leading group.

The results thus give two complementary comparisons. Within the pretrained Transformer options, the Marathi news experiments favor IndicBERT. Among the alternatives to adapting a pretrained sequence encoder, the strongest outcome comes from supplying good pretrained word vectors to an architecture learned for the task. The evaluation addresses classification accuracy. It leaves the time or memory costs of the configurations unmeasured, so the relative size of the architectures and their accuracy rankings answer different practical questions.

What the ablations show

The source of the vectors makes a difference

The paper varies parts of the classification pipeline through groups of comparative runs. The closest comparisons to a component ablation keep the network family in view and change its input representation or the way that representation is updated. The discussion also compares entire pretrained systems. Those full-system contrasts can guide the choice of a starting point, while the more focused comparisons reveal which changes within an approach have a visible association with accuracy.

The contrast between random word embeddings and IndicNLP FastText is especially direct. A network trained with random word vectors must learn their classification value from the labeled examples. A run initialized with IndicNLP vectors begins with information learned before it encountered those examples. The authors find the latter useful, especially for headlines. This supports the contribution of pretrained initialization for these architectures and datasets. The comparison leaves open which properties of the vectors matter most, because the pretrained values package together information about word form, usage, and the corpus from which they were learned.

The comparison between Facebook FastText and IndicNLP FastText narrows the question from the availability of pretraining to the choice of release. It tests whether different sources of pretrained vectors using the same broad representation method are similarly useful for the task. The reported preference for IndicNLP suggests that the payoff depends on the resource, not simply on the decision to use FastText. The authors say this direction agrees with the earlier IndicNLP work. The two vector collections still come to the experiment as complete resources. Vocabulary coverage, training text, and other differences among the resources can therefore remain entangled in the observed result.

The authors suggest that the relationship between the pretraining text and the task helps explain IndicNLP’s strength. They point to substantial news material in the training data for the successful IndicNLP resources, and the target collections are themselves news. A plausible reading is that the resulting vectors and encoder are well suited to the wording from which these classifiers must learn categories. To isolate that explanation within the experiment, the authors would have needed a comparison that held the training method constant while varying the presence of news text. Their released-resource comparison gives evidence about source choice and leaves the news-content explanation as a hypothesis.

Updating the vectors yields a small reported gain

The static versus trainable comparison starts from an existing representation and asks whether learning the labeled task should change it. In the static run, the network still learns to detect and classify features using the supplied embeddings. In the trainable run it gains the ability to adjust the embeddings themselves. This makes the contrast useful for locating the contribution of adaptation. If the static run already performs similarly, the classifier can obtain much of the usefulness of the vectors by learning how to read them.

The paper describes the accuracy difference as very small, with the trainable setting having a slight advantage overall. The result suggests that the pretrained representation is useful in its original form on the available news data. It also shows room for a small improvement when the word vectors are allowed to respond to the training labels. The discussion gives no evidence that freezing and updating are equivalent in every configuration. It gives the direction and approximate scale of the observed effect in ordinary language, without the numerical detail needed to judge the variation around it.

There is a practical distinction between this comparison and the random-versus-pretrained comparison. Freezing a good embedding keeps information the system already has. Random initialization changes what is there at the beginning. The authors report a visible benefit from obtaining good initial vectors and only a slight gain from further adjusting them. The two results together help identify where the advantage of the stronger FastText runs enters the procedure. Most of the difference described in the narrative comes from the choice of the initial resource, with less emphasis on the decision to let the vector weights move.

Word pieces, sequence processing, and BERT readout

The word and sub-word experiments offer a comparison of input units, but its interpretation depends on the chosen starting points. The random-word and random-subword configurations let the reader look at whole words and explicit pieces without importing pretrained vector values into either. When the random-subword configuration is compared with a FastText word configuration, both the unit of the sequence and the availability of pretrained embedding information change. The paper explains that it evaluated the SentencePiece representation but gives no specific accuracy figures or firm result ordering for the random-word and random-subword contrast. The design is clearer than the quantitative conclusion for that comparison.

The CNN, LSTM, and BiLSTM comparison gives another view of the sequence. The convolution emphasizes features drawn from nearby positions. The recurrent classifiers use states computed by reading through the sequence, with the bidirectional version giving access to both directions. Because the architectures share the broad design of a maximum pooling operation followed by dense prediction layers, the reported slight CNN edge gives some evidence about the value of those feature extractors in this setup. The result concerns the variants and sizes evaluated. It provides no measurement of the effect of choosing maximum pooling over a different way of combining sequence features.

The authors’ comparison of the BERT readouts asks whether the CLS representation is sufficient for this particular classification problem or whether using sequential output features with a BiLSTM changes the result. Their account describes accuracy as almost the same for the two routes. A designated sequence vector therefore appears sufficient to reach roughly the same reported performance as the sequence-based alternative under these conditions. The paper does not give the exact values, the variability of the runs, or a detailed account of which final layers were adapted. Those omissions constrain any claim about the equivalence of the readouts.

The source and readout comparisons can be understood together without treating their effects as separately measured across every setting. The paper observes a clear directional preference for IndicBERT over mBERT and reports similar outcomes for the two BERT classification approaches. That pattern puts more emphasis on the choice of pretrained encoder than on the choice between the tested readouts. The mBERT-to-IndicBERT comparison changes the pretrained system as a whole. It therefore does not divide the outcome among differences in pretraining material, the encoder itself, or the details of adaptation.

The datasets show where the differences appear

The article and headline comparisons add a useful check on whether the same ranking holds across different kinds of Marathi news input. The benefit associated with IndicNLP FastText appears more pronounced for headlines, while the gains over simple configurations on articles are described as small. The strong headline result for the CNN is also the paper’s explicit instance of that classifier surpassing IndicBERT. The observations show why a single architecture ranking would conceal meaningful context. The resource and the input setting belong alongside the architecture when describing the finding.

This cross-dataset contrast varies several properties together. A headline offers less text per classification decision, the headline dataset supplies more training decisions, and its label set is different. The paper also describes the collections as differing in vocabulary and grammatical complexity. The comparison can reveal that a method behaves differently across those settings. Determining whether the difference comes from length, from the way the text is written, or from the available training examples would require changing one of those properties while holding the others stable.

Limitations

Limits the authors state

The paper closes by emphasizing how few publicly available Marathi systems and relevant labeled collections the authors had to work with. The tasks they evaluate both come from news. The resource inventory is part of the contribution because it makes this constraint visible alongside the performance comparisons. The inventory surveys public Marathi text resources more broadly, but those resources do not supply additional labeled test domains for the evaluated classifiers. The paper’s empirical claims about accuracy therefore concern Marathi headlines and articles assigned news categories.

The authors also highlight the missing sentiment classification resource in their survey. Their concern is about whether future techniques can be tested on a fuller range of Marathi tasks. Success at assigning a topic to a news item leaves the ability to identify a writer’s attitude unresolved. The target depends on what the labels ask the classifier to recognize. This makes the authors’ concern more specific than a general call for more text. More public classification data would need to label distinctions that the existing news collections leave out.

The authors recognize that IndicBERT’s multilingual scope gives it uses beyond the Marathi-only comparison. Their preference for basic classifiers is framed around applications concerned with Marathi. This qualification follows from the design of the experiment. A system can offer coverage across languages while another can obtain high accuracy for the particular Marathi task on which they are compared. The paper evaluates that latter property. It also acknowledges the pretraining source as a possible explanation for the leading results, using the match between news text in pretraining and in the target data to motivate the interpretation.

Limits apparent from the comparisons

The comparison across datasets cannot establish that shortening an input creates a larger advantage for IndicNLP vectors. The experiments use different collections rather than different versions of the same records. The headline collection changes the category inventory along with the amount of labeled data and the length of the texts. A length effect would be easier to identify with matching articles and headlines and the same task labels, or another design that varied length within an otherwise shared experiment. The paper’s description supports an observation across datasets. It supplies no isolated estimate of the influence of length.

The earlier discussion of Marathi morphology similarly motivates the input choices, while the experiments evaluate aggregate classification accuracy. The authors do not report separate performance on inflected forms, examples containing unfamiliar word forms, or cases of alternative word order. A strong FastText result is consistent with useful treatment of variation inside words. A classifier could also reach that result by recognizing common vocabulary characteristic of each news category. The evaluation as described does not allocate the headline advantage between those possibilities. It demonstrates the performance of the representation on the task.

The attribution to news pretraining has a comparable limit. IndicBERT and mBERT are existing encoders, and the two FastText collections are existing embedding releases. The experiments compare their downstream behavior without matching their pretraining conditions. The strength of the resources associated with IndicNLP makes domain alignment a reasonable explanation to investigate. A comparison in which news content is the only change would be needed to quantify that contribution. The study gives a basis for asking the question and leaves the causal mechanism open.

Accuracy also gives an incomplete picture of prediction errors. Overall accuracy pools all correct decisions, so a reader cannot use it on its own to identify which category the classifier handles best. The results discussion does not supply per-category scores, a breakdown of commonly confused labels, or uncertainty estimates for the small differences. This matters most for claims about slight advantages. The reported lead of the CNN on headlines tells the reader how the authors ranked the systems. The description leaves unresolved whether that lead would persist under retraining or on a fresh sample of headlines.

Reproduction requires details beyond the sequence of layers and the partition sizes. The paper names the main components and embedding settings. It does not give enough training detail to match choices such as optimization, checkpoint selection, or the handling of long inputs across the encoder variants. How the tokenizer’s training data were selected is also unspecified. These gaps matter when a reader tries to reconstruct the exact comparison. They matter less for understanding the broad experimental question, because that question follows from the named datasets and from the contrasts among randomly initialized embeddings, pretrained vectors, and pretrained encoders.

Finally, the experiments report classification performance without measuring deployment costs. The simple classifiers have fewer described processing stages than the sequence encoders, but a claim about actual speed or memory requires measurements under stated conditions. Likewise, there is no experiment requiring a shared system to classify text in multiple languages. The reported advantage of the CNN on headlines and the broader usefulness the authors ascribe to IndicBERT thus refer to different properties. One is an observed accuracy ranking on a Marathi dataset, and the other reflects the scope of the pretrained resource.

What came after

The related citing work identified for this study is L3CubeMahaSent, whose title concerns sentiment in Marathi tweets. Its subject connects directly to a gap the authors identified. They could compare public approaches to Marathi classification using news category labels, but their survey called attention to the scarcity of labeled Marathi sentiment data. The citing work addresses Marathi classification in a different setting, where the text comes from tweets and the target concerns sentiment.

The link between the works is clearest at the level of the evaluation problem. An article labeled for topic and a tweet labeled for sentiment make different demands on a classifier, even when both inputs happen to be short or contain familiar subject words. For news categorization, a reference to a sporting event can be useful evidence about the category. For sentiment, useful evidence would concern the attitude expressed in the tweet. The news experiments establish how the compared systems behave with the first kind of target. Tweet-based sentiment gives the Marathi resource question a further setting in which the target changes.

The citation and the title establish this thematic connection. They leave open whether the tweet study reused particular vector releases, architectures, or training procedures from the news comparison. They also give no comparative result for the classifiers on sentiment. The follow-up question raised by the two works is therefore specific. Does the usefulness of IndicNLP FastText and IndicBERT on Marathi news categories carry over when the input is a tweet and the label concerns sentiment? The news results give that question a concrete starting point while leaving its answer to a sentiment evaluation.

Cite

Cite as Atharva Kulkarni, Meet Mandhane, Manali Likhitkar, Gayatri Kshirsagar, Jayashree Jagdale and Raviraj Bhuminand Joshi. 2022. Experimental Evaluation of Deep Learning Models for Marathi Text Classification. Lecture notes in networks and systems.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/978-981-16-6407-6_53 · arXiv 2101.04899

@inproceedings{kulkarni2022experimental,
  title = {{Experimental Evaluation of Deep Learning Models for Marathi Text Classification}},
  author = {Atharva Kulkarni, Meet Mandhane, Manali Likhitkar, Gayatri Kshirsagar, Jayashree Jagdale and Raviraj Bhuminand Joshi},
  booktitle = {Lecture notes in networks and systems},
  year = {2022},
  doi = {10.1007/978-981-16-6407-6\_53},
  eprint = {2101.04899},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1007/978-981-16-6407-6_53}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/kulkarni-2022-experimental-evaluation-deep-learning-models/

References

25 references, from the paper's own bibliography.

  1. Md Shad Akhtar, Asif Ekbal, and Pushpak Bhattacharyya. 2016. Aspect based sentiment analysis in hindi: resource creation and evaluation. In Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16), pages 2703–2709. our card
  2. Md Al-Amin, Md Saiful Islam, and Shapan Das Uzzal. 2017. Sentiment analysis of bengali comments with word2vec and sentiment information of words. In 2017 International Conference on Electrical, Computer and Communication Engineering (ECCE), pages 186–190. IEEE. OpenAlex ↗ · Scholar ↗
  3. Gaurav Arora. 2020. inltk: Natural language toolkit for indic languages. arXiv preprint arXiv:2009.12534. OpenAlex ↗ · Scholar ↗
  4. Piyush Arora. 2013. Sentiment analysis for hindi language. MS by Research in Computer Science. OpenAlex ↗ · Scholar ↗
  5. Pooja Bolaj and Sharvari Govilkar. 2016. Text classification for marathi documents using supervised learning methods. International Journal of Computer Applications, 155(8):6–10. OpenAlex ↗ · Scholar ↗
  6. Alexis Conneau and Guillaume Lample. 2019. Cross-lingual language model pretraining. In Advances in Neural Information Processing Systems, pages 7059–7069. OpenAlex ↗ · Scholar ↗
  7. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. our card
  8. Jeremy Howard and Sebastian Ruder. 2018. Universal language model fine-tuning for text classification. arXiv preprint arXiv:1801.06146. OpenAlex ↗ · Scholar ↗
  9. Aditya Joshi, Ameya Prabhu, Manish Shrivastava, and Vasudeva Varma. 2016. Towards sub-word level compositions for sentiment analysis of hindi-english code mixed text. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages 2482–2491. OpenAlex ↗ · Scholar ↗
  10. Ramchandra Joshi, Purvi Goel, and Raviraj Joshi. 2019. Deep learning for hindi text classification: A comparison. In International Conference on Intelligent Human Computer Interaction, pages 94–101. Springer. our card
  11. Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. 2016. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759. OpenAlex ↗ · Scholar ↗
  12. Divyanshu Kakwani, Anoop Kunchukuttan, Satish Golla, Avik Bhattacharyya, Mitesh M Khapra, and Pratyush Kumar. 2020. Indicnlpsuite: Monolingual corpora, evaluation benchmarks and pre-trained multilingual language models for indian languages. Findings of EMNLP. our card
  13. Yoon Kim. 2014. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882. our card
  14. Kamran Kowsari, Kiana Jafari Meimandi, Mojtaba Heidarysafa, Sanjana Mendu, Laura Barnes, and Donald Brown. 2019. Text classification algorithms: A survey. Information, 10(4):150. OpenAlex ↗ · Scholar ↗
  15. Taku Kudo and John Richardson. 2018. Sentencepiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. arXiv preprint arXiv:1808.06226. our card
  16. Alok Ranjan Pal, Diganta Saha, and Niladri Sekhar Dash. 2015. Automatic classification of bengali sentences based on sense definitions present in bengali wordnet. arXiv preprint arXiv:1508.01349. OpenAlex ↗ · Scholar ↗
  17. Harshali B Patil and Ajay S Patil. 2017. Mars: a rule-based stemmer for morphologically rich language marathi. In 2017 International Conference on Computer, Communications and Electronics (Comptelix), pages 580–584. IEEE. OpenAlex ↗ · Scholar ↗
  18. Jaydeep Jalindar Patil and Nagaraju Bogiri. 2015. Automatic text categorization: Marathi documents. In 2015 International Conference on Energy Systems and Applications, pages 689–694. IEEE. OpenAlex ↗ · Scholar ↗
  19. Braja Gopal Patra, Dipankar Das, and Amitava Das. 2018. Sentiment analysis of code-mixed indian languages: An overview of sail_code-mixed shared task@ icon-2017. arXiv preprint arXiv:1803.06745. OpenAlex ↗ · Scholar ↗
  20. Braja Gopal Patra, Dipankar Das, Amitava Das, and Rajendra Prasath. 2015. Shared task on sentiment analysis in indian languages (sail) tweets-an overview. In International Conference on Mining Intelligence and Knowledge Exploration, pages 650–655. Springer. OpenAlex ↗ · Scholar ↗
  21. Telmo Pires, Eva Schlinger, and Dan Garrette. 2019. How multilingual is multilingual bert? arXiv preprint arXiv:1906.01502. our card
  22. Kamal Sarkar and Mandira Bhowmick. 2017. Sentiment polarity detection in bengali tweets using multinomial naïve bayes and support vector machines. In 2017 IEEE Calcutta Conference (CALCON), pages 31–36. IEEE. OpenAlex ↗ · Scholar ↗
  23. Pedro Javier Ortiz Suárez, Benoît Sagot, and Laurent Romary. 2019. Asynchronous pipeline for processing huge corpora on medium to low resource infrastructures. In 7th Workshop on the Challenges in the Management of Large Corpora (CMLC-7). Leibniz-Institut für Deutsche Sprache. OpenAlex ↗ · Scholar ↗
  24. Sushma R Vispute and MA Potey. 2013. Automatic text categorization of marathi documents using clustering technique. In 2013 15th International Conference on Advanced Computing Technologies (ICACT), pages 1–5. IEEE. OpenAlex ↗ · Scholar ↗
  25. Guillaume Wenzek, Marie-Anne Lachaux, Alexis Conneau, Vishrav Chaudhary, Francisco Guzmán, Armand Joulin, and Edouard Grave. 2019. Ccnet: Extracting high quality monolingual datasets from web crawl data. arXiv preprint arXiv:1911.00359. our card