Papers · 2025 · Reading: 24 min, plus 3 in closed details.
Paper · ICLR 2026 (poster) · arXiv 2507.11412

Seq vs Seq: An Open Suite of Paired Encoders and Decoders (Ettin)

Orion Weller, Kathryn Ricci, Marc Marone, Antoine Chaffin, Dawn Lawrie, Benjamin Van Durme
Johns Hopkins University (CLSP) with LightOn (Antoine Chaffin) · July 2025 (arXiv v1 15 July 2025; v2 12 March 2026)

In one line: With size, data, data order and recipe held fixed (six pairs, 17M to 1B, single runs), native encoders beat their paired decoders on MNLI and MS MARCO and decoders win the generative average at every size. Training on the other objective for 2.5% of pretraining leaves the classification gap open at every size and the generation gap open from 150M up (level up to 68M), while on retrieval the converted decoder ends within noise of the encoder at 17M and 1B. The largest size ratio at which a native encoder beats a native decoder is about 2.7x, not an order of magnitude.

91.3 vs 89.9 MNLI accuracy
the 400M encoder against the 1B decoder, same data and recipe
the abstract's example; the biggest size ratio a native model wins at is 2.7x, not 10x · Table 9
42.2 vs 41.4 nDCG@10
MS MARCO dev at 400M: encoder against the decoder given 50B tokens of MNTP
the retrieval gap the adaptation leaves; 0.1 at 1B and reversed at 17M · Table 9
59.0 vs 52.2 generative average
the 1B decoder against the 1B encoder given CLM continued training
the widest gap; the smallest models are within 0.6 points of each other · Figure 1

How far to trust it: Believe the direction: with data, order and recipe held fixed, encoders win classification and retrieval and decoders win generation, at every size. Treat the size of the gaps as provisional (single runs, no error bars), the retrieval claim as within noise at 1B, the 1B generation gap as measured on a third of the data and a third of the adaptation budget, and the SciQ and SIQA nuance as a table mix-up. The evidence, judged.

The idea in one sentence: train an encoder and a decoder as an exact pair (same size, data, data order and recipe; only the attention mask and the objective differ) at six sizes from 17M to 1B, then convert each into the other with 2.5% more training; the encoder wins classification and retrieval and the decoder wins generation at every size, a native encoder beats decoders up to about 2.7 times its size, and the conversion does not close the classification gap at any size or the generation gap from 150M up, while on retrieval it brings a decoder to within noise of the encoder at the smallest and largest sizes.

The figure: every model of the suite drawn to scale, one slab per layer, each slab as wide as the model's hidden size (Table 1), then the paper's three headline scores as the encoder's lead over its paired decoder at each size (Table 9, the table version of the paper's Figure 1).

  1. Six pairs, to scale. Each pair side by side, the encoder (blue) on the left and the decoder (orange) on the right, from 7 layers of width 256 at 17M to 28 layers of width 1,792 at 1B. The two members of a pair have identical configurations.
  2. Same data, same order, same recipe. One stream of about 2T tokens, in one batch order, feeds both members of every pair (the 1B pair got a third, 667B). Only the attention (both ways or left only) and the objective (MLM or CLM) differ.
  3. Classification: the encoder leads at every size. Encoder minus decoder on MNLI accuracy: +1.9 at 17M, up to +3.6 at 150M, +1.9 at 1B.
  4. Retrieval: the same order. On MS MARCO dev nDCG@10 the encoder leads by 1.65 to 2.31 points at every size.
  5. Generation: the decoder leads, more with size. On the ten-task generative average the bars hang below: the decoder leads by 1.3 at 17M and 8.3 at 1B.
  6. About 2.7 times its size, not an order of magnitude. The 400M encoder (91.3 on MNLI) beats the 1B decoder (89.9), and the 150M encoder (89.2) the 400M decoder (88.2). No pair of sizes in Table 9 supports a larger ratio.

