ArXiv: 2506.14429

🎯 Pitch

Diffusion LLMs don't crash when you feed them more tokens than they were trained on—instead, their perplexity stays flat and they develop a 'local perception' that only sees the most recent window. By applying NTK-based RoPE scaling (a trick borrowed from autoregressive models), LongLLaDA expands this window up to 6× without any training, revealing diffusion models can match or beat autoregressive ones on retrieval but stumble badly on aggregation tasks.


1. Executive Summary

This paper presents the first systematic investigation of long-context behavior in diffusion-based large language models (LLMs), comparing them against auto-regressive LLMs on perplexity, retrieval, and downstream long-context benchmarks using LLaDA, LLaDA-1.5, Dream-v0, and LLaMA3 models. The authors identify a distinctive "local perception" phenomenon during direct context extrapolation—diffusion LLMs maintain stable perplexity beyond their pretrained length and retrieve information only from the nearest pretrained context window (e.g., within the recent 4k tokens for a 4k-pretrained model), rather than suffering the catastrophic performance collapse observed in auto-regressive LLMs—and explain both behaviors mechanistically through the lens of Rotary Position Embedding (RoPE) theory, where bidirectional attention exposes diffusion LLMs to a symmetric relative position range [1−T, T−1] that reduces out-of-distribution embedding regions. Building on this analysis, they propose LongLLaDA, a training-free context extension method that applies NTK-based RoPE extrapolation to diffusion LLMs, achieving up to 6× context expansion (from 4k to 24k tokens) while verifying that established extrapolation scaling laws transfer seamlessly. Benchmarking on RULER reveals that diffusion LLMs match auto-regressive performance on retrieval tasks and excel at synthetic QA, but lag substantially on aggregation tasks, establishing that diffusion LLMs possess complementary long-context capabilities with task-specific strengths and weaknesses rather than uniform parity with auto-regressive counterparts.

2. Context and Motivation

The Core Problem: Diffusion LLMs Are Growing Up—But Their Long-Context Behavior Is a Black Box

Large Language Diffusion Models represent a genuinely different paradigm from the dominant auto-regressive architecture. Instead of generating text token-by-token from left to right, diffusion LLMs operate on a fundamentally different principle: they start with a fully masked sequence of a target length, then iteratively denoise it through a learned reverse process that progressively fills in tokens across the entire sequence simultaneously. This bidirectional, non-autoregressive generation process has attracted intense research interest because it theoretically addresses well-known weaknesses of autoregressive models—the reversal curse (where models trained on "A is B" fail to infer "B is A"), limitations in complex multi-step reasoning, and difficulties maintaining global coherence across long outputs.

The field has made rapid progress on diffusion LLMs across multiple fronts: scaling them to billions of parameters (Nie et al., 2024; 2025; Ye et al., 2025), adapting them for multimodal inputs (Yang et al., 2025; You et al., 2025; Li et al., 2025), applying them to reasoning tasks (Zhao et al., 2025; Huang et al., 2025; Zhu et al., 2025), and optimizing their inference efficiency (Ma et al., 2025; Hu et al., 2025; Wu et al., 2025). However, there is a conspicuous gap in this growing literature: no one has systematically studied how diffusion LLMs handle long input contexts. The paper explicitly states this in the introduction:

"the long-context capabilities of diffusion LLMs, specifically their performance and potential for length extrapolation, remain unexplored."

This gap is critical because it leaves the community unable to answer basic but essential questions: If you train a diffusion LLM on 4k-token sequences, can it process an 8k-token document at inference time? If it degrades, how? Does it fail like auto-regressive models, or does it exhibit different failure modes? Are the well-established techniques for extending auto-regressive model context windows—position interpolation, NTK scaling, RoPE base adjustment—transferable to this new architecture, or do they require rethinking?

Why This Gap Matters: Real-World Impact and Theoretical Significance

The practical motivation is straightforward. Long-context processing is not a niche capability—it is central to how LLMs are deployed in production. Document summarization, multi-turn dialogue, codebase understanding, legal document review, and scientific literature analysis all require models that can reason over tens or hundreds of thousands of tokens. For auto-regressive LLMs, the community has invested enormous effort into context extension (Press et al., 2022; Chen et al., 2023; bloc97, ; Peng et al., 2023; Liu et al., ; Rozière et al., 2023; Xiong et al., 2023; Ding et al., 2024), pushing context windows from a few thousand tokens to millions. If diffusion LLMs are to be serious contenders as general-purpose language models—and the scaling results from Nie et al. (2025) and Ye et al. (2025) suggest they might be—then understanding their long-context behavior is not optional. Deploying a diffusion LLM in any application that involves documents, conversations, or retrieval-augmented generation requires knowing whether it can handle inputs longer than its training length.

The theoretical motivation runs deeper. Diffusion LLMs and auto-regressive LLMs process context in structurally different ways. Auto-regressive models use causal attention masks—each token only attends to preceding tokens—which means the positional encodings they see during training cover the range [0, T_train − 1]. Diffusion LLMs, by contrast, use bidirectional attention—every token attends to every other token in the sequence—which means their positional encodings during training must handle relative positions in the range [−(T_train − 1), T_train − 1]. This difference is not cosmetic; it fundamentally alters what the model learns about positional relationships. As the paper demonstrates, it changes the out-of-distribution behavior when the model encounters sequences longer than its training length. Studying long-context behavior in diffusion LLMs is thus a window into how positional encodings interact with attention structure, with implications that go beyond any single architecture.

Where Prior Approaches Fall Short: The Auto-Regressive Toolkit and Its Assumptions

The existing literature on context extension is overwhelmingly focused on auto-regressive models. The paper provides a detailed primer on this landscape in Appendix A, which serves as essential context for understanding what is and is not transferable.

RoPE and the extrapolation problem. Rotary Position Embedding (RoPE) (Su et al., 2021) has become the dominant position encoding scheme for modern LLMs (LLaMA, Qwen, CodeLlama families all use it). RoPE encodes position by applying rotation matrices to query and key vectors, with different rotation frequencies across different dimensions of the embedding space. The key insight in Equation 3 (Appendix A) is that RoPE's rotary frequencies span a wide range: low-dimensional components of the embedding rotate fast (short periods), while high-dimensional components rotate slowly (long periods). The rotary base β₀ (typically 10,000 for auto-regressive models) controls this frequency distribution.

This frequency structure creates a critical threshold—the critical dimension d_extra, defined in Equation 4:

dextra=2d2logβ0Ttrain2πd_{\text{extra}} = 2 \left\lfloor \frac{d}{2 \log_{\beta_0} \frac{T_{\text{train}}}{2\pi}} \right\rfloor

Dimensions below this threshold complete at least one full trigonometric period within the pretrained context length. Dimensions above it do not—they see only a partial, monotonic slice of their sine/cosine curves during training. When the model encounters position indices beyond T_train at inference time, these high-dimensional components enter out-of-distribution (OOD) territory: they receive positional encodings they never observed during training.

The NTK solution and its limits. The NTK-based approach (bloc97, ; ; Peng et al., 2023; Xiong et al., 2023) addresses this by scaling the rotary base β₀ by a factor λ. This compresses the rotation frequencies, effectively "stretching" the positional encoding so that positions beyond T_train map to rotations that were observed during training. The required scaling factor grows super-linearly with the target context length (Equation 6):

λt=β01(t2π)d/dextra\lambda_t = \beta_0^{-1} \cdot \left( \frac{t}{2\pi} \right)^{d/d_{\text{extra}}}

This produces a power-law relationship between context extension ratio and required base scaling—a "scaling law" for RoPE-based extrapolation (Liu et al., ). However, the approach has practical limits: it typically achieves only 2× to 6× extension during inference, after which attention entropy degradation prevents further scaling (Han et al., 2023; Wang et al., 2024).

The periodicity-monotonicity tradeoff. The paper's Appendix A introduces a crucial conceptual distinction that prior work discovered for auto-regressive models: there are two competing principles governing RoPE extrapolation, and they pull in opposite directions.

First, the Rule of Periodicity: if a model's position embeddings are made fully periodic (by reducing the rotary base so all dimensions complete at least one full cycle within training), perplexity curves flatten during extrapolation. The model no longer sees OOD positions. However—and this is the critical finding from Men et al. (2024) and Hu et al. (2024)—such models fail at actual retrieval tasks. They exhibit a sliding-window effect: they can only attend to information within the most recent tokens corresponding to their training window, despite the flat perplexity. Full periodicity destroys the model's ability to distinguish "near" from "far" positions—everything looks local.

Second, the Rule of Monotonicity: the high-dimensional RoPE components that do NOT complete a full period during training—and thus retain monotonically increasing positional information—are actually essential for long-range dependency modeling. These dimensions show larger activation values in long-context scenarios (Jin et al., 2025), are more sensitive to long-range token relationships (Liu et al., ), and better capture sequential ordering (Wei et al., 2025). Sacrificing monotonicity for complete periodicity cripples the model's ability to reason about position at scale.

For auto-regressive LLMs, this tradeoff creates a fundamental tension: the extrapolation problem is caused by the same monotonic components that are necessary for long-range retrieval. Solutions must navigate between OOD collapse on one side and sliding-window local perception on the other. The paper explicitly frames this tension:

"Thus, solely optimizing for periodicity at the cost of losing monotonicity across all dimensions is wrong."

Why prior work doesn't address diffusion LLMs. All of this theory—the critical dimension analysis, the NTK scaling laws, the periodicity-monotonicity tradeoff—was developed and validated exclusively on auto-regressive models. The assumptions baked into this theory depend critically on the causal attention mechanism that defines those models. In particular, the calculation of the critical dimension d_extra (Equation 4) uses T_train—the maximum trained relative position—which for an auto-regressive model is just the sequence length. For a bidirectional model, T_train is the same sequence length, but the range of observed relative positions is symmetric: [−(T_train − 1), T_train − 1]. The paper notes that this difference has not been accounted for in existing extrapolation theory, which implicitly assumes the asymmetric [0, T_train − 1] range of causal attention.

Similarly, the NTK scaling laws were derived empirically on auto-regressive models. Whether the same power-law relationships hold when the attention pattern allows each token to see both past and future positions is an open question—one that the paper sets out to answer.

How This Paper Positions Itself

The paper positions itself squarely at the intersection of two active but previously disconnected research programs: diffusion LLM development and RoPE-based context extension theory. The introduction articulates this positioning through three specific research questions:

"(1) What mechanisms enable diffusion LLMs' extrapolation stability? (2) Can established length-extension techniques for auto-regressive LLMs be transferred to diffusion architectures? (3) How do diffusion LLMs perform on long-context benchmarks relative to auto-regressive baselines, and what unique capabilities or limitations emerge?"

These questions reveal the paper's dual role. On one hand, it is a phenomenology paper: it documents and characterizes previously unobserved behavior (the local perception phenomenon during direct extrapolation, the stable perplexity curves). On the other hand, it is a methods paper: it proposes LongLLaDA and validates that NTK scaling transfers to diffusion architectures. The theoretical analysis in Section 3 bridges these two roles, using RoPE theory to explain the observed phenomena and justify the method.

The paper explicitly draws on the scaling laws of RoPE-based extrapolation from Liu et al. ()—cited as the theoretical foundation for the NTK-based extension approach—and positions LongLLaDA as a validation that these scaling laws are architecture-independent, holding for diffusion LLMs just as they do for auto-regressive ones. The key intellectual move is to recognize that the critical dimension calculation (Equation 4 of this paper, equivalent to Equation 1 in the main text) depends on the rotary base β₀ and the training context length T_train—but NOT on the attention mask pattern. Since LLaDA uses β₀ = 500,000 (from Nie et al., 2025) and T_train = 4k, the critical dimension computes to d_extra = 64, and the required λ values for 8k, 16k, 24k, and 32k context follow directly from the scaling law. This insight—that the NTK framework is agnostic to the causal vs. bidirectional attention distinction—is the paper's key theoretical contribution, and it is supported by the NIAH results in Figures 6 and 7 showing that the predicted λ values indeed enable effective context extension.

The paper also positions itself relative to the broader auto-regressive context extension literature by identifying where diffusion LLMs behave similarly and where they diverge. The local perception phenomenon—where direct extrapolation yields stable perplexity but only short-range retrieval—directly parallels the sliding-window behavior observed in auto-regressive models trained with small rotary bases (Men et al., 2024; Hu et al., 2024). This parallel is not coincidental; the paper explains it mechanistically in Section 3 by showing that LLaDA's bidirectional attention with T_train = 4k creates effective periodicity that mimics the effect of reduced rotary bases in auto-regressive models. The paper thus connects a novel observation in diffusion LLMs to an existing theoretical framework, providing a unified explanation that spans architectures.

Finally, the paper's benchmarking component positions diffusion LLMs not as replacements for auto-regressive models but as complementary systems with task-specific strengths. The RULER results in Table 2 reveal that diffusion LLMs excel at synthetic QA tasks where auto-regressive models struggle, but significantly underperform on aggregation tasks like variable tracing and word extraction. This task-dependent capability profile—rather than a uniform comparison—is a more nuanced and useful contribution than claiming superiority or parity. It tells practitioners that the choice between diffusion and auto-regressive architectures for long-context applications should depend on the specific task distribution, and it tells researchers that aggregation tasks represent a concrete weakness to target in future diffusion LLM development.

The Stakes: Beyond Incremental Progress

Reading this paper solely as "we applied NTK scaling to a new model" misses its significance. The broader context is that diffusion LLMs are at an inflection point. The scaling results from Nie et al. (2025) demonstrated that diffusion LLMs can match auto-regressive perplexity and downstream performance at the 8B parameter scale—proving viability. The long-context question is the next logical scalability gate: can diffusion LLMs handle the sequence lengths required for real-world deployment? If the answer were "no, they collapse like auto-regressive models but we don't know how to fix them," that would seriously limit their practical prospects. If the answer is "yes, and the same tools work," that removes a major obstacle to adoption.

The paper's answer is more nuanced: diffusion LLMs do NOT collapse like auto-regressive models during direct extrapolation (they maintain stable perplexity and local perception), AND the existing NTK toolkit transfers effectively (achieving 6× extension). This combination—stability without extension, plus effective extension with minimal intervention—is more encouraging than either outcome alone, because it suggests that diffusion LLMs have fundamentally different and potentially more tractable extrapolation dynamics than auto-regressive models. The mechanism analysis in Section 3 provides theoretical grounding for this optimism, showing that the bidirectional attention structure inherently reduces OOD position embedding regions, giving diffusion LLMs a "head start" on extrapolation robustness even before any extension techniques are applied.

3. Technical Approach

3.1 Reader Orientation

This paper constructs LongLLaDA, a training-free method that extends the usable context window of diffusion-based large language models by modifying their rotary position embeddings at inference time using established NTK-based scaling principles. The system solves the problem that diffusion LLMs, despite exhibiting remarkable stability during direct context extrapolation (maintaining flat perplexity curves where auto-regressive models collapse), are nonetheless constrained by a local perception bottleneck: they can only retrieve information from within a window approximately equal to their pretraining length, even when processing longer inputs. The shape of the solution is a plug-and-play RoPE modification that mathematically interpolates unseen position indices back into the distribution observed during training, requiring no fine-tuning, no architectural changes, and no additional training data—only a single hyperparameter computation derived from the target context length and the model's known rotary base and training length.

3.2 Big-Picture Architecture (Diagram in Words)

The LongLLaDA system has three conceptual components, though only one involves active computation at inference time:

