Papers
Topics
Authors
Recent
Search
2000 character limit reached

EOS Early Rejection (EOSER)

Updated 4 July 2026
  • EOSER is a conditional computation mechanism that uses partial evidence to halt low-utility processing, achieving significant FLOP reductions in autoregressive reasoning.
  • In masked diffusion language models, EOSER attenuates EOS token probability to prevent premature sequence termination, stabilizing full diffusion decoding.
  • Extended EOSER applications include multi-stage in-flight rejection, OOD detection, and approximate Bayesian computation, offering efficiency gains across various domains.

Searching arXiv for papers on EOS Early Rejection and related MDLM/LLM early rejection mechanisms. EOS Early Rejection (EOSER) denotes a class of early-halting mechanisms that stop, prune, or reweight computation before natural completion when partial evidence already indicates low utility, premature termination, or an unpromising trajectory. In current arXiv usage, the term appears in multiple adjacent senses: in autoregressive reasoning, it can mean emitting an effective end-of-search decision for low-quality beams on the basis of partial Process Reward Model (PRM) scores (Cheshmi et al., 4 Aug 2025); in masked diffusion LLMs (MDLMs), it can mean suppressing premature <EOS>\texttt{<EOS>} during denoising so that full diffusion-style decoding remains stable (Yang et al., 28 Sep 2025). Related work extends the same early-rejection principle to diffusion-model termination and padding design (Liu et al., 16 Jun 2026), synthetic data generation (Chowdhury et al., 13 May 2026), out-of-distribution detection (Peng et al., 6 Feb 2026), and approximate Bayesian computation (Cao et al., 2024), while also showing that in some diffusion LLMs EoS tokens themselves function as hidden scratchpad state and therefore cannot be treated as inert padding (Breckner et al., 5 Mar 2026).

1. Definitions and operational variants

The common structure across EOSER formulations is conditional computation: a model observes a partial state, computes an inexpensive or intermediate signal, and then either continues expensive processing or halts early. What differs across papers is the object being rejected. In PRM-guided reasoning, the rejected object is a beam or trajectory. In MDLM decoding, the rejected object is an early <EOS>\texttt{<EOS>} hypothesis. In cascaded OOD detection, the rejected object is an input sample. In ABC, it is a parameter proposal. This suggests that EOSER is best understood as a control policy over incomplete computations rather than as a single decoding trick.

Setting Operational meaning of EOSER Representative reported effect
PRM-guided LLM reasoning Effective EOS for beams with low partial PRM score Up to 1.4×1.4\times–9×9\times inference FLOP reduction
MDLM full diffusion decoding Step-dependent attenuation of EOS probability Countdown 0.00%→41.80%0.00\%\rightarrow 41.80\% at L=256,S=64L=256, S=64
Diffusion LLM EoS workspace Warning against pruning EoS positions as dead padding Sudoku improves by ∼10%\sim 10\% from 1 to 128 EoS tokens
VoidPadding Reserve [EOS]\texttt{[EOS]} for termination and [VOID]\texttt{[VOID]} for padding +17.84+17.84 points over original on Dream-7B-Instruct
Multi-Stage In-Flight Rejection Stop low-quality generations at checkpoints <EOS>\texttt{<EOS>}0–<EOS>\texttt{<EOS>}1 token reduction
Cascaded Early Rejection Halt OOD inputs at signal or semantic gates Computational overhead reduced by <EOS>\texttt{<EOS>}2
GP-based ejMCMC Reject proposals before simulation <EOS>\texttt{<EOS>}3–<EOS>\texttt{<EOS>}4 fewer simulations in the ODE example

The technical consequence of this breadth is that EOSER has no single canonical mathematical form. Some variants define a binary continuation policy <EOS>\texttt{<EOS>}5; others define a gate <EOS>\texttt{<EOS>}6; others act by multiplicatively attenuating EOS probability with a step-dependent coefficient <EOS>\texttt{<EOS>}7. The unifying criterion is that a cheap or partial signal is used to reduce expected compute before the full computation would otherwise terminate naturally (Cheshmi et al., 4 Aug 2025, Yang et al., 28 Sep 2025, Chowdhury et al., 13 May 2026, Peng et al., 6 Feb 2026, Cao et al., 2024).

