Basics · CLS vs Mean Pooling Drift · Query Instruction · WordPiece Telemetry

BGE Small ZH v1.5: CLS vs Mean Pooling & Retrieval Instruction

Run live forward passes comparing BGE's trained pooling: "cls" against mismatched pooling: "mean", test canonical instruction sensitivity (为这个句子生成表示以用于检索相关文章: ON vs OFF), and inspect live Chinese BERT WordPiece tokenization ([CLS] 101, [SEP] 102, [UNK] 100).

1. Live CLS vs Mean Pooling & Instruction Ablation

2. Pooling & Instruction Comparison

Retrieval Separation Margin

Side-by-side Pooling & Instruction Cards

CLS + Canonical Instruction (Recommended)

Waiting for forward pass…

CLS without Instruction (Raw Query)

Waiting for forward pass…

Mean Pooling (Mismatched) + Instruction

Waiting for forward pass…

3. Per-Passage CJK WordPiece Telemetry & Cosine Drift

Load model to inspect live [CLS]/[SEP]/[UNK] WordPiece tokens from pipe.tokenizer.

Per-passage WordPiece token counts, [UNK] counts, CLS vs Mean cosine scores, and vector drift
Passage Script Tokens [UNK] CLS+Instr CLS Raw Mean+Instr cos(CLS,Mean)
Run ablation above to populate live per-passage scores and WordPiece telemetry.

Show the code

Show the code: CLS vs Mean drift and Kendall/Spearman rank agreement (bge-zh-core.mjs)
Show the code: live WordPiece [CLS]/[SEP]/[UNK] tokenizer inspection (worker.js)