Basics · Mean vs CLS Pooling & 128-Token SentenceTransformer Limit

Pooling & Sequence-Limit Ablation: Mean vs CLS

sentence-transformers/paraphrase-MiniLM-L3-v2 pools all attention-masked token states from its 3-layer encoder via Mean pooling (1_Pooling/config.json) and caps training sequences at 128 WordPiece tokens (sentence_bert_config.json). Run live 4-condition ablations to measure rank drift and tail clipping against CLS and 512-token windows.

1. Load Model & Select Ablation Pack

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: Uncased WordPiece token & 128/512 truncation inspector (worker.js)
      Show the code: Kendall tau, Spearman rho & separation margin math (l3-core.mjs)