Computer Science > Computation and Language
Title:Where Language Lives: Investigating Code-Switching Across Modalities in Small Vision-Language Models
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.
| Comments: | 14 pages, 5 figues, under review |
|---|---|
| Subjects: | Computation and Language (cs.CL) |
| Cite as: | arXiv:2612.03605 [cs.CL] |
| (or arXiv:2612.03605v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2612.03605 arXiv-issued DOI via DataCite (pending registration) |
Submission history
Access Paper:
- HTML (experimental)
Additional Features
- Audio Summary
Current browse context:
References & Citations
- Google Scholar
- Semantic Scholar
BibTeX formatted citation
Bookmark
Bibliographic and Citation Tools
Code, Data and Media Associated with this Article
Demos
Recommenders and Search Tools
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.