UltraBERT-JEV: Encoder models for System One Applications

Astarag MohapatraarXiv 2026

TL;DR

UltraBERT-JEV demonstrates that specialized encoder models can outperform larger decoder-based LLMs in "System One" decision tasks—like intent classification or document-based QA—while running more than twice as fast. By using a single forward pass with masked token scoring, the 380M parameter model achieves higher accuracy and better calibration than a 600M parameter decoder, proving that generative models aren't always the best tool for discriminative tasks.

What Problem Does This Paper Address?

In many production AI applications, the goal isn't to generate creative text, but to choose from a fixed set of options: "Is this claim true or false?", "Which department should handle this ticket?", or "Which of these four summaries is most accurate?"

Currently, the industry standard is to use decoder-only models (like GPT or Qwen) to generate an answer and then parse it. This is inefficient for two reasons:

  1. Computational Waste: Decoders are optimized for sequential generation, which is overkill for a single-choice decision.
  2. Architectural Mismatch: Decoders only look "backward" at previous tokens. For tasks requiring deep understanding of a long document to answer a specific question, a bidirectional encoder (which looks at the whole input at once) is theoretically superior.

The authors introduce UltraBERT-JEV, a fine-tuned encoder designed to return a probability distribution over options in a single forward pass, bypassing text generation entirely.

Methods

The core innovation lies in how the encoder "scores" multiple-choice options. Instead of adding a new classification head, the authors utilize the model's existing Masked Language Modeling (MLM) capabilities.

The Input Format

The model receives the context, the question, and a list of options. Each option is preceded by a mask token [M]. The model is then asked to predict whether "yes" or "no" is the most likely token to fill that mask.

Scoring Recipes

The authors compared four "recipes" for converting these mask predictions into a final decision:

  • Yes-logit softmax: Scores options based only on the logit for the word "yes."
  • Yes-minus-no softmax: Scores based on the difference between "yes" and "no" logits. This proved significantly more robust.
  • Sigmoid-norm: Inspired by the expert gates in DeepSeek-V3, this passes the "yes-minus-no" score through a sigmoid function before normalizing. This was the top performer, particularly for calibration.
  • Square-root softplus: An unbounded alternative to the sigmoid.
Figure 1. One row, two ways. The decoder reads the numbered options and writes the number of its answer; the loss is taken over the tokens of that number. The encoder gets a mask in front of each option and scores each option directly. Two of the four recipes are shown: the plain softmax over the options, which scores an option by the “yes” logit alone, and the sigmoid-normalised loss, which scores it by “yes” minus “no”. Each option’s score goes through a sigmoid, and the sum in the denominator keeps the options competing. The other two normalise “yes” minus “no” with a softmax and with a square-root softplus.

Additionally, they added a small auxiliary evidence head that identifies which sentences in the source document support the chosen answer, all within the same single forward pass.

Datasets

The models were trained on the Reason+Long mixture, a collection of 13 datasets including:

  • Intent Routing: CLINC150, MASSIVE, Bitext.
  • Short Reasoning: ReClor, LogiQA 2.0, CosmosQA, PIQA, ANLI, ProofWriter.
  • Long-context Tasks: ContractNLI, MuSiQue, QuALITY, and Nimble.

Evaluation was performed on a held-out test set and six external benchmarks (BoolQ, MMLU, MMLU-Pro, ARC-Challenge, Winogrande, SciQ) to test generalization.

Key Insights and Ideas

  • Bidirectionality is a Superpower: Unlike decoders, the encoder reads the question and the document together. This allows the model to attend to relevant evidence more effectively, which is why it excels at document-heavy tasks like MuSiQue.
  • The "No" Logit Matters: One of the biggest "aha" moments was that subtracting the "no" logit from the "yes" logit provides a much stronger signal than looking at "yes" alone. It acts as a form of contrastive scoring that filters out general token frequency bias.
  • Sigmoid Normalization for Calibration: Using the sigmoid-norm recipe (from DeepSeek-V3) significantly reduced label bias—the tendency of models to favor certain option letters or positions regardless of content.
  • Latency vs. Memory Trade-off: While the encoder is much faster, it doesn't necessarily save memory. Because encoders use full bidirectional attention, the memory required for long sequences can actually be higher than a decoder using KV-caching tricks.

Key Results

The results, summarized in Table 1, show a clear win for the encoder approach at this scale:

  • Accuracy: UltraBERT-380M (Sigmoid-norm) achieved 72.1% test accuracy, outperforming the larger Qwen3-0.6B decoder (67.6%).
  • Speed: On an NVIDIA A100, the encoder took only 29 ms per decision, compared to 68 ms for the Qwen3 decoder.
  • Throughput: In batched mode, the encoder processed 75.5 rows per second, nearly 5x faster than the 0.6B decoder (16.4 rows/sec).
  • Robustness: The Sigmoid-norm recipe was the most stable, with the answer changing only 13.7% of the time when options were reordered, compared to 15.6% for the plain softmax.
Table 1. Matched comparison: average accuracy (%) over training runs. Test ALL is on the test set; Dev ALL and External are on the dev set and the six external benchmarks. Learning rates were chosen on dev. Bold: best below 1B parameters.

Limitations and Future Work

  • Scaling Limits: While the 380M encoder beats a 600M decoder, the authors note that a 4B parameter decoder still holds the lead on complex reasoning tasks (77.3% accuracy). The "encoder advantage" might diminish as models get much larger.
  • Memory Spikes: The lack of a peak-memory advantage at the 380M scale suggests that for very long documents, the quadratic cost of encoder attention remains a hurdle.
  • English Only: The study was limited to English-language models and datasets.
  • Future Directions: The authors suggest exploring even larger encoders and investigating if the evidence head can be used to "shape" the model's decision-making during training, rather than just acting as a post-hoc highlighter.

Summary updated

Abstract

We study encoder models that pick one of several options in a single forward pass, without generating text. This technical report compares recipes for fine-tuning UltraBERT-380M with one mask per option. The four recipes differ in how an option is scored and how the scores become probabilities; one follows the expert gate of DeepSeek-V3. Trained on the same data as Qwen3-0.6B with the LLM-as-Jev recipe (67.6% test accuracy), the encoder reaches 69.7% to 72.1%. Scoring an option by "yes" minus "no" instead of "yes" alone gives the larger gain, from 69.7% to 71.3% on the test set and from 57.8% to 59.6% on external benchmarks (56.1% for the decoder). Sigmoid normalisation adds 0.8 test points; a square-root softplus adds none. One request at a time on an NVIDIA A100, the encoder takes 29 ms per decision against 68 ms, but uses more peak memory (2.8 against 2.2 GiB). An auxiliary head, trained on human-marked evidence and on labels selected with a reward adapted from SelfCite, predicts in the same pass the sentences annotated as support for the answer.
BibTeX
@misc{mohapatra2026ultrabert,
  author = {Astarag Mohapatra},
  title = {{UltraBERT-JEV: Encoder models for System One Applications}},
  year = {2026},
  eprint = {2611.17867},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.17867},
}
Figure