Where in the Input Does a One-Pass Decision Encoder Look?

Mohammed Nayeem Khan, Allan Kevin TarXiv 2026

TL;DR

This paper investigates how "one-pass" decision encoders like Laya (based on ModernBERT) handle long inputs, revealing that truncation is a "silent killer"—accuracy drops to chance levels when evidence is cut, yet model confidence remains high, providing no warning to users. The authors demonstrate that while fine-tuning on long documents significantly boosts performance for visible text, simple training-free strategies like "window scanning" can also recover substantial accuracy.

What Problem Does This Paper Address?

One-pass decision encoders are highly efficient models designed to answer multiple-choice or yes/no questions about a text in a single forward pass. By concatenating the question, options, and text into one sequence, they avoid the overhead of generative models. However, these models have a fixed "window" (often 512 tokens). When a document exceeds this limit, it is silently truncated.

The authors set out to answer several critical questions:

  1. What is the actual cost of this truncation?
  2. Does the model "know" when it's missing information? (i.e., does confidence drop?)
  3. How does the position of evidence within the window affect performance?
  4. Can we fix these issues through better training or smarter inference strategies?

Methods

The researchers conducted a systematic diagnostic study using Laya, a small model built on the ModernBERT-large backbone. They compared three model checkpoints:

  • Released (Shipped): The default public model trained on short inputs (max 512 tokens).
  • Short-row fine-tune: Retrained on similar short data.
  • Long-document fine-tune (v1_long): Trained on documents up to 1024 tokens, where evidence was buried in distractor text.

To measure performance, they programmatically constructed test documents by placing a piece of "evidence" (a short text with a known label) at specific token offsets within a stream of "distractor" text (like office boilerplate or encyclopedic facts).

Figure 1. What the encoder reads. (a) The token sequence of one call: a head made of the question and every option behind its

By varying the offset ($o$), they could precisely locate the "cliff" where the model stops "looking" at the input.

Figure 2. How one test document is made: the evidence (one held-out row, the small filled block) is placed at token offset o inside a stream of distractor text of fixed total length; the tinted part from the left is what a 3-way question reads at max_len 512.

Datasets

The study utilized five distinct decision tasks: sentiment analysis, hardware failure detection, urgency classification, a 12-way topic classification, and a department/churn task.

The labels were generated using a large language model (Qwen3.8-27B) and cross-validated with another (Gemma4-31b) to ensure high-quality ground truth. While the base tasks were short, the researchers deliberately built long documents to expose the models to truncation.

Distribution of state lengths across the different corpora used in the study.

Key Insights and Ideas

  • The "Silent Cut": This is the paper's most striking finding. When evidence is truncated, accuracy falls to near-guessing levels (~26.4%), but the model's mean confidence remains identical to when the evidence is fully visible (~0.57). The model is "confidently wrong," making confidence a useless detector for truncation.
  • Distracted, Not Blind: Even when evidence is inside the window, its position matters immensely. For the released model, accuracy was 60% when evidence was at the very start, but dropped to 38.5% if preceded by just 100 tokens of boilerplate. The model doesn't "search" the text; it judges the whole sequence, and distractors dilute its focus.
  • Recency Preference: In "competing evidence" tests where two different labels were supported by different parts of the text, the model showed a strong preference for the later piece of evidence if they were adjacent.
  • Training vs. Configuration: Simply increasing the max_len parameter helps, but only if the model was trained to handle distractors. The long-document fine-tune was far more robust to "noise" within the window than the standard model.

Key Results

  • Fine-tuning Gains: Training on long documents (v1_long) added +27.6 points of accuracy on visible evidence compared to the short-row version.
  • Window Scanning: A training-free "window scan" (sliding a 312-token window across the document and picking the highest-confidence result) improved the released model's accuracy by +11.9 points, outperforming even a simple 2048-token window expansion.
  • Latency Costs: Increasing the window size isn't free. For a batch of eight, latency grew from 206 ms at a 512-token window to 2971 ms at 4,096 tokens.
  • Truncation Flag: While the runtime's truncation flag is 100% accurate at identifying if text was cut, it has poor precision (~33%) for identifying if decisive text was cut, as it fires even if the cut text was just irrelevant boilerplate.

Limitations and Future Work

The authors acknowledge several limitations:

  • Synthetic Data: The long documents were programmatically generated concatenations, not naturally occurring long-form texts which might have different structural cues (like headings or topic drift).
  • Single Backbone: The study focused exclusively on ModernBERT/Laya; results might vary for other encoder architectures.
  • In-Family Results: The gains from fine-tuning were measured on distractors similar to those seen during training. Performance on "out-of-family" distractors was lower.

Future work could involve testing these models on naturally long documents and exploring more sophisticated "retrieval-augmented" approaches for decision encoders.

Summary updated

Abstract

Laya is a small model that answers a multiple-choice question about a text in one pass: the question, the options (each with a name and a description) and the text form one sequence of at most 512 tokens, the window, in the English release. A longer text is silently cut at the end, and we measure what that costs. Test documents place a held-out row's text, the evidence, at a chosen token offset among distractor text; 177 items, five tasks, three checkpoints (released, short-row fine-tune, long-document fine-tune), four window sizes and 93,275 scored requests. When the evidence lies beyond the window, accuracy falls to 26.4% for the released checkpoint (27.2% for both fine-tunes), near the 27.0% of guessing and below the 35.6% of always giving the commonest label. Confidence gives no warning (AUROC 0.50 to 0.55 for telling cut from read requests; 0.5 = chance), and the runtime's truncation flag also fires on requests whose evidence was visible. The released checkpoint reads visible evidence badly once text precedes it: 38.5% pooled against 60% when the evidence comes first, so a larger window alone gains +6.2 points. Fine-tuning on long documents adds +27.6 points on visible evidence over the short-row fine-tune (95% interval +22.3 to +33.1) and nothing on cut evidence. That is an in-family result: training rows and test documents share generator and question types, and the main filler is of the training kind. With encyclopedic filler never seen in training the gain is +13.2 (+9.9 to +16.6), with rows of other tasks as filler -2.0. Among training-free rearrangements a 312-token window scan helps most (+11.9 points over the default for the released checkpoint) at six to eleven forward passes. Documents are synthetic, labels are LLM-made and one backbone is studied, so these diagnose this model, not long documents in general.
BibTeX
@misc{khan2026where,
  author = {Mohammed Nayeem Khan and Allan Kevin T},
  title = {{Where in the Input Does a One-Pass Decision Encoder Look?}},
  year = {2026},
  eprint = {2611.16477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.16477},
}
Figure