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,…
- arXiv
- 2612.03605
- Authors
- Akshata
- Categories
- cs.CL