Where Does mBERT Understand Code-Mixing? Layer-Dependent Performance on Semantic Tasks

Semantic tasks like lexical relation prediction and word analogy are crucial for deep language understanding, yet pose significant challenges when applied to code-mixed text, where multiple languages are interwoven. This study investigates the ability of multilingual BERT (mBERT) to capture semantic nuances in code-mixed scenarios (English-Spanish and English-Telugu) through layer-wise probing across four distinct tasks: lexical relation prediction, word analogy prediction, sentiment analysis, and intent classification. We employ probing classifiers trained on representations extracted from each of mBERT’s 12 layers to assess semantic knowledge capture throughout the model. Our comprehensive experiments reveal that mid-level layers (approximately 4-7) generally exhibit the strongest performance for tasks like lexical relation and intent classification in code-mixed settings. However, performance varies significantly by task, with sentiment analysis proving particularly challenging (achieving near chance-level accuracy), highlighting mBERT’s limitations in capturing certain code-mixed semantic subtleties. This work contributes a multi-task layer-wise analysis of mBERT’s semantic capabilities on code-mixed data, providing insights into optimal layer usage and pinpointing areas requiring further research for robust multilingual, code-mixed natural language understanding.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3594135
Primary Topic
Speech and dialogue systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Where Does mBERT Understand Code-Mixing? Layer-Dependent Performance on Semantic Tasks

Sandeep Kumar, Aruna Malapati, Arun K. Somani
IEEE Access
Speech and dialogue systems
article

Where Does mBERT Understand Code-Mixing? Layer-Dependent Performance on Semantic Tasks

Sandeep Kumar, Aruna Malapati, Arun K. Somani
article en

Abstract

Semantic tasks like lexical relation prediction and word analogy are crucial for deep language understanding, yet pose significant challenges when applied to code-mixed text, where multiple languages are interwoven. This study investigates the ability of multilingual BERT (mBERT) to capture semantic nuances in code-mixed scenarios (English-Spanish and English-Telugu) through layer-wise probing across four distinct tasks: lexical relation prediction, word analogy prediction, sentiment analysis, and intent classification. We employ probing classifiers trained on representations extracted from each of mBERT’s 12 layers to assess semantic knowledge capture throughout the model. Our comprehensive experiments reveal that mid-level layers (approximately 4-7) generally exhibit the strongest performance for tasks like lexical relation and intent classification in code-mixed settings. However, performance varies significantly by task, with sentiment analysis proving particularly challenging (achieving near chance-level accuracy), highlighting mBERT’s limitations in capturing certain code-mixed semantic subtleties. This work contributes a multi-task layer-wise analysis of mBERT’s semantic capabilities on code-mixed data, providing insights into optimal layer usage and pinpointing areas requiring further research for robust multilingual, code-mixed natural language understanding.

IEEE AccessVol. 13
Birla Institute of Technology and Science - Hyderabad Campus (IN)
Reduced inequalities
Openalex Percentile: Top 91%
Speech and dialogue systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.