2. PRM-guided early rejection in autoregressive reasoning

In "Accelerating LLM Reasoning via Early Rejection with Partial Reward Modeling" (Cheshmi et al., 4 Aug 2025), EOSER is formulated for PRM-guided beam search over reasoning trajectories. A trajectory is written as

<EOS>\texttt{<EOS>}8

where each step <EOS>\texttt{<EOS>}9 is a token block. For beam 1.4×1.4\times0, a completed step receives final step reward 1.4×1.4\times1, while the first 1.4×1.4\times2 tokens of that step receive partial reward

1.4×1.4\times3

The core hypothesis is that a PRM is also a Partial Reward Model, with

1.4×1.4\times4

where 1.4×1.4\times5 is monotonic increasing and 1.4×1.4\times6 is zero-mean, 1.4×1.4\times7-sub-Gaussian noise. Early rejection then becomes a mid-step EOS decision: after generating only the first 1.4×1.4\times8 tokens of the next reasoning step, beams are ranked by 1.4×1.4\times9, the top 9×9\times0 are kept, and all others are rejected and never expanded further.

Algorithmically, the rule is thresholded ranking. Let 9×9\times1, and let 9×9\times2 be the 9×9\times3-quantile of the current partial rewards. Then beam 9×9\times4 is kept iff 9×9\times5; otherwise it is terminated. In EOSER terms, this is equivalent to emitting EOSER at token 9×9\times6 of the step. The continuation policy is

9×9\times7

The baseline and the Early Rejection variant are presented as Algorithm 2 and Algorithm 3, respectively, with the latter maintaining beam width 9×9\times8 by keeping 9×9\times9 parents and expanding each into 0.00%→41.80%0.00\%\rightarrow 41.80\%0 children.

The theoretical guarantee concerns the probability of killing the optimal beam. If 0.00%→41.80%0.00\%\rightarrow 41.80\%1, the minimal expected partial-reward gap is

0.00%→41.80%0.00\%\rightarrow 41.80\%2

and the paper proves

0.00%→41.80%0.00\%\rightarrow 41.80\%3

The bound decays exponentially in 0.00%→41.80%0.00\%\rightarrow 41.80\%4, so larger partial prefixes 0.00%→41.80%0.00\%\rightarrow 41.80\%5 make premature termination of the optimal beam increasingly unlikely. In an i.i.d. token-contribution toy model, the correlation between partial and final rewards is

0.00%→41.80%0.00\%\rightarrow 41.80\%6

and the empirical correlations reported for math PRMs are already 0.00%→41.80%0.00\%\rightarrow 41.80\%7 at 0.00%→41.80%0.00\%\rightarrow 41.80\%8 and 0.00%→41.80%0.00\%\rightarrow 41.80\%9 at L=256,S=64L=256, S=640, with a plateau beyond L=256,S=64L=256, S=641.

The reported empirical effect is substantial. On SAT-MATH (AGIEval), MATH-500, and AIME 2024, early rejection achieves L=256,S=64L=256, S=642–L=256,S=64L=256, S=643 reduction in inference FLOPs with no loss in task accuracy when using MathShepherd-Mistral-7B, and L=256,S=64L=256, S=644–L=256,S=64L=256, S=645 with Skywork-PRM-1.5B while maintaining or slightly improving accuracy. The behavior is model-dependent: for exploratory models such as Qwen-2.5-3B, EOSER can improve both accuracy and compute at small beam widths, whereas for more deterministic models such as Llama-3.2-3B the dominant effect is compute reduction.

3. EOSER in masked diffusion LLMs

In "Taming Masked Diffusion LLMs via Consistency Trajectory Reinforcement Learning with Fewer Decoding Step" (Yang et al., 28 Sep 2025), EOSER has a different but closely related meaning. The target model class is the masked diffusion LLM, trained to denoise masked sequences in parallel with bidirectional attention. The paper identifies a failure mode in full diffusion-style decoding: LLaDA pretraining replaces L=256,S=64L=256, S=646 with L=256,S=64L=256, S=647, so training sequences contain a large number of EOS tokens, inducing a strong prior for EOS. In early denoising steps, when token confidence is low, EOS receives much higher average confidence than non-EOS tokens, causing the model to emit EOS near the tail of the sequence far too early. This prematurely semantically terminates the canvas and derails the reverse process.