You need: the model families and their masks and objectives (causal LM, masked LM, prefix LM; Families and objectives) and what an encoder is used for in retrieval (Embedding models); this page is the paper. New terms: Ettin (the suite: six encoder and decoder pairs); MNTP (masked next-token prediction: a masked token predicted from the previous position's hidden state, LLM2Vec's way to make a decoder bidirectional); encoder-from-decoder, decoder-from-encoder (a finished model trained further on the other side's objective and mask); cross-objective budget (50B tokens, 2.5% of pretraining).

Problem

§1 Introduction, §2 Related work

The field moved from encoder-only models such as ELMo and BERT to decoder-only, GPT-style models because decoders generate text so well (§1). With little new encoder development, the part of the community that does classification, retrieval or fast on-device inference still runs models from 2019: in March 2025 alone, BERT-base had 90 million downloads on Hugging Face (§2). Encoder development mostly stalled; ModernBERT, the strongest recent attempt to revive it, did not release its training data (§2).

Meanwhile a belief spread that decoders can simply be adapted to encoder jobs (classification, embeddings), often zero-shot. Decoders are more studied, more over-trained (Chinchilla) and larger, and adapted decoders now top leaderboards such as MTEB that used to belong to encoders (§1). Whether that is the right call had never been cleanly testable: every earlier comparison of the two kinds (DeBERTa against GPT-2 in similar sizes, for instance) used models with different parameter counts, architectures, training recipes, pretraining data and tokenizers, and the attempts to control for this used very little pretraining data (§2).

The gap: a suite of encoders and decoders that share everything except the thing being compared, trained to state-of-the-art quality so the comparison means something, with all the data open.

One toy document; the probabilities in the last step come from this page's trained toy models.

The grid is the attention mask: a filled cell means the token in that row may read the token in that column. Arrows run from the position whose output is scored to the token it must predict. Masked positions are drawn from the paper's rates (30% MLM, 15% MNTP) on this one sentence, so the counts move by a token or two from the rate.

Idea: train every model twice, changing two things

§3.3, Table 1 caption

Ettin (named for a two-headed giant of Norse myth: two language-model heads) trains each size twice from scratch, with the same architecture, the same data, in the same order, with the same hyperparameters. The only differences between the two members of a pair are (§3.3, Table 1):

  • the attention pattern: bidirectional for the encoder, causal (each token sees only its left) for the decoder;
  • the objective: masked language modelling (MLM) for the encoder, masking 30% of tokens and 15% in the final decay phase (footnote 6); causal language modelling (CLM, next-token prediction) for the decoder.

The masks and objectives in general, with their own visuals: Families and objectives; the animation on the right shows only what Ettin does with them.

Then each finished model is trained further on the other side's objective (§3.5): a decoder continued with MNTP (masked next-token prediction, below) becomes an encoder-from-decoder; an encoder continued with CLM becomes a decoder-from-encoder. Four kinds of model per size. The animation runs one toy sentence through all four objectives; the first two are the pair, the last two the conversions.

Step by step, for the objective chosen on the right

  1. The document. A toy document: two facts, then one restated. A decoder reads it as it is, with nothing hidden.
  2. The attention mask: causal. Each token may read only itself and the tokens to its left: the lower triangle. Row i never sees column j > i.
  3. Every position predicts the next token. The output at position i is scored on token i + 1. Every one of the 14 positions gives a loss, from "ann" after [BOS] to [EOS] after the last full stop.
  4. Asked about "blue" in the restatement. The decoder reads its prediction for "blue" at the position before it, "bob", having seen only the left context, which here contains the answer: bob blue box. Live probability from this page's small toy decoder.

The counter that matters most is the share of tokens that produce a loss. A decoder learns from every token; an encoder only from the masked ones. That is the paper's own explanation (in §6) for why a concurrent study at a small budget reached the opposite verdict: CLM is more data-efficient per token, an advantage that fades with enough data.

The suite: six sizes, two of everything

§3.2, Table 1, Appendices C and D

ModernBERT has two sizes, so Ettin designs new shapes for the others, roughly doubling at each step and matching common encoder sizes (§3.2). The small models follow MobileLLM's advice to go deep and thin; the 1B keeps the 400M's 28 layers and widens instead. The six shapes are drawn to scale in the first figure. The 150M and 400M shapes are ModernBERT-base and -large exactly (both 149.0M and 394.8M in Table 11).

Recounted here from each model's released configuration on Hugging Face (jhu-clsp/ettin-encoder-* and ettin-decoder-*; vocabulary 50,368, tied embeddings, no biases, a GLU feed-forward whose input projection is 2 × the intermediate size, LayerNorms without bias, the first layer's attention norm skipped): every total, embedding and non-embedding count reproduces Table 11 to its printed 0.1M, independently, once the prediction head (dense layer, norm and output bias, 0.1M to 3.3M) is left out, as Table 11 does. The encoder and decoder configurations of each size differ only in the causal flags. Learning rate, weight decay and warmups are Table 1's.

