Basics · Mean vs [CLS] Pooling, Indonesian Affix Fertility & 128/512 Cutoffs

Pooling Ablation & Indonesian Affix Tokenization Fertility

indobenchmark/indobert-base-p1 is a bare pretrained BertModel: its un-tuned [CLS] token collapses unrelated sentences into a narrow cone, while Mean pooling recovers semantic separation. Below, compare 4 pooling/window conditions and inspect how IndoBERT's 30,521-token WordPiece splits Indonesian me-/di-/ber- affixes.

1. Load Model & Run 4-Condition Pooling Ablation

2. Live Mean vs [CLS] Telemetry

Recommended: Mean Pooling @ 512 Tokens

Run ablation to score with Mean pooling across non-pad tokens.

    Baseline: [CLS] Token Pooling @ 512 Tokens

    Run ablation to observe un-tuned [CLS] anisotropy compression.

      4-Condition Separation Margin Chart

      Per-Candidate Drift & Sequence Cutoff 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.

      3. Indonesian Affix (me-/di-/ber-/ke-..-an) WordPiece Fertility Inspector

      Inspect live uncased Indonesian WordPiece splits ([CLS]=2, [SEP]=3, [UNK]=1, ## continuations) on complex derived Indonesian words, regional terms, and bahasa gaul.

      Indonesian WordPiece subword piece counts, fertility, detected affixes, and exact token chips
      Phrase Words Pieces Fertility Affixes WordPiece Breakdown
      Load the model and click Inspect WordPiece Affix Fertility.

      Show the Code

      Show the code: Indonesian uncased WordPiece & 128/512 truncation inspector (worker.js)
      Show the code: Indonesian WordPiece fertility & affix detector (indobert-core.mjs)
      Show the code: Kendall tau ranking correlation (indobert-core.mjs)