EOSER addresses that failure by attenuating EOS probability with a step-dependent coefficient. For a uniform scheduler with L=256,S=64L=256, S=648 denoising steps,

L=256,S=64L=256, S=649

and the modified token distribution is

∼10%\sim 10\%0

The method changes only EOS probability; it does not change masking, unmasking, or generation order. Under uniform scheduling, the reported hyperparameters are ∼10%\sim 10\%1 and ∼10%\sim 10\%2. Under the Ascending Step-Size (ASS) scheduler, where decoding proceeds in approximately ∼10%\sim 10\%3 steps, EOSER uses a decoded-token-fraction schedule and ∼10%\sim 10\%4, ∼10%\sim 10\%5.

This EOSER makes full diffusion-style decoding viable. In the training-free comparison at ∼10%\sim 10\%6, ∼10%\sim 10\%7, full diffusion without EOSER collapses on Countdown with ∼10%\sim 10\%8 accuracy, whereas EOSER reaches ∼10%\sim 10\%9. On GSM8K the same settings move from [EOS]\texttt{[EOS]}0 to [EOS]\texttt{[EOS]}1. The pattern is similar, though weaker, on MATH500 and Sudoku. With ASS and few-step decoding, EOSER remains decisive: at [EOS]\texttt{[EOS]}2, EOSER+ASS reaches [EOS]\texttt{[EOS]}3 on Countdown, [EOS]\texttt{[EOS]}4 on GSM8K, [EOS]\texttt{[EOS]}5 on MATH500, and [EOS]\texttt{[EOS]}6 on Sudoku, whereas full diffusion+ASS is frequently near zero.

The paper further embeds EOSER inside CJ-GRPO, a rollout-consistent RL algorithm for MDLMs. Here the task dependence becomes explicit. EOSER+full diffusion is highly effective on planning tasks such as Countdown and Sudoku, including [EOS]\texttt{[EOS]}7 on Sudoku at [EOS]\texttt{[EOS]}8 for CJ-GRPO+EOSER, and [EOS]\texttt{[EOS]}9 on Countdown and [VOID]\texttt{[VOID]}0 on Sudoku at [VOID]\texttt{[VOID]}1 for CJ-GRPO+EOSER+ASS. On GSM8K and MATH500, however, EOSER+full diffusion underperforms semi-AR baselines, and the paper interprets this as evidence that sequential reasoning remains better served by semi-autoregressive decoding. EOSER is therefore not presented as a universal replacement for block-wise decoding, but as a mechanism that restores the viability of full diffusion-style decoding, especially for tasks with more parallel or bidirectional structure.

4. EoS as workspace, padding, and semantic termination

A central complication for any EOSER design is that EoS tokens can be computationally active. "Diffusion LLMs can think EoS-by-EoS" argues that, in diffusion LLMs with visible EoS padding and bidirectional attention, the hidden representations of EoS tokens serve as a hidden scratchpad (Breckner et al., 5 Mar 2026). Increasing generation length improves reasoning even when the number of semantic tokens stays constant or decreases, because the extra positions are filled with EoS tokens that remain visible to the model. In controlled prompting with fixed numbers of masks and fixed decoding steps, adding EoS tokens still improves accuracy. For LLaDA1.5 and Dream on Addition and Entity Tracking, appending 4 EoS tokens is described as the simplest way to achieve close to the best possible performance; on Sudoku, LLaDA1.5 improves by [VOID]\texttt{[VOID]}2 absolute accuracy between 1 and 128 EoS tokens, and Dream improves by [VOID]\texttt{[VOID]}3. Activation patching of 16 trailing EoS tokens shifts outputs toward counterfactual prompts, showing that EoS hidden states causally carry problem-specific information. A practical implication drawn in the paper is that one should never prune below [VOID]\texttt{[VOID]}4 trailing EoS tokens unless there is strong evidence that the model does not use EoS as scratchpad.

