(a) Toy example in 3D: a = (M, 1, 2) and b = (M, −2, 1)

Drag the diagram to rotate. Adjust M below to change the vectors.
5.0
Cosine (all dimensions)
Cosine (massive dimension zeroed)0.00
Share of squared length in the massive dimension

(b) Real numbers: mean cross-lingual cosine, before and after zeroing the top dimension

Figure 4. How a single large dimension distorts cosine similarity. (a) The vectors a = (M, 1, 2) and b = (M, −2, 1) are displayed at equal lengths to emphasise direction. The dashed vectors a′ and b′ have their first coordinate set to zero and are orthogonal (cosine 0). As M increases, a and b align with the same axis and their cosine approaches 1, while a′ and b′ remain unchanged. (b) Zeroing the top dimension lowers mean cross-lingual cosine from about 0.96 to 0.65 in Gemma 3 4B and 12B. In Gemma 3 1B, it raises cosine from 0.54 to 0.64 because that dimension is large in some languages but small in others. Qwen and Llama change little.