Every other choice is ModernBERT's block (Table 12), with one change: local and global layers share one rotary base.

The block in full (Table 12, Appendix C)

The rest is ModernBERT's block (Table 12, Appendix C): rotary positions (no position embeddings) with the base raised to 160,000, pre-norm LayerNorm, a GELU GLU feed-forward, no biases, an embedding norm, sliding-window attention of 128 tokens in two layers of every three, the ModernBERT tokenizer, and a context of 1,024 tokens growing to 7,999. The only change from ModernBERT is that local and global layers use the same rotary base.

The recipe: ModernBERT's, with open data

§3.1, §3.3, §3.4, Table 2

One recipe for both sides, the three-phase schedule open-data decoders use and ModernBERT followed, with a trapezoidal learning rate (§3.3). Data comes from the sources open decoders train on, chiefly OLMo's: DCLM plus curated Dolma v1.7 sources at first, then the filtered DCLM and other higher-quality Dolmino sources that the OLMo 2 paper introduced for its decay phase (§3.1; footnote 5: the unfiltered data ablated worse).

Three phases: 1.7T tokens of base pretraining on a broad mix, 250B of context extension to 8,000 tokens with the noisiest sources dropped, and a 50B decay on long, higher-quality data.

The three phases in full: data, context, schedule
  1. Base pretraining, 1.7T tokens. Warmup of both learning rate and batch size, then the stable phase, on a broad mix: DCLM (49.1%), Common Crawl head, StarCoder code, Reddit, peS2o papers, arXiv, math, StackExchange, a little Wikipedia, books, news and Tulu FLAN.
  2. Context extension (mid-training), 250B tokens. Sequences up to 8,000 tokens; RoPE base to 160,000 for global and local layers (RoFormer); the noisiest sources dropped (older Dolma Common Crawl, CC News, general StackExchange) and filtered DCLM, math and StackExchange added; an inverse-square-root schedule from the peak learning rate to half of it.
  3. Decay, 50B tokens. One more inverse-square-root decay, to 0.02 of the peak, following the ProLong recipe: more long-context data such as Dolma books, Wikipedia and open textbooks.

It differs from ModernBERT in five deliberate ways, chiefly open data and no model merging, so the comparison stays clean.

The five differences from ModernBERT

Five deliberate differences from ModernBERT (§3.4): open data; decay during context extension; no model merging (for a clean comparison; footnote 7 guesses a merge would add "another point or two"); 15% masking in the decay phase instead of 30%; the same rotary base for local and global layers.

Open everything. Checkpoints every 8.5B tokens, 236 per model (236 × 8.5B = 2,006B, the whole 2T run), plus the training data and the exact batch order, so anyone can pinpoint what a model learned between two checkpoints (§3.3), as Pythia did for decoders.

Not quite 2T for every size
Only the appendix says it: there was not enough compute to train the 1B models to the full 2T tokens, so both 1B models (and their cross-objective runs) got a third of the data, 667B tokens instead of 2T (Appendix E). The paper notes 667B is still past Chinchilla-optimal and still beats 1B models trained longer. Each model trained on one node of 4 H100s: about 6 days of pretraining for the 17M model, about 40 days for the 1B.

Cross-objective training: can you convert one into the other?

§3.5