"VoidPadding: Let [VOID] Handle Padding in Masked Diffusion LLMs so that [EOS] Can Focus on Semantic Termination" addresses a different but adjacent issue: EOS overflow in MDLM instruction tuning when repeated [VOID]\texttt{[VOID]}5 is used as padding (Liu et al., 16 Jun 2026). The paper formalizes how repeated EOS padding creates a positionwise length prior, so that on a fully masked canvas the model’s EOS probabilities [VOID]\texttt{[VOID]}6 track the response-length CDF [VOID]\texttt{[VOID]}7. Under large-block decoding, EOS is first committed in the high-confidence tail and then propagates leftward as committed EOS tokens condition earlier positions. VoidPadding replaces repeated EOS padding with repeated [VOID]\texttt{[VOID]}8,

[VOID]\texttt{[VOID]}9

reserves exactly one semantic +17.84+17.840, always masks that EOS during training, and bans +17.84+17.841 at inference by setting its logit to +17.84+17.842. The resulting +17.84+17.843Termination rule stops decoding once no masks remain before the leftmost visible +17.84+17.844, discarding everything to its right.

The empirical effect is large. On Dream-7B-Instruct, VoidPadding improves the block-size-averaged four-task mean by +17.84+17.845 points over the original model and +17.84+17.846 points over RainbowPadding, while reducing decoding NFE by +17.84+17.847 on average. In the LLaDA ablation, enabling +17.84+17.848Termination on the original EOS-padded model slightly hurts mean score while reducing NFE by +17.84+17.849, and on RainbowPadding it is nearly accuracy-neutral with <EOS>\texttt{<EOS>}00 mean NFE reduction; on VoidPadding, by contrast, <EOS>\texttt{<EOS>}01Termination increases mean score by <EOS>\texttt{<EOS>}02 and reduces mean NFE by <EOS>\texttt{<EOS>}03. This suggests that EOSER depends critically on whether EOS is a clean semantic terminator or a mixed padding-and-termination token.

Taken together, these two papers imply that EoS semantics are architecture- and training-dependent. In some diffusion models, EoS positions are active latent workspace and should be preserved during active diffusion. In MDLMs trained with repeated EOS padding, however, EOS can be overburdened with a length prior and must be disentangled from padding before it becomes a reliable early-stopping signal.

5. Multi-stage and cascaded early rejection beyond decoding

The same early-rejection principle appears outside token decoding. "Know When To Fold 'Em: Token-Efficient LLM Synthetic Data Generation via Multi-Stage In-Flight Rejection" formulates in-flight rejection as a sequential decision process over partial trajectories (Chowdhury et al., 13 May 2026). Generation is divided into stages with validators <EOS>\texttt{<EOS>}04 operating on the partial trajectory <EOS>\texttt{<EOS>}05. If a validator fails, decoding stops immediately and the sample is discarded. The paper proves that any non-trivial discard policy reduces expected token consumption, with larger savings when rejection happens earlier, and models the conditional utility process <EOS>\texttt{<EOS>}06 as a martingale to argue that early rejection does not bias the expected utility of retained samples. Across five instruction-tuned models and seven reasoning benchmarks, MSIFR yields <EOS>\texttt{<EOS>}07–<EOS>\texttt{<EOS>}08 token reduction as a standalone method and up to <EOS>\texttt{<EOS>}09 when combined with early-exit methods, while preserving or improving evaluation accuracy.

"Halt the Hallucination: Decoupling Signal and Semantic OOD Detection Based on Cascaded Early Rejection" presents a layerwise halting architecture in vision (Peng et al., 6 Feb 2026). Inputs pass through stages <EOS>\texttt{<EOS>}10, and each stage has a gate

<EOS>\texttt{<EOS>}11

with global rejection <EOS>\texttt{<EOS>}12 if any gate fires. The first gate, Structural Energy Sieve (SES), uses a Laplacian-based high-frequency score to catch physical anomalies near the input; later gates use Semantically-aware Hyperspherical Energy (SHE) to detect semantic OOD while removing feature-magnitude bias. On CIFAR-100, CER reduces computational overhead by <EOS>\texttt{<EOS>}13, decreases average FPR95 from <EOS>\texttt{<EOS>}14 to <EOS>\texttt{<EOS>}15, and improves AUROC to <EOS>\texttt{<EOS>}16. The paper can be read as a non-generative EOSER analogue in which EOS is replaced by explicit halting gates over depth.

