Diagnosing and Repairing Long-Horizon Failure in Transformer Queueing Simulators
Anonymous authors
ICLR 2027
Abstract. Neural event simulators are evaluated on short test histories but deployed over much longer rollouts, where accurate one-step predictions need not ensure faithful trajectories. Standard test loss leaves predictions beyond the training length unexamined. We investigate whether predictions on shared long reference histories can diagnose these failures and guide corrective supervision. In an M/M/1 queue, we evaluate transformers trained on -event sequences using rollouts of events per model, and compute deep-prefix drift (DPD), the mean predicted queue increment beyond the training length, on simulator-generated reference histories. Across failing checkpoints and three fine-tuning seeds, we compare deep supervision with matched shallow supervision and continued training, and on three of them compare exact conditional targets with fresh simulator draws and recorded continuations. Despite near-oracle short-history test loss, models cross a fixed queue boundary on -- of rollouts, with of first crossings occurring beyond the training length. On evaluation models, DPD ranks crossing counts at Spearman and flags of severe failures with false positive. DPD requires neither candidate-model rollouts nor exact conditional probabilities, using model predictions on shared simulator-generated reference histories. Deep supervision produces fewer crossings than both controls in all model-by-seed comparisons, by at least of rollouts, and fresh simulator targets outperform both controls in all tested comparisons, while recorded continuations leave at least more crossings than exact targets. These findings support shared long-history evaluation as a parallel diagnostic for learned event simulators and show that supervision beyond the training length can reduce failures hidden by short-history test loss.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 24 Nov 2026, 16:52 UTC.
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 1/3
- Presentation
- 1/3
- Informativeness
- 1/3
Read review
Summary
This paper studies long-horizon failures in transformer-based neural event simulators using an M/M/1 queueing system. It shows that models with similar short-history test losses can exhibit substantially different behaviors during long rollouts. To diagnose these failures, the paper proposes Deep-Prefix Drift (DPD), which measures predicted queue increments on shared reference histories beyond the training length. It further introduces a supervision approach that fine-tunes models on longer contexts using oracle or simulator-sampled targets. Experiments evaluate the effectiveness of DPD in identifying severe failures and compare the proposed repair against several training baselines.
Strengths
- The paper identifies and empirically demonstrates a discrepancy between short-history prediction accuracy and long-horizon simulation behavior.
Weaknesses
-
Motivation and Necessity: The failure scenario studied by this paper appears to be largely induced by its model design. The M/M/1 queue's transition law depends only on the current queue length, making absolute event positions irrelevant to its underlying dynamics. However, the paper adopts sinusoidal absolute positional encodings and evaluates models at positions beyond their training length, where extrapolation failures are already well known. The authors' own experiments also show that none of the 30 models using ALiBi, NoPE, or mixed-position training exhibits severe failures, compared with 18 of the 46 models trained with sinusoidal absolute positional encodings. These results raise a fundamental question about the necessity of the proposed approach: why is it important to diagnose and repair failures that can largely be avoided by using other positional encoding techniques?
-
Validity of the DPD Diagnostic: It's unclear why DPD should reliably characterize long-horizon failure. DPD averages predicted queue increments across different states and positions, whereas the probability of crossing a queue boundary depends on the state-dependent transition dynamics throughout a rollout. As a result, a positive (or negative) average drift does not necessarily imply a high (or low) crossing risk. Counterexamples for both cases are also shown in the paper's results: model 53 has positive DPD but crosses the boundary in only 1 of 256 rollouts, whereas model 104 has negative DPD but crosses in 210 rollouts. This limitation also extends to the alternative positional encoding models, all of which have negative DPD despite some exhibiting up to 98 crossings, compared with the oracle's expected 2.86. To my understanding, DPD primarily detects a particular pattern of drift reversal; it cannot reliably characterize long-horizon failure in general.
-
Novelty of the Repair: The proposed repair method seems to be a straightforward application of long-context fine-tuning where the preceding diagnosis is almost not involved. Although DPD identifies potentially failing checkpoints, the repair applies additional supervision at predetermined deep positions without using model-specific diagnostic results to determine where or how to intervene. Additionally, the repair's comparisons against shallow supervision and continued training mainly demonstrate that training on longer contexts is more effective than additional training within the original context length. Given that the identified failures arise beyond the training length, this result is largely expected. Table 9 in the supplementary material also shows that ordinary long-sequence fine-tuning substantially reduces failures, from 255, 245, and 240 to 5, 71, and 7, respectively.
Questions for the authors
-
Given that ALiBi, NoPE, and mixed-position training largely avoid the severe failures observed with sinusoidal positional encodings, what is the significance of the studied failure scenario beyond this particular model configuration?
-
Given the counterexamples in models 53 and 104 and the substantial crossing rates observed in models with negative DPD, why should average predicted drift be used to characterize long-horizon failure risk?
-
What specific role does DPD play in guiding the repair beyond identifying failing checkpoints, and what advantages does the proposed repair offer over ordinary long-sequence fine-tuning (which already substantially reduces failures in Table 9)?
1 comment
- Rating
- 1/4
- Confidence
- 2/4
- Soundness
- 1/3
- Presentation
- 1/3
- Informativeness
- 1/3
Read review
Summary
The paper investigates long-horizon failures in transformer-based neural event simulators despite accurate one-step predictions. Using an M/M/1 queue, the authors evaluate 46 transformers trained on 400-event sequences over 40,000-event rollouts. They seem to use "deep-prefix drift" which is unclear to me is a novel contribution or not. Also the main contributions of the paper is not clear. Overall this paper is not a good fit for a top-tier conference like ICLR.
Strengths
- Studies an important problem: accurate one-step predictions do not guarantee reliable long-horizon rollouts in transformers.
Weaknesses
-
The paper is difficult to follow, with a number-heavy abstract and insufficient intuitive explanation of M/M/1 queueing for a new reader. The abstract or the methodology doesn't talk about why certain design choices both in the modelling approach and selection of hyperparmeters made, making it very hard to follow the paper.
-
Experiments are limited to one queueing system and transformer architecture, with unclear generalisability to broader sequence-modeling tasks like forecasting, next token prediction etc. Also no baseline methods were compared against.
-
Reasoning behind choice of inductive biases is unclear nor is the reasoning behind the evaluation dataset selection.
Questions for the authors
Q1: How do the findings generalize to time-series forecasting, LLM next-token prediction, or other sequential modeling tasks?
Q2: Would similar failures occur with alternative architectures such as state-space models, CNNs, RNNs, or linear models?
Q3: What motivates the choice of "46" models and the "40,000"-event rollouts? More specifically, how are these hyperparmeters or setup selected? What motivates the hyperparameter choices(e.g. number of models) , and how sensitive are the results to them?
Q4:What motivates the choice of the training datasets and reference histories generated and selected?
Q5: What is the core contribution of the paper and its novelty ?
1 comment
## Response to Reviewer Cq3G
We thank Reviewer Cq3G for pointing out where presentation and design rationales needed clearer explanation.
W1 (Readability, abstract density, and intuitive explanation of M/M/1):
- We rewrote the abstract and introduction to reduce number density and explain the queue in plain terms: customers arrive randomly and are served one at a time; each arrival () or departure () updates the queue length, which directly accumulates per-step prediction errors. At server load, departures are slightly more likely than arrivals ( vs. ), creating a negative drift ( per event) that pulls the queue back to empty.
W2, Q1 & Q2 (Generalizability across systems, architectures, and tasks; baselines):
- Second system & positional schemes: We added a five-server M/M/5 queue ( models; Section 4.4, Table 16), where DPD ranks crossing risk at Spearman and repair leaves crossings in all cells, alongside M/M/1 models across ALiBi, NoPE, mixed positions, and training length (Tables 5--6). Non-transformer architectures (RNNs, SSMs, CNNs) and non-queueing tasks (forecasting, LLMs) were not tested and are stated as limitations in Section 5; the protocol applies wherever sequences accumulate a state and reference histories can be simulated.
- Baselines: Figure 2b compares DPD against baselines on the evaluation models: within-training-length metrics (test CE, waiting-time NLL, joint NLL, shallow drift; all near chance, AUROC --), deep-position bank metrics (deep CE, unsigned drift error, oracle-informed deep KL), and metrics on unconditioned -event histories. For repair, we compare deep supervision against shallow supervision, continued training, own-label training, and ordinary long-sequence fine-tuning (Section 4.3, Tables 2, 10--12).
W3, Q3 & Q4 (Motivation and sensitivity for 46 models, 40,000-event rollouts, training length 400, and reference bank):
- Appendix A.5 documents every design choice, and Table 15 tests sensitivity across boundaries () and horizons ():
- Why and -event rollouts? At load, of busy periods end within events, so covers nearly all busy periods. Over events (), a typical rollout encounters busy periods that outlast events, probing unseen deep positions. At , the exact queue crosses on only of rollouts ( of ), so excess crossings stand out. Across all horizon-by-boundary pairs (Table 15), DPD's Spearman correlation stays at to (AUROC --), while test CE stays at chance ( to ).
- Why models? Because outcomes under one recipe range from to crossings with the training seed alone, evaluating a checkpoint diagnostic requires a multi-seed cohort: development models (seeds 0--9) and held-out evaluation models ( severe failures).
- Why survival-selected reference histories? Unselected busy periods outlast events with probability . Selecting busy periods of length supplies deep positions per history; even histories achieve a median AUROC of (Table 8).
Q5 (Core contribution and novelty):
- Please see Item 1 ("Clarified Core Claims") in the General Response above.
- Rating
- 3/4
- Confidence
- 2/4
- Soundness
- 3/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper studies the long-horizon failures in Transformer-based queueing simulators. Althought the Transformer can achieve near-perfect one-step prediction accuracy, the prediction drift may be severe for long horizon scenarios. The authors show that the failures mainly occur beyond the training sequence length, and small prediction biases may accumulate and lead to unrealistic queue growth.
To detect the failures, the authors propose DPD to predict long-horizon instability without requiring expensive model rollouts. They further show that supervision beyond the training length reduces these failures, outperforming standard continued training and shallow supervision. The paper highlights the importance of length generalization and correction for reliable long-horizon simulation.
Strengths
- The failure mode is convincing. The authors show that the test loss of 46 Transformers is consistent, but the long-horizon performance can vary significantly.
- The DPD detection and deep supervision repair make the paper's story and contribution complete.
- The evaluation is comprehensive.
Weaknesses
- The generalizability seems limited. The core experiment is based on M/M/1 queue, with a single load setting. It is natural to define the drift here, but for more complex stochastic system, it might be tricky to define the scalar drift.
- The novelty of DPD is limited. The DPD's methodological novelty seems to be limited. It's a bit unclear if the real contribution is the DPD metric or evaluating the model beyond the training length.
- The existing positional encoding methods can also significantly fix the problem, which weakens the necessity of the proposed repair method.
Questions for the authors
- Can the authors discuss generalizing the methods to more complex stochastic systems?
- Can the authors clarify the contribution of DPD and the necessity of the proposed repair?
- Is it possible to generalize the methods to LLM or even agentic progress?
1 comment
## Response to Reviewer NXwQ
We thank Reviewer NXwQ for the positive assessment of our problem formulation and experimental thoroughness.
W1 & Q1 (Generalizability to complex stochastic systems and scalar drift):
- Multi-server M/M/5 queue (Section 4.4, Table 16): Unlike M/M/1 (constant drift at all ), M/M/5 has state-dependent drift that is positive at -- customers, zero at , and negative from onward. Even though DPD averages across states, it ranks the M/M/5 checkpoints at Spearman () and separates the severe failures at AUROC , while our repair leaves crossings in all repaired cells (vs. -- for controls).
- Queueing networks (Section 5 Limitations): In a single-station queue, the scalar increment tracks the state that defines boundary crossing. In a network, summing occupancy across nodes can cancel opposite errors at different stations, so a node- or bottleneck-resolved readout of the shared-history pass is needed. Section 5 states this explicitly.
W2 & Q2 (Contribution of DPD vs. evaluating beyond the training length):
- We agree that the DPD formula itself is simple. The main contribution is the evaluation protocol: scoring all candidates in one parallel teacher-forced pass on shared long simulator histories at positions beyond the training length ( per model after a one-time bank build; Section 4.2).
- DPD is the direct summary of this pass for queues. Its main use is within-configuration ranking: across all tested configurations (Table 5), higher DPD tracks higher crossing risk, reducing mean crossings from (random) to when picking the lowest-DPD of sinusoidal M/M/1 candidates (Table 4). Its zero threshold is validated only on sinusoidal M/M/1 and over-flags in M/M/5 ( of non-severe models, though still exceed the oracle's point); the revision restricts the sign rule accordingly.
W3 & Q2 (Necessity of repair given alternative positional encodings):
- ALiBi, NoPE, and mixed positions avoid severe failure ( of models vs. of sinusoidal), but moderate long-horizon errors remain: of the exceed the oracle's crossing point ( crossings, up to ), and training the sinusoidal recipe on -event sequences still leaves of models severe (Section 4.1, Table 6).
- In addition, for the published simulator of Mittal et al. (2025), crossings range from to across training seeds at the same test loss, so trained checkpoints still need screening and repair.
Q3 (Generalization to LLMs or agentic workflows):
- We make no empirical claim about LLMs. The protocol applies wherever generated sequences accumulate an observable state and deployment contexts exceed the training length; testing analogous shared-prefix diagnostics in language or agentic settings is future work.
Comments on the paper
1 comment
## General Response (to All Reviewers)
We thank the reviewers for their constructive feedback. Four questions recur across the reviews: (1) generalizability beyond one M/M/1 queue, (2) whether the contribution is the shared-history evaluation protocol or the DPD formula, (3) how targeted deep supervision compares against ordinary long-sequence fine-tuning and alternative positional encodings, and (4) presentation clarity and motivation of design choices. We have rewritten the manuscript for clarity and added three sets of experiments.
1. Clarified Core Claims
- Diagnostic protocol (shared-history evaluation beyond the training length): Scoring candidate checkpoints in one parallel teacher-forced pass on a shared bank of long simulator-generated busy periods exposes length-extrapolation errors invisible to short-history test loss, without generating rollouts or using the oracle.
- Checkpoint screening (DPD as a within-configuration ranker): Deep-prefix drift (DPD), the mean predicted queue increment beyond the training length, summarizes this pass in one scalar. Its zero threshold applies only to sinusoidal M/M/1, where drift reverses sign, but its continuous value ranks checkpoints by crossing risk within all model configurations tested (Spearman to ).
- Targeted repair (deep supervision): Fine-tuning at positions beyond the training length removes most crossings in both queues, even when targets are single-step simulator draws, and leaves fewer crossings than matched ordinary long-sequence fine-tuning on of all severe M/M/1 failures at one fine-tuning seed each ( vs. total crossings).
2. New Experiments & Revisions
- Second system with state-dependent drift (M/M/5; Section 4.4, Table 16): Across new transformers on a five-server M/M/5 queue (utilization ), where true drift changes sign across states, DPD ranks negative mean first-crossing time at Spearman (; test CE: ) and separates the severe failures at AUROC . The unchanged repair recipe reduces crossings from and to in all checkpoint-by-seed cells (vs. -- for controls).
- Comparison with ordinary long-sequence fine-tuning (Section 4.3, Tables 11--12): Over all severe M/M/1 failures at fine-tuning seed 0 (one machine, matched updates, optimizer, anchor data, and targets per update), deep supervision with simulator targets left fewer crossings on , more on , and tied on ( vs. total; vs. models exceeding the oracle's point of crossings). Both recipes remove most crossings; the per-checkpoint winner can vary across fine-tuning seeds (Table 11).
- Within-configuration ranking & selection (Section 4.2, Tables 4--5): DPD positively ranks crossing risk within sinusoidal M/M/1 (), ALiBi (), NoPE (), mixed positions (; mean , ), and M/M/5 (). Picking the lowest-DPD of candidates averages crossings on sinusoidal M/M/1 (vs. random, lowest test CE) and on M/M/5 (vs. random, test CE).
- Presentation and design rationale (Abstract, Sections 1--5, Appendix A.5, Table 15): We rewrote the abstract and main text, added plain-language queueing intuition, and documented all setup choices and horizon/boundary sensitivities in Appendix A.5.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
## Response to Reviewer 7x19
We thank Reviewer 7x19 for the detailed technical critique, which motivated our comparison against ordinary long-sequence fine-tuning and our within-configuration ranking analyses.
1. Motivation and necessity given ALiBi, NoPE, and mixed positions (W1, Q1):
2. Validity of DPD, counterexamples (models 53 and 104), and negative DPD (W2, Q2):
3. Role of DPD in repair and comparison with ordinary long-sequence fine-tuning (W3, Q3):