Manuscript Offprint

arXiv:2610.29907

Benchmarking Large Language Models for Detecting Satirical Code-Mixed Sentences

Răzvan-Alexandru Smădu, Ioana Buhnila, Daniela Tanase, Dumitru-Clementin Cercel, Florin Pop, Mihaela-Claudia Cercel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Code-switching is a natural linguistic phenomenon, yet its impact on high-level reasoning tasks remains largely unexplored in under-resourced languages like Romanian. Natural language processing tasks, such as satire detection, rely heavily on nuanced cultural and syntactic cues that large language models struggle to capture. In this paper, we investigate four methods (i.e., random replacement, phrase translation, dependency parsing, and large language models) for generating synthetic code-mixed Romanian sentences with English, German, French, and Italian. We start with an existing dataset for satire detection, compiled from Romanian news articles and annotated at the sentence level by humans, and augment it with over 600k samples, namely CS-SeLeRoSa. We provide an in-depth analysis of the dataset generation process. Then, we evaluate several multilingual large language models across zero-shot, chain-of-thought, and fine-tuning regimes on both the synthetic corpus and a human-adjudicated gold benchmark, namely CS-SeLeRoSa-Gold. While older open models suffer substantial degradation (dropping to 37%–55% macro-F1), newer models like Gemma 4 31B achieve 68.1% zero-shot, rivaling frontier models like GPT-5 mini (69.5%). Furthermore, fine-tuning significantly reduces formatting errors and improves the results, increasing Gemma 4 31B to 77.5% on CS-SeLeRoSa and 72.6% on the gold standard, outperforming frontier zero-shot baselines.

1 Introduction

Code-switching or code-mixing is a common phenomenon in multilingual communities in which speakers alternate between two or more languages within the same sentence (Guzmán et al., 2017). While early natural language processing (NLP) and linguistic studies primarily mapped constraints on widely spoken pairs, the structural behavior of code-switching shifts significantly when applied to morphologically rich languages (Myers-Scotton, 1993).

Code-switching was previously explored in the context of satire, irony, and humor detection, but primarily in other combinations, such as Hindi-English (Bansal et al., 2020; Aggarwal et al., 2020; Mazumder et al., 2025) or Spanish-English. For example, Bansal et al. (2020) investigated Hindi-English code-mixed tweets for detecting humor, sarcasm, and hate speech, arguing that code-mixing can be used to emphasize these phenomena. They also show that it can improve the model's performance on downstream tasks. Belani and Flanigan (2023) proposed a dataset generated from transcribing day-by-day conversations for Spanish-English with various labels, including usage of code-mixing for jokes. Pant and Dadu (2020) proposed mapping the code-switched text to a higher-resource language through transliteration and showing improved performance for sarcasm and hate speech detection. However, this remains an underexplored area due to data scarcity. Consequently, many studies, including ours, rely on synthetic generation. This practice has positively spurred the community to develop diverse generation techniques, even

∗^{*}Equal contribution.

though most evaluations continue to focus on downstream tasks using existing, naturally code-mixed text (Aguilar et al., 2020; Sheth et al., 2025).

Mixing Romanian with other European languages is a naturally occurring phenomenon (Wilhelm, 2017; Buzilă, 2025). In the diaspora, many Romanians live, especially in countries such as Germany, France, Italy, Spain, and the UK, making it one of the largest diasporas (OECD, 2019). Therefore, learning these languages is very common. Given these socio-linguistic factors and the scarcity of code-mixed satire data, we study four European languages, namely, English, German, French, and Italian, as target languages for code-switching with Romanian.

