Metraipolis › archive › dc_0bf1261993d0
When Cosine Similarity Fails to Reflect Linearly Accessible Structure in Dialogue Models — arXiv:2609.22522
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.22522
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-09T06:49:31.834Z
- SHA-256 of the archived text
7e8e2c3f54d934d68ca087c38f35b9e094b94e986eefc27b86b2afee42c2a9a2- Stable URL of this page
https://metraipolis.com/documento/dc_0bf1261993d0
How to cite
When Cosine Similarity Fails to Reflect Linearly Accessible Structure in Dialogue Models — arXiv:2609.22522 — arXiv (en), https://arxiv.org/abs/2609.22522 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0bf1261993d0 (Metraipolis archive dc_0bf1261993d0, sha256 7e8e2c3f54d934d68ca087c38f35b9e094b94e986eefc27b86b2afee42c2a9a2)
BibTeX
@misc{dc0bf1261993d0,
title = {When Cosine Similarity Fails to Reflect Linearly Accessible Structure in Dialogue Models — arXiv:2609.22522},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.22522},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0bf1261993d0; sha256 7e8e2c3f54d934d68ca087c38f35b9e094b94e986eefc27b86b2afee42c2a9a2},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.22522. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Cosine similarity is widely used to analyze transformer representations, implicitly assuming that similarity reflects task-relevant structure. We study when this assumption fails in dialogue-conditioned large language models. Across three 7-8B chat-tuned models, ambient cosine similarity substantially underestimates linearly decodable persona structure on the same hidden states; numerically, linear probe AUC is in the 0.73-0.97 range while cosine kNN is in the 0.56-0.77 range on a 30-class task. A low-dimensional supervised subspace recovers much of this gap, whereas a matched-rank PCA subspace does not and in some cases degrades performance. This mismatch is regime-dependent: it is absent in single-sentence sentiment classification (SST-5), and a matched-cardinality control rules out attribute cardinality as a confound. The gap does not systematically increase across dialogue turns, and the task-aligned subspace remains stable over time. However, two of three models violate a pre-registered within-subspace separability invariance criterion (|Delta AUC| <= 0.03), and one model violates a pre-registered turn-invariance criterion (|Delta L| <= 0.05). These results show that cosine similarity can fail to reflect task-aligned structure in dialogue representations even when that structure is linearly accessible. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-22 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.22522 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-09T06:48:44.935Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-22?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).