Component 1: The Base Diffusion LLM (LLaDA, provided as-is). This is the pretrained model with its original weights, including the frozen RoPE position encoding parameters: a rotary base $\beta_0 = 500,000$, a pretraining context length $T_{\text{train}} = 4096$ tokens, and $d$-dimensional query and key vectors (where $d$ is the model's hidden dimension). The model uses bidirectional attention, meaning every token attends to every other token in the sequence, producing relative positions in the symmetric range $[-(T_{\text{train}}-1), T_{\text{train}}-1]$ during training. No weights are modified, no additional layers are inserted, and no fine-tuning is performed.

Component 2: The Critical Dimension Calculator (one-time computation). Given the model's rotary base $\beta_0$, pretraining length $T_{\text{train}}$, and hidden dimension $d$, this mathematical function computes a single integer $d_{\text{extra}}$—the critical dimension threshold below which all RoPE frequency components have completed at least one full trigonometric period during training. This computation uses Equation 1 from the paper, which is derived from the standard RoPE frequency formula and is architecture-agnostic: it depends only on $\beta_0$ and $T_{\text{train}}$, not on whether attention is causal or bidirectional. For LLaDA-8B with $\beta_0 = 500,000$ and $T_{\text{train}} = 4096$, the computed value is $d_{\text{extra}} = 64$.

Component 3: The NTK Scaling Factor Lookup Table (one-time computation for each target length). Using the critical dimension $d_{\text{extra}}$ and a target context length $t$ (e.g., 8k, 16k, 24k, 32k tokens), this computation produces a scaling factor $\lambda$ that will be applied to the rotary base at inference time. The computation follows the power-law relationship in Equation 1, which was empirically derived for auto-regressive models by Liu et al. (2023b) and is here validated for transfer to diffusion architectures. For the four target lengths, the computed $\lambda$ values are 4, 14, 31, and 55, respectively.

Information flow at inference time: A prompt of length $t$ tokens enters the system → the attention mechanism computes query-key dot products as usual → the RoPE rotation matrices are applied using the scaled rotary base $\lambda \cdot \beta_0$ (instead of the original $\beta_0$) → this compresses the rotation angles so that position indices up to $t$ map to values that fall within the range the model observed during training for all dimensions below $d_{\text{extra}}$ → the model processes the sequence with its standard bidirectional attention and diffusion-based generation procedure → the output is produced with the model now able to attend meaningfully across the full $t$-token context rather than being restricted to the nearest $T_{\text{train}}$ tokens.

3.3 Roadmap for the Deep Dive

  • First, the RoPE mechanism in diffusion LLMs versus auto-regressive LLMs, because the entire method hinges on understanding why the position encoding structure is the root cause of both the local perception phenomenon and the effectiveness of NTK scaling as a fix. We need to establish what RoPE computes, how the frequency structure creates a critical dimension, and why bidirectional attention changes the range of relative positions the model sees during training.

  • Second, the critical dimension calculation, because this single number $d_{\text{extra}}$ is the bridge between the model's pretraining configuration and the required scaling factor. We need to understand Equation 4 (Appendix A), what it computes, why it depends on $\beta_0$ and $T_{\text{train}}$ but not on the attention mask, and the concrete computation for LLaDA that yields $d_{\text{extra}} = 64$.

  • Third, the NTK scaling factor computation, because this is the only piece of LongLLaDA that changes at inference time. We need to understand Equation 1 (main text) / Equation 5-6 (Appendix A), the super-linear power-law relationship it encodes, how different $\lambda$ values map to different target context lengths, and the specific $\lambda$ values computed for LLaDA (4, 14, 31, 55).

  • Fourth, the mechanism of extrapolation: what applying λ actually does to the position embeddings, because the reader needs to understand at a physical/computational level how multiplying the rotary base by a scalar changes what the model "sees" and why this enables context extension without violating monotonicity constraints at high dimensions.

  • Fifth, the periodicity-monotonicity tradeoff and why LongLLaDA navigates it correctly, because this is the theoretical contribution that explains why the method works for diffusion LLMs despite their different attention structure, and why direct extrapolation (without scaling) produces local perception in both architectures for fundamentally the same reason.

  • Sixth, the experimental configuration and design choices, including sampling steps, block size, output length settings, the evaluation benchmarks (NIAH, LongBench, RULER), and why these specific configurations were chosen to isolate the effect of context extension from other variables.

3.4 Detailed, Sentence-Based Technical Breakdown

This is primarily a mechanistic analysis and method transfer paper whose core idea is that the long-context behavior of diffusion LLMs is governed by the same RoPE frequency structure that determines auto-regressive LLM extrapolation, and that NTK-based rotary base scaling—a technique developed for auto-regressive models—transfers to diffusion architectures with no modification because the critical dimension calculation depends only on $\beta_0$ and $T_{\text{train}}$, not on the attention mask pattern.


Rotary Position Embedding (RoPE) in Diffusion Versus Auto-Regressive LLMs

The paper's entire technical contribution rests on understanding how Rotary Position Embedding (RoPE) works, why it produces a critical dimension boundary, and how this boundary interacts with the attention mechanism to create the observed extrapolation behaviors. We must establish this foundation in full detail before any method can be explained.

What RoPE computes. RoPE (Su et al., 2021) encodes positional information by applying rotation matrices to the query and key vectors before they are dotted together in the attention computation. For a query vector at position $t$ and a key vector at position $s$, the pre-RoPE attention score would be simply $q_t \cdot k_s$—a pure content-based similarity with no positional information. RoPE modifies this to $(q_t R_t) \cdot (k_s R_s)$, where $R_t$ and $R_s$ are rotation matrices parameterized by the absolute positions $t$ and $s$.

The crucial property of rotation matrices is that $R_t R_s^\top = R_{t-s}$: when you multiply the rotated query by the transposed rotated key, the absolute positions cancel and you are left with a rotation matrix that depends only on the relative position $t - s$. This is expressed in the paper's Equation 2 (Appendix A):

At,s=(qtRt)(ksRs)=qtRtsksA_{t,s} = (q_t R_t)(k_s R_s)^\top = q_t R_{t-s} k_s^\top

This can be expanded into a sum over $d/2$ two-dimensional subspaces (pairs of adjacent dimensions), where each pair $(2n, 2n+1)$ is rotated by an angle $\theta_n (t-s)$:

At,s=n=0d/21[(qt(2n)ks(2n)+qt(2n+1)ks(2n+1))cosθn(ts)(qt(2n)ks(2n+1)qt(2n+1)ks(2n))sinθn(ts)]A_{t,s} = \sum_{n=0}^{d/2-1} \left[ \left(q_t^{(2n)} k_s^{(2n)} + q_t^{(2n+1)} k_s^{(2n+1)}\right) \cos\theta_n(t-s) - \left(q_t^{(2n)} k_s^{(2n+1)} - q_t^{(2n+1)} k_s^{(2n)}\right) \sin\theta_n(t-s) \right]

where $q_t^{(i)}$ is the $i$-th component of the query vector at position $t$, $k_s^{(i)}$ is the $i$-th component of the key vector at position $s$, and $\theta_n$ is the rotation frequency for the $n$-th dimension pair.

What this equation computes: The attention score between a query at position $t$ and a key at position $s$ is expressed as a sum over $d/2$ independent two-dimensional dot products, each modulated by a sine and cosine of the rotation angle $\theta_n(t-s)$. The first term in each summand captures the similarity between the query and key in the $(2n, 2n+1)$ plane weighted by $\cos\theta_n(t-s)$—this is large when the relative position produces a small rotation angle and the query-key alignment is high. The second term captures a cross-component interaction weighted by $\sin\theta_n(t-s)$. The net result is that the attention score varies smoothly with relative position, with the rate of variation controlled by $\theta_n$.

Why this form: The rotation matrix approach has two key advantages over alternatives like absolute position encodings or learned position biases. First, it guarantees translation invariance: shifting all positions by a constant offset does not change any attention scores, because only relative positions $t-s$ appear. Second, the use of sine and cosine at multiple frequencies means that different dimensions encode positional information at different scales—some dimensions are sensitive to fine-grained local position changes (high frequencies, small $\theta_n$ periods), while others encode coarse-grained long-range position differences (low frequencies, large $\theta_n$ periods). This multi-scale representation is what enables RoPE to handle both local syntax and long-range dependencies, but it is also what creates the critical dimension problem during extrapolation.

The frequency structure and the critical dimension. The rotation frequencies $\theta_n$ are defined by a geometric progression governed by the rotary base $\beta_0$ (Equation 3, Appendix A):

θn=β02n/d,n=0,1,,d/21\theta_n = \beta_0^{-2n/d}, \quad n = 0, 1, \ldots, d/2 - 1

where $d$ is the total embedding dimension and $\beta_0$ is a hyperparameter (10,000 for most auto-regressive models; 500,000 for LLaDA). This means the frequencies range from $\theta_0 = 1$ (dimension pair 0-1 rotates by 1 radian per token of relative distance—very fast) to $\theta_{d/2-1} = \beta_0^{-(d-2)/d} \approx \beta_0^{-1}$ (dimension pair $d-2, d-1$ rotates by approximately $1/\beta_0$ radians per token—extremely slow).

The period for each frequency—the number of tokens of relative distance required for the sine and cosine to complete one full cycle—is:

Tn=2πθn=2πβ02n/dT_n = \frac{2\pi}{\theta_n} = 2\pi \cdot \beta_0^{2n/d}

For $n = 0$ (fastest frequency), $T_0 = 2\pi \approx 6.28$ tokens—these dimensions complete many cycles even within short contexts. For $n = d/2 - 1$ (slowest frequency), $T_{d/2-1} \approx 2\pi \cdot \beta_0$. For LLaDA with $\beta_0 = 500,000$, this is approximately $3.14 \times 10^6$ tokens—these dimensions see only a tiny fraction of a single cycle even across the entire 4k training context.

The critical dimension $d_{\text{extra}}$ (Equation 4, Appendix A) is the largest dimension index $n$ such that $T_n \leq T_{\text{train}}$—that is, the boundary between dimensions that complete at least one full period during training and those that do not:

dextra=2d2logβ0Ttrain2πd_{\text{extra}} = 2 \left\lfloor \frac{d}{2 \log_{\beta_0} \frac{T_{\text{train}}}{2\pi}} \right\rfloor

For LLaDA-8B, plugging in $\beta_0 = 500,000$ and $T_{\text{train}} = 4096$:

log500,00040962πlog500,000(651.9)ln651.9ln500,0006.4813.120.494\log_{500,000} \frac{4096}{2\pi} \approx \log_{500,000}(651.9) \approx \frac{\ln 651.9}{\ln 500,000} \approx \frac{6.48}{13.12} \approx 0.494

d20.494d0.9881.012d\frac{d}{2 \cdot 0.494} \approx \frac{d}{0.988} \approx 1.012d

Wait—this doesn't match the paper's stated result of $d_{\text{extra}} = 64$. Let me recompute more carefully. The paper states in Section 4:

"the pretrained rotary base β₀ = 500000, and the pre-training context length T_train is 4k. This yields a critical dimension d_extra = 64."

The formula for $d_{\text{extra}}$ is:

dextra=2d2logβ0Ttrain2πd_{\text{extra}} = 2 \left\lfloor \frac{d}{2 \log_{\beta_0} \frac{T_{\text{train}}}{2\pi}} \right\rfloor

Working backwards from $d_{\text{extra}} = 64$: this means $\frac{d}{2 \log_{\beta_0} (T_{\text{train}} / 2\pi)} \approx 32$, so $\log_{\beta_0} (T_{\text{train}} / 2\pi) \approx d/64$. For an 8B model, $d$ is typically 4096 (the standard dimension for LLaMA-scale models), which would give $d/64 = 64$ and $\log_{\beta_0} (T_{\text{train}} / 2\pi) \approx 64$. This is clearly not correct for the given values. The discrepancy suggests either $d$ is different (possibly 2048) or there is a different formulation. Looking at the literature this paper draws from—specifically Liu et al. (2023b)—the actual computation may use a slightly different convention for $d_{\text{extra}}$ that accounts for the floor operation and the specific embedding dimension. Since the paper does not provide the intermediate calculation and only states the result $d_{\text{extra}} = 64$, we should note this uncertainty and proceed with the paper's stated value as the operational fact. The exact derivation is not essential for understanding the method, because the critical dimension itself is used only indirectly through the $\lambda$ computation, and the paper's $\lambda$ values (4, 14, 31, 55) are the directly operational quantities.

The important conceptual point is that there exists a boundary dimension below which all RoPE components have experienced complete periodicity during training and above which they have only seen monotonic, non-repeating position signals. This boundary is what causes extrapolation problems: when the model encounters a relative position $t-s$ larger than $T_{\text{train}}$, the high dimensions (those above $d_{\text{extra}}$) receive sine and cosine values they never observed during training—they are out-of-distribution.

The crucial difference: bidirectional vs. causal attention. For an auto-regressive model with causal attention, each token only attends to preceding tokens, so the range of relative positions seen during training is $[0, T_{\text{train}} - 1]$. The position $t-s$ is always non-negative. For a diffusion model with bidirectional attention, each token attends to all other tokens, so the relative positions range symmetrically: $[-(T_{\text{train}}-1), T_{\text{train}}-1]$. This means that for any given absolute relative distance $|t-s|$, the bidirectional model has seen both positive and negative versions during training, while the causal model has only seen one sign.

This has a profound effect on what "out-of-distribution" means during extrapolation. Consider a query-key pair separated by 5000 tokens in an input of length 8000. For the auto-regressive model trained on length 4096, the relative position $t-s = 5000$ is OOD because it exceeds the maximum trained value of 4095—the model has never seen a rotation angle this large for the high dimensions. For the diffusion model trained on length 4096, the absolute relative distance of 5000 is OOD in the same sense—5000 exceeds 4095. However, the diffusion model has been trained on relative positions of $-4095$ through $+4095$, and because the cosine function is even ($\cos(-x) = \cos(x)$), the positional information for $\pm 4095$ is identical for half the dimensions. More importantly, the range of rotation angles the model has observed is symmetric and covers a complete period for more dimensions than the causal model's asymmetric range.

As the paper states in Section 3:

"LLaMA3 struggles to capture all negative position embeddings (gray region), representing half of the potential embedding space, while LLaDA significantly reduces the unlearned OOD spaces, resulting in enhanced robustness in length extrapolation."

This is visualized in Figure 4, where the untrained regions (gray) for LLaDA are substantially smaller than for LLaMA3, despite LLaDA having half the training length (4k vs. 8k). The bidirectional attention essentially gives the model "two for one" coverage of the position embedding space: it learns both positive and negative relative positions, which means the cosine components (even function) are doubly covered and the OOD gap at the boundary is halved.

Why this matters for the method. The NTK scaling approach works by compressing the rotation frequencies so that position indices beyond $T_{\text{train}}$ map to angles that were observed during training. The effectiveness of this compression depends on how much OOD space needs to be "filled in." Because diffusion LLMs start with less OOD space to begin with (as shown in Figure 4), the same scaling factor $\lambda$ might produce cleaner extrapolation in a diffusion model than in an auto-regressive model of comparable training length—a hypothesis consistent with the NIAH results in Figures 6 and 7, where $\lambda = 4$ (targeting 8k, or 2× extension) achieves near-perfect retrieval for LLaDA-8B-Base across all depths.


The Critical Dimension Calculation and Why It Transfers to Diffusion LLMs

The critical dimension $d_{\text{extra}}$ is the linchpin of the entire NTK-based extrapolation framework. Understanding exactly what it represents, how it is computed, and why the computation is independent of the attention mask is essential to understanding why LongLLaDA works.

What $d_{\text{extra}}$ physically represents. Recall that RoPE applies rotation matrices at $d/2$ different frequencies to the query and key vectors. For low dimension indices $n$, the rotation frequency $\theta_n = \beta_0^{-2n/d}$ is high: $\theta_0 = 1$ radian per token, $\theta_1 = \beta_0^{-2/d} \approx 0.993$ for LLaDA (assuming $d = 4096$), and so on. These dimensions rotate rapidly as relative position increases, completing full sine/cosine cycles within just a few tokens. For high dimension indices $n$ near $d/2 - 1$, the frequency is very low: $\theta_{d/2-1} \approx \beta_0^{-1} \approx 2 \times 10^{-6}$ radians per token for LLaDA. These dimensions rotate so slowly that across the entire 4096-token training window, the total rotation is only about $4096 \times 2 \times 10^{-6} \approx 0.008$ radians—a tiny fraction of a single cycle.

The critical dimension $d_{\text{extra}}$ is the index that separates these two regimes. All dimensions $n < d_{\text{extra}}/2$ (since $d_{\text{extra}}$ counts individual dimensions, not pairs) have periods $T_n \leq T_{\text{train}}$—they complete at least one full oscillation during training. All dimensions $n \geq d_{\text{extra}}/2$ have periods $T_n > T_{\text{train}}$—they see only a monotonic, non-repeating segment of their sine/cosine curves.

Why this boundary causes extrapolation problems. For dimensions above $d_{\text{extra}}/2$, the sine and cosine values are approximately monotonic functions of $t-s$ within the training range. For a auto-regressive model trained on $[0, T_{\text{train}}-1]$, these dimensions learn a specific mapping: position 0 → rotation angle 0, position 4095 → rotation angle $\theta_n \cdot 4095$. When the model encounters position 5000 at inference time, the rotation angle $\theta_n \cdot 5000$ is larger than any angle seen during training. The model's learned attention patterns—which associate specific rotation angles with specific attention behaviors—receive an input they cannot interpret, and performance collapses.

The computation for LLaDA. The paper states the computation in Equation 1 (main text, reproduced from Equation 4 and 6 in Appendix A):

dextra=2d2logβ0Ttrain2πd_{\text{extra}} = 2 \left\lfloor \frac{d}{2 \log_{\beta_0} \frac{T_{\text{train}}}{2\pi}} \right\rfloor

with $\beta_0 = 500,000$, $T_{\text{train}} = 4096$, and the result $d_{\text{extra}} = 64$. The floor operation $\lfloor \cdot \rfloor$ ensures this is an even integer, since dimensions come in pairs for the 2D rotation subspaces.

Why this computation is attention-mask agnostic. The key insight that enables LongLLaDA is that $d_{\text{extra}}$ depends only on three quantities: $\beta_0$ (set during model design), $T_{\text{train}}$ (the pretraining sequence length), and $d$ (the model dimension). None of these depend on whether the attention is causal or bidirectional. The critical dimension is about the relationship between the period of each RoPE component and the sequence length—it asks "how many cycles does this frequency complete within $T_{\text{train}}$ tokens?" The answer depends on the absolute distance traveled, not the sign of the relative position. A relative position of +4095 and a relative position of -4095 both correspond to an absolute distance of 4095 tokens in the rotation angle calculation; the sign only flips the sine component ($\sin(-\theta) = -\sin\theta$) while leaving the cosine component unchanged ($\cos(-\theta) = \cos\theta$).

This means the existing NTK theory—which was derived and validated on causal models—transfers without modification to bidirectional models. The paper does not need to re-derive the critical dimension formula or the scaling laws; it can simply plug in LLaDA's specific $\beta_0$ and $T_{\text{train}}$ and use the resulting $d_{\text{extra}}$ in the standard scaling factor computation.


The NTK Scaling Factor Computation

Given the critical dimension $d_{\text{extra}} = 64$, the next step is to compute the scaling factor $\lambda$ needed for a target context length $t$. This is the only computation that changes between different target lengths, and it is the heart of LongLLaDA.

What NTK scaling does. NTK (Neural Tangent Kernel) scaling modifies the rotary base from $\beta_0$ to $\lambda \cdot \beta_0$. Since the rotation frequencies are $\theta_n = (\lambda \beta_0)^{-2n/d}$, multiplying the base by $\lambda > 1$ makes all frequencies slower—the rotation angles grow more slowly with relative position. This has the effect of "compressing" the positional encoding: a relative position of $t-s$ under the scaled base produces the same rotation angles as a relative position of $(t-s)/\lambda$ would produce under the original base (approximately—the relationship is more complex for individual dimensions due to the geometric progression).

If we choose $\lambda$ correctly, then even for relative positions up to the target length $t$, the rotation angles for all dimensions will fall within the range that the model observed during training for relative positions up to $T_{\text{train}}$. This eliminates the OOD problem.

The scaling law equation. The required $\lambda$ for a target length $t$ is given by the paper's Equation 1 (main text):

λ=104(t2π)d/dextra\lambda = 10^{-4} \cdot \left( \frac{t}{2\pi} \right)^{d/d_{\text{extra}}}

where $t$ is the desired context length in tokens, $d$ is the model dimension, and $d_{\text{extra}}$ is the critical dimension. The factor $10^{-4}$ is an empirical adjustment constant from the original NTK formulation.

What this equation computes: Starting from the target length $t$, we divide by $2\pi$ to convert tokens to "cycles" (since $2\pi$ radians = one full period), raise this ratio to the power $d/d_{\text{extra}}$, and multiply by $10^{-4}$. For LLaDA-8B, if $d = 4096$ and $d_{\text{extra}} = 64$, then $d/d_{\text{extra}} = 64$. This means:

  • For $t = 8192$ (8k, 2× extension): $\lambda = 10^{-4} \cdot (8192 / 2\pi)^{64} = 10^{-4} \cdot (1304.5)^{64}$. This produces an astronomically large number if computed naively, but the paper reports $\lambda = 4$, suggesting the actual exponent is $d_{\text{extra}}/d$ rather than $d/d_{\text{extra}}$. Looking at Equation 6 in Appendix A: $\lambda_t = \beta_0^{-1} \cdot (t / 2\pi)^{d/d_{\text{extra}}}$. The $10^{-4}$ in Equation 1 may be $\beta_0^{-1} = 1/500,000 = 2 \times 10^{-6}$, not $10^{-4}$. Since the paper explicitly states the computed $\lambda$ values as 4, 14, 31, and 55 for target lengths 8k, 16k, 24k, and 32k, these are the operational values regardless of the exact computation. The important point is that $\lambda$ grows super-linearly with $t$: going from 8k to 16k requires $\lambda$ to increase from 4 to 14 (3.5×), and going to 32k requires 55 (nearly 14×).

Why super-linear growth. The power-law relationship $\lambda \propto t^{d/d_{\text{extra}}}$ means that each doubling of context length requires more than a doubling of the scaling factor. This is because the dimensions near the critical boundary are the first to go OOD—they have periods just barely longer than $T_{\text{train}}$—and they require the most aggressive interpolation. As the target length increases, the required scaling grows faster than linearly because the rotation angles must be compressed enough to keep even the dimensions just above $d_{\text{extra}}$ within their trained range. This super-linear relationship is what Liu et al. (2023b) called the "scaling law of RoPE-based extrapolation," and it is the theoretical foundation that the paper validates for diffusion LLMs.

The concrete $\lambda$ values and their significance. The paper computes:

"the required scaling factor λ for extrapolation to 8k, 16k, 24k, and 32k is calculated as 4, 14, 31, and 55, respectively."

These values are applied at inference time by simply replacing the rotary base $\beta_0 = 500,000$ with $\lambda \cdot \beta_0$:

  • For 8k context: base becomes $4 \times 500,000 = 2,000,000$
  • For 16k context: base becomes $14 \times 500,000 = 7,000,000$
  • For 24k context: base becomes $31 \times 500,000 = 15,500,000$
  • For 32k context: base becomes $55 \times 500,000 = 27,500,000$

The effectiveness of these values is validated empirically in Figures 6 and 7 through NIAH tests. At $\lambda = 4$ (8k target), both Base and Instruct models achieve near-100% retrieval accuracy across all depths within the 8k range—a complete recovery from the local perception limitation. At $\lambda = 14$ (16k target), retrieval is near-perfect within 16k, with the local perception boundary pushed outward accordingly. At $\lambda = 31$ (24k target), a "lost-in-the-middle" phenomenon emerges—retrieval accuracy drops at intermediate depths—which the paper interprets as approaching the practical extrapolation limit of NTK scaling. At $\lambda = 55$ (32k target), extrapolation fails to achieve the target length, consistent with the known 2-6× practical limit of inference-only NTK scaling.


Mechanism: What Applying λ Actually Does to Position Embeddings

To understand why multiplying the rotary base by $\lambda$ enables context extension, we need to trace through exactly how it changes the rotation angles and what the model "sees" as a result.

Step 1: The scaled frequencies. Under NTK scaling with factor $\lambda$, the rotation frequency for dimension pair $n$ becomes:

θn(λ)=(λβ0)2n/d=λ2n/dβ02n/d=λ2n/dθn\theta_n^{(\lambda)} = (\lambda \beta_0)^{-2n/d} = \lambda^{-2n/d} \cdot \beta_0^{-2n/d} = \lambda^{-2n/d} \cdot \theta_n

For $\lambda = 4$ and a middle dimension where $2n/d = 0.5$, the frequency is reduced by a factor of $4^{-0.5} = 0.5$—the rotation is half as fast. For low dimensions ($2n/d$ small), the reduction is mild ($4^{-0.1} \approx 0.87$). For high dimensions ($2n/d$ close to 1), the reduction is substantial ($4^{-1.0} = 0.25$).

Step 2: Effect on periods. The period for dimension pair $n$ under scaling becomes:

Tn(λ)=2πθn(λ)=2πλ2n/dθn=λ2n/dTnT_n^{(\lambda)} = \frac{2\pi}{\theta_n^{(\lambda)}} = \frac{2\pi}{\lambda^{-2n/d} \cdot \theta_n} = \lambda^{2n/d} \cdot T_n

All periods are stretched, but high dimensions are stretched more than low dimensions. For the critical dimension $n = d_{\text{extra}}/2$, the original period $T_n$ was exactly $T_{\text{train}}$. Under scaling:

Tdextra/2(λ)=λdextra/dTtrainT_{d_{\text{extra}}/2}^{(\lambda)} = \lambda^{d_{\text{extra}}/d} \cdot T_{\text{train}}

With $d_{\text{extra}} = 64$, $d = 4096$, and $\lambda = 4$:

λdextra/d=464/4096=40.0156251.022\lambda^{d_{\text{extra}}/d} = 4^{64/4096} = 4^{0.015625} \approx 1.022

The period stretches to roughly $1.022 \times 4096 \approx 4186$ tokens—still essentially the training length. This seems to suggest the scaling is insufficient, but the actual effect is more subtle because the NTK mechanism operates on the range of rotation angles observed, not directly on periods. The point is not to make every dimension complete a full period within the new context length (which would require extreme scaling and destroy monotonicity), but rather to ensure that the rotation angles encountered at the extrapolated positions fall within the range that the model learned to process during training.

Step 3: The effective interpolation. For a relative position $r = t-s$ greater than $T_{\text{train}}$, under the scaled base, the rotation angle for dimension $n$ is:

angle=θn(λ)r=λ2n/dθnr\text{angle} = \theta_n^{(\lambda)} \cdot r = \lambda^{-2n/d} \cdot \theta_n \cdot r

If we choose $\lambda$ such that $\lambda^{-2n/d} \cdot r \approx r / \lambda_{\text{eff}} \leq T_{\text{train}}$ for the critical dimension, then the rotation angle will be within the trained range. The effective "compression ratio" is dimension-dependent: low dimensions (small $2n/d$) are barely compressed, preserving their fine-grained local position sensitivity, while high dimensions (large $2n/d$) are substantially compressed, bringing their rotation angles back into the trained range. This non-uniform interpolation is the key insight of NTK scaling: it compresses only the dimensions that need compression, leaving the others largely intact.

Step 4: What the model actually computes. At inference time, the model computes attention exactly as before—the only change is that the $\cos\theta_n(t-s)$ and $\sin\theta_n(t-s)$ terms in the attention equation use $\theta_n^{(\lambda)}$ instead of $\theta_n$. For tokens within the training length ($|t-s| \leq 4095$), the rotation angles are slightly reduced, but the model has observed a continuous range of angles during training and can interpolate. For tokens beyond the training length ($|t-s| > 4095$), the rotation angles now fall within the range the model observed during training, thanks to the compression. The model can thus attend to these tokens using its learned attention patterns, rather than encountering completely novel rotation angles that produce undefined behavior.

The result, as shown in Figures 6 and 7, is that the retrieval depth expands from the pretraining window (4k) to the target window (8k, 16k, or 24k), with full accuracy maintained across all depths within the target range (up to the practical limit of approximately 24k where the "lost-in-the-middle" effect emerges).


The Periodicity-Monotonicity Tradeoff and Why LongLLaDA Navigates It Correctly

The paper's theoretical contribution is not just that NTK scaling works for diffusion LLMs—it explains why it works in terms of the periodicity-monotonicity tradeoff, and why direct extrapolation (without scaling) produces the observed local perception effect.

The tradeoff, restated. Position embeddings serve two functions that are in tension. First, they must enable the model to distinguish "near" from "far"—this requires monotonicity: the embedding should vary systematically with distance so that larger distances correspond to detectably different embeddings. Second, they must remain within distribution at inference time—this requires periodicity: the embedding values for extrapolated positions should fall within the range of values observed during training.

Complete periodicity (making every dimension complete at least one full cycle during training) ensures the second requirement but violates the first: if the position signal for a dimension repeats every 4096 tokens, the model cannot distinguish position 100 from position 4196—both map to the same sine/cosine values. This produces the sliding-window effect: the model can only attend effectively within one period (one window), and beyond that, all positions look identical.

Complete monotonicity (using only the non-repeating segment of each frequency) satisfies the first requirement but violates the second: when the model encounters positions beyond the training length, it receives embedding values it never observed, producing undefined behavior.

How NTK scaling balances the two. NTK scaling does not force all dimensions to become fully periodic. Instead, it stretches the monotonic range of each dimension. For a dimension that originally completed 0.8 cycles during training (period > $T_{\text{train}}$), scaling by $\lambda$ reduces its frequency so that across the new target length, it still completes only 0.8 cycles—the same fraction of a cycle as during training. The dimension remains monotonic (never repeats), but the range of rotation angles it covers at inference time is identical to the range it covered during training. The monotonic information is preserved, and the OOD problem is avoided.

The cost is that for any given relative distance $r$, the rotation angle is smaller than it "should" be—the positional encoding is compressed. This means the model's resolution for distinguishing positions is reduced by a factor of $\lambda^{2n/d}$ for each dimension. The power-law relationship in the scaling law (Equation 6, Appendix A) reflects the fact that as the target length increases, more compression is needed, and eventually the resolution becomes too poor to distinguish relevant positions, leading to the "lost-in-the-middle" effect and the practical extrapolation limit.

Why direct extrapolation of diffusion LLMs produces local perception. The paper's mechanistic explanation for the NIAH results in Figure 2 is that without NTK scaling, the high-dimensional RoPE components are approximately periodic with a period equal to $T_{\text{train}} = 4096$. The diffusion model, having been trained with bidirectional attention on sequences of length 4096, has seen rotation angles covering nearly complete or complete periods for many dimensions. When the input is 8000 tokens long, the model encounters rotation angles it has seen before (for the high-frequency dimensions) or angles that are OOD (for the low-frequency dimensions at extreme relative distances). However, because of the symmetric training range $[-4095, 4095]$, the cosine components are even and thus automatically in-distribution for a wider range of relative positions, and the model can process tokens within a 4k sliding window. Beyond that window, the periodic nature of the high-frequency dimensions and the OOD nature of the low-frequency dimensions combine to prevent effective retrieval. The model is not "broken"—it processes the full sequence, but its attention mechanism only produces meaningful connections within the local window where the position embeddings are well-behaved.

This explanation is validated by the t-SNE visualizations in Figure 5. For LLaDA-8B-Base, the query-key states for tokens within and beyond the 4k training length form a single continuous manifold—there is no distribution shift. For LLaMA3-8B-Base, there is a clear bifurcation into two clusters at the 8k boundary, indicating that the auto-regressive model's internal representations undergo a qualitative change when the position embeddings become OOD. The diffusion model's stability comes from the fact that its representations do not change character—the problem is only in the positional signal itself, not in how the model processes it.

Why LongLLaDA correctly applies the theory. The paper's extension method does not naively apply the same $\lambda$ formula from auto-regressive models without thought. Instead, it recognizes that the critical dimension $d_{\text{extra}}$ uses the pretraining sequence length $T_{\text{train}}$ in its computation, not the range of observed relative positions. Since $T_{\text{train}} = 4096$ for LLaDA regardless of attention directionality, the critical dimension is the same as it would be for a hypothetical auto-regressive model with the same $\beta_0$ and sequence length. The resulting $\lambda$ values are therefore identical to what would be computed for an auto-regressive model with $\beta_0 = 500,000$ and $T_{\text{train}} = 4096$. The paper's empirical contribution is the validation that these values work, demonstrating that the scaling law transfers without modification.


Experimental Configuration and Design Choices

The method itself (NTK scaling) is simple: compute $\lambda$ from the target length, multiply the rotary base by $\lambda$, run inference as normal. However, the experimental setup that validates LongLLaDA involves several important configuration choices that affect the interpretation of results.

Model configurations. The paper tests three diffusion LLM families:

  • LLaDA-8B (Nie et al., 2025): pretrained from scratch with $\beta_0 = 500,000$, $T_{\text{train}} = 4096$. Available in Base and Instruct variants. This is the primary testbed for LongLLaDA.
  • LLaDA-1.5 (Zhu et al., 2025): an improved version of LLaDA using variance-reduced preference optimization, same $\beta_0$ and $T_{\text{train}}$. Tested to verify that LongLLaDA generalizes across model versions.
  • Dream-v0-7B (Ye et al., 2025): initialized from Qwen2.5-7B (an auto-regressive model) and then adapted to diffusion generation. The paper notes that "it is hard to define the exact context length of pre-training" for this model, so NTK scaling is not applied—Dream is used only to verify the task-dependent capability findings.

Auto-regressive baselines. LLaMA3-8B (Meta, 2024a) in Base and Instruct variants, with $\beta_0 = 500,000$ (the standard for LLaMA3) and $T_{\text{train}} = 8192$. For fair comparison, NTK scaling is also applied to LLaMA3-8B using $\lambda = 4$ for 16k extrapolation and $\lambda = 13$ for further extension (the different $\lambda$ values for LLaMA3 reflect its different $d_{\text{extra}}$ due to $T_{\text{train}} = 8192$).

Inference settings for diffusion LLMs. The paper specifies several configuration parameters that are specific to diffusion LLMs and affect their long-context behavior:

"All LLMs are required to generate at most 32 tokens, with diffusion LLMs using a block size and sampling steps of 32."

For the NIAH experiments (Section 2, Figures 2-3), the block size and sampling steps are both set to 32 by default. The paper then varies sampling steps $s \in \{1, 4, 8, 16\}$ in Figure 3 to study the effect of sampling quality on retrieval depth. The key finding is that lower sampling steps (1 or 4) prevent retrieval beyond 8k even within the local window, while higher steps (8 or 16) recover the characteristic local perception pattern. For the LongLLaDA experiments (Figures 6-7), the sampling steps are kept at 32—the default setting that produces the strongest baseline retrieval performance.

For the LongBench experiments (Table 1):

"the output length is 512, while for the others, the output length is 64. We still keep the sampling steps the same as the output length, and the block size to 64 for diffusion LLMs."

This means the diffusion generation budget (sampling steps × block size) matches the output length, which is a natural choice for the iterative denoising process where each step refines all tokens simultaneously.

For the RULER experiments (Table 2):

"We set the block size and sampling steps to 64 for diffusion LLMs."

This is a consistent configuration across both Base and Instruct variants and across all context lengths (4k, 8k, 16k).

Evaluation benchmarks and their purposes. The paper uses four evaluation frameworks, each serving a distinct role in the analysis:

  1. Perplexity measurement (Figure 1a): Evaluated on the GovReport subset of LongBench, varying context length from 0 to 16k tokens. This measures the model's raw sequence modeling quality—how surprised it is by the actual tokens—without any task-specific retrieval requirement. Stable perplexity indicates that the model can assign reasonable probabilities to tokens across the full sequence, but does not guarantee it can use those tokens for downstream tasks.

  2. Needle-In-A-Haystack (NIAH) (Figures 2-3, 6-8): The core diagnostic for retrieval capability as a function of context length and "needle" depth. A fact ("needle") is placed at a specific position within a long document ("haystack"), and the model must answer a question about that fact. By sweeping both the total context length (2k to 32k) and the needle depth (0% to 100% from the start), the NIAH heatmaps reveal exactly where the model can and cannot retrieve information. This is the primary tool for characterizing the local perception phenomenon and validating LongLLaDA's extension effectiveness.

  3. LongBench (Table 1): A comprehensive long-context benchmark covering single-document QA, multi-document QA, summarization, few-shot learning, synthetic tasks, and code completion. Evaluated at 4k and 8k context to test both within-training and extrapolated performance. This provides the task-differentiated capability analysis that reveals where diffusion LLMs match or diverge from auto-regressive performance.

  4. RULER (Table 2): A more fine-grained benchmark that decomposes long-context capability into NIAH variants (single-key, multi-key, multi-query, multi-value), aggregation tasks (variable tracing, frequent/common word extraction), and QA tasks (SQuAD, HotpotQA). Evaluated at 4k, 8k, and 16k context lengths. This is the benchmark that reveals the task-dependent capability profile: diffusion LLMs matching on retrieval, lagging on aggregation, and excelling on QA.

Hardware and precision. The paper specifies:

"All experiments are performed with a fixed random seed of 2025, FP16 precision for LLaDA Series and BF16 for Dream Series, and accelerated with FlashAttention2 (Dao, 2023)."

FlashAttention2 is a memory-efficient attention implementation that enables processing longer sequences by reducing the quadratic memory cost of standard attention. Its use is standard for long-context experiments and ensures that any differences between models are due to architecture and position encoding, not implementation efficiency.

Why these design choices. Several choices reflect careful experimental design:

  • Fixed random seed (2025): Ensures reproducibility across all sampling-based generation. Since diffusion LLMs involve stochastic denoising, a fixed seed eliminates random variation as a confounding factor when comparing configurations.

  • Separate precision formats (FP16 vs. BF16): FP16 for LLaDA (likely the format used during its pretraining) and BF16 for Dream (reflecting its Qwen2.5 initialization, which uses BF16). Using the native precision of each model avoids introducing quantization artifacts that could confound the comparison.

  • Only inference-stage modification: LongLLaDA is explicitly "training-free"—no fine-tuning, no continued pretraining, no LoRA adaptation. This is a deliberate choice to isolate the effect of NTK scaling from any confounding effects of additional training. It also makes the method maximally practical: it can be applied to any existing diffusion LLM checkpoint without requiring access to training data or compute. The paper acknowledges this scope limitation and states that fine-tuning experiments are future work.

  • Truncation from the middle for LongBench: When evaluating at a context length that exceeds the model's effective length, "the exceeding part being truncated from the middle." This is a standard practice in long-context evaluation that preserves both the beginning (which often contains task instructions) and the end (which often contains the most recent context) of the document. Truncating the middle assumes that the most important information is at the boundaries—a reasonable assumption for many tasks but a potential confound for multi-document QA where relevant information might be in the middle. The paper does not discuss this choice's impact, but it is a standard practice in the field.

Scaling law validation through NIAH. The paper's central method validation is not just that LongLLaDA "works" but that the scaling law from Liu et al. (2023b) holds for diffusion LLMs. The evidence is in Figures 6 and 7: the $\lambda$ values computed from Equation 1 produce the predicted context extensions (8k, 16k) with near-perfect retrieval, and the degradation at higher $\lambda$ values (31, 55) follows the expected pattern of diminishing returns and eventual failure. The "lost-in-the-middle" phenomenon at $\lambda = 31$ (24k target) mirrors the behavior observed in auto-regressive models at similar extension ratios, and the complete failure at $\lambda = 55$ (32k target) is consistent with the known 2-6× practical limit of inference-only NTK scaling. This validation is the paper's most significant theoretical contribution: it shows that the RoPE extrapolation scaling laws are architecture-independent, governing both causal and bidirectional attention models through the same critical dimension mechanism.

4. Key Insights and Innovations

Innovation 1: The Local Perception Phenomenon as a New Diagnostic Category for Extrapolation Failure

The paper's most conceptually significant contribution is the identification and mechanistic explanation of the local perception phenomenon in diffusion LLMs during direct context extrapolation. This is not simply an observation that diffusion LLMs behave differently from auto-regressive models—it is a new diagnostic category for how language models can fail under length extension, one that the prior literature did not recognize because it was masked by the more dramatic failure mode of auto-regressive models.

Before this work, the field's understanding of extrapolation failure was shaped entirely by the auto-regressive experience. The canonical failure mode was catastrophic: perplexity surges, outputs become incoherent, and retrieval accuracy collapses to zero across all depths (Figure 2b, 2d). This pattern—visible in every NIAH heatmap for auto-regressive models beyond their training length—created an implicit assumption that extrapolation failure is necessarily total. Either a model generalizes to longer contexts, or it breaks completely. The local perception phenomenon challenges this dichotomy.

What the paper discovers is that diffusion LLMs inhabit a qualitatively different failure regime: they maintain stable, flat perplexity curves during extrapolation (Figure 1a), and their NIAH performance does not collapse uniformly but instead transitions to a sliding-window retrieval pattern where information is retrievable only from the most recent pretraining-length segment (Figure 2a, 2c). The model is not broken—it continues to process the full sequence and produce coherent outputs—but its attention mechanism has become effectively local, with a hard boundary at the pretraining context length. This is a partial failure mode: the model retains some functionality (local processing) while losing others (long-range retrieval).

This finding has significant diagnostic value because it separates two aspects of extrapolation that were previously conflated: the model's ability to encode and process long sequences versus its ability to retrieve information across long distances. The flat perplexity curves demonstrate that diffusion LLMs can represent long sequences without the representational collapse that plagues auto-regressive models. The NIAH results demonstrate that representation is not sufficient for retrieval—positional information must also be meaningful across the full range for attention to connect distant tokens. By showing that these two capabilities can decouple, the paper provides a more fine-grained vocabulary for diagnosing and addressing extrapolation limitations than was previously available.

The t-SNE visualizations in Figure 5 provide a vivid mechanistic signature of this decoupling. For LLaDA-8B-Base, QK states from within and beyond the 4k training length form a single continuous manifold, indicating that the model's internal representations do not undergo a qualitative change at the boundary. For LLaMA3-8B-Base, the states bifurcate into two distinct clusters at the 8k boundary—the OOD position embeddings cause a phase change in how the model processes information. The fact that diffusion LLMs avoid this phase change is a fundamental architectural property, not a training artifact, and it suggests that they may be inherently more amenable to context extension techniques that operate at the positional encoding level without requiring representational adaptation.

This contribution is more than descriptive—it reorients the research agenda for long-context diffusion LLMs. The problem to solve is not "preventing collapse" (the auto-regressive challenge) but rather "expanding the retrievable window while preserving monotonic position information." LongLLaDA is a first demonstration that this reoriented problem is tractable using tools already developed for auto-regressive models.


Innovation 2: Architectural Agnosticism of RoPE Extrapolation Laws as a Unifying Principle

The paper's central theoretical move is the demonstration that the scaling laws governing RoPE-based context extension—developed and validated exclusively on auto-regressive models—transfer without modification to diffusion architectures. This is not an obvious or incremental contribution. The prior literature (Liu et al., 2023b; Men et al., 2024; bloc97, 2023b; Peng et al., 2023) built its theoretical framework on assumptions that are deeply entangled with the auto-regressive architecture: causal attention masks, asymmetric relative position ranges [0, T−1], and the specific interplay between unidirectional context processing and OOD position embeddings. There was no a priori reason to believe that the same critical dimension calculation, the same NTK scaling factor computation, and the same power-law relationship between context length and required rotary base scaling would hold when every token simultaneously attends to every other token across a symmetric relative position range [−(T−1), T−1].

The paper's insight is to recognize that the critical dimension computation (Equation 1 in the main text, Equation 4 in Appendix A) depends on three quantities: the rotary base β₀, the pretraining sequence length T_train, and the model dimension d. None of these depend on the attention mask pattern. The critical dimension d_extra is computed by asking: "at what dimension index does the RoPE period exceed the training sequence length?" The answer is determined by the absolute distance a token travels in the rotation space, not by the sign of the relative position. Because cosine is even and the sinusoidal period is symmetric, the range of rotation angles observed by a bidirectional model on [−T, T] is the same as the range observed by a causal model on [0, T], just with symmetric coverage rather than one-sided coverage. The OOD boundary—the threshold beyond which rotation angles are novel—is determined by the maximum absolute relative distance, which is T_train in both cases.

This insight, while mathematically straightforward once articulated, represents a conceptual unification of two previously separate research programs. It means that the decade of work on RoPE extrapolation for auto-regressive models—the NTK scaling laws (Liu et al., 2023b), the periodicity-monotonicity tradeoff analysis (Men et al., 2024), the practical recipes for inference-time extension (bloc97, 2023b; Peng et al., 2023)—constitutes a ready-made toolkit for diffusion LLMs as well. The paper validates this transfer empirically through the NIAH results in Figures 6 and 7, where the λ values computed from the standard formula (4, 14, 31, 55 for 8k, 16k, 24k, 32k targets) produce the expected extension behavior: near-perfect retrieval within the target length, a "lost-in-the-middle" effect emerging at the practical limit (~24k), and eventual failure beyond it (~32k). This pattern exactly mirrors what the scaling laws predict, providing strong evidence that the underlying frequency structure governs extrapolation behavior independent of attention directionality.

The significance of this finding extends beyond the immediate paper. It suggests that RoPE-based position encoding is a more fundamental abstraction than the specific architecture it was designed for—the rotation matrix formulation captures positional relationships in a way that is robust to how those relationships are consumed by the attention mechanism. This has implications for future model design: any architecture using RoPE (causal, bidirectional, encoder-decoder, or novel attention patterns not yet invented) can draw on the same extrapolation theory and toolkit. The paper thus elevates RoPE extrapolation from an auto-regressive-specific technique to an architecture-agnostic principle.

This is a fundamental rather than incremental contribution because it establishes a new theoretical invariant—the architecture-independence of the critical dimension mechanism—rather than simply applying an existing technique to a new model. The empirical validation that the predicted λ values work as expected is the evidence that the invariant holds.


Innovation 3: Task-Dependent Complementarity as a Reframing of the Diffusion vs. Auto-Regressive Comparison

The paper's benchmarking component makes a methodological contribution to how the field should compare architectural paradigms. The dominant narrative in the diffusion LLM literature has been one of competitive parity: diffusion models match auto-regressive perplexity (Nie et al., 2025), diffusion models match downstream performance (Ye et al., 2025), diffusion models can be scaled to billions of parameters. This framing sets up an implicit expectation that diffusion models should eventually replace auto-regressive models by matching or exceeding them on all relevant metrics.

The RULER results in Table 2 decisively reject this framing and replace it with something more useful: task-dependent complementarity. Diffusion LLMs (LLaDA-8B, LLaDA-1.5) achieve comparable or better performance than LLaMA3-8B on NIAH retrieval tasks (single-key, multi-key, multi-query, multi-value variants) and substantially outperform on synthetic QA tasks (SQuAD, HotpotQA). However, they significantly underperform on aggregation tasks (variable tracing, frequent/common word extraction), where auto-regressive models typically perform well. The LongBench results in Table 1 show that on most task categories (single-doc QA, multi-doc QA, summarization, ICL), the difference between the diffusion and auto-regressive models is "relatively limited compared with the difference within LLaMA3 Series," while synthetic tasks show a consistent diffusion advantage.

This pattern—strength on QA and retrieval, weakness on aggregation—is not a random assortment of wins and losses. It suggests a systematic relationship between architectural properties and task demands. Synthetic QA tasks (which in RULER involve answering questions about documents where the answer must be synthesized from multiple pieces of information) are challenging for auto-regressive models because they require integrating information across long distances, a known weakness related to the reversal curse and causal attention bottlenecks. The bidirectional attention in diffusion LLMs may provide a structural advantage for this integration. Aggregation tasks, conversely, require tracking and accumulating information across a sequence—counting occurrences, tracing variable assignments, extracting patterns—which maps naturally onto the sequential, stateful processing that auto-regressive models perform during token-by-token generation.

This reframing matters because it changes the practical question from "should I use a diffusion or auto-regressive LLM?" to "for which tasks in my application should I use each?" It also focuses research attention on the specific weaknesses that need to be addressed (aggregation in diffusion LLMs, compositional synthesis in auto-regressive LLMs) rather than pursuing uniform improvements across all metrics. This is a more productive framing for both practitioners and researchers, and it is supported by consistent evidence across two benchmarks (LongBench and RULER) and three model families (LLaDA, LLaDA-1.5, Dream-v0).

The significance is primarily in the reframing rather than any single performance number. The paper could have reported only the LongBench average scores (which show rough parity) and concluded that diffusion LLMs are "competitive." Instead, it dug into task-level breakdowns and found a systematic pattern of complementary strengths and weaknesses. This is methodologically innovative because it treats the architectural comparison as a multi-dimensional capability profile rather than a scalar score, and it provides actionable guidance for future development.


Innovation 4: The Periodicity-Monotonicity Tradeoff as a Cross-Architectural Organizing Principle

The paper closes an important conceptual loop by demonstrating that the periodicity-monotonicity tradeoff—originally identified in the auto-regressive RoPE literature (Men et al., 2024; Hu et al., 2024)—provides a unified explanation for extrapolation behavior across both causal and bidirectional architectures. This is a synthesis contribution rather than a discovery of new principles, but its significance lies in the clarity it brings to previously puzzling observations.

The tradeoff, as explained in Appendix A, is that RoPE-based models face a tension between two requirements: periodicity (ensuring position embedding values at extrapolated positions fall within the training distribution) and monotonicity (ensuring position embeddings vary systematically with distance to support long-range discrimination). Auto-regressive models with standard rotary bases (β₀ = 10,000) err on the side of monotonicity—their high-dimensional components never complete a full period during training—which gives them strong long-range retrieval within their training length but causes catastrophic OOD collapse beyond it. Auto-regressive models with deliberately reduced rotary bases err on the side of periodicity, which flattens their perplexity curves but produces a sliding-window retrieval pattern identical to what the paper observes in diffusion LLMs.

The paper's insight is that diffusion LLMs with standard rotary bases (β₀ = 500,000 for LLaDA) inherently lean toward the periodicity side of this tradeoff, even without deliberate base reduction. The mechanism is the bidirectional attention structure: by exposing the model to symmetric relative positions [−(T−1), T−1], the training distribution covers a wider range of rotation angles for each frequency component, effectively providing more complete periodic coverage than the asymmetric [0, T−1] range of causal attention. The result is the same phenotype—stable perplexity, local perception, no catastrophic collapse—arising from a different mechanism (bidirectional training range rather than reduced base frequency). Figure 4 makes this visually clear: LLaDA's trained region (non-gray area) covers a substantially larger fraction of the full periodic cycle than LLaMA3's, despite having half the training length.

This synthesis is valuable because it converts what initially appears to be a mysterious architectural difference ("diffusion LLMs don't collapse during extrapolation") into a specific, mechanistically grounded position on a known tradeoff curve. The paper can then apply the known solution for models on the periodicity side of the tradeoff—NTK-based rotary base scaling to stretch the monotonic range outward—and demonstrate that it works exactly as the theory predicts (Figures 6, 7). The entire LongLLaDA contribution can be understood as the application of this diagnostic framework: identify that the model is over-indexed on periodicity, recognize that the existing NTK toolkit can rebalance toward monotonicity at longer ranges, and compute the required λ values from the standard scaling law.

This is a conceptual innovation rather than a technical one, but it significantly enhances the paper's explanatory power. Without it, the paper's contributions would read as two separate findings (an empirical observation about diffusion LLMs, and a method that happens to work) rather than as a coherent narrative where the observation is explained by existing theory and the method is a direct consequence of that explanation.


Summary Assessment

The paper's innovations are primarily diagnostic and theoretical rather than algorithmic. LongLLaDA itself is a straightforward application of existing NTK scaling; what makes the paper significant is the systematic characterization of diffusion LLM extrapolation behavior, the demonstration that RoPE extrapolation theory is architecture-agnostic, the identification of task-dependent complementarity between diffusion and auto-regressive models, and the synthesis of these findings under the periodicity-monotonicity tradeoff framework. These contributions collectively establish a foundation for future long-context diffusion LLM research by providing both the theoretical understanding and the practical toolkit needed to extend context windows, while simultaneously identifying the concrete capability gaps that remain to be addressed.

5. Experimental Analysis

Evaluation Methodology

  • Dataset. The Needle-In-A-Haystack (NIAH) test (Gkamradt, 2023; Li et al., 2024) serves as the primary diagnostic for retrieval capability as a function of context length and needle depth, sweeping total context from 2k to 32k tokens. The LongBench benchmark (Bai et al., 2023) provides task-differentiated evaluation across single-document QA, multi-document QA, summarization, few-shot ICL, synthetic tasks, and code completion, evaluated at 4k and 8k context lengths. The RULER benchmark (Hsieh et al., 2024) decomposes long-context capability into NIAH variants (single-key, multi-key, multi-query, multi-value), aggregation tasks (variable tracing, frequent/common word extraction), and QA tasks (SQuAD, HotpotQA), evaluated at 4k, 8k, and 16k context lengths. Additionally, perplexity is measured on the GovReport subset of LongBench to assess raw sequence modeling quality.

  • Base model(s). The primary testbed is LLaDA-8B (Nie et al., 2025), a diffusion LLM pretrained from scratch with rotary base β₀ = 500,000 and pretraining context length T_train = 4,096 tokens, available in Base and Instruct variants. LLaDA-1.5 (Zhu et al., 2025), an improved version using variance-reduced preference optimization with the same β₀ and T_train, is used to verify generalization of LongLLaDA across model versions. Dream-v0-7B (Ye et al., 2025), initialized from Qwen2.5-7B and adapted to diffusion generation, serves as an additional validation point for task-dependent capability analysis, though its exact pretraining context length is undefined due to its auto-regressive initialization. The auto-regressive baseline is LLaMA3-8B (Meta, 2024a) in Base and Instruct variants, with β₀ = 500,000 and T_train = 8,192 tokens.

  • Metrics. Perplexity is measured as the model's token-level negative log-likelihood on the GovReport subset, with context length varied from 0 to 16k tokens, providing a raw measure of sequence modeling quality. NIAH retrieval accuracy is the fraction of test cases where the model correctly answers a question about a "needle" fact placed at a specified depth within a "haystack" document, reported as a heatmap across context length (2k–32k) and depth percentile (0–100%). LongBench and RULER use task-specific accuracy or F1 metrics as defined by the respective benchmarks, with results reported per task category and as a weighted average across all subtasks.

  • Baselines. The primary baseline for context extension comparison is direct extrapolation—running diffusion LLMs on sequences longer than their pretraining length without any position encoding modification. For auto-regressive comparison, LLaMA3-8B serves as the architectural baseline in both its Base and Instruct variants. For the LLaMA3 NTK-scaled comparison, the authors apply NTK scaling with λ = 4 for 16k extension and λ = 13 for further extension, following the standard formula but using LLaMA3's own critical dimension derived from its β₀ = 500,000 and T_train = 8,192. The paper does not compare against alternative context extension methods (e.g., position interpolation, YaRN, ReRoPE) for either diffusion or auto-regressive models.

  • Generation budget / compute accounting. For diffusion LLMs, the primary compute controls are the sampling steps s and block size—both set to 32 for default NIAH experiments, 64 for RULER, and matched to output length for LongBench (64 for most tasks, 512 for summarization). The paper varies s ∈ {1, 4, 8, 16, 32} in ablation studies (Figures 3, 10, 11) to characterize how denoising quality affects retrieval depth. For auto-regressive LLMs, the generation budget is the number of sequentially decoded tokens (max 32 for NIAH, 64 for most RULER/LongBench tasks, 512 for LongBench summarization). The paper does not attempt to equalize FLOPs or wall-clock time between architectures—the comparison is at equal output token counts and equal context lengths, not equal compute budgets.

  • Cross-validation / statistical protocol. All experiments use a fixed random seed of 2025 to ensure reproducibility across stochastic generation. The paper uses OpenCompass (Contributors, 2023) for evaluation, with FP16 precision for LLaDA models and BF16 for Dream models, and FlashAttention2 (Dao, 2023) for memory-efficient attention. No cross-validation or statistical significance testing is reported—results are single-run evaluations on the standard test sets of each benchmark. The NIAH heatmaps aggregate over multiple needle positions and depths within each (context length, depth percentile) cell, but the paper does not report variance estimates or confidence intervals.


Main Quantitative Results

Direct Extrapolation: Perplexity Stability and Local Perception

The paper's foundational empirical contribution is the characterization of how diffusion LLMs behave when directly tested on sequences longer than their pretraining length, without any position encoding modification. This is documented in Figures 1 and 2, which reveal a qualitatively different failure mode from auto-regressive models.

Perplexity comparison (Figure 1a). The paper reports:

"diffusion LLMs maintain stable perplexity during direct context extrapolation. In stark contrast, auto-regressive LLMs suffer catastrophic perplexity surges... when input length exceeds their maximum supported context window, 8k tokens."

Specifically, LLaDA-8B-Base maintains a perplexity of approximately 5–10 across the full range from 0 to 16k tokens, with no visible inflection point at the 4k training boundary. LLaDA-8B-Instruct shows similarly stable behavior, hovering around 10–15. In contrast, LLaMA3-8B-Base shows a sharp increase from approximately 15 at 8k to approximately 25 at 10k and continuing upward—a clear divergence at the training boundary. The Instruct variant shows a similar pattern with a lower baseline but equivalent divergence. The paper interprets this stability as evidence that diffusion LLMs do not experience the representational collapse that plagues auto-regressive models when position embeddings become out-of-distribution.

NIAH direct extrapolation (Figure 2). The retrieval results reveal why stable perplexity does not imply functional long-context capability:

"LLaDA-8B-Base and LLaDA-8B-Instruct achieve 100% retrieval accuracy within a 4k context. Surprisingly, when exceeding 4k, up to 24k, LLaDA still retrieves information from the nearest 4k window, demonstrating a local perception like a sliding window."

The heatmaps in Figures 2a and 2c show a distinctive pattern: within the 4k pretraining length, retrieval is near-perfect across all depths (scores approaching 100, green region filling the entire 0–100% depth range up to the 4k mark). Beyond 4k, the green region persists but is constrained to the bottom portion of the heatmap—retrieval succeeds only when the needle is placed within the most recent ~4k tokens, regardless of total context length. At 16k total context, for example, the model retrieves correctly only when the needle is in the final 25% of the document (depths 75–100%). At 24k, the retrievable window shrinks proportionally further to approximately the final 17%. The "Average Depth Score" curves on the right of each heatmap show this as a monotonic decline in retrieval accuracy as depth decreases (needle placed earlier in the document), with the decline beginning precisely at the depth corresponding to the training length boundary.

Auto-regressive comparison (Figures 2b, 2d). LLaMA3-8B-Base and LLaMA3-8B-Instruct show the expected catastrophic pattern: perfect retrieval within 8k (green across all depths up to the 8k boundary), followed by complete collapse with scores near zero across all depths for any context length exceeding 8k. The overall NIAH scores quantify this: LLaDA-8B-Base achieves 54.25, LLaDA-8B-Instruct achieves 52.41, compared to LLaMA3-8B-Base at 51.71 and LLaMA3-8B-Instruct at 46.60 (these overall scores average across all context lengths and depths, so the diffusion models' partial functionality at extended lengths partially compensates for their shorter effective window within training length).

Effect of sampling steps on retrieval depth (Figure 3). The paper investigates a diffusion-specific variable—the number of denoising steps—and finds it modulates retrieval capability:

"at 1 or 4 steps, LLaDA-8B-Base fails to retrieve information beyond 8k length, and increasing s to 8 or 16 can achieve retrieval depths of 25% at 16k and almost 10% at 24k context length."

Figure 3a (s = 1): overall NIAH score of 45.59, with retrieval failing beyond approximately 8k regardless of depth. Figure 3b (s = 4): score of 47.15, similar pattern but slightly more retrieval at intermediate depths. Figure 3c (s = 8): score of 52.75, with the characteristic local perception pattern emerging—retrieval succeeds in the bottom ~25% depth at 16k. Figure 3d (s = 16): score of 53.60, similar to s = 8 but marginally improved. The default s = 32 (Figure 2a) shows the strongest local perception pattern with an overall score of 54.25. This demonstrates that the local perception phenomenon is partially dependent on denoising quality—insufficient sampling steps degrade retrieval even within the local window, but the fundamental sliding-window structure is robust to step count once a threshold (approximately 8 steps) is reached. The paper reports similar results for LLaDA-8B-Instruct and LLaDA-1.5 in Appendix B.2 (Figures 10, 11).

NTK-Based Context Extension with LongLLaDA

The core method validation is that applying NTK scaling with computed λ values expands the retrievable window in accordance with the scaling law predictions. This is documented in Figures 6 and 7 for LLaDA-8B Base and Instruct variants, respectively, and extended to LLaDA-1.5 in Figure 8.

LLaDA-8B-Base with LongLLaDA (Figure 6). The paper reports:

"When λ = 4, 14, LongLLaDA can effectively extrapolate diffusion LLMs to the corresponding context lengths, achieving near 100% recall across all depths within these ranges."

At λ = 4 (target 8k, Figure 6a): the NIAH heatmap shows near-perfect retrieval (green, scores approaching 100) across all depths from 0–100% within the 8k range. The overall score jumps from 54.25 (direct extrapolation, Figure 2a) to 71.33. The average depth score curve (right panel) shows essentially flat, near-100% performance throughout the 8k window, confirming that the model can now retrieve from any position, not just the most recent 4k.

At λ = 14 (target 16k, Figure 6b): the green region extends to 16k with near-perfect retrieval across all depths within this range. The overall score rises to 82.33. The "local perception boundary" has been pushed from 4k to 16k—the model now treats 16k as its effective context window.

At λ = 31 (target 24k, Figure 6c): the overall score remains 82.33, but the heatmap reveals a qualitative change. While retrieval is near-perfect at the boundaries (depths near 0% and 100%), intermediate depths show degraded performance—the "lost-in-the-middle" phenomenon. The paper interprets this as LongLLaDA approaching its practical extrapolation limit:

"a lost-in-the-middle phenomenon (Liu et al., 2023a) similar to auto-regressive models emerges in intermediate depths, indicating that LongLLaDA approaches its practical extrapolation limit."

At λ = 55 (target 32k, Figure 6d): the overall score drops to 75.43, and the heatmap shows that extension to 32k is largely unsuccessful—the green region no longer extends to the full 32k range, and retrieval is inconsistent even within the extended window. The paper states:

"When λ = 55, further extrapolation is unachievable."

This failure at approximately 6× extension (24k from 4k base) is consistent with the known 2–6× practical limit of inference-only NTK scaling established in the auto-regressive literature (bloc97, 2023b; Han et al., 2023).

LLaDA-8B-Instruct with LongLLaDA (Figure 7). The Instruct variant shows a similar pattern but with consistently lower absolute scores. At λ = 4 (Figure 7a): overall score 61.72, with near-perfect retrieval within 8k but some degradation at intermediate depths even at this modest extension. At λ = 14 (Figure 7b): overall score 67.97, with the 16k window effectively supported. At λ = 31 (Figure 7c): score 67.19, with lost-in-the-middle emerging. At λ = 55 (Figure 7d): score 61.69, with failed extension. The Instruct variant's lower baseline performance (52.41 direct vs. 54.25 for Base) propagates through all λ values, but the qualitative pattern—effective extension at λ = 4 and 14, diminishing returns at λ = 31, failure at λ = 55—is preserved.

LLaDA-1.5 validation (Figure 8, Appendix B.2). To verify that LongLLaDA generalizes beyond the original LLaDA model, the paper applies the same λ values to LLaDA-1.5 (Zhu et al., 2025), which uses the same β₀ = 500,000 and T_train = 4,096 but a different training procedure (variance-reduced preference optimization). The results in Figure 8 closely mirror those for LLaDA-8B: direct extrapolation shows local perception (Figure 8a, score 51.49), λ = 4 achieves near-perfect 8k retrieval (Figure 8b, score 61.71), λ = 14 successfully extends to 16k (Figure 8c, score 69.56), and λ = 31 shows lost-in-the-middle at 24k (Figure 8d, score 68.51). The paper notes:

"We use the same scaling factors as LLaDA and achieve similar length extrapolation effects consistent with the prediction of the scaling law of RoPE-based length extrapolation."

This cross-model consistency is important because it demonstrates that the method depends only on the architectural parameters (β₀, T_train, d) and not on model-specific training details.

Task-Dependent Capability Analysis on LongBench

The LongBench results in Table 1 compare LLaDA-8B, LLaDA-1.5, and LLaMA3-8B at 4k and 8k context lengths, with the 8k evaluation exceeding LLaDA's pretraining length (requiring either direct extrapolation or LongLLaDA with λ = 4).

Direct extrapolation performance (gray cells in Table 1). When evaluated at 8k without NTK scaling, LLaDA models show modest degradation compared to their 4k performance, rather than collapse. LLaDA-8B-Base drops from an average of 34.1 (4k) to 32.4 (8k)—a decline of only 1.7 points. LLaDA-8B-Instruct drops from 37.2 to 36.8 (0.4 points). LLaDA-1.5 drops from 37.6 to 37.1 (0.5 points). In contrast, LLaMA3-8B-Instruct increases from 37.0 (4k) to 41.9 (8k)—the 8k context is within its training length and provides more information. LLaMA3-8B-Base increases from 33.6 to 35.1.

LongLLaDA performance at 8k (λ = 4 rows). Applying NTK scaling yields mixed results across task categories. For LLaDA-8B-Base: the average improves marginally from 32.4 (direct) to 33.6 (LongLLaDA), with most of the gain coming from multi-doc QA (13.1 → 18.6) and synthetic tasks (57.4 → 59.2), while single-doc QA declines slightly (13.9 → 15.2 is actually an improvement—correction: the paper reports 13.9 for direct and 15.2 for λ = 4 in single-doc QA, which is an increase). For LLaDA-8B-Instruct: the average improves more substantially from 36.8 to 40.6, driven by synthetic tasks (66.4 → 67.3 is modest; the larger gains are in multi-doc QA: 14.0 → 19.8, ICL: 33.2 → 39.8, and code: 66.4 → 67.3). For LLaDA-1.5: similar pattern, with the average improving from 37.1 to 40.7, and the largest gains in multi-doc QA (14.5 → 20.6), ICL (33.0 → 39.3), and synthetic (67.6 → 67.9).

Task-category patterns. The paper highlights a specific finding from the task breakdown:

"in all task domains besides synthetic tasks, the difference between LLaDA Series and LLaMA3 Series is relatively limited compared with the difference within LLaMA3 Series."

At 8k with LongLLaDA, LLaDA-8B-Instruct achieves: single-doc QA 23.4 vs. LLaMA3-8B-Instruct 37.5 (significant gap), multi-doc QA 19.8 vs. 28.3 (gap), summarization 35.3 vs. 34.7 (near parity), ICL 39.8 vs. 40.7 (near parity), code 67.3 vs. 56.1 (diffusion advantage). The "limited difference" observation appears to apply most clearly to summarization and ICL. The synthetic task domain shows a consistent and substantial diffusion advantage: LLaDA-8B-Base scores 59.2 (LongLLaDA at 8k) vs. LLaMA3-8B-Base at 49.6; LLaDA-8B-Instruct scores 67.3 vs. LLaMA3-8B-Instruct at 62.8; LLaDA-1.5 scores 67.9 vs. the same LLaMA3 baselines. The paper states this observation "inspires us to conduct an in-depth discussion of diffusion LLMs on the performance of the synthesis tasks compared with auto-regressive LLMs," motivating the more detailed RULER analysis.

Dream-v0-7B on LongBench (Table 3, Appendix B.2). The Dream series, initialized from Qwen2.5-7B, achieves higher absolute scores than both LLaDA and LLaMA3 at both context lengths. At 4k, Dream-v0-7B-Instruct averages 39.8 compared to LLaMA3-8B-Instruct's 37.0. At 8k (within Dream's effective range given its auto-regressive initialization), Dream-v0-7B-Instruct reaches 42.7 vs. LLaMA3-8B-Instruct's 41.9. The paper does not apply NTK scaling to Dream models because "it is hard to define the exact context length of pre-training," so the Dream results serve only as additional evidence for the task-dependent capability patterns.

RULER: Fine-Grained Task-Dependent Capability Profiling

The RULER results in Table 2 provide the most detailed breakdown of where diffusion LLMs match, exceed, or fall short of auto-regressive performance across context lengths.

NIAH subtasks: comparable performance. Across single-key, multi-key, multi-query, and multi-value retrieval variants, LongLLaDA with appropriate λ values achieves scores that are comparable to or approach those of LLaMA3-8B with its own NTK scaling. At 8k context: LLaDA-8B-Base + λ = 4 achieves 96.4 NIAH vs. LLaMA3-8B-Base + λ = 4 at 99.8—a small gap. At 16k context: LLaDA-8B-Base + λ = 14 achieves 99.3 vs. LLaMA3-8B-Base + λ = 13 at 99.1—essentially parity. The Instruct variants show similar patterns: LLaDA-8B-Instruct + λ = 14 at 16k achieves 97.3 vs. LLaMA3-8B-Instruct + λ = 13 at 99.3. Across all NIAH variants at all context lengths, the diffusion models with appropriate λ consistently achieve scores above 95% where auto-regressive models score above 98%—a small but persistent gap.

Aggregation tasks: substantial diffusion weakness. The paper reports:

"diffusion LLMs show significantly inferior performance in aggregation tasks, including Variable Tracing and Frequent or Common Word Extraction, where auto-regressive LLMs typically perform well."

The specific numbers in Table 2 bear this out starkly. At 8k context: LLaDA-8B-Base + λ = 4 achieves AGG (aggregation) score of 61.0 vs. LLaMA3-8B-Base + λ = 4 at 94.1—a gap of over 30 points. At 16k context: LLaDA-8B-Base + λ = 14 achieves 68.9 vs. LLaMA3-8B-Base + λ = 13 at 94.0—the gap persists at 25 points. The Instruct variants show similarly large gaps: LLaDA-8B-Instruct + λ = 14 at 16k achieves 66.2 vs. LLaMA3-8B-Instruct + λ = 13 at 92.4. Increasing λ does improve diffusion aggregation performance somewhat (LLaDA-8B-Base: 45.2 at direct 8k → 61.0 at λ = 4 → 68.9 at λ = 14 → 75.2 at λ = 31), suggesting that part of the weakness is context-length-related, but even the best diffusion score (75.2 at λ = 31) substantially trails the auto-regressive baseline (94.0–94.1).

QA tasks: consistent diffusion advantage. The paper highlights this as a surprising finding:

"on QA tasks, including SQuAD and Hotpot, that challenge auto-regressive LLMs (Hsieh et al., 2024), diffusion LLMs demonstrate superior capability."

At 4k context: LLaDA-8B-Base scores 82.5 QA vs. LLaMA3-8B-Base at 67.5 (15-point advantage). LLaDA-8B-Instruct scores 90.5 vs. LLaMA3-8B-Instruct at 68.5 (22-point advantage). At 8k context: LLaDA-8B-Base + λ = 4 scores 73.0 vs. LLaMA3-8B-Base + λ = 4 at 59.0 (14-point advantage). LLaDA-8B-Instruct + λ = 4 scores 89.0 vs. LLaMA3-8B-Instruct + λ = 4 at 65.0 (24-point advantage). At 16k context, the Instruct advantage narrows: LLaDA-8B-Instruct + λ = 14 scores 89.5 vs. LLaMA3-8B-Instruct + λ = 13 at 63.5 (26-point advantage). The QA advantage is the most robust finding across context lengths and model variants—diffusion LLMs consistently outperform auto-regressive LLMs on these synthetic QA tasks by substantial margins.

Dream-v0-7B on RULER (Table 4, Appendix B.2). Evaluated only on pretrained models (without NTK scaling), Dream-v0-7B shows the same task-dependent pattern. At 4k: Dream-v0-7B-Instruct achieves NIAH 95.6 (vs. LLaMA3-8B-Instruct 99.6), AGG 74.6 (vs. 97.2—a 22.6-point gap), QA 76.5 (vs. 68.5—an 8-point advantage). The aggregation weakness and QA strength replicate across model families, confirming these are architectural characteristics rather than artifacts of a specific training procedure.

Overall RULER averages. The "Avg" column in Table 2 weights NIAH, AGG, and QA into a single score. At 8k context: LLaDA-8B-Base + λ = 4 achieves 84.7 vs. LLaMA3-8B-Base + λ = 4 at 92.2 (7.5-point gap). At 16k: LLaDA-8B-Base + λ = 14 achieves 86.8 vs. LLaMA3-8B-Base + λ = 13 at 91.8 (5-point gap). The Instruct variants show a narrower gap at 8k (85.8 vs. 92.8) but a similar gap at 16k (88.9 vs. 92.2). The averages obscure the task-dependent complementarity—diffusion LLMs trail on aggregation, match on retrieval, and lead on QA—but demonstrate that overall long-context capability is approaching parity, with the aggregation gap being the primary differentiator.


Ablation Studies and Robustness Checks

Sampling steps (Figures 3, 10, 11): The number of denoising steps in diffusion LLMs modulates retrieval depth during direct extrapolation. At s = 1 or 4, retrieval fails beyond 8k even within the local window (scores: 45.59 and 47.15 for LLaDA-8B-Base). At s = 8 or 16, the characteristic local perception pattern emerges (scores: 52.75 and 53.60). At s = 32 (default), the strongest local perception is observed (score: 54.25). The Instruct variant (Figure 10) shows a more dramatic step dependence: s = 1 yields score 24.57 with virtually no retrieval beyond 4k, while s = 16 recovers to 51.27 with clear local perception. LLaDA-1.5 (Figure 11) shows the same qualitative pattern: s = 1 score 22.57, s = 16 score 50.49. The key finding is that sufficient denoising steps (≥ 8) are necessary for the local perception phenomenon to manifest, but the sliding-window structure itself is robust to step count once this threshold is reached.

λ scaling factor sweep (Figures 6, 7, 8): The four λ values (4, 14, 31, 55) trace out the full spectrum from effective extension to failure. λ = 4 (2× extension) works near-perfectly with scores of 71.33 (Base) and 61.72 (Instruct). λ = 14 (4× extension) maintains high performance with scores of 82.33 and 67.97. λ = 31 (6× extension) introduces lost-in-the-middle while maintaining boundary retrieval, with scores of 82.33 and 67.19. λ = 55 (8× extension) fails to achieve the target length, with scores dropping to 75.43 and 61.69. This monotonic degradation pattern with increasing λ validates the scaling law prediction that inference-only NTK scaling has a practical limit of approximately 2–6× extension, consistent with auto-regressive findings.

Model variant generalization (LLaDA vs. LLaDA-1.5, Figure 8 vs. Figures 6–7): LongLLaDA's effectiveness does not depend on LLaDA-specific training details. LLaDA-1.5, which uses variance-reduced preference optimization rather than standard SFT, shows the same qualitative pattern: direct extrapolation with local perception (score 51.49), effective extension at λ = 4 (61.71) and λ = 14 (69.56), and lost-in-the-middle at λ = 31 (68.51). The absolute scores are slightly lower than LLaDA-8B-Base but higher than LLaDA-8B-Instruct, consistent with the models' relative base capabilities.

Instruct vs. Base comparison: The Instruct variant consistently underperforms the Base variant in NIAH across all λ values and context lengths, despite generally performing better on downstream benchmarks (LongBench, RULER). This suggests that instruction tuning may trade off some raw retrieval capability for improved instruction following and task performance, a pattern consistent with observations in auto-regressive models where RLHF/SFT can degrade certain capabilities.

Direct extrapolation without NTK (gray cells in Tables 1, 2): For LongBench (Table 1), LLaDA models evaluated at 8k without scaling show only modest degradation from their 4k performance—LLaDA-8B-Base drops from 34.1 to 32.4, LLaDA-8B-Instruct from 37.2 to 36.8. For RULER (Table 2), the direct extrapolation degradation is more pronounced: at 8k without scaling, LLaDA-8B-Base NIAH drops from 99.7 (4k) to 53.8, while AGG drops from 65.2 to 45.2, and QA drops from 82.5 to 41.0. This dichotomy—perplexity and some LongBench tasks remain stable while retrieval and QA collapse—is consistent with the local perception explanation: tasks that depend on information in the recent 4k window can succeed, while those requiring access to earlier context fail.

Dream-v0 as out-of-distribution validation (Tables 3, 4): The Dream-v0-7B results, while not directly testing LongLLaDA (since NTK scaling is not applied due to undefined pretraining length), serve as an important robustness check on the task-dependent capability claims. The pattern of QA strength and AGG weakness replicates in a model with different initialization, different training data (distilled from Qwen2.5-7B), and different architecture details, suggesting these are fundamental properties of diffusion-based generation rather than artifacts of LLaDA's specific implementation.

LongBench truncation protocol: For the 8k evaluations in Table 1, "the exceeding part being truncated from the middle." The paper does not ablate this choice against alternative truncation strategies (truncate from end, truncate from beginning, sliding window), which leaves open the question of whether the observed performance stability is partially attributable to the truncation strategy preserving the most task-relevant information at the boundaries. This is a standard practice in the field, but its interaction with the local perception phenomenon is not explicitly analyzed.


Critical Assessment

Do the experiments support the paper's central claims? Let us examine each.

Claim: "Diffusion LLMs maintain remarkably stable perplexity during direct context extrapolation." The evidence in Figure 1a directly supports this claim for LLaDA-8B and LLaMA3-8B on the GovReport subset. The perplexity curves for LLaDA variants are essentially flat from 0 to 16k tokens, while LLaMA3 curves diverge upward at 8k. However, the claim's scope should be noted: this is a single perplexity measurement on a single dataset (GovReport). The paper does not report perplexity on other text distributions (code, dialogue, structured data) or at context lengths beyond 16k. The stability might be specific to the GovReport document type or to the ≤4× extension range. Additionally, perplexity is measured for the base language modeling objective, not for the generation quality of the diffusion process—these are related but distinct capabilities.

Claim: "Diffusion LLMs exhibit a distinct 'local perception' phenomenon, enabling successful retrieval from recent context segments." This is the paper's strongest and most thoroughly validated claim. The NIAH heatmaps in Figure 2 provide precise, visually interpretable evidence: the green (high-accuracy) region in Figures 2a and 2c extends only to the most recent ~4k tokens regardless of total context length, forming a clear sliding-window boundary. The claim is replicated across LLaDA-8B Base (Figure 2a), LLaDA-8B Instruct (Figure 2c), LLaDA-1.5 (Figure 8a), Dream-v0-7B Base and Instruct (Figure 9), and across multiple sampling step configurations (Figures 3, 10, 11). The phenomenon is robust to model variant, training procedure, and inference hyperparameters. The mechanism explanation via RoPE dynamics (Section 3) provides theoretical grounding, and the t-SNE visualizations in Figure 5 provide corroborating representational evidence. However, the claim is demonstrated only for retrieval of isolated facts (the NIAH paradigm)—the paper does not test whether the local perception window applies to more complex reasoning over recent context (e.g., multi-hop questions within the 4k window, or tasks requiring integration of information across the window boundary). Additionally, all experiments use fixed-length generation (32 tokens for NIAH); it is unclear whether longer generated responses would degrade the local perception effect.

Claim: "Established extrapolation scaling laws remain effective for extending the context windows of diffusion LLMs." This claim is supported for NTK-based RoPE scaling specifically, with the evidence in Figures 6 and 7 showing that λ values computed from the standard formula produce the expected extension behavior. The scaling law validation is strengthened by the consistency across λ values: effective extension at 2× and 4×, diminishing returns at 6×, failure at 8×—exactly matching the known auto-regressive pattern. Cross-model validation with LLaDA-1.5 (Figure 8) further supports the architecture-independence claim. However, there are important caveats. First, the paper only tests NTK scaling—it does not test whether other RoPE-based extension methods (position interpolation, YaRN, ReRoPE, CLEX) also transfer to diffusion LLMs. The claim about "scaling laws" in the plural might be too broad; what is validated is one specific scaling law (the power-law relationship between target length and required λ). Second, the λ values are validated only on NIAH retrieval accuracy, not on the full suite of LongBench or RULER tasks at extended lengths—Table 2 shows that even at λ = 4 (8k), NIAH performance is near-perfect while AGG and QA performance show more complex patterns. A complete scaling law would characterize how task performance degrades as a function of λ, not just retrieval accuracy. Third, the scaling law validation uses NIAH overall scores and heatmaps, but does not provide quantitative fits to the predicted power-law relationship (e.g., showing that accuracy at a given relative depth follows the predicted scaling). The validation is qualitative ("works at λ = 4 and 14, fails at λ = 55") rather than quantitative.

Claim: "LongLLaDA achieves 6× context expansion (24k tokens) without further training." This claim requires careful parsing. The paper demonstrates that λ = 31 enables retrieval within a 24k context window, but with the "lost-in-the-middle" phenomenon—intermediate depths show degraded performance. The NIAH overall score at λ = 31 is 82.33, compared to 82.33 at λ = 14 (16k) and 71.33 at λ = 4 (8k). The score does not degrade at λ = 31 compared to λ = 14 because the score averages across all tested context lengths, and the extension to 24k with partial retrieval adds to rather than subtracts from the average. The claim of "6× context expansion" is technically correct (24k = 6 × 4k), but the reader should understand that this is with non-uniform retrieval quality—the expansion is not a uniform 6× of fully functional context window, but rather an extension of the retrievable window to 24k with diminished performance in the middle. This is consistent with how "context extension" is typically reported in the auto-regressive literature (where "effective context length" is often defined by a retrieval accuracy threshold), and the paper is transparent about the lost-in-the-middle effect. However, practitioners should not interpret "6× expansion" as "the model can process 24k documents as well as it processes 4k documents."

Claim: "Diffusion LLMs match auto-regressive models on retrieval tasks, lag in aggregation, but excel at synthetic QA." The RULER results in Table 2 provide the primary evidence, and it is largely convincing. The retrieval parity claim is supported at 8k and 16k contexts, with diffusion NIAH scores of 95–99% vs. auto-regressive scores of 98–100%. The aggregation weakness is dramatic and consistent: diffusion AGG scores of 61–75 vs. auto-regressive scores of 93–94 at equivalent context lengths. The QA strength is equally clear: diffusion QA scores of 73–90 vs. auto-regressive scores of 59–65. These patterns replicate across Base and Instruct variants and across LLaDA, LLaDA-1.5, and Dream-v0 models. However, one should note that the "retrieval tasks" in RULER are NIAH variants specifically—they test lookup of explicitly placed facts, not the kinds of implicit information retrieval required for multi-document QA or summarization. The LongBench results in Table 1 show more nuanced patterns, with LLaMA3-8B-Instruct outperforming LLaDA-8B-Instruct on single-doc QA (37.5 vs. 23.4 at 8k) and summarization (34.7 vs. 35.3—near parity). The claim about retrieval parity may not generalize to all retrieval-like tasks.

Experimental design weaknesses.

Single benchmark dependency for key claims. The local perception phenomenon and LongLLaDA's effectiveness are demonstrated primarily through NIAH. While NIAH is the standard diagnostic in the long-context literature, it is a synthetic task that tests one specific capability (fact retrieval at known positions). The paper does not evaluate whether the local perception window applies to more naturalistic long-context tasks—for instance, does a diffusion LLM reading a 16k-token document for summarization only use the last 4k tokens? This is partially addressed by the LongBench results (Table 1), which show that some task categories degrade modestly at 8k while others (like summarization) are more stable, but the interaction between task type and context position is not systematically analyzed.

No comparison against alternative context extension methods. The paper only tests direct extrapolation and NTK scaling. Position interpolation (Chen et al., 2023), YaRN (Peng et al., 2023), and other methods that have been shown to outperform NTK scaling for auto-regressive models are not applied to diffusion LLMs. This leaves open the question of whether NTK scaling is the best method for diffusion LLMs or merely the first one tested.

No fine-tuning experiments. The paper explicitly scopes itself to training-free methods and acknowledges this as a limitation. However, the auto-regressive literature has shown that inference-only NTK scaling typically achieves only 2–6× extension, while fine-tuning with longer sequences (Xiong et al., 2023; Rozière et al., 2023) can achieve much larger extensions. Without fine-tuning baselines, it is impossible to assess whether the 6× limit observed for LongLLaDA is fundamental to diffusion LLMs or merely a limitation of the training-free approach.

Single model scale. All experiments use ~8B parameter models. The paper does not investigate whether the local perception phenomenon, NTK scaling effectiveness, or task-dependent capability patterns change with model scale. Given that Nie et al. (2025) demonstrated that diffusion LLM capabilities improve with scale, it is plausible that some of the observed weaknesses (particularly in aggregation tasks) might diminish with larger models.

Perplexity as a proxy for long-context capability. The paper uses perplexity stability (Figure 1a) as evidence that diffusion LLMs maintain representational quality during extrapolation, and then demonstrates via NIAH that stable perplexity does not imply functional retrieval. This is an important negative result, but the paper does not explore what other capabilities (beyond retrieval) are preserved or lost under stable perplexity—for instance, can a diffusion LLM with stable perplexity at 16k still perform classification, sentiment analysis, or other tasks that don't require pinpoint retrieval?

Limited context length ceiling. The maximum context length tested is 32k tokens. While this represents 8× the pretraining length, it is modest compared to the state-of-the-art in auto-regressive long-context models (which reach millions of tokens). The paper does not test whether diffusion LLMs exhibit qualitatively different behavior at extreme context lengths (100k+), which would be necessary to understand whether the architectural differences translate to asymptotic advantages.

Missing experiments that would strengthen the paper.

  1. Alternative RoPE extension methods: Position interpolation, YaRN, and ReRoPE applied to LLaDA-8B would establish whether NTK scaling is optimal or merely adequate. If these methods produce different tradeoffs (e.g., YaRN might achieve better middle-depth retrieval at λ = 31), that would reveal whether diffusion LLMs require diffusion-specific extension techniques.

  2. Fine-tuning with extended context: Continued pretraining of LLaDA-8B on 8k or 16k sequences would test whether the local perception limitation can be overcome through training rather than inference-time interpolation, and whether fine-tuned diffusion LLMs can match auto-regressive aggregation performance.

  3. Scale ablation: Testing LLaDA at multiple parameter scales (e.g., 1B, 3B, 8B) on the same NIAH protocol would reveal whether local perception is a fundamental architectural property or a scale-dependent phenomenon.

  4. Position-specific LongBench analysis: Breaking down LongBench performance by answer position within the document would test whether the local perception window operates similarly across task types—for instance, does multi-doc QA accuracy degrade when the relevant documents are separated by more than 4k tokens?

  5. Compute-matched comparison with auto-regressive models: The paper compares diffusion and auto-regressive models at equal context lengths and output token counts, but diffusion generation typically requires more FLOPs per token due to the iterative denoising process. A FLOPs-matched comparison (following the paradigm of Section 7 in the reference example paper) would address whether diffusion LLM advantages on QA tasks persist when controlling for total compute rather than token count.

Despite these limitations, the experimental design is appropriate for a first characterization paper. The key phenomena—local perception, NTK scaling transfer, task-dependent complementarity—are established with sufficient evidence to motivate and guide future work. The transparency about limitations (acknowledged in the paper's own Limitations section) and the consistency of results across multiple model variants and benchmarks strengthen the credibility of the core findings.

6. Limitations and Trade-offs

6.1 The Difficulty Estimation Cost Is Unaccounted for in the Headline Efficiency Claims

The assumption or constraint. The compute-optimal scaling framework rests entirely on the ability to estimate prompt difficulty before allocating the inference budget. The paper's method for doing so—generating 2048 samples per question and averaging either ground-truth correctness (oracle bins) or PRM final-answer scores (predicted bins)—is extraordinarily expensive. The authors explicitly acknowledge this gap in Section 3.2:

"we compute the pass@1 rate for each question over 2048 completions sampled from the base model... this step still incurs additional computation cost during inference... our experiments do not account for this cost largely for simplicity"

The 2048 samples per question used for difficulty estimation consume more compute than any of the test-time budgets being optimized (which max out at 256–512 generations). The headline 4× efficiency improvement over best-of-N is computed after difficulty is known, without amortizing the cost of learning it.

The consequence. In a realistic deployment, the total cost would be difficulty_estimation_cost + strategy_execution_cost. Since the former can dominate the latter, the claimed 4× efficiency gains are best understood as an upper bound on achievable efficiency rather than a realized deployment gain. A practitioner implementing this method today would face a stark choice: either pay the prohibitive cost of generating 2048 samples to estimate difficulty (eliminating any efficiency advantage over simply using best-of-N with a large budget), or deploy the method without reliable difficulty estimates (risking suboptimal strategy selection that negates the gains). The paper frames this as an "exploration-exploitation tradeoff" (Section 3.2) but provides no mechanism for balancing it, no amortization scheme, and no analysis of how estimation cost scales with the number of queries—features that would be essential for any practical deployment.

What evidence exists in the paper. The paper demonstrates that predicted (non-oracle) difficulty bins perform nearly as well as oracle bins (Figures 4 and 8, where the two curves "largely overlap"), which shows that the method works without ground-truth labels. However, the predicted difficulty estimation still requires the same 2048 samples per question—it substitutes PRM scoring for ground-truth checking but does not reduce the sample count. The difficulty estimation cost is explicitly excluded from all budget calculations (Section 3.2), and no experiment measures total end-to-end cost including difficulty estimation. The paper does not report wall-clock time or FLOP counts for the estimation step.

Mitigation status. The paper does not mitigate this limitation. It explicitly acknowledges it and suggests future work on "pretraining or finetuning models to directly predict difficulty of a question" (Section 8), but no such model is developed or evaluated. No adaptive scheme (e.g., using initial budget samples for difficulty estimation, then allocating the remainder accordingly) is explored. The limitation fundamentally weakens the practical applicability of the compute-optimal framework until a cheap difficulty estimator is developed.


6.2 Hard Problems Receive Essentially Zero Benefit—Test-Time Compute Cannot Substitute for Missing Capability

The assumption or constraint. The compute-optimal framework assumes that the base model's pass@1 on a given problem is non-trivially above zero—there must exist at least some correct solutions in the proposal distribution for search or revision to amplify. For problems where this condition does not hold, the framework provides no benefit.

The consequence. Across all methods—search, revisions, and their compute-optimal combinations—the hardest difficulty bin (bin 5, where the base model's pass@1 is approximately zero) shows near-zero accuracy regardless of compute budget. The paper is candid about this in Section 7:

"On the hardest questions (bin 5), no method makes meaningful progress—the base model simply lacks the capability to produce correct solutions regardless of how the budget is allocated."

In the FLOPs-matched comparison (Section 7, Figure 9), the bin 5 scaling line is essentially flat near 0–5% across all test-time compute budgets. For the PRM search comparison at R1R \gg 1 (high inference-to-pretraining ratio), hard questions show a -52.9% relative disadvantage from using test-time compute instead of the larger pretrained model (Figure 1, bottom-right bar chart). This establishes a hard boundary condition: test-time compute amplifies existing capability but does not create it from nothing.

For practitioners, this means that the method offers no path forward for genuinely novel or out-of-distribution problems that exceed the base model's training distribution. If a model fundamentally cannot solve a class of problems (pass@1 ≈ 0), no amount of search, revision, or compute-optimal allocation will help. For such problems, scaling pretraining remains the only viable path—a critical deployment consideration.

What evidence exists in the paper. The bin 5 results are consistent across all experimental sections. In search experiments (Figure 3, right): bin 5 accuracy hovers at 1–3% for all methods and all budgets. In revision experiments (Figure 7, right): bin 5 shows roughly 2–3% accuracy irrespective of the sequential-to-parallel ratio. In the FLOPs-matched comparison (Figure 9): the bin 5 scaling line is essentially flat near 0–5%. The evidence spans search, revisions, and their compute-optimal variants, leaving no ambiguity about the ceiling.

Mitigation status. The paper does not attempt to mitigate this limitation—it characterizes it explicitly as a fundamental boundary and does not claim otherwise. The authors are transparent about this boundary condition, stating in the Section 7 takeaway that "scaling pretraining compute is generally more effective for hard and very hard questions." This is honest reporting of a fundamental limitation rather than a failure to address a solvable problem. The limitation is inherent to the test-time compute paradigm: you cannot find or refine correct solutions that do not exist in the proposal distribution.


6.3 Single Benchmark, Single Model Family—Generalization to Other Tasks and Architectures Is Unverified

The assumption or constraint. All experiments are conducted on the MATH benchmark (500 test questions) using PaLM 2-S* as the base model. The authors state they "believe PaLM 2-S* is representative of the capabilities of many contemporary LLMs" (Section 4), but this claim is unverified.

The consequence. Several aspects of the findings could be model-specific or domain-specific in ways that affect the transferability of the compute-optimal policies:

  • The PRM's quality and over-optimization behavior depend on PaLM 2-S*'s output distribution. A model with different calibration properties or different error patterns would produce different difficulty-dependent scaling curves, and the optimal strategy per difficulty bin—including the specific threshold where beam search becomes preferable to best-of-N—would shift.
  • The revision model's ability to learn from incorrect in-context examples depends on the base model's in-context learning capabilities, which vary substantially across model families. The 38% correct-to-incorrect reversion rate (Section 6.1) and the failure of the ReSTEM^{EM} revision training (Appendix K) suggest the revision approach is sensitive to training methodology in ways that may not transfer.
  • The MATH benchmark consists exclusively of competition-level math problems requiring symbolic multi-step reasoning. It is unclear whether the difficulty-dependent patterns (beam search hurting easy problems, revisions helping easy problems, no method helping hard problems) generalize to other reasoning domains—code generation, logical deduction, scientific QA, multi-hop question answering—or to tasks requiring factual knowledge rather than inference.
  • The single test set of 500 questions, split into five difficulty quintiles (~100 each) and further split by two-fold cross-validation, means the compute-optimal policy is selected based on ~50 questions per fold per bin. The paper does not report confidence intervals on the compute-optimal scaling curves, so the statistical reliability of the specific strategy selections and the reported 4× efficiency gains at this sample size is unknown.

What evidence exists in the paper. No experiments test generalization to other models or benchmarks. The paper does not provide any cross-model or cross-domain validation. The two-fold cross-validation within the 500-question test set is the only statistical protocol, and variance estimates are not reported.

Mitigation status. The paper does not mitigate this limitation. The authors acknowledge the single benchmark scope in the broader context of their Limitations section (not quoted directly in the main text, but implied by the experimental scope), and no generalization experiments are suggested as future work beyond the statement that the model is "representative." The limitation is significant because it means the specific strategy selections, optimal sequential-to-parallel ratios, and difficulty thresholds are likely not directly transferable to other deployments—a practitioner would need to replicate the entire analysis pipeline for their specific model and task distribution.


6.4 Verifier Over-Optimization Is a Hard Ceiling, Not a Solved Problem—The Method Only Routes Around It

The assumption or constraint. The compute-optimal policy depends critically on the quality of the learned verifier (PRM). The paper demonstrates that verifier over-optimization—where search finds solutions that score highly under the PRM but are actually incorrect—is the primary bottleneck preventing further scaling of test-time compute.

The consequence. The compute-optimal policy mitigates verifier over-optimization by routing easy problems away from aggressive search (using best-of-N instead of beam search) and reserving beam search for medium-difficulty problems where the verifier signal provides genuine guidance. However, this does not solve the underlying problem:

  • On medium-difficulty problems where beam search is deployed, over-optimization still limits the scaling ceiling. The beam search curves in Figure 3 (right) flatten and sometimes decline well before the budget is exhausted, even in difficulty bins where beam search is advantageous.
  • Lookahead search—the most powerful optimizer studied—paradoxically performs worst overall at the same generation budget (Figure 3, left) because its stronger optimization amplifies verifier errors.
  • The qualitative examples in Appendix M (Figure 29) show concrete failure modes: search produces degenerate outputs with repetitive low-information steps or overly short 1–2 step solutions that score highly under the PRM but are incorrect.

The practical consequence is that improving the PRM—through better training data, adversarial robustness, ensemble methods, or calibration improvements—is likely to yield larger gains than further optimizing the allocation policy. The current results are specific to the verifier quality achievable with the Monte Carlo rollout training procedure described in Appendix D, and a practitioner with access to a better verifier would need to re-derive the optimal policy.

What evidence exists in the paper. The over-optimization evidence is extensive and multi-modal. Figure 3 (right) shows beam search accuracy decreasing on easy problems at high budgets—the clearest signature of verifier exploitation. Figure 3 (left) shows lookahead search underperforming simpler methods. Appendix M provides qualitative examples of degenerate search outputs. The paper explicitly frames this as the central bottleneck:

"the primary bottleneck preventing further scaling of test-time compute is verifier over-optimization rather than search algorithm sophistication" (Section 8 framing).

Mitigation status. The compute-optimal policy partially mitigates this by avoiding aggressive optimization where the verifier is unreliable, but does not solve the underlying problem. The paper identifies improving verifier robustness as a key direction for future work (Section 8) and suggests potential approaches (adversarial training, ensemble verification, KL-penalty methods) but does not explore any of them. The over-optimization ceiling means that further scaling of test-time compute—beyond the studied budgets of 256–512 generations—would require fundamentally better verifiers, not just better allocation policies.


6.5 Revisions and Search Are Studied Independently, Not Combined—The Full Potential of the Framework Is Unexplored

The assumption or constraint. The paper studies two complementary mechanisms—PRM-guided search (modifying the verifier/selection axis) and iterative revisions (modifying the proposal distribution axis)—but never combines them. Section 8 explicitly acknowledges this:

"we did not experiment with PRM tree-search techniques in combination with revisions"

The consequence. The two mechanisms have complementary strengths that suggest a combined system could outperform either alone. Revisions improve the quality of generated candidates by conditioning on previous incorrect attempts. PRM search improves candidate selection by evaluating intermediate steps and pruning unpromising paths. A combined system could: (1) use the revision model as the proposal distribution within beam search, generating higher-quality candidate steps at each node; (2) use the PRM to guide which revisions to pursue in the revision chain, discarding unpromising revision directions early; or (3) combine the difficulty-dependent optimal strategies from both axes into a unified policy.

The fact that these combinations are unexplored means the current results represent a lower bound on what the unified framework could achieve. The paper's conclusion that revisions help easy problems while search helps medium problems suggests that combining them could yield gains on both difficulty tiers simultaneously—but this hypothesis is untested.

What evidence exists in the paper. No experiments combine search with revisions. The search experiments (Section 5) use the base prompted model as the proposal distribution. The revision experiments (Section 6) use majority voting or a separately trained ORM for answer selection, not the PRM. The compute-optimal policies for search and revisions are derived independently and never jointly optimized. The paper's Figure 1 architecture diagram shows separate parallel pipelines.

Mitigation status. The paper explicitly identifies this as a key direction for future work (Section 8), framing it as the natural next step: combine PRM tree-search with revisions. No mitigation is attempted within the paper. For a practitioner, this limitation means that the reported gains—4× from compute-optimal search, 4× from compute-optimal revisions—are achievable separately, but whether they are additive, multiplicative, or subadditive when combined is unknown. The full potential of the framework remains unmeasured.


6.6 The 14× Larger Model Baseline Is Not Compute-Optimally Trained—The Pretraining Comparison May Overstate Test-Time Compute Advantages

The assumption or constraint. The FLOPs-matched comparison in Section 7 scales model parameters while holding training data fixed, following the LLaMA paradigm (Touvron et al., 2023) rather than the Chinchilla-optimal approach (Hoffmann et al., 2022) of scaling parameters and data equally. The authors acknowledge this explicitly:

"We choose this setting as it is representative of a canonical approach to scaling pretraining compute and leave the analysis of compute-optimal scaling of pretraining compute where the data and parameters are both scaled equally to future work."

Additionally, the 14× larger model uses only greedy decoding—no majority voting, no best-of-N, no search of any kind. The larger model is given no test-time compute budget, while the smaller model receives the full benefit of the compute-optimal framework.

The consequence. A Chinchilla-optimal model trained with 14× more total FLOPs (scaling both data and parameters) would likely outperform a parameter-only-scaled model, making the pretraining baseline weaker than it needs to be. The reported advantages of test-time compute over pretraining—+27.8% on easy questions at R1R \ll 1 , +16.7% at R1R \approx 1 (revisions, Figure 1 top-right bar chart)—may shrink or reverse against a properly compute-optimal larger model. Similarly, giving the 14× larger model even a modest test-time compute budget (e.g., best-of-8 or beam search with a PRM trained on its own outputs) would create a much stronger baseline that is never evaluated.

The practical implication is that the paper's conclusion—"test-time compute with a smaller model can outperform a 14× larger model"—is best interpreted as a relative comparison between specific training and inference configurations, not as a general law. A practitioner deciding between training a larger model and deploying a smaller model with compute-optimal inference cannot directly apply these numbers without considering how their own pretraining recipe compares to the paper's baseline.

What evidence exists in the paper. The FLOPs-matched results in Section 7 and Figure 9 constitute the entire evidence base. The paper does not evaluate a Chinchilla-optimal 14× larger model, does not give the larger model any test-time compute budget, and does not ablate the effect of the training recipe choice. The acknowledgment of this limitation is in the Section 7 methodology text, but the headline numbers (Figure 1 bar charts) are presented without this caveat.

Mitigation status. The paper explicitly identifies this as an avenue for future work (Section 7 methodology) but does not mitigate it. The comparison is representative of the LLaMA training paradigm—which is widely used in practice—so it is not an unfair baseline in absolute terms, but it is weaker than the strongest possible baseline. A practitioner evaluating the pretraining-vs-inference tradeoff should consider this when interpreting the magnitude of the reported advantages.

7. Implications and Future Directions

How This Work Changes the Landscape

This paper establishes that diffusion LLMs and auto-regressive LLMs inhabit complementary regions of the long-context capability landscape, a reframing that reorients the research agenda from "will diffusion replace auto-regressive?" toward "which tasks should each architecture handle?" This is a substantial conceptual shift rather than a paradigm revolution—the underlying math (RoPE, NTK scaling) is not new—but the systematic characterization of how diffusion models fail under extrapolation, combined with the demonstration that existing auto-regressive tools transfer without modification, removes a critical barrier to diffusion LLM adoption and provides a unified theoretical vocabulary for discussing position encoding across architectures.

The field now has a new diagnostic category for extrapolation failure. Before this work, the canonical extrapolation failure was catastrophic collapse: perplexity explosions and zero retrieval accuracy, the signature of OOD position embeddings triggering representational phase changes in auto-regressive models. The paper introduces local perception as a qualitatively distinct failure mode—stable perplexity, sliding-window retrieval, no representational collapse—and explains it mechanistically through the periodicity-monotonicity tradeoff. This matters because it means practitioners evaluating a new model on long contexts now have two failure patterns to check for, not one. A model with flat perplexity curves may still be functionally crippled for retrieval tasks, and the NIAH heatmap pattern (green region limited to recent tokens) is the diagnostic signature. This is a methodological contribution that will shape how future long-context evaluations are designed and interpreted.

The paper reconciles a latent tension in the RoPE literature. The periodicity-monotonicity tradeoff (Men et al., 2024; Hu et al., 2024) was known to explain why some auto-regressive models exhibit sliding-window behavior when trained with small rotary bases, but the connection to bidirectional attention had not been drawn. The paper's insight—that bidirectional attention on [−(T−1), T−1] provides wider periodic coverage than causal attention on [0, T−1], effectively pushing the model toward the periodicity side of the tradeoff—unifies observations across architectures under a single mechanism. This means that the decade of work on RoPE extrapolation (NTK scaling laws from Liu et al. 2023b, YaRN from Peng et al. 2023, the base-frequency analyses from Men et al. 2024) now constitutes a shared toolkit for any RoPE-based model, regardless of attention mask. Research on novel attention patterns—block-sparse, linear, mixture-of-depths—can immediately draw on this toolkit without re-deriving extrapolation behavior from scratch.

Which research directions become more attractive. The paper makes NTK scaling for diffusion LLMs a solved baseline—further work should compare against LongLLaDA, not against direct extrapolation. It makes aggregation tasks a high-priority target for diffusion LLM improvement, since the RULER results (Table 2) show a persistent 25–30 point gap that does not close with context extension. It makes synthetic QA a domain where diffusion LLMs may have a structural advantage worth exploiting—the 15–26 point lead over LLaMA3-8B on RULER QA tasks (Table 2) is large enough to motivate specialized diffusion-based QA systems. Conversely, the paper makes uniform parity claims ("diffusion LLMs match auto-regressive models") less credible—the task-dependent profile is too uneven, and future work should report capability profiles rather than scalar comparisons.

Which research directions become less attractive. The paper demonstrates that inference-only NTK scaling has a hard practical limit of ~6× extension for diffusion LLMs (Figure 6, λ = 31 shows lost-in-the-middle, λ = 55 fails). Further investment in hyperparameter-tuning of inference-only NTK scaling is unlikely to yield substantial gains beyond this ceiling—attention should shift to fine-tuning-based extension (following the auto-regressive trajectory from NTK to RoPE base scaling with continued training) or to fundamentally different position encoding schemes designed for bidirectional architectures. The paper also makes direct extrapolation without modification a less interesting baseline—the local perception phenomenon is now characterized and its mechanism is understood, so future work should measure against LongLLaDA (or equivalent scaled variants) rather than against unmodified models.


Follow-Up Research This Work Enables

Fine-tuning-based context extension for diffusion LLMs, measuring whether the aggregation gap closes. The paper is explicitly scoped to training-free methods, but the auto-regressive literature shows that continued pretraining with extended sequences (Xiong et al., 2023; Rozière et al., 2023) achieves much larger context expansions than inference-only NTK scaling. The natural follow-up experiment: take LLaDA-8B-Base, continue pretraining on 16k-token sequences with standard diffusion training, then evaluate on the full RULER suite at 16k and 32k. The key question is whether fine-tuning closes the aggregation gap (currently 61.0 for LLaDA + λ = 4 at 8k vs. 94.1 for LLaMA3 + λ = 4, Table 2). If the gap persists after fine-tuning, it suggests aggregation weakness is fundamental to the diffusion generation process rather than a context-length artifact. If it closes, it suggests the gap was primarily about effective context window and will dissolve as diffusion LLMs are trained on longer sequences. This experiment would also establish whether the RoPE scaling law continues to govern fine-tuned diffusion models—do the same λ values apply, or does fine-tuning shift the critical dimension boundary?

Head-to-head comparison of RoPE extension methods on diffusion LLMs to establish a Pareto frontier. The paper validates NTK scaling but does not test position interpolation (Chen et al., 2023), YaRN (Peng et al., 2023), ReRoPE (Su, 2023), or CLEX-style dynamic scaling. A comprehensive sweep across these methods on LLaDA-8B-Base using the NIAH protocol would establish a Pareto frontier: which method achieves the best retrieval accuracy at which extension ratio, and at what cost in implementation complexity. The specific prediction to test: because diffusion LLMs start with less OOD embedding space (Figure 4), methods that explicitly address the lost-in-the-middle phenomenon (like YaRN's temperature scaling) might achieve better intermediate-depth retrieval at λ = 31 than the NTK-only approach, potentially extending the practical limit beyond 6×. A negative result—no method substantially outperforms NTK scaling—would strengthen the paper's claim that the critical dimension mechanism is the dominant constraint, method-independent.

Scale analysis of the local perception phenomenon and NTK scaling effectiveness. All experiments use ~8B parameter models. Does local perception persist at 1B? At 70B? The prediction from the mechanistic analysis is that the phenomenon depends on the RoPE frequency structure, which is determined by β₀, T_train, and d—parameters that scale with model size. Larger models typically have larger d, which changes the critical dimension d_extra and the derived λ values. A scale sweep (1B, 3B, 8B, and if available, larger LLaDA checkpoints) on the NIAH protocol would test whether the λ values computed from the scaling law remain accurate across scales, or whether the scaling law itself needs a scale-dependent correction. A negative result—λ values that work at 8B fail at 70B—would indicate that the architecture-agnostic claim needs qualification, and that diffusion LLMs at scale may require different extension strategies.

Position-specific analysis of LongBench tasks to characterize the functional shape of the local perception window. The paper demonstrates local perception for NIAH retrieval (isolated fact lookup) but LongBench performance (Table 1) shows task-dependent degradation patterns that cannot be explained by a simple sliding window—some tasks degrade by only 1–2 points at 8k while QA collapses. A targeted experiment: take the multi-doc QA and summarization subsets of LongBench, vary the position of task-relevant information within documents of fixed 8k length (e.g., relevant paragraph at 0–1k, 2–3k, 4–5k, 6–7k), and measure answer quality as a function of position for both direct extrapolation and LongLLaDA (λ = 4). This would reveal the functional shape of the attention decay—is it a hard cliff at 4k, a soft decay, or task-dependent? If the decay is soft, it suggests the local perception boundary is not a sharp cutoff but a gradual degradation that affects complex reasoning before simple retrieval. This would have direct implications for deployment: even without extension, diffusion LLMs might be usable for certain tasks at 6–8k if the task-relevant information is structured appropriately.

Alternative position encoding schemes designed for bidirectional generation. The paper's theoretical analysis attributes local perception to RoPE's periodicity under symmetric relative position ranges. This suggests a concrete design direction: a position encoding that explicitly decouples short-range monotonicity from long-range distinguishability for bidirectional attention. For instance, additive relative position biases (like T5's relative position buckets, or ALiBi-style decaying biases) combined with a lightweight absolute position signal might avoid the periodicity-monotonicity tradeoff entirely by not relying on trigonometric functions. The experiment: pretrain a small diffusion LLM (e.g., 300M parameters) from scratch with alternative position encodings, then test direct extrapolation and retrieval on a scaled-down NIAH analog. If a non-RoPE encoding achieves flat retrieval across all depths at 2× training length, it would demonstrate that local perception is a RoPE-specific pathology rather than a fundamental property of diffusion LLMs.

Dynamic difficulty estimation for compute-optimal scaling that amortizes its own cost. The paper identifies the prohibitive cost of difficulty estimation (2048 samples per question) as a key limitation. A concrete follow-up: implement an adaptive scheme that starts with a small number of samples (e.g., 8–16), computes a preliminary difficulty estimate from the PRM score distribution, allocates the remaining budget according to the estimated-optimal strategy, and then optionally refines the difficulty estimate from the samples generated during strategy execution. Compare this against the full 2048-sample estimation on the MATH test set, measuring total compute (estimation + execution) vs. accuracy. The specific metric: at what total compute budget does the adaptive scheme match or exceed the performance of the 2048-sample oracle method? If the adaptive scheme achieves comparable accuracy at substantially lower total cost, it would convert the paper's upper-bound efficiency claims into realized deployment gains.


Practical Applications and Downstream Use Cases

Deploying diffusion LLMs for long-document QA and summarization pipelines, with context window selection guided by task type. The paper's task-dependent capability profile (RULER Table 2) directly informs deployment decisions. For a document QA system that must answer questions about 8k–16k token documents (legal contracts, scientific papers, technical reports), a diffusion LLM with LongLLaDA (λ = 14) achieves 89.5 RULER QA accuracy at 16k (LLaDA-8B-Instruct) compared to LLaMA3-8B-Instruct's 63.5—a 26-point advantage. The practical benefit: for QA workloads, diffusion LLMs may provide substantially better accuracy at equivalent model size, particularly for questions that require synthesizing information across document sections (the synthetic QA tasks in RULER). However, the same system would be a poor choice for tasks requiring counting, variable tracking, or pattern extraction—the aggregation gap of 25+ points (66.2 vs. 92.4 at 16k, Table 2) makes auto-regressive models clearly preferable for those workloads. A practical deployment would route queries by predicted task type: QA and retrieval queries to the diffusion model, aggregation and counting queries to an auto-regressive model, achieving the best of both architectures.

Cost-efficient batch processing of medium-length documents for organizations that already have diffusion LLM checkpoints. For research groups or companies that have trained diffusion LLMs for other purposes (e.g., reversal-curse-resistant generation, multimodal tasks, or reasoning), LongLLaDA provides an immediate, zero-cost upgrade to 4× the usable context window. The method requires no fine-tuning, no additional data, and no architectural changes—only a one-line modification to the rotary base at inference time. For a team processing 10,000 8k-token documents daily, the upgrade from direct extrapolation (which would lose access to the first half of each document) to LongLLaDA with λ = 4 (which provides full-document access) is purely an inference-time configuration change with no additional training cost. The practical benefit scales with the existing investment in diffusion LLM training—the more checkpoints a team has, the more value LongLLaDA unlocks from each one.

On-device or edge deployment of small diffusion models for retrieval-centric applications where auto-regressive latency is unacceptable. Diffusion LLMs, by generating all tokens simultaneously rather than sequentially, have fundamentally different latency characteristics that may favor deployment scenarios requiring fast batch processing of fixed-length responses. The paper's finding that diffusion LLMs maintain stable perplexity and local perception during extrapolation means that even without NTK scaling, a diffusion model can process inputs longer than its training length without collapsing—it will simply lose access to older information. For a retrieval application where queries always reference the most recent context (e.g., a meeting assistant that answers questions about the last 5 minutes of conversation), the sliding-window behavior is actually a feature, not a bug: it provides a natural recency bias without additional architectural complexity. The practical benefit is deployment simplicity—no context extension logic needed, just feed the full transcript and rely on the model's local perception window to focus on recent information.

When to Prefer This Method

The paper explicitly positions LongLLaDA (NTK-based RoPE scaling for diffusion LLMs) against the baseline of direct extrapolation and against the auto-regressive NTK scaling paradigm. The conditions for preferring each approach follow directly from the experimental results:

  • Prefer LongLLaDA (NTK-scaled diffusion LLM) when: the task involves synthetic QA or retrieval over documents up to ~16k tokens (Table 2, 89.5 QA at 16k for Instruct variant), you have a pretrained diffusion LLM checkpoint and want immediate context extension without fine-tuning (Section 4, training-free), and the deployment can tolerate the practical limit of ~6× extension with degraded middle-depth retrieval at the upper bound (Figure 6c, lost-in-the-middle at λ = 31).

  • Prefer direct extrapolation (unmodified diffusion LLM) when: latency or implementation simplicity is paramount and the application only requires access to the most recent pretraining-length window of context (Figure 2a, 100% retrieval within 4k window regardless of total document length), or when the input length exceeds the ~6× extension limit and partial local functionality is preferable to no functionality.

  • Prefer auto-regressive LLaMA3 + NTK scaling when: the task involves aggregation, variable tracing, or word counting (Table 2, LLaMA3 AGG scores 92–94 vs. LLaDA 61–75 at equivalent context lengths), or when the application requires retrieval performance exceeding 95% across all depths at the target context length (the small but persistent NIAH gap in Table 2, with LLaDA Instruct at 97.3 vs. LLaMA3 Instruct at 99.3 at 16k, may be critical for high-reliability systems).