研究:Transformer嵌入的余弦相似度主要反映文本长度而非同质化
Embedding Cosine Measures Text Length Before It Measures Homogenization
对606万条Reddit评论的分析显示,未经句子相似度训练的编码器做均值池化后,平均余弦相似度主要随文本长度变化:将评论从10词截断到150词,余弦相似度上升幅度是原报告"断裂"的8倍。等长随机替换的安慰剂实验复现了81%的不对称性,固定内容模拟复现78%;处理长度因素后,各编码器下的不对称性均消失。对31项研究的普查指出,风险集中在各向异性编码器与时间序列或长度不等设计相遇之处。
arXiv:2611.21519v2 Announce Type: replace Abstract: Mean pairwise cosine similarity between transformer embeddings is a standard measure of whether online discourse is converging under generative AI. When the embeddings are mean-pooled outputs of an encoder never trained for sentence similarity, this measure mostly tracks text length. In 6.06 million Reddit comments, an uncentered DeBERTa-v3 measure had suggested that only conservative discourse broke toward homogeneity after late 2022. Truncating the same comments from 10 to 150 words raises their mean cosine by eight times the reported break. A placebo that swaps every comment for a random one of equal length reproduces 81% of the asymmetry, and a fixed-content simulation reproduces 78%. The leading principal direction carries 99.9% of raw DeBERTa homogeneity, and once length is handled the asymmetry disappears under every encoder. On 575,000 Stack Exchange answers the measure reports a post-ChatGPT homogenization of technical sites that the placebo fully reproduces, although answers grew longer. A census of 31 studies locates the risk where anisotropic encoders meet time-series or length-unequal designs. A reverse control on a well-known experiment shows that centering with renormalization can reverse a genuine effect. We propose a low-cost diagnostic protocol. Corrected measures show that the two political camps converged between 2019 and 2022 and stopped converging before ChatGPT. Cross-camp replies engage their targets more closely than same-camp replies.
来源:arXiv (AI + Vision + Imaging) · arxiv.org