Code-Mixed Probes Show How Pre-Trained Models Generalise On Code-Switched Text

Frances A. Laureano De Leon, Harish Tayyar Madabushi, Mark Lee
3/7/2024
cs.CL

Official code: francesita/code-mixed-probes (4 stars, last commit 2025-07-14).

Abstract

Code-switching is a prevalent linguistic phenomenon in which multilingual individuals seamlessly alternate between languages. Despite its widespread use online and recent research trends in this area, research in code-switching presents unique challenges, primarily stemming from the scarcity of labelled data and available resources. In this study we investigate how pre-trained Language Models handle code-switched text in three dimensions: a) the ability of PLMs to detect code-switched text, b) variations in the structural information that PLMs utilise to capture code-switched text, and c) the consistency of semantic information representation in code-switched text. To conduct a systematic and controlled evaluation of the language models in question, we create a novel dataset of well-formed naturalistic code-switched text along with parallel translations into the source languages. Our findings reveal that pre-trained language models are effective in generalising to code-switched text, shedding light on the abilities of these models to generalise representations to CS corpora. We release all our code and data including the novel corpus at https://github.com/francesita/code-mixed-probes.

View on arXivView PDF

Code Implementations(1)

This repository consists of the code and data used for the COLING-LREC 2024 paper 'Code-Mixed Probes Show How Pre-Trained Models Generalise On Code-Switched Text '.

40PythonFeb 22, 20241 years ago

Cite this paper

@article{leon2024codemixed,
  title  = {Code-Mixed Probes Show How Pre-Trained Models Generalise On Code-Switched Text},
  author = {Frances A. Laureano De Leon and Harish Tayyar Madabushi and Mark Lee},
  year   = {2024},
  eprint = {2403.04872},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.04872v2}
}

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/2403.04872.svg)](https://codeofpaper.com/paper/2403.04872)

Discussion