Enhancing Multilingual Language Models for Code-Switched Input Data

Katherine Xie, Nitya Babbar, Vicky Chen, Yoanna Turura
3/11/2025
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Code-switching, or alternating between languages within a single conversation, presents challenges for multilingual language models on NLP tasks. This research investigates if pre-training Multilingual BERT (mBERT) on code-switched datasets improves the model's performance on critical NLP tasks such as part of speech tagging, sentiment analysis, named entity recognition, and language identification. We use a dataset of Spanglish tweets for pre-training and evaluate the pre-trained model against a baseline model. Our findings show that our pre-trained mBERT model outperforms or matches the baseline model in the given tasks, with the most significant improvements seen for parts of speech tagging. Additionally, our latent analysis uncovers more homogenous English and Spanish embeddings for language identification tasks, providing insights for future modeling work. This research highlights potential for adapting multilingual LMs for code-switched input data in order for advanced utility in globalized and multilingual contexts. Future work includes extending experiments to other language pairs, incorporating multiform data, and exploring methods for better understanding context-dependent code-switches.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xie2025enhancing,
  title  = {Enhancing Multilingual Language Models for Code-Switched Input Data},
  author = {Katherine Xie and Nitya Babbar and Vicky Chen and Yoanna Turura},
  year   = {2025},
  eprint = {2503.07990},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.07990v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.07990.svg)](https://codeofpaper.com/paper/2503.07990)

Discussion