CK ing C oder at S em E val-2023 Task 9: Multilingual Tweet Intimacy Analysis (2023)

Abstract: The SemEval 2023 Task 9 Multilingual Tweet Intimacy Analysis, is a shared task for analysing the intimacy in the tweets posted on Twitter. The dataset was provided by Pei and Jurgens, who are part of the task organisers, for this task consists of tweets in various languages, such as Chinese, English, French, Italian, Portuguese, and Spanish. The testing dataset also had unseen languages such as Hindi, Arabic, Dutch and Korean. The tweets may or may not be related to intimacy. The task of our team was to score the intimacy in tweets and place it in the range of 05 based on the level of intimacy in the tweet using the dataset provided which consisted of tweets along with its scores. The intimacy score is used to indicate whether a tweet is intimate or not. Our team participated in the task and proposed the ROBERTa model to analyse the intimacy of the tweets.

## introduction intimacy is the feeling that makes people feel close to each other. intimacy is formed as a result of sharing knowledge and experience with each other. intimacy is developed through a process of four phases, as per the levinger and snoek interdependence model. the four phases of intimacy are the no contact phase, the awareness phase, the surface contact phase, and the coexistence phase. the no-contact phase is when the people involved don't know each other. the awareness phase is when the people involved just know about each other but don't have any superficial contact. the surface contact phase is when the people involved know each other and have superficial contact with each other. the coexistence phase is where the people involved have deep links and are mutually dependent on each other. social media is now on an enormous upward curve. intimacy is commonly referred to as physical intimacy. it has four major forms, among which one is physical intimacy. the other forms of intimacy are emotional intimacy, where intimacy forms personal bonds such as love or marriage; spiritual intimacy, where intimacy is formed due to the sharing of spiritual ideas or opinions; and intellectual intimacy, where intimacy is formed by shared common opinions between induividuals. in modern times, there has been a notable shift in the way individuals express their emotions in real-time. with the proliferation of social media, communication has largely moved online, with individuals utilizing platforms such as twitter, chat applications, and virtual meetings. twitter, in particular, has experienced tremendous growth, with over 500 million tweets being sent per day as of march 1, 2023. users are able to share a wide range of emotions on this platform, from news of personal victories to concerns and anxieties. this shift towards virtual communication has led to a society that is increasingly introverted and reliant on digital forms of interaction, with physical communication becoming increasingly rare. social media platforms are used for both professional and personal communication, which including intimate tweets. through the process of multilingual tweet intimacy analysis, the task at hand involves identifying tweets that are classified as intimate and those that are not. the difficulty here is not only the anonymity of the tweeter but also the limited information provided in the tweet. since the tweet string length is limited to 280 characters, you should extract the score of intimacy from the provided tweet of 280 characters maximum alone. it takes its complications to yet another level, and last but not least, it is a multilingual task where you may not be provided with data in a particular language alone. few transformer models were used for the task such as xlm-r @xcite , xlm-t @xcite , dis-tilbert @xcite and minilm @xcite and tried to identify which provided the highest accuracy for the task. xlm-r achieved a slightly higher accuracy for the task. ## background starting with the task, the task is to predict the intimacy score of the tweets in the dataset. the training dataset consists of 9491 tweets. the languages that are provided in the training dataset are considered seen languages.this dataset was used to train the model. this indicates that there are fewer samples to predict highly intimate content. the tweets hide external data, such as the user names that have been tagged in the tweet have been replaced with '@user, and the hyperlinks in the tweets have been replaced with 'http://' by the organiser itself. to avoid models using clickbait spoiler strategies to find out if the tweet is intimate or not since the task is about the analysis of intimacy in multilingual tweets alone and no external data is allowed to be used apart from text. dataset was used in each of the models such as xlm-r @xcite , xlm-t @xcite , distilbert @xcite , minilm @xcite and the best of them i.e. roberta was used. the transformer model is a deep learning architecture for natural language processing that was introduced by @xcite . the model consists of an encoder and a decoder, each with multiple layers of self-attention and feed-forward neural networks. the self-attention mechanism allows the model to focus on different parts of the input sequence when generating its output, while the feed-forward layers provide nonlinear transformations that enable the model to capture complex patterns in the data. the transformer has been widely used for a variety of natural language processing tasks, including language translation, text generation, and sentiment analysis, and has achieved state-of-the-art performance in many of these tasks. its success has led to the development of several variants and extensions, such as bert @xcite , gpt @xcite , and roberta @xcite , which have further improved the performance of the model on various language tasks. ## system overview this work describes the multilingual tweet intimacy analysis approach taken by ckingcoder, which is based on the roberta (robustly optimized bert) approach @xcite semeval task 9 conducted in 2023. roberta is an adaptation of the bidirectional encoder representations from transformers (bert) model developed by jacob devlin and his colleagues in 2019 @xcite . since its introduction, bert has become the most popular transformer model in natural language processing, with over 150 publications utilizing the model. roberta, along with other transformers such as distilbert @xcite and xlm-r @xcite , have been developed to improve upon bert's performance. when bert @xcite was initially developed, it was implemented in two model sizes. one of bert-base with 12 encoders and 12 bidirectional self-attention heads adding up to 110 million parameters, and another of bert-large with 24 encoders and 16 bidirectional self-attention heads adding up to 340 million parameters. these high-performance models were pre-trained with wikipedia english and the toronto books corpus, which were the largest available encyclopedias at the time, which made it the largest pretrained language model up to date. after a stage, it became as popular as google's implementation of bert in english language search queries, and by october 2020, all the english and english based queries were processed by a bert model. bert is pre-trained simultaneously for two tasks: one is language modelling and the other is next sentence prediction. since it is already pre-trained with larger datasets, it can be fine-tuned with less computational resources on smaller data based on the requirements of the natural language processing task. it was considered that bert is superior to deep learning models because deep learning models try to learn information from the text using all possible methods of neural networks, whereas bert tries to learn the information from the words surrounding the text and concluding with the exact required information for the text. as time progressed, many modified versions of bert were released that were suitable for certain circumstances, such as minilm @xcite and distilbert @xcite , which were simpler implementations of bert that could produce a similar outcome with less training time, and similarly, xlm-roberta @xcite was a transformer based on bert that was pretrained on two terabytes of data that was obtained through the web crawlers , which have been collecting the data for over 10 to 12 years and are available at the common crawl corpus. although the xlm-t transformer @xcite ) was tested, it was found to be pre-trained with only up to 30 languages, while the xlm-r @xcite was pre-trained with approximately 100 languages. consequently, to maintain the project's global inclusivity, it was deemed necessary to employ the xlm-r transformer instead. it is good to note that during its release, the bert was considered state-of- ## experimental setup since no other data is available, the training data was split up into two sets, one for training and the other for testing, in the ratio of 70:30. as the data needed to be preprocessed, unwanted elements such as the username handles and urls were removed. different bert models are trained with the split training data and are experimented with the split testing data among which the roberta model was exceptionally better than other models. hence, the roberta model was finalised and used for testing the final test data provided by the organiser. the test data had additional languages such as hindi, arabic, dutch, and korean for which training data were not provided. so it was a separate challenge to overcome. but since the roberta is already pre-trained in hundreds of languages, it was able to overcome the shortcomings a bit. analysing the tweets of individual languages, more than 90% of the tweets have less than 20 tokens. chinese and korean languages are relatively shorter than other languages because the languages use ideographs instead of alphabets like other languages. tweets in hindi have approximately 15 tokens. the metrics that were considered for the evaluation were pearson's correlation coefficient, which is often referred to as pearson's r. the pearson's r or correlation coefficient, is defined as the ratio of the covariance of the two variables in question in the numerical dataset normalised to the square roots of their variances. mathematically, it is the division of the covariance of the two variables by the product of their standard deviations. a pearson correlation value of -1 indicates that it is perfectly negatively correlated, i.e., like the hour of the day and the remaining hours of the day, where if one increases, the other will decrease in the same quantity. a positive pearson the coefficient value indicates that the value is positively correlated but not perfectly, i.e., when the quantity of food eaten is increased and the feeling of having eaten well is increased, after a certain point the feeling disappears. a negative pearson the correlation value indicates that the value is negatively correlated, like the speed of the vehicle and the time taken to reach the destination, but the values don't increase or decrease in exact quantity. lastly, if the pearson value is 0, then the value is said to be independent, i.e., the quantity of food eaten and the score obtained in exams. therefore, the closer the value is to +1 or -1, the greater is their dependence. formula of pearson correlation coefficient. ## error analysis during the development of the multilingual tweet intimacy analysis model, external data was utilized for testing purposes. however, it would have been advantageous to incorporate a manually created bulk external dataset to ensure the model's robustness prior to publication. unfortunately, due to a last-minute error, the submission was limited to a single submit, which constrained testing opportunities. to enhance the model's performance, black box testing could have been conducted to provide additional insights into the model's behavior. furthermore, data augmentation techniques could have been explored as a means of improving the model's performance by generating additional training data. implementing these measures could have potentially resulted in the multilingual tweet intimacy analysis model achieving higher extremes than its current iteration. it is notable that this model exhibits a lower pearson correlation coefficient when tasked with languages that incorporate characters that are not analogous to those found in the english language. the intention is to enhance the language model to achieve the highest possible accuracy. ## conclusion the xlm-t transformer @xcite was considered as a baseline model recommended in the dataset paper, and it could have improved the metrics better than the current model. it is a pre-trained model on millions of tweets specifically in over thirty languages and provides a twitter sentiment analysis dataset in over eight languages in which it was trained, giving it a slight advantage over other models. despite the short period, the accuracy was increased to the maximum possible level. the dataset will be improved further to maximize the pearson coefficient to at least 0.90 and develop a web application to deploy the model to end-users, which could detect intimate tweets just by providing the tweet's url and a single click. additionally, the application could be extended to report a twitter user when there are frequent tweets of highly intimate nature in real-time without any delays, making it easier for users to access and utilize the application. the scope of the analyzer will be extended to audio files, enabling it to be implemented in podcasts and live broadcasts to censor or report the contents of intimate conversations. furthermore, media files sent along with the tweet will also be captured to gain additional insights into whether the tweet is intimate or not. this will involve stepping into computer vision and enhancing the features of the application from that point on. since twitter doesn't currently open their api access, the approach currently used is web scraping to get the tweet context from the twitter using the snscrape , a social networking service scraper (justanotherarchivist, 2018) and analyse the tweet using this model. the data collected is not used for development , training or commercial purposes and the data collected is neither saved nor displayed anywhere in the system. once the twitter api is open to public, it was be enhanced in future instead of the web scraping technique of snscrape.