Where Language Lives: Investigating Code-Switching Across Modalities in Small Vision-Language Models

Code-switching is the alternation between two languages within a single utterance. It happens constantly in everyday speech and text, and increasingly in images too, such as a screenshot of a Hinglish tweet or a photo of a handwritten note. In vision-language models (VLMs), we do not know whether a model reads that text using the same attention heads it would use for plain text tokens, or whether reading language through pixels calls on a different set of heads entirely. We are not aware of prior work that tests this directly for code-switched content, comparing the same sentence as text and as a rendered image at head-level granularity. We test this with a three-condition design (A = text, B = image+query, C = image-only) on real Hindi-English and Spanish-English code-switched sentences, rendered as images and evaluated across four open, sub-3B VLMs spanning three decoder lineages. Using gradient-based head-importance scoring (LAHIS), we find that two of the four models keep text and image pathways separate, one nearly merges them for Hindi, and one shows no strong pattern either way. All four vision encoders can already tell Latin from Devanagari script by their first layer, though how well varies widely across models (0.63-0.99 peak balanced accuracy). Which heads a model treats as language-important tracks decoder lineage more closely than vision encoder or language competence. The overlap falls as lineage distance grows, from 18 of 20 shared heads for a same-lineage pair down to zero for the most distant pair. With only four models, this is an observation rather than an independently replicated finding. Zero-ablating these heads shifts output script well above a random-head control in every model tested, which indicates these heads causally affect the output script rather than merely correlating with it. We release the pipeline, the code-switched corpus, and the per-head results.

Authors

Publication Details

Journal
arXiv
Published
2026-12-02
DOI
https://doi.org/10.48550/arxiv.2612.03605
Primary Topic
Multimodal Machine Learning Applications
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Where Language Lives: Investigating Code-Switching Across Modalities in Small Vision-Language Models

Akshata
arXiv
Multimodal Machine Learning Applications
preprint

Where Language Lives: Investigating Code-Switching Across Modalities in Small Vision-Language Models

Akshata
preprint en

Abstract

Code-switching is the alternation between two languages within a single utterance. It happens constantly in everyday speech and text, and increasingly in images too, such as a screenshot of a Hinglish tweet or a photo of a handwritten note. In vision-language models (VLMs), we do not know whether a model reads that text using the same attention heads it would use for plain text tokens, or whether reading language through pixels calls on a different set of heads entirely. We are not aware of prior work that tests this directly for code-switched content, comparing the same sentence as text and as a rendered image at head-level granularity. We test this with a three-condition design (A = text, B = image+query, C = image-only) on real Hindi-English and Spanish-English code-switched sentences, rendered as images and evaluated across four open, sub-3B VLMs spanning three decoder lineages. Using gradient-based head-importance scoring (LAHIS), we find that two of the four models keep text and image pathways separate, one nearly merges them for Hindi, and one shows no strong pattern either way. All four vision encoders can already tell Latin from Devanagari script by their first layer, though how well varies widely across models (0.63-0.99 peak balanced accuracy). Which heads a model treats as language-important tracks decoder lineage more closely than vision encoder or language competence. The overlap falls as lineage distance grows, from 18 of 20 shared heads for a same-lineage pair down to zero for the most distant pair. With only four models, this is an observation rather than an independently replicated finding. Zero-ablating these heads shifts output script well above a random-head control in every model tested, which indicates these heads causally affect the output script rather than merely correlating with it. We release the pipeline, the code-switched corpus, and the per-head results.

arXiv
Multimodal Machine Learning Applications
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.

Laika access coming soon