Basics · Mean vs CLS Pooling & 512-Token MPNet Window

Pooling & Context-Window Ablation: Mean @512 vs CLS & 128-tok

sentence-transformers/paraphrase-mpnet-base-v2 pools all attention-masked token states via Mean pooling (1_Pooling/config.json) over a native 512-token window (sentence_bert_config.json). Run live 4-condition ablations below to measure rank drift, separation margins, and how 512 tokens preserve tail paraphrases lost under a 128-token cutoff.

1. Load Model & Select Ablation Pack

2. Live Ablation Telemetry

Official: Mean Pooling @ 512 Tokens

Run ablation to score with Mean pooling (1_Pooling/config.json).

    Ablation: CLS (<s>) Pooling @ 512 Tokens

    Run ablation to compare un-tuned <s> token pooling.

      4-Condition Separation Margin Chart

      Per-Candidate Drift & Token Window Table

      Per-candidate Mean vs CLS and 512-token vs 128-token cosine scores
      ID Role Tokens Mean @512 CLS @512 Mean @128 Δ (512−128)
      Run ablation above to compare all four configurations live.

      Show the Code

      Show the code: MPNet uncased token & 512/128 truncation inspector (worker.js)
      Show the code: Kendall tau, Spearman rho & separation margin math (paraphrase-mpnet-core.mjs)