Because large decoders are trained much longer than encoders ever were, it has become common to adapt them to encoder tasks (§3.5). The paired models make that testable: take the final model of each kind and continue pretraining it on the reverse objective.

  • Encoder-from-decoder: bidirectional attention and MNTP, following LLM2Vec: a token is masked, but its prediction is read from the hidden state of the previous position, so the decoder's habit of predicting the next token from the current position is kept. 15% masking, "a middle ground" (footnote 10).
  • Decoder-from-encoder: causal attention and CLM.
  • Budget: 50B tokens each way, on the decay phase's high-quality data (seen a second time, which earlier work found harmless for two repetitions; footnote 8), with a new trapezoidal schedule: 3B tokens of warmup, 10B of decay. For the 1B models this is scaled by a third again (footnote 9), about 16.7B tokens. Either way it is 50B / 2T = 2.5% of pretraining, which the authors call the realistic setting: adaptation always uses little data compared with pretraining.

The figure on the right takes the six pairs of the first figure through both conversions, with the paper's results before and after (Table 9).

  1. A finished decoder gets the encoder's job. Each decoder (orange) is trained further with bidirectional attention and MNTP on 50B tokens of the decay data, 2.5% of its pretraining: it becomes an encoder-from-decoder (green).
  2. Classification: the gap stays. Outlined bars: the encoder's MNLI lead over the decoder, before conversion. Solid green bars: its lead over the encoder-from-decoder, after. Between +1.8 and +3.7 either way, and larger after at 400M and 1B.
  3. Retrieval: MNTP closes most of it. On MS MARCO the encoder's lead falls from 1.65 to 2.31 points to between −0.08 (17M, where the converted model is ahead) and +0.80 (400M).
  4. The other way: a finished encoder gets the decoder's job. Each encoder (blue) is trained further with causal attention and CLM on the same budget: a decoder-from-encoder (gold).
  5. Generation: level up to 68M, behind from 150M. Outlined: the decoder's lead over the encoder, 1.3 to 8.3. Solid gold: its lead over the decoder-from-encoder, −0.3, +0.6 and −0.3 up to 68M, then +2.6, +4.0 and +6.8.
  6. The widest gap is the least-trained pair. The 1B models were pretrained on 667B tokens, not 2T, and converted on about 16.7B (below): the 6.8-point gap at 1B comes with a third of the budget.
"Far more than previous work", but not 5 times
The paper says LLM2Vec trained "around 10B tokens" (§3.5), and the old version of this page turned that into "about 5x the token budget LLM2Vec used". LLM2Vec's own paper and configuration say otherwise: its MNTP step is 1,000 steps of 32 sequences of at most 512 tokens on Wikitext-103 (LLM2Vec §2 and D.1.1; MNTP config), at most 1,000 × 32 × 512 = 16.4M tokens, and even its supervised contrastive stage is 1,000 steps of 512 × 512. Ettin's 50B is roughly 3,000 times LLM2Vec's MNTP budget, which makes the negative result stronger, not weaker.
a decoder is given 50B tokens of bidirectional MNTP training, 2.5% of its pretraining. On MNLI, how much of its gap to the paired encoder does that close?

Evaluation