"Using early rejection Markov chain Monte Carlo and Gaussian processes to accelerate ABC methods" instantiates early rejection in stochastic simulation (Cao et al., 2024). The expensive step is synthetic-data simulation inside ABC-MCMC. ejMCMC fits a GP to the discrepancy <EOS>\texttt{<EOS>}17 and uses a conservative lower predictive quantile

<EOS>\texttt{<EOS>}18

to define a pseudo-acceptance stage and an early-rejection upper bound <EOS>\texttt{<EOS>}19 before simulation. Only proposals passing that screen are simulated and subjected to the full Metropolis-Hastings correction. In the ODE example, ejMCMC reduces the number of simulations by <EOS>\texttt{<EOS>}20–<EOS>\texttt{<EOS>}21 relative to OejMCMC at similar posterior accuracy, and with <EOS>\texttt{<EOS>}22 the early-rejection efficiency ranges from <EOS>\texttt{<EOS>}23 at <EOS>\texttt{<EOS>}24 to <EOS>\texttt{<EOS>}25 at <EOS>\texttt{<EOS>}26, exposing an explicit efficiency-accuracy trade-off. The chain targets a modified posterior <EOS>\texttt{<EOS>}27, and the paper gives conditions under which this converges to the standard ABC posterior in <EOS>\texttt{<EOS>}28.

These extensions show that EOSER is not confined to language-model termination. It is a broader conditional-computation paradigm: compute a partial signal, construct a principled gate, and stop expensive continuation whenever the expected value of continuation is too low.

6. Limitations, misconceptions, and open problems

A persistent misconception is that EoS tokens are always safe to prune. The diffusion-LM evidence directly contradicts that view. In LLaDA1.5 and Dream-v0, extra EoS tokens improve reasoning even when decoding steps and semantic-token budgets are fixed, and patching only EoS hidden states can move outputs toward counterfactual answers (Breckner et al., 5 Mar 2026). Any EOSER mechanism that removes EoS positions during active diffusion therefore risks deleting part of the model’s internal computation. This risk is largest on hard tasks such as Sudoku and entity tracking, exactly where hidden workspace is most valuable.

A second misconception is that early rejection uniformly improves performance. The literature instead shows marked task dependence. PRM-based EOSER is validated primarily on math reasoning and relies on the assumption that partial rewards are monotonic predictors of final rewards; the paper explicitly cautions that domains such as code with backtracking, creative writing, and multimodal tasks may violate that assumption (Cheshmi et al., 4 Aug 2025). MDLM EOSER is highly effective on planning tasks but underperforms semi-AR decoding on GSM8K and MATH500, and its behavior depends on <EOS>\texttt{<EOS>}29, <EOS>\texttt{<EOS>}30, scheduler choice, and denoising step count (Yang et al., 28 Sep 2025). CER depends on natural-image spectral statistics and stable intermediate feature geometry (Peng et al., 6 Feb 2026). MSIFR depends on conservative validators and can over-reject trajectories that might have recovered later (Chowdhury et al., 13 May 2026). ejMCMC depends on GP fidelity and pays the price of a modified target distribution unless additional conditions hold (Cao et al., 2024).

The current research frontier is therefore not merely more aggressive pruning, but better semantics for halting. Several directions are already explicit in the literature: monitoring what is stored in EoS hidden states and reconciling explicit chain-of-thought with hidden EoS-by-EoS computation (Breckner et al., 5 Mar 2026); decoupling padding from semantic termination through tokens such as <EOS>\texttt{<EOS>}31 or related length-modeling mechanisms (Liu et al., 16 Jun 2026); and developing more principled few-step full-diffusion decoding strategies and hybrid diffusion/AR schemes tailored to task structure (Yang et al., 28 Sep 2025). A plausible implication is that future EOSER systems will be increasingly model-aware: they will reserve hidden workspace where needed, separate padding from termination, and apply early rejection only when the intermediate signal is calibrated to the continuation dynamics of the underlying architecture.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to EOS Early Rejection (EOSER).