Basics · Mean vs CLS Pooling, Cased WordPiece & 128-Token Cutoff

Pooling, Casing & Sequence-Limit Ablation: Mean vs CLS

sentence-transformers/distiluse-base-multilingual-cased-v2 uses Mean pooling (1_Pooling/config.json), preserves case (do_lower_case: false), and trains with a 128-token SentenceTransformer window (sentence_bert_config.json). Run 4-condition live ablations across Mean/CLS and 128/512 windows below.

1. Load Model & Select Multilingual Ablation

2. Live Ablation Telemetry

Official: Mean Pooling @ 128 Tokens

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

    Ablation: CLS Pooling @ 128 Tokens

    Run ablation to compare un-tuned [CLS] token pooling.

      4-Condition Separation Margin Chart

      Per-Candidate Drift & Token Cutoff Table

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

      Show the Code

      Show the code: Cased multilingual WordPiece & 128/512 truncation inspector (worker.js)
      Show the code: Kendall tau, Spearman rho & separation margin math (distiluse-core.mjs)