ALEM at CASE 2021 Task 1: Multilingual Text Classification on News Articles (2021)

Abstract: We participated CASE shared task in ACL-IJCNLP 2021. This paper is a summary of our experiments and ideas about this shared task. For each subtask we shared our approach, successful and failed methods and our thoughts about them. We submit our results once for every subtask, except for subtask3, in task submission system and present scores based on our validation set formed from given training samples in this paper. Techniques and models we mentioned includes BERT, Multilingual BERT, oversampling, undersampling, data augmentation and their implications with each other. Most of the experiments we came up with were not completed, as time did not permit, but we share them here as we plan to do them as suggested in the future work part of document.

## introduction this paper includes review and explanations about our ideas and experiments for the case shared task in acl-ijcnlp 2021. the main purpose and goal for this shared task is to identify and classify sociopolitical and crisis event information at multiple levels and languages. main categories for subtasks are document classification (subtask1), sentence classification (sub-task2), event sentence coreference identification (subtask3) and event extraction (subtask4). each subtask has three batches of training data which are in english, spanish and portuguese @xcite . document classification and sentence classification tasks are binary classification tasks which aim to classify news articles and sentences respectively. the classification criteria of the document classification task is whether news article contains at least one past or ongoing event. sentence classification is also a binary classification task, sentences are labeled as 1 if they contain event triggers within them. event sentence coreference identification task aims to identify which event sentences are referring the same event. the objective of the event extraction task is to gather event trigger information and event information from given news article. we participated in subtask1, subtask2 and sub-task4. the training data for subtask3 was not sufficient for us to build and optimize the model for the given time schedule, since it was not possible to get exact results for test data. our results are based on validation data that we constructed from given training data. we propose a multilingual bert model @xcite for the shared task 1 @xcite . we trained and measured the performance of our model which is fine-tuned in english, spanish and portuguese. the model is formed by using and modifying multiple pretrained bert models for each subtask and language we participated for foot_0 . ## methodology we used huggingface's transformers @xcite library in order to fine-tune our bert model for each subtask. we fine-tuned separate bert models, each model pre-trained using a corpus in their respective language. the training data provided was quite unbalanced for every language in terms of both sample size and label distribution. we have tried over and under sampling techniques using imbalanced-learn package @xcite to form a better training split. both of the methods for our case affected the results in a negligible amount. so we decided to use naive random sampling for our experiments. one other obstacle we worked on is bert's maximum token size for its inputs. tokenized input given to bert is trimmed if it includes more than 512 tokens. this is a huge data loss for our subtasks, especially for document level classification. many documents are trimmed by default configuration, so we tried a populating method to avoid losing any data with cost of extra labelling process. the idea is to split the data to be trimmed into chunks less than 512 tokens and label each one as it was labeled before splitting. this may cause a incorrect labeling process since the document is now cut into texts and each one of them may be against its parent label by its own in the training process. as a practical example of this method, let's say we have a text @xmath0... • x n , where each x i are strings that form z when concatenated. tokenized length of z is greater than 512 and it is labeled as 0 in training set. we split z into x i s to obtain less than 512 tokens for each part and set the labels of each x i as 0. this blind labelling process may cause incorrectly assigned labels for some x i s, since label 1 may be more suitable for their individual meanings. however we did not observe a significant change on the results for any of the languages. considering this method did not improve the results, we did not use it for our final tests. we also used this method in the prediction phase. the texts were splitted similarly as in the given example. the final prediction was decided by majority of votes method e.g. if 3 texts are labeled as 1,1,0, then their parent prediction is 1 as it has higher vote. ## experiments the scores we demonstrate on the document classification and sentence classification are based on f1-macro metric. the evaluation criteria that we used in event extraction for validation data is f1 score. we experimented with various epoch numbers and batch sizes with the intent of optimizing the hyper-parameters. we made our decisions to use these epoch numbers and batch sizes based on there isn't enough data points for spanish and portuguese languages for training and evaluation of event extraction task. we think that we need different approaches in order to train and evaluate this data for further testing, but we share the evaluation performance results for english language since it has enough data points to form an acceptable model when compared to the other languages. we made our document, sentence and event extraction submissions based on bert base models which are trained with their respective languages for each . we used f1-score metric with the purpose of analysing event extraction performance for each token category. ## conclusion and future work this paper describes our system description for submission for case @ acl-ijcnlp 2021: socio-political and crisis events detection shared task. in training phase, we performed our experiments using separate pretrained language models with different training data. we report their performance for 3 tasks with the addition of the results for multilingual bert model. we also compared our models with the other bert models which are trained with their respective language data. we tested our fine-tuned language models with the test data provided by shared task organizers and made our submissions for document classification and sentence classification tasks. we achieved 80.82, 72.98 and 46.47 f1-macro scores in document classification. f1-macro scores of the sentence classification task are 79.67, 42.79 and 45.30 for english, portuguese and spanish respectively. we didn't make submission for token classification task due time limitations, but shared the results we observed in tests on our validation set. one of the important issues with bert is to optimize the training data in order to align with its maximum token size while training. in some tasks, especially in document level classification, this is a significant factor for pre-processing, since the length of the input texts are too long for being tokenized to fit bert as whole. this situation leads to an experiment devoted for managing this limitation. following our experiments in over-and undersampling methods, we would like to use data augmentation for future training methods in order to achieve an equilibrium in terms of training data labels. augmenting method may be text generation from already given documents and sentences, but we do not expect this method being successful for languages other than english since our sample data is not as much for the other languages. one another method we considered applying for future experiments was ensemble learning. the idea is training different models for the same task and observe their differentiated scores and group them by their success on predicting particular inputs. this method has a cost of training many models and measuring their prediction success with respect to the others, however after forming an optimal set of models, we can use them to unite on a cumulative score on a single input by assigning a weight for each of their individual output. this idea of combining many models can be also used for bert initiated environment by constructing a system where the structure is built on top of bert and inserting custom networks into its embedding layers. there are many improvements and analysis to be done in order to understand strengths and weaknesses of this system and further improvements might be added on top of it.