use case · multi-model · Ettin-Decoder-150M ↔ Ettin-Encoder-32M · controlled scientific head-to-head

Causal Decoder vs Bidirectional Encoder Head-to-Head

The Ettin suite (JHU CLSP, MIT) was specifically trained as matched encoder/decoder twins sharing the exact same 2-trillion-token data mixture and exact same 50,368-token ModernBERT vocabulary. Pit Stage 1 (Ettin-Decoder-150M) — seeing ONLY the left prefix before [MASK] — against Stage 2 (Ettin-Encoder-32M, 38.81 MB WASM) — seeing BOTH left and right context — and measure exact bits of right-context information gain (ΔH) and full-vocabulary KL divergence live on your device!

1. Initialise Both Paired Ettin Twins

Stage 1 · Causal Decoder · Ettin-Decoder-150M (144.31 MB WebGPU q4f16 / 230.82 MB WASM q4)

Stage 2 · Bidirectional Encoder · Ettin-Encoder-32M (38.81 MB CPU WASM q8)

2. Choose or Write a [MASK] Sentence

Stage 1 · Causal Decoder Input (Left Context ONLY)

Stage 2 · Bidirectional Encoder Input (Left + Right Context)

Initialise both Ettin-Decoder-150M and Ettin-Encoder-32M above to measure right-context information gain.

Decoder Entropy (Left Only)–
Encoder Entropy (Left+Right)–
Info Gain ΔH (Bits)–
Full-Vocab KL(Enc ‖ Dec)–
Decoder / Encoder Latency–

Stage 1 · Causal Decoder Top-10 (Left Only)

Waiting for Stage 1 forward pass…

Stage 2 · Bidirectional Encoder Top-10 (Full Context)

Waiting for Stage 2 forward pass…

3. Exact Rank-Shift & Candidate Probe Table (Shared 50,368 Vocab)

Because both Ettin twins share identical BPE token IDs, we look up each Encoder top-10 token inside the Decoder's full 50,368-token distribution to measure exact rank shift and probability boost contributed by the right-hand context.

Encoder Top-10 tokens compared against their exact probability & rank in the Causal Decoder
Token (Shared ID) Encoder Rank Encoder Prob Decoder Rank Decoder Prob Prob Gain Rank Jump
Run Head-to-Head (Both Twins) to compute exact 50,368-vocabulary rank shifts.
Targeted candidate word comparison (word-initial BPE token probability in both twins)
Candidate Word Token ID Decoder Prob (Left) Encoder Prob (Left+Right) Ratio (Enc / Dec)
Run Head-to-Head to inspect candidate words across both twins.