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:
- What is the actual cost of this truncation?
- Does the model "know" when it's missing information? (i.e., does confidence drop?)
- How does the position of evidence within the window affect performance?
- 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).
By varying the offset ($o$), they could precisely locate the "cliff" where the model stops "looking" at the input.
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.
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_lenparameter 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