# Embedding Cosine Measures Text Length Before It Measures Homogenization

埋め込みのコサイン類似度は、動質化より先にテキスト長を測ってしまう

Fengming Liu · arXiv · 2026年11月16日

- **課題** 平均ペアワイズのコサイン類似度は、生成AI以降の言論の収束を測る指標として使われていますが、平均プーリングのエンコーダでは、まずテキストの長さを捉えてしまいます。
- **手法** 同じコメントの長さを変えて長さだけを保つ対照実験と、内容を固定したシミュレーションを作ります。そのうえで、長さで層化した測定により、同じ二重差分を推定し直します。
- **結果** Reddit・DeBERTaの生の測定では、長さだけを保つ対照で、観測された非対称性の81%を再現できました。長さの五分位で層化すると、DeBERTaの推定値は3.96 SDから1.09 SD（p=0.26）に下がりました。

## 長さが動質化の測定を揺らす問題

オンラインの言論が生成AI以降に動質化したかを測るため、Transformerの埋め込みに対する平均ペアワイズのコサイン類似度を使う研究が増えています。この論文は、平均プーリングされたエンコーダの出力では、この指標が動質化よりも先にテキストの長さを追跡すると主張しています。著者らは、同じコメントで長さだけを変えても同じ方向の変化が生じる点を問題として扱っています。

## 生の動質性指標の構造

セル内の正規化された埋め込みx\_iについて合計ベクトルs = Σ x\_iを置くと、生の動質性Hは(s⊤s − n)/(n(n−1))の形で書け、nが大きいとき平均ベクトルの長さの二乗にほぼ等しくなります。そのため、埋め込みに共通成分があるとHは大きくなります。著者らはこの式に基づき、共通ベクトルを引いて再正規化する中心化測定と、単語数の五分位ごとに計算する長さ層化測定を比べています。長さ層化測定は中心化を行わず、五分位ごとのHを等しい重みで平均します。

