Basics · Cased vs Lowercased Proper Nouns, 6L vs 12L Budget & ## Splits (67.20 MB WASM q8 · Apache-2.0)

Inside Cased DistilBERT: Proper-Noun Disambiguation & 6-Layer Trade-Off

Compare Proper-Cased vs Lowercased prompts across 5 minimal pairs (Apple, Amazon, March, Bank, Nature), measure the 6-layer (~65M, 67.20 MB) vs 12-layer (109M, 110.34 MB) speed/size/entropy budget in distilbert/distilbert-base-cased (Xenova/distilbert-base-cased, Apache-2.0), and contrast whole-word vs ## continuation splits.

Why do_lower_case: false Matters at 6 Layers: DistilBERT Base Cased keeps Apple, Amazon, and March distinct across its 28,996-piece vocabulary while cutting encoder depth from 12 layers to 6 (67.20 MB vs 110.34 MB). Lowercasing preserves [MASK] intact while stripping entity case cues.

1. Cased vs Lowercased Proper-Noun Disambiguation (5 Pairs)

Cased #1–
Lowercased #1–
Top-1 prob shift–
Entropy delta–
## Subword delta–
NaN score check–

Proper-Cased Top-5 + WordPiece Chips

Run comparison above to inspect cased predictions.

Lowercased Top-5 + WordPiece Chips

Run comparison above to inspect lowercased predictions.
5-pair cased vs lowercased comparison across English entity contexts
Pair Cased #1 (Prob) Lowercased #1 (Prob) Prob Shift ## Conts (Cased → Lower) Entropy Delta
Click "Benchmark All 5 Minimal Pairs" above to compare live.

2. 6-Layer vs 12-Layer Budget & Casing Fertility Probe

Measure live 6-layer WASM latency, WordPiece fertility, ## continuation share, and full-vocab entropy across 6 casing styles, alongside the 12-layer google-bert/bert-base-cased teacher reference budget (109M params, 110.34 MB).

Styles scored–
Mean 6L latency–
6L vs 12L Artifact67.20 MB (-39%)
Mean fertility–
Mean ## / UNK–
Total NaN / Total ms–
WordPiece token fertility, ## continuation ratio, entropy, and latency across casing styles
Style Prompt ([MASK]) Top-1 Fill Fertility (tok/word) ## Conts / UNK Entropy / ms
Initialize the model above to measure 6-layer speed and fertility.

3. Whole-Word vs Subword-Split (## Continuation) Sensitivity

Contrast a space-separated [MASK] slot against an inline prefix-attached slot (bio[MASK], under[MASK], micro[MASK]) to watch WordPiece switch into ## continuation completions.

Whole-Word Top-5 (–)

Run comparison above.

Subword-Split Top-5 (–)

Run comparison above.

4. Inspect Case Sensitivity & 6L Budget Analyzers

Show the code · distilbert-cased-core.mjs — analyzeCaseSensitivity()
Show the code · distilbert-cased-core.mjs — analyzeLayerBudgetComparison()