mlsanityData to 14 Oct 2026

CSWBench: Evaluating Context-Sensitive Code-Switching in Creative Writing

arXiv 2610.20272 ↗First posted 14 Oct 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have demonstrated multilingual capabilities across diverse language generation and understanding tasks. Yet effective code-switching requires more than multilingual proficiency: models must decide when, where, and why to switch languages in ways that fit the surrounding context. This context-sensitive ability remains insufficiently evaluated. We introduce CSWBench, a benchmark for evaluating context-sensitive code-switching in creative writing through two complementary settings: Focused Narrative and Extended Narrative. We further propose CSWEval, a theory-informed framework with two complementary levels: event-level evaluation of Licensing, Contextual Appropriateness, and Functional Gain, and whole-text evaluation of task-specific quality---overall literary and narrative quality in Focused Narrative and quality emphasizing multilingual organization in Extended Narrative. Evaluating twelve LLMs, we find that models exhibit meaningful but uneven code-switching competence across narrative contexts. Model differences are particularly pronounced in multilingual literary integration, while multilingual-focused dimensions show stronger difficulty effects overall than the general narrative dimensions; narratively salient switches are associated with stronger contextual and functional realization; and event-level CS quality is moderately associated with whole-text performance.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 50 references that are in the map. First posted on arXiv 14 Oct 2026.

Builds on

16 of 50 references.

References · 16

  1. 2023Art or Artifice? Large Language Models and the False Promise of Creativitycited by 172
  2. 2020GLUECoS : An Evaluation Benchmark for Code-Switched NLPcited by 102
  3. 2020LinCE: A Centralized Benchmark for Linguistic Code-switching Evaluationcited by 93
  4. 2022Of Human Criteria and Automatic Metrics: A Benchmark of the Evaluation of Story Generationcited by 75
  5. 2023Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languagescited by 51
  6. 2021ASCEND: A Spontaneous Chinese-English Dataset for Code-switching in Multi-turn Conversationcited by 44
  7. 2025LitBench: A Benchmark and Dataset for Reliable Evaluation of Creative Writingcited by 42
  8. 2025Shifting Long-Context LLMs Research from Input to Outputcited by 14
  9. 2025SwitchLingua: The First Large-Scale Multilingual and Multi-Ethnic Code-Switching Datasetcited by 14
  10. 2025Lost in the Mix: Evaluating LLM Understanding of Code-Switched Textcited by 10
  11. 2025CodeMixBench: Evaluating Code-Mixing Capabilities of LLMs Across 18 Languagescited by 10
  12. 2025Minimal Pair-Based Evaluation of Code-Switchingcited by 8
4 more
  1. 2025Beyond Monolingual Assumptions: A Survey of Code-Switched NLP in the Era of Large Language Models across Modalitiescited by 5
  2. 2026Can Large Language Models Understand, Reason About, and Generate Code-Switched Text?cited by 5
  3. 2025Conditioning LLMs to Generate Code-Switched Textcited by 3
  4. 2026OLA: Output Language Alignment in Code-Switched LLM Interactionscited by 3

Built on by

Not cited yet.