Automatic satire detection in news articles was introduced by Burfoot and Baldwin (2009), which defines a satirical article as one that deliberately exposes real-world individuals, organisations or events to ridicule, incorporating devices such as irony and exaggeration. Unlike fake news, which shares similar linguistic features but has divergent intent, satire is often misinterpreted as misinformation (Levi et al., 2019). For the Romanian language, SaRoCo (Rogoz et al., 2021) represents the first dataset for satire news detection, addressing the corpus-level classification. Recently, Smădu et al. (2025) proposed the SeLeRoSa dataset with higher sentence-level granularity. However, the intersection of satire detection with code-mixed text remains largely underexplored.

In this work, we create the first code-switched sentence-level Romanian satirical news dataset, namely CS-SeLeRoSa. It employs four different code-switching methods and four language pairs (English, German, French, and Italian). We provide an extensive analysis of the generated dataset using various metrics and benchmark several LLMs on the code-mixed dataset. We summarize the main contributions of this work as follows:

• We introduce CS-SeLeRoSa, the first synthetic sentence-level code-mixed Romanian satirical news dataset, exploring four generation methods and four language pairs.

• We provide an in-depth linguistic and semantic analysis of the generated dataset across diverse code-mixing metrics.

• We curate a human-adjudicated gold subset, CS-SeLeRoSa-Gold, verified by expert annotators, thoroughly analyzed.

• We benchmark several LLMs on both datasets and evaluate their performance across zero-shot, chain-of-thought, and fine-tuning settings.