§4, §4.2, Appendices B and F
  • Encoders: GLUE (fine-tuned), MTEB v2 English, MLDR for long-context retrieval and CodeSearchNet for code retrieval, with ModernBERT's exact evaluation setup (§4.1). GLUE reports the best of 160 fine-tuning runs per model; retrieval is fine-tuned on MS MARCO.
    The sweep and the retrieval script

    GLUE sweeps 5 learning rates, 4 weight decays, 2 batch sizes and 4 epoch settings, 160 runs per model, and reports the best score per task (Appendix F). Retrieval is fine-tuned on MS MARCO with a new script (ModernBERT's precise scores could not be reproduced), with more negatives, which raised every model's scores.

  • Decoders: zero-shot, closed-book tasks of the EleutherAI harness from the Pythia and SmolLM papers: ARC (the average of Easy and Challenge), HellaSwag, LAMBADA, OpenBookQA, PIQA, SciQ, Social IQA, TriviaQA, Winogrande and WSC (§4.1, Appendix B).
  • Across the divide (§4.2): decoders are fine-tuned on MNLI and MS MARCO like encoders; encoders run the generative tasks with the method of Samuel (2024): append three [MASK] tokens and an end token, predict the first mask, append it, repeat. Two tasks needed adjustments because encoders are not calibrated on where the end token goes (TriviaQA stops on a newline instead; LAMBADA does not score the end token). The Train the pairs tab animates this method on the toy models.

Results 1: one recipe, state of the art on both sides

§4.1, Tables 3 and 4

Before comparing the two kinds, the paper shows its recipe favours neither, by beating the best open models of each kind at each size (§4).

  • Encoders (Table 3): Ettin-Enc-150m against ModernBERT-base: 88.9 against 88.4 GLUE average, 54.0 MTEB v2 (a tie); Ettin-Enc-400m against ModernBERT-large: 90.8 against 90.4. The small ones beat distilled baselines without distillation: the 68M scores 87.2 GLUE against DistilRoBERTa's 83.8. The gains are larger at bigger sizes, which the paper puts down to the small baselines being heavily optimised with distillation; MiniLM L12 also has nearly twice the 32M's non-embedding parameters (21M against 12M; footnote 12).
  • Decoders (Table 4): the 150M averages 46.2 against SmolLM2-135M's 45.2; the 1B 59.0 against Llama 3.2 1B's 56.6 and OLMo 1B's 55.1. The 400M ties SmolLM2-360M at 53.1. Few small decoders exist: the 17M's only peer is Pythia-14M, likely a debug run (footnote 13), and there is none at 32M.

So "matches or beats" is fair on both sides at every size where a peer exists, from a single recipe. It is also the first public, open-data replication of ModernBERT. The tables are sortable in The paper's tables, rebuilt.

Results 2: encoders against decoders

§4.2, Figure 1, Tables 5, 8 and 9

Three representative scores: MNLI accuracy (classification), MS MARCO dev nDCG@10 (retrieval) and the average of the ten generative tasks (§4.2). Figure 1 is rebuilt on the right from Table 9, its table version; the figure's own vector coordinates, decoded from the arXiv HTML, agree with Table 9 to the last printed digit.

  • Classification: encoders win at every size, and conversion does not help. The 150M encoder scores 89.2 on MNLI against the 400M decoder's 88.2; the 400M encoder 91.3 against the 1B decoder's 89.9 (the abstract's example). The encoder-from-decoder stays within a point of the decoder it started from and is below it at 400M (87.6 against 88.2) and 1B (89.0 against 89.9).
  • Retrieval: the same order, but conversion helps. MNTP lifts the decoder by 1.5 to 1.9 nDCG@10 at every size, yet the 400M encoder still leads its encoder-from-decoder, 42.2 against 41.4. The paper calls the difference "not as pronounced as in classification"; it is 0.1 at 1B and reversed at 17M (31.01 against 30.93).
  • Generation: decoders win, and converting an encoder scales badly. The decoder-from-encoder is level with the decoder up to 68M (36.7 against 36.4 at 17M, 42.1 against 41.8 at 68M) and 6.8 points behind at 1B (52.2 against 59.0).
The paper's own Figure 1 (image)
Solid lines never cross: the encoder (blue) leads on MNLI and retrieval, the decoder (orange) on generation, at every size
Three panels against model size from 17M to 1B on a log axis. MNLI accuracy: encoders (solid blue) above decoders (solid orange) at every size, decoder-from-encoder (dotted blue) between them, encoder-from-decoder (dotted orange) on top of the decoder. Retrieval, MS MARCO dev nDCG@10: encoders on top, encoder-from-decoder just below them, decoders and decoder-from-encoder lower. Generative average: decoders on top, widening from 150M to 1B, with the encoder and both conversions below
Notice the dotted lines: on MNLI the encoder-from-decoder sits on the decoder it started as; on generation the decoder-from-encoder falls behind the decoder from 150M up; only on retrieval does MNTP lift a decoder close to the encoder. Figure 1 of the paper (arXiv 2507.11412v2), by Weller, Ricci, Marone, Chaffin, Lawrie and Van Durme, CC BY 4.0; rebuilt with its numbers in the chart beside this section.
the old summary said encoders beat decoders "an order of magnitude larger" on classification and retrieval. What is the largest size ratio at which a native encoder beats a native decoder in Table 9?

The nuance inside the generative average (§4.2, Table 8). The paper says encoders used generatively beat decoders on the more classification-like tasks, "such as ARC and SciQ" (400M: ARC 35.6 against 33.6), while decoders gain hugely on HellaSwag, TriviaQA and Social IQA. ARC holds. The SciQ and Social IQA part does not survive a check of Table 8 against Table 4:

Table 8 swaps two columns for the decoder rows
Table 8 orders its columns "SIQA, SciQ"; Table 4 orders them "SciQ, SIQA". Every decoder and decoder-from-encoder row of Table 8 carries Table 4's values in Table 4's order (the 400M decoder: 91.8 then 45.5), so under Table 8's headers the decoder appears to score 91.8 on Social IQA, a three-way task where the encoder rows sit at 34 to 46. Read consistently, the 400M decoder scores 91.8 on SciQ against the encoder's 65.6, and 45.5 on Social IQA against 43.9. SciQ is one of the decoder's biggest wins, not an encoder win, and Social IQA is close. The paper's sentence matches Table 8 read naively. Toggle the reading in the tables tab.

Harder tasks at 1B (Table 5, added in v2): the decoder-from-encoder scores 37.0 against the decoder's 27.0 on "MMLU CS", but 18.9 against 32.0 on GSM8k. The paper reads this as the same split: the converted encoder wins classification and loses generation. Two cautions: the table does not define "MMLU CS" (a computer-science subset of MMLU, or MMLU as a classification task; the old page called it "MMLU classification"), and 27.0 is barely above the 25% chance level of four-way multiple choice, as the authors expect when they say most of their models are too small for signal on these tasks.

Case study: gender bias with identical data

§5, Figures 2 and 3, Table 10

Because both kinds saw the same data, differences in learned bias come from the objective (§5). The test is the "Gotcha" split of WinoGender: 240 sentences, half with a female and half with a male stereotypical pronoun (nurse: female). Most of the small models are at chance on the real coreference task (Table 10), so the case study uses an easier one: predict the pronoun itself, with a [MASK] for encoders and the lower-perplexity sentence for decoders, and count male, female and neutral answers.

The paper's reading: encoders are "much more likely to use a gender neutral pronoun overall"; both lean male, "if slightly higher for decoders"; female pronouns become more common with size, steadily for decoders and "more stochastic" for encoders. The decoded figure supports this on average (neutral 37.0% of answers for encoders against 21.5% for decoders; male 55.9% against 67.7%) and up to 150M, but at 400M and 1B it reverses: the decoders choose neutral pronouns more often (30.8% and 30.0% against 22.9% and 24.6%) and the encoders choose male more often (69.2% and 59.6% against 53.7% at both sizes). Each bar is one model on 240 sentences, so a share has a standard error of about 3 points.

Figure 2 rebuilt from its vector coordinates in the arXiv HTML; every share is a whole number of the 240 sentences (shown on hover). The labels of the figure's own size axis read 66M for the 68M models.

How much of this to believe

§4.2, §5, Tables 5, 8, 9; Appendix E

What holds up, and why. The design is the strongest part: the two members of a pair have identical released configurations apart from the causal flags (checked above), the same data in the same order and the same hyperparameters, and both sides are competitive with the best open models of their kind, so neither looks starved. The direction of the main result is the same at all six sizes: encoders ahead of their paired decoders on MNLI by 1.9 to 3.6 points (Table 9); decoders ahead on the generative average by 1.3 to 8.3 over the encoder. At about 9,800 MNLI dev examples a single accuracy has a binomial standard error of about 0.32 points, and a difference between two models about 0.45 (derived; the paper gives no error bars), so the MNLI gaps are 4 to 8 standard errors wide; a ten-task generative average has a standard error of about 0.42 (from the standard split sizes of the ten tasks), about 0.6 for a difference, so the 6.8-point generation gap at 1B is about 11 of them.

Where the evidence is weaker.

  • Single runs, best-of-sweep scores. No table reports seeds or spreads. GLUE scores are the best of 160 fine-tuning runs per model, picked on the reported dev sets (Appendix F); retrieval picks the best of four learning rates on MS MARCO dev, the set Figure 1 reports. This is the same for every model, so it inflates all of them, but it also hides how much a single comparison could move.
  • The retrieval claim sits inside the noise at the ends. The encoder's lead over the encoder-from-decoder is 0.80 nDCG@10 at 400M, 0.11 at 1B and minus 0.08 at 17M. With 6,980 MS MARCO dev queries and per-query nDCG@10 between 0 and 1, the standard error of a difference is at most about 0.85 points. "Not enough to match" is supported only as "not clearly ahead".
  • The 1B generation gap is measured on less data. The 1B models pretrained on a third of the tokens and their conversion got a third of the 50B (Appendix E, footnote 9). "Decoders-from-encoders scale poorly" rests mostly on the 1B point (gaps of 2.6 at 150M, 4.0 at 400M, 6.8 at 1B), which differs from the others in budget as well as size.
  • Generation by mask filling is a workaround. Encoders run generative tasks through the three-mask method with task-specific changes for TriviaQA and LAMBADA (Appendix B); part of the generative gap may be the method rather than the model. The authors say the setup "still could be improved".
  • The table mix-up and the size claim. The SciQ and Social IQA nuance comes from Table 8's swapped columns (above). Figure 1's caption reverses its own example ("a 400M decoder outperforming the 1B encoder"; the text and abstract have it the right way round), and its "order of magnitude" is at most 2.7x in the data. The introduction says "10 models (5 pairs)"; Table 1 and the release have 6 pairs.
  • The gender result changes sign with size (above), from one model per size on 240 sentences.
A smaller point: inconsistencies in the recipe's numbers
  • Small inconsistencies in the recipe's numbers. Table 2's decay mixture sums to 76.3B tokens against the 50B in the text, and the repository's README lists the decay data as 100B; the table samples and repeats sources to hit the stated counts, so the 50B is probably what was trained on. Table 5's "MMLU CS" is never defined.

In the authors' favour: they release every model, checkpoint, the data and the batch order, so each of these points can be checked; they state that the 1B run was cut to a third, that the setup for generative encoders is imperfect, that most models are too small for MMLU or GSM8k, and that a concurrent study disagrees; and they run 300+ GPU hours on DeBERTa-v2-XXL before excluding it for size rather than leave out an unflattering baseline silently.

Verdict
Believe the direction: with data, order and recipe held fixed, encoders win classification and retrieval and decoders win generation, at every size from 17M to 1B, and 2.5% of pretraining spent on the reverse objective does not turn one into the other. Treat the size of the gaps as provisional (single runs, no error bars), the retrieval part as within noise at 1B and 17M, the "scales poorly" part as confounded by the 1B models' smaller budget, the SciQ and Social IQA nuance as a table mix-up, and the gender result as a pattern that reverses at the two largest sizes.

What it takes to use this

Appendix E, repository README
  • Code and licence: the repository is MIT-licensed; training uses the authors' bert24 fork of the ModernBERT code, and encoder generative evaluation uses their lm-evaluation-harness fork.
  • Models: 24 on Hugging Face (jhu-clsp), every size of all four kinds, plus raw checkpoints.
  • Hardware to reproduce: one node of 4 H100s per model; about 6 days of pretraining for the 17M and about 40 days for the 1B (Appendix E).
  • When it pays off: for classification, retrieval or embeddings at 1B or below, start from the encoder of the size you can serve; on this paper's numbers a decoder 2.7 times its size still trails it on MNLI, and MNTP conversion buys 1.5 to 1.9 nDCG@10 on retrieval but nothing on classification. For generation, use the decoder. The 150M and 400M encoders are drop-in, open-data equivalents of ModernBERT-base and -large with the same shapes. The cross-objective models are for research; the README says they "generally underperform native models".
Loading the models, and how well the training used its GPUs
  • Model names: 24 on Hugging Face (jhu-clsp): six encoders, six decoders and twelve cross-objective models (named ettin-enc-from-dec-* and ettin-dec-from-enc-* on the Hub; the README's longer names do not resolve), plus raw checkpoints in jhu-clsp/ettin-checkpoints and training-stage tags (step*, ext*, decay*) on each model.
  • Software: encoders load as ModernBERT (transformers 4.48 or later); decoders need the ModernBERT-decoder class, in transformers 4.54 or later according to the README. Encoders' classification head pools by mean; the retrieval script pools decoders by the last token.
  • Utilisation (derived, not stated): 6 × 16.8M × 1.7T ≈ 1.7 × 1020 FLOPs in 6 days is about 8% of the four GPUs' dense BF16 peak (989 TFLOP/s each), and the 1B's 6 × 1.03B × 567B ≈ 3.5 × 1021 in 40 days about 26%; small models use the hardware poorly (MFU accounting: Performance math).

Why it matters (beyond the paper)

This is the cleanest evidence to date in the encoder-against-decoder debate: with data, recipe and size held fixed, the objective and the attention pattern alone create task-specific advantages that 50B tokens of the other objective do not erase. The practical reading the authors draw (§6): for classification and retrieval at 1B or below, a native encoder beats decoders larger than itself, so fine-tuning an encoder (for transcript or intent classification, say) remains the right default rather than adapting a small decoder LLM. MTEB-style leaderboards are topped by adapted decoders of 7B or more because no large encoders exist; the authors predict a natively trained encoder of about 3B would beat them. That is a forecast, not a measurement: no model above 1B was trained.

The disagreement. Concurrent work by Gisserot-Boukhlef et al. (2025) found that starting from CLM and then continuing with MLM was better "in nearly all cases". Its pretraining used about 100B tokens; Ettin's authors argue that is the regime where CLM's per-token data efficiency (a loss on every token, against MLM's 15 to 30%) dominates, and that the advantage disappears at state-of-the-art scale (§6). Both studies are consistent with an objective effect that depends on the token budget; neither tests the crossover directly.

A research platform. The suite (paired open-data models at six sizes, 236 checkpoints each, the replayable batch order) is a successor to Pythia for studying how objectives shape learning, with the gender-bias study as a first example. The mechanism at toy scale: the BERT page trains a bidirectional encoder against a left-to-right twin; this page's Train the pairs tab adds what is specific to Ettin: four models from one recipe, conversion in both directions, and an encoder generating by filling masks.

Since the paper (sources read 3 October 2026)
  • The authors' follow-up mmBERT builds a multilingual encoder on the same recipe and reports encoders beating encoders-from-decoders at scale as well.
  • The GLUE evaluation guide's quick-start example still reads "TODO" in the repository (fetched 3 October 2026).

Connections

  • BERT (2018): the encoder lineage Ettin modernises, and the masked-LM objective of every Ettin encoder.
  • GPT-3 (2020): the decoder shift this paper interrogates.
  • OLMo 2 (2025): supplies the DCLM, Dolma and Dolmino data and the open-artifact philosophy; Pythia inspired the checkpoint and batch-order release.
  • RoFormer (RoPE) (2021): rotary positions, and context extension by raising the rotary base.
  • Chinchilla (2022): training far past compute-optimal is what made decoder adaptation popular.
  • Also: Bitune (bidirectional attention inside a decoder), T5 and Encoder-Decoder Gemma and T5Gemma 2 (the encoder-decoder alternative), The Llama 3 Herd of Models (the Llama 3.2 1B baseline), RAG (dense retrieval, the encoder's main job).
  • External anchors: ModernBERT (Warner et al. 2024, the recipe being replicated), LLM2Vec (BehnamGhader et al. 2024, the decoder-to-encoder adaptation being stress-tested), Pythia (Biderman et al. 2023, the suite-of-checkpoints template).
  • Topics: Topic: llm-training-and-post-training (objectives, the multi-phase recipe, continued pretraining), Topic: rag-and-retrieval (encoder against adapted-decoder embeddings and rerankers, MTEB).