The quietest failure mode in a monitoring stack is not a crash. It is a model handing back a plausible-looking score.

Laya is a one-pass decision encoder: the question, the candidate options and the text to be judged are packed into one sequence of at most 512 tokens, and a single forward pass returns probabilities over the options without generating any text. It is cheap, fast, and its probabilities are calibrated, which makes it a natural fit for routing, tagging and classification in production. The catch is that the sequence has a ceiling, and real business documents do not.

An Intel team put that window under the microscope in an arXiv preprint (https://arxiv.org/abs/2611.16477): 177 items, five tasks, three checkpoints, four window sizes and 93,275 scored requests, all aimed at one question — what happens to the model when the decisive evidence falls outside the window?

The evidence disappears, the score does not

At max_len 512 the question head (instruction plus option descriptions) takes 26 to 67 tokens, leaving room for only 444 to 485 tokens of text. In this English corpus a word is roughly 1.3 tokens, so the room holds on the order of 350 to 400 words. Whatever exceeds it is cut from the right. The runtime records a truncated flag in its usage metadata; the output probabilities are computed from the shortened sequence and nothing else, and no warning is raised.

What comes back is the probability of a model that saw a shorter document. On requests whose evidence was wholly cut, the released checkpoint answers correctly 26.4% of the time, against 27.0% for a uniform guess and 35.6% for always returning the commonest label — slightly below chance. Confidence, however, is indistinguishable: mean top probability 0.57 when the evidence is cut and 0.57 when it is read. Using probability to tell a cut request from a read one gives AUROC 0.50, 0.53 and 0.55 across the three checkpoints; margin and entropy do no better (0.501 and 0.484 for the released one). 0.5 is chance.

One point is worth clarifying: 512 is a choice in the released configuration, not a limit of the encoder. ModernBERT underneath was pretrained with a native sequence length of 8,192 tokens (https://arxiv.org/abs/2412.13663); this checkpoint's configuration file simply writes 512.

A confidence gate cannot save you

The usual downstream move is a confidence threshold, with low scores sent to a human or re-asked of a bigger model. On this path the gate fails in exactly the wrong direction. At a 0.9 threshold the released checkpoint accepts 17.3% of cut requests, and 70.6% of those accepted are wrong. The long-document fine-tune is worse: it accepts 59.3% of them, 65.2% wrong. The same gate looks healthy on requests that did contain the evidence, where the long-document model errs on only 18.2% of accepted requests. A threshold validated on short samples produces false reassurance once the text gets long.

The runtime's truncated flag is the opposite extreme. Its recall is 100% by construction, since anything cut is flagged, but its precision is only 33.3%: 66.6% of flagged requests had evidence that was actually fully visible, and 61.9% of those ended up wrong. It tells you that something was cut, not that the decisive part was cut. The paper's advice follows: the flag is more useful than confidence, but what it should trigger is a re-read, not a rejection.

Even visible text is not necessarily read

Evidence inside the window is not the same as evidence being used. The released checkpoint reaches 38.5% pooled over all visible positions, 60.5% when the evidence opens the text, and 38.4% when 100 tokens of office boilerplate come first. Raising the window from 512 to 2048 does not rescue it. The kind of distractor matters too: office boilerplate costs 18 points at 100 tokens and 27 points at 800, while rows from other tasks — text shaped like the model's own inputs — leave only 42% at 800 tokens.

By relative position the beginning is strongest and the middle weakest, the same ordering reported for decoder models in Lost in the Middle (https://arxiv.org/abs/2307.03172). But this paper studies a bidirectional encoder, with a single backbone, and measures something different, so it is careful about what it claims: the long documents are programmatic concatenations, the labels come from an LLM (Qwen3.8-27B labelling each case, a blind second pass dropping disagreements, cross-checked by gemma4-31b which agrees on 94% to 99% of rows), and the search for prior work was title-level over abstracts only, so a missed paper cannot be ruled out. The results diagnose this model, not long documents in general.

Three routes, three bills

Changing configuration is the cheapest. Going from 512 to 2048 buys +6.2 points for the released checkpoint, +3.4 for the short-row fine-tune and +21.6 for the long-row one. The first two move little because they read even visible evidence at only 38% and 41%. Long-document training is the larger effect: against the short-row fine-tune, the long-row checkpoint is +27.6 points better when the evidence is fully visible (95% interval +22.3 to +33.1) and +0.1 when it is cut. Training does not let a model use what it cannot see. But the gain carries the shape of its training data: it holds up on encyclopedic filler never seen in training (+13.2) and fails on rows of other tasks that look like decision-model inputs (-2.0).

The third route changes no weights: scan the document in 312-token windows with stride 156, which is the library's own method. Head-only reading scores 28%, the scan scores 40%, a gain of +11.9 points, and +7.8 above simply opening a 2,048 window. It costs six to eleven forward passes: scanning an 1,800-token document took 226 ms across 11 windows, against 117 ms for a single call at 2,048. The real bill shows up in batched work: with eight window-filling requests, 512 takes 206 ms, 2,048 takes 1,205 ms and 4,096 takes 2,971 ms. Short inputs barely notice, with batch-of-one latency at 113 ms for 512 and 112 ms for 4,096, while peak memory goes from 2,409 MB to 3,605 MB against 1,616 MB of weights.

So what

The paper ends with a page of guidance that needs no retraining, and it is worth copying: do not rely on confidence; count on live traffic how many requests exceed the room the runtime already records; pick the window from the percentiles of your own questions rather than copying someone else's 512; and treat the flag as a reason to re-read with a different strategy rather than to drop the request.

The model card admits the same thing from the other side: the multilingual checkpoint ships with a 1,024-token limit that cuts long documents off, so max_len=8192 has to be passed explicitly (https://github.com/NandhaKishorM/laya). A model sold on fast judgement carries a risk that is easy to miss precisely because it judges too fast and too smoothly — you forget it never finished reading, and its output format has no field for saying so.