References (60)

  • Gemma 4 Technical Report
  • did you really mean what you said?
  • BERTopic: Neural topic modeling with a class-based TF-IDF procedure
  • vorbesti româneste?
  • Răzvan-Alexandru Smădu, Andreea Iuga, Dumitru-Clementin Cercel, and Florin Pop. 2025. Selerosa: Sentence-level romanian satire detection dataset. arXiv preprint arXiv:2509.00893. (opens arXiv in a new tab)
  • Yilun Yang and Yekun Chai. 2025. Codemixbench: Evaluating code-mixing capabilities of llms across 18 languages. Preprint, arXiv:2507.18791. (opens arXiv in a new tab)
  • Wenbo Zhang, Aditya Majumdar, and Amulya Yadav. 2025. Chai for llms: Improving code-mixed translation in large language models through reinforcement learning with ai feedback. Preprint, arXiv:2411.09073. (opens arXiv in a new tab)
  • Satire often occurs sporadically rather than persistently throughout an entire text
  • As presented in §1, Romania has one of the largest diasporas in the European Union, particularly in the countries we investigate for code-switching
  • The French influence, however, was significant at the beginning of the 19th century, as many words entered the language from French
  • Therefore, naturally, we developed a code-switched dataset to address this shortcoming until more reliable resources could be generated
  • This step is important as most machine-translation evaluations are English-centric, and lack pairs such as Ro → X (where X is French, German, Italian)
  • Gemma 3 27B outperforms the other models on all language pairs and metrics
  • >RO → EN</td></tr><tr><td>Gemma 3 12B</td><td>41.04</td><td>67.30</td><td>46.23</td><td>0.89</td></tr><tr><td>Gemma 3 27B</td><td>42.80</td><td>69.37</td><td>43.31</td><td>0.90</td></tr><tr><td>GPT-5 mini</td><td>40.07</td><td>67.60</td><td>46.13</td><td>0.89</td></tr><tr><td colspan=
  • The Multilingual Index (M-Index) (Barnett et al., 2000) measures the language distribution from the text, where 1 indicates an equal distribution of languages
  • On the other hand, BERTScore measures the semantic similarity between two texts based on the pairwise cosine similarity of their embeddings
  • These samples were then filtered to remove instances of unnatural code-switching or significant grammatical errors, resulting in a final set of 391 high-quality code-mixed sentences
  • More specifically, in addition to the columns from the SeLeRoSa dataset (Smădu et al., 2025), our code-mixed dataset adds the following fields for each sample:
  • All models used Romanian in their pre-training data
  • The model was optimized for several languages, including English, German, French, and Italian; however, the training data included more languages, such as Romanian
  • However, we could not find exact details about the data
  • The family introduces a more efficient 26B A4B (i.e., with 3.8B activated parameters) mixture-of-experts model alongside the 31B dense variant
  • Because all base models used the same instruction-fine-tuning data, the observed performance disparities stem from differences in their pretraining strategies, data, and architectures
  • The exact size and nature of the datasets are unknown to the public
  • The selection is grouped by target languages (EN, DE, FR, IT), covering all four generation methods and annotation labels (Satire vs. Regular) with non-trivial examples
  • For the proprietary models, we use the OpenAI API $^{8}$
  • The annotators were provided with detailed guidelines to ensure consistency in their evaluations
  • The full annotation guidelines are provided in the Supplemental Materials
  • Most works limit themselves to fewer criteria (e.g., naturalness and acceptability (Sterner and Teufel, 2025b)) or employ
  • The questions are designed to identify potential misinterpretations of the guidelines and to fix them in a timely manner
  • For example, the phonetic/pronunciation aspect affects how easily integrated a code-switched phrase is in the matrix sentence
  • Specifically, we randomly sampled 50 non-code-mixed Romanian sentences across the test set
  • Note that multiple reasons could lead to a rejected outcome
  • The magnitude and sign of each coefficient ( $\beta_{i}$) indicate the strength and direction of influence for each criterion
  • Higher values indicate a stronger influence on accepting the sample
  • Table 9 presents the logistic regression coefficients learned across target languages and globally
  • Most samples are from LLM and dependency-based generation, while the fewest are from random-based generation
  • Overall, we notice that for methods such as random, the human annotators preferred those with fewer switching points
  • Bold indicates the best performance
  • Gemma 4 31B remains the best-performing model, achieving around 62–63% in both metrics in zero-shot and chain-of-thought settings, and around 72–73% in the fine-tuning setting
  • On the proprietary GPT-4.1 mini model, the gains remain more limited between +2 to +7 points in F1-score
  • 70% in F1-score, and GPT-5 mini outperforms it by 2%
  • Bold indicates the lowest degradation (i.e., best performance) among code-switching methods for each model, while underline indicates the highest degradation (i.e., worst performance)
  • This means that these models rarely miss actual satire (i.e., low FNR), but they constantly misclassify regular news as satire (i.e., high FPR)
  • This difference is highly statistically significant at the instance level for the Gemma
  • The None method indicates the original monolingual baseline
  • RO indicates the original monolingual Romanian baseline
  • Unparseable model outputs are counted as classification errors
  • Fine-tuning drastically reduces the FPR (e.g., Gemma 3 27B drops from 92.0% to 26.1% FPR; RoLlama 3.1 8B drops from 70.5% to 26.1% FPR) but also increases the FNR. As the decision boundary shifts during fine-tuning, the models become more selective and miss some of the harder satire examples
  • Specifically, in the zero-shot setting, the model achieved $61.0_{\pm 0.3}\%$ accuracy and
  • >Zero-Shot</td></tr><tr><td>Predicted Positive</td><td>1,343</td><td>1,325</td><td>1,170</td></tr><tr><td>Predicted Negative</td><td>721</td><td>737</td><td>780</td></tr><tr><td>Unparseable</td><td>8</td><td>10</td><td>122</td></tr><tr><td colspan=
  • This represents a roughly 10 percentage point decrease across both metrics; hence, we further analyze this negative result
  • We use BERTopic (Grootendorst, 2022) to extract the main topics from the text
  • Îmi pot imagina mii de aplicatii pentru aceasta inventie revoluționară
  • Reported Problems and Conditions
  • The reported values represent the average invalid rate across the 3 seeds for open-weights models, and a single run for proprietary models
  • English (EN), German (DE), French (FR), and Italian (IT)
  • Try to mix the languages as naturally as possible, similar to how bilingual speakers would
  • <response>[RĂSPUNS]</response>
  • <response>[RESPONSE]</response>