![Table 1: Right×post difference-in-differences (right-flaired users in r/AskConservatives against left-flaired users in r/AskALiberal), in SD units of each seri…](https://refivu.com/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f/figures/figure-27c77de4519b64c678237dbb92dac80c.png?thumb=512)

**Table 1** : Right×post difference-in-differences (right-flaired users in r/AskConservatives against left-flaired users in r/AskALiberal), in SD units of each series in 2021–22. The corrected measure averages uncentered pairwise cosines within global word-count quintiles. Newey–West standard errors with six lags. ∗∗p \< .01,∗p \< .05,†p \< .10. Columns other than “mpnet (all)” use the stratified sample of 915,225 comments, and “mpnet (all)” uses all 6,056,593.

[出典](https://arxiv.org/abs/2611.21519v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fengming Liu · Embedding Cosine Measures Text Length Before It Measures Homogenization · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

![Figure 5: Right×post difference-in-differences with 95% Newey–West intervals, in SD units of the 2021–22 series. Black is raw cosine, orange the length-only pl…](https://refivu.com/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f/figures/figure-a0d48542c6985033d32b6d75390aca17.png?thumb=512)

**Figure 5** : Right×post difference-in-differences with 95% Newey–West intervals, in SD units of the 2021–22 series. Black is raw cosine, orange the length-only placebo, blue the placebo-partialled series, green diamonds the corrected measure, and grey the centered and renormalized variants.

[出典](https://arxiv.org/abs/2611.21519v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fengming Liu · Embedding Cosine Measures Text Length Before It Measures Homogenization · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

## 同じテキストの長さを変える実験

150単語以上のコメント20,000件を、先頭の10、20、40、80、150単語に切り詰めました。内容は同じままで長さだけを変えています。DeBERTaの測定値は0.904から0.968へ0.064上昇しました。これは報告された保守派・リベラル派の分断0.0081の8倍です。BGEも0.452から0.612へ大きく上がり、mpnetは0.125から0.151の範囲でほぼ横ばいでした。

![Figure 1: Mean pairwise cosine of the same 20,000 com- ments truncated tokwords. Content is held fixed and only length changes](https://refivu.com/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f/figures/figure-e29733ad40da0201dbb62a432092ec1e.png?thumb=512)

**Figure 1** : Mean pairwise cosine of the same 20,000 com- ments truncated tokwords. Content is held fixed and only length changes.

[出典](https://arxiv.org/abs/2611.21519v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fengming Liu · Embedding Cosine Measures Text Length Before It Measures Homogenization · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。

## 長さだけを保つ対照と内容固定のシミュレーション

長さだけを保つ対照では、各コメントを、半音オクターブ単位で同じ単語数区間にあるランダムなコメントに置き換えます。その結果、主題、イデオロギー、時期の情報は失われます。この対照によるDeBERTaの二重差分は平均0.0072で、観測された0.0089の81%を再現しました。内容固定のシミュレーションでは、一つのプールから同じ主題と著者を抽出し、長さの分布だけを観測値に合わせて切り詰めました。DeBERTaでは0.0069となり、観測値の78%を再現しました。この二つの結果はDeBERTaの生の測定に関するものです。BGEでは、シミュレーションの割合が96%でした。

![Figure 2: Observed DeBERTa raw homogeneity (black) and the mean of fifty length-only placebo series (orange). Dashed line marks December 2022](https://refivu.com/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f/figures/figure-af2e082849995e806ed79f24130018d3.png?thumb=512)

**Figure 2** : Observed DeBERTa raw homogeneity (black) and the mean of fifty length-only placebo series (orange). Dashed line marks December 2022.

[出典](https://arxiv.org/abs/2611.21519v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fengming Liu · Embedding Cosine Measures Text Length Before It Measures Homogenization · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。

![Figure 3: Fixed-content simulation. Two groups draw comments from one pool. Group A’s comment length falls by 30% across 2019–20 and then stays flat, group B’s…](https://refivu.com/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f/figures/figure-f54c9d79d7d5064d28a5352e77d5e747.png?thumb=512)

**Figure 3** : Fixed-content simulation. Two groups draw comments from one pool. Group A’s comment length falls by 30% across 2019–20 and then stays flat, group B’s stays constant. Dotted lines are linear trends fitted on the pre-December-2022 period. Mean of twenty runs.

[出典](https://arxiv.org/abs/2611.21519v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fengming Liu · Embedding Cosine Measures Text Length Before It Measures Homogenization · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

## 主成分方向に含まれる長さの信号

ペアワイズの平均は、固有ベクトルの方向ごとの寄与の和として正確に分解できます。DeBERTaの生の動質性の99.9%は第一主成分の方向にありました。この方向の月次系列は、平均対数長さと強く結びついていました。中心化後は長さの信号が主成分2〜5の帯域へ移るため、方向を取り除くだけでは長さの問題は解決しません。

![Figure 6: Spectral decomposition ofH. Left, share of mean homogeneity carried by each band of principal directions of the pooled second moment. Right, share of…](https://refivu.com/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f/figures/figure-ed263b95ac9c80072ef164e96f557a8c.png?thumb=512)

**Figure 6** : Spectral decomposition ofH. Left, share of mean homogeneity carried by each band of principal directions of the pooled second moment. Right, share of the raw De- BERTa Right×post difference-in-differences (2019 base- line) carried by each band, withp-values.

[出典](https://arxiv.org/abs/2611.21519v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fengming Liu · Embedding Cosine Measures Text Length Before It Measures Homogenization · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

## Stack Exchangeでも同じ失敗

Stack Exchangeの575,000件の回答では、ChatGPT以降、Super UserとUnix & Linuxの生のDeBERTa動質性がそれぞれ1.62 SD、1.63 SD上昇しました。同じ期間に回答の長さも増えていたため、この変化は長さの対照にも現れました。技術系サイトと人文系サイトの差について長さ補正後のDeBERTa推定値を見ると、0.73 SDから残差−0.50 SD（p=0.20）に変わり、動質化は確認できませんでした。

## 中心化と再正規化の逆効果

Doshi and HauserのAI支援による短編実験を、同じエンコーダで計算し直しました。生の埋め込みでは、3つのエンコーダすべてで効果が残りました。しかし中心化の後に再正規化を行うと、符号が反転しました。BGEは−0.39 SD、mpnetは−0.23、DeBERTaは−0.30 SDでした。著者らは、AI条件のベクトルが平均により近く、再正規化によってその短い残差が単位長に引き伸ばされると解釈しています。

## 限界

Newey–West検定は、この設計では過剰に棄却します。変化のない設計でも、10〜15%の試行がp\<0.05で棄却されました。したがって、p値が0.02付近の結果は弱い証拠として捉えるべきです。分析はRedditとStack Exchangeの二つのプラットフォームでのみ行われており、エンコーダや長さの分布が異なるデータでは、アーティファクトの大きさや符号が変わる可能性があります。

![Figure 4: Calibration of the stylized scenario. Left, spurious difference-in-differences on the raw measure as a function of the early length decline in group…](https://refivu.com/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f/figures/figure-d9d1e68cb4ebb0fcb8659ba16bb68fff.png?thumb=512)

**Figure 4** : Calibration of the stylized scenario. Left, spurious difference-in-differences on the raw measure as a function of the early length decline in group A (mean and 5th–95th percentile over twenty runs). Right, share of runs rejecting atp \< .05.

[出典](https://arxiv.org/abs/2611.21519v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Fengming Liu · Embedding Cosine Measures Text Length Before It Measures Homogenization · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

## 論文情報

- **著者**: Fengming Liu
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月16日
- **登録日**: 2026年11月18日
- **更新日**: 2026年11月16日
- **バージョン**: v1
- **arXiv**: 2611.21519
- **カテゴリ**: cs.CL · cs.CY · cs.SI
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.21519v1) · [PDF ↗](https://arxiv.org/pdf/2611.21519v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

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. I 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.

## この論文を引用

Fengming Liu (2026). Embedding Cosine Measures Text Length Before It Measures Homogenization. arXiv:2611.21519v1. https://arxiv.org/abs/2611.21519v1

**BibTeX**

```
@misc{liu2026embedding,
  title = {{Embedding Cosine Measures Text Length Before It Measures Homogenization}},
  author = {Fengming Liu},
  year = {2026},
  eprint = {2611.21519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21519v1}
}
```

## この論文の用語

- [DeBERTa-v3-base](https://refivu.com/ja/terms/8a8aa04a0acc-deberta-v3-base)

## ほかの論文解説

- [Centered Ablation: Why Last-Layer Directional Ablation Under-Fires or Collapses, and a Closed-Form Fix](https://refivu.com/ja/papers/e522068b-b9e0-411d-8146-73a3b153eaba-centered-ablation-why-last-layer-directional-ablation-under.md)
- [MathaMAGICal: Validating Trajectory Data Attribution During Capability Acquisition](https://refivu.com/ja/papers/252d859f-2169-4bfd-a6f9-a0e232f2c999-mathamagical-validating-trajectory-data-attribution-during.md)
- [Delayed Effects of Temporary Weight Decay in Muon Pretraining](https://refivu.com/ja/papers/c8f38eb0-af09-4136-b73f-cd4f12a55a5f-delayed-effects-of-temporary-weight-decay-in-muon.md)
- [CoReMem: Cost-Internalizing Memory for Successive Coding Tasks with Prospective Valuation](https://refivu.com/ja/papers/e104c90e-8d89-4dc7-99ab-fd5ebe5db15e-coremem-cost-internalizing-memory-for-successive-coding.md)
- [Science Prediction Universe](https://refivu.com/ja/papers/a7e7d76f-1d7b-492e-912f-84d45d06f6fb-science-prediction-universe.md)
- [Saidzoda-Kazakh-EmbeddingGemma-300M: How Far One Epoch of Generated Questions Takes a Small Kazakh Embedder](https://refivu.com/ja/papers/991d9c84-6b81-4d5d-b542-862e08290fa8-saidzoda-kazakh-embeddinggemma-300m-how-far-one-epoch.md)
- [Almost Controlled: The FDR of Benjamini-Hochberg on Weighted Conformal p-Values](https://refivu.com/ja/papers/67933ded-b4ac-4ad4-8798-567c2f63909e-almost-controlled-the-fdr-of-benjamini-hochberg-on.md)
- [Multi-CONDOR: Learning Multistable Motion Primitives from Demonstration](https://refivu.com/ja/papers/a0e9dd9a-72f5-4996-b6e1-093315cbe221-multi-condor-learning-multistable-motion-primitives-from.md)
- [WiTac: Wrist-Informed Tactile Representations for Contact-Rich Manipulation](https://refivu.com/ja/papers/bb927319-1baf-480e-ba83-7f0d6d19233c-witac-wrist-informed-tactile-representations-for-contact.md)
- [POKE: Probe Offline, Keep Efficiently for Vision-Language-Action Models](https://refivu.com/ja/papers/f89bbf6a-69ff-4426-9edc-d43a8fad8607-poke-probe-offline-keep-efficiently-for-vision-language.md)
- [Towards wearable-scale, transition-aware sleep staging for clinical populations](https://refivu.com/ja/papers/ed739a4e-22d2-4172-9287-af014ff5c456-towards-wearable-scale-transition-aware-sleep-staging-for.md)
- [GRACE: Parallel Best-of-N Multi-Agent Analysis of Closed-Form Questions over Dataframes with Guardrail Selection and Adaptive Retry](https://refivu.com/ja/papers/4c0246c8-5ab8-438c-9f8c-5b30e61374e1-grace-parallel-best-of-n-multi-agent-analysis.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f-embedding-cosine-measures-text-length-before-it-measures)
