SNLP: Layer-Parallel Inference via Structured Newton Corrections


Ligong Han1,2,*,    Kai Xu1,2,*    Hao Wang1,2    Akash Srivastava2,3
1Red Hat AI Innovation    2MIT-IBM Watson AI Lab    3Core AI, IBM
*Equal contribution     Corresponding author


Abstract

Autoregressive language models execute Transformer layers sequentially, creating a latency bottleneck that is not removed by conventional tensor or pipeline parallelism. We study whether this layerwise dependency can be relaxed by treating the hidden-state trace across layers as the solution of a nonlinear residual equation and solving it with parallel Newton-style updates. While this view is principled, exact Newton corrections require expensive Jacobian-vector products and naive fixed-point iterations are unstable on trained Transformers. We introduce Structured Newton Layer Parallelism (SNLP), a training and inference framework that replaces exact layer Jacobians with cheap architecture-induced surrogate dynamics. In residual Transformers, this yields Identity Newton (IDN), where the correction reduces to a prefix-sum-like update; in mHC-style architectures, HC Newton (HCN) uses the model’s residual mixing matrix. We further introduce SNLP-aware regularization, which trains models to make one or a few structured Newton iterations accurately approximate the sequential forward. Experiments on nanochat-scale Transformers show that SNLP regularization improves layer-parallel compatibility and can also improve standard sequential perplexity, reducing baseline PPL by 4.7%–23.4%. At inference time, SNLP combined with layer fusion and chunkwise decomposition achieves practical wall-clock speedups: on a 0.5B Nanochat model, it reaches \(2.3\times\) speedup while still improving PPL by 6.1%. These results suggest that layer-parallel inference is not merely a numerical approximation to sequential execution, but can act as a useful solver-induced inference bias. We also characterize limitations: off-the-shelf pretrained models are less amenable to this procedure, and exact convergence recovers the sequential computation rather than providing monotonic inference-time scaling. Code is available at https://github.com/phymhan/nanochat-snlp.

1 Introduction↩︎

Transformer language models [1] are sequential in two distinct senses. Token generation is autoregressive [2], [3], but even for a fixed token prefix, the hidden state must normally pass through the network one layer at a time. Tensor parallelism [4], pipeline parallelism [5], kernel fusion [6], batching, KV caching [7], and speculative decoding [8], [9] improve the efficiency of each layer or token step, but they do not remove the layer dependency chain. As models become deeper [10], [11] and decoding remains latency-sensitive, this depthwise dependency becomes a natural target for algorithmic parallelism.

A principled way to expose such parallelism is to view the entire sequence of hidden states across layers as the solution of a nonlinear residual equation. This is analogous to DEER-style [12] parallelization of nonlinear recurrences, where Newton iterations solve for all states in a chain jointly rather than executing the chain strictly left-to-right [13]. Applied along the depth axis, this perspective suggests that many Transformer layer states could be updated in parallel. However, exact Newton updates require the Jacobian of each full layer with respect to its input. For language-model hidden states, these Jacobians are too large to materialize, and even Jacobian-vector or finite-difference approximations can consume the latency budget that layer parallelism is meant to save. Cheap fixed-point or Jacobi iterations avoid this cost [14], [15], but are often unstable or slow on trained residual networks.

We introduce Structured Newton Layer Parallelism (SNLP), a training and inference framework that makes this Newton view practical by replacing exact layer Jacobians with cheap structured surrogates. In residual Transformers, the identity residual path gives the simplest surrogate, yielding Identity Newton (IDN): the correction reduces to additive prefix-style propagation over depth. Diagonal Newton (DiagN) connects SNLP to quasi-DEER and scan-based linear recurrences [16]. For HC/mHC-style models [17], [18], the architecture exposes a learned residual mixing matrix, yielding HC Newton (HCN). In all cases, the expensive nonlinear layer or chunk forwards are parallelizable, while the Newton correction is a lightweight structured recurrence.

The second ingredient is training co-design. A pretrained sequential model need not be compatible with a cheap surrogate Jacobian, so we introduce SNLP-aware regularization: during training, we ask one or a few structured Newton iterations over a suffix of layers to match the ordinary sequential hidden state. This regularizer encourages suffix dynamics that are easier to solve with the chosen surrogate. Empirically, it also improves the standard sequential model in several trained-from-scratch Nanochat settings [19], suggesting that it acts as a useful regularizer on layer dynamics rather than merely an inference-time approximation loss.

Our experiments show that layer-parallel inference can be useful in practice, but not as a universal post-training acceleration trick. On trained-from-scratch Nanochat-scale models, SNLP-aware regularization improves sequential PPL by 4.7%–23.4%. At the 0.5B scale, SNLP inference with chunkwise layer fusion reaches up to \(2.3\times\) speedup with comparable or lower PPL than the model’s own sequential forward. For 3B models, we observe lower-PPL SNLP configurations but do not yet realize wall-clock speedups with our current PyTorch-level implementation, likely because the wider sequential blocks already saturate the H100 more effectively.

These lower-PPL cases should not be interpreted as monotonic inference-time scaling. Exact convergence of the Newton formulation recovers the sequential trace. The improvement arises because practical SNLP uses approximate structured corrections, finite iteration counts, chunking, fusion, and initialization choices; together these define a distinct inference computation. We therefore interpret SNLP as a form of solver-induced inference bias: an approximate solver over depth can sometimes produce a better computation path than strict sequential execution, while still retaining enough structure to be accelerated. Our contributions are:

  • We formulate layer-parallel language-model inference as structured surrogate Newton solving over the hidden-state trace, instantiated as IDN, DiagN, and HCN.

  • We introduce SNLP-aware regularization, which improves layer-parallel compatibility and can also improve sequential perplexity.

  • We introduce chunkwise layer fusion, which groups multiple depthwise-parallel layers into wider executable chunks before applying the structured Newton correction.

  • We analyze the resulting solver-induced inference bias through correction ordering, propagation, variance-reduction, and layer-coupling ablations.

a

Figure 1: Structured Newton Layer Parallelism (SNLP) replaces sequential layer execution with iterative layer-parallel updates. At each iteration, layer states are updated using the block function \(f_l\) and a cheap structured Newton surrogate \(A_l^{(k)}\), instantiated as IDN, DiagN, or HCN depending on the architecture..

2 Related Work↩︎

Parallel nonlinear solvers. SNLP builds on the view that a sequential computation can be solved as a coupled nonlinear system. DEER applies Newton’s method to nonlinear recurrences and uses parallel scan to solve the resulting linearized dynamics [12]; later work extends this perspective to MCMC chains [20] and improves stability and scalability with quasi-Newton and Kalman-style approximations [16]. Song et al. [14] frame feedforward computation as parallel nonlinear equation solving, and Jacobi decoding applies fixed-point iteration to parallelize autoregressive translation [15]. Deep Equilibrium Models [21] take a complementary view, finding fixed points of weight-tied infinite-depth networks via root-finding. Our work rotates this line of work from sequence length to Transformer depth, and focuses on structured surrogates that avoid full layer Jacobians.

Associative scans and structured recurrences. Parallel prefix scan is a classical primitive [22] that has become central to efficient recurrent and state-space models. Linear recurrent networks can be parallelized over sequence length with scan [23]; structured state-space models such as S4 [24] and Mamba [25] use related hardware-aware recurrent kernels and scan-style algorithms. SNLP uses the same computational principle for depthwise correction: when the surrogate is identity, diagonal, or a small matrix, the Newton correction becomes a cheap structured recurrence.

Depth mixing and residual architectures. Residual connections [26] are central to deep Transformer training, and several architectures modify how information flows across depth. Hyper-Connections and mHC introduce learned residual-stream mixing and stabilization mechanisms [17], [18]; AttnRes replaces fixed residual accumulation with learned attention over previous layer outputs [27]. Value residual learning and x0-style residual connections also alter how features persist through depth [28], [29]. Weight-tied and looped architectures, including Universal Transformers [30], ALBERT [31], recurrent-depth models [32], and Hyperloop Transformers [33], reuse layers across depth. SNLP is complementary: rather than only changing the forward architecture, it asks whether the resulting depth dynamics expose a cheap surrogate for Newton-style layer-parallel inference.

Efficient language-model inference. Most efficient LLM inference work accelerates token-level decoding through batching, KV caching [7], quantization, memory-aware execution [34], kernel engineering [6], speculative decoding [8], [9], early exit [35], or serving systems [36], [37]. These techniques improve the execution of the standard sequential layer stack, whereas SNLP targets a different bottleneck: the dependency chain across layers for a fixed token prefix. Our experiments use Nanochat as a compact from-scratch training and evaluation harness [19]; we also run preliminary post-hoc and finetuning experiments on representative open-weight decoder-only models, including Qwen2.5, TinyLlama, and Gemma [38][40]. The gap between trained-from-scratch and off-the-shelf results suggests that layer-parallel inference benefits from training/inference co-design, leaving stronger pretrained-model adaptation to future work.

3 Methods↩︎

3.1 Background↩︎

Layer traces as residual equations. Consider a depth-\(L\) model with hidden states \(h_0,\ldots,h_L\) and layer maps \[h_l = f_l(h_{l-1}), \qquad l=1,\ldots,L .\] Here \(l\) indexes depth, while superscripts such as \((k)\) will index iterative solver steps. Rather than viewing the forward pass only as a sequential program, we can view the entire hidden-state trace \(\mathbf{h}=(h_1,\ldots,h_L)\) as the solution of a nonlinear residual equation. Define \[\label{eq:residual} G_l(\mathbf{h}) = h_l - f_l(h_{l-1}), \qquad G(\mathbf{h}) = (G_1(\mathbf{h}),\ldots,G_L(\mathbf{h})).\tag{1}\] The usual sequential forward pass is exactly the zero-residual trace \(G(\mathbf{h})=0\). This formulation exposes a different source of parallelism: instead of computing layers one after another, one may iteratively solve for all layer states jointly.

Newton-style updates over depth. DEER applies Newton’s method to nonlinear recurrences by linearizing the transition at the current iterate and solving the resulting linear recurrence in parallel [12], [20]. Rotating this view by \(90^\circ\), the depth axis of any block-sequential model–a Transformer, CNN, or recurrent stack–can be treated as the recurrence axis. At solver iteration \(k\), the exact Newton update over layers can be written as \[h_l^{(k+1)} = f_l\!\left(h_{l-1}^{(k)}\right) + J_l^{(k)} \left(h_{l-1}^{(k+1)} - h_{l-1}^{(k)}\right), \qquad J_l^{(k)} = \tfrac{\partial f_l}{\partial h_{l-1}}\!\left(h_{l-1}^{(k)}\right).\] This recurrence is equivalent to applying Newton’s method to the stacked residual system in Eqn. 1 because the residual Jacobian is block lower-bidiagonal; we refer readers to prior derivations of this equivalence in DEER-style solvers [16], [20]. The challenge is that \(J_l^{(k)}\) is the Jacobian of an entire layer or block output with respect to its input. For language-model hidden states, materializing this operator is infeasible, and even Jacobian-vector products or finite-difference approximations can consume the latency budget that layer parallelism is meant to save. Naive fixed-point updates avoid this cost but are often unstable on trained residual networks. The practical question is therefore whether we can replace the exact layer Jacobian with a cheap structured surrogate that preserves enough of the Newton correction to make finite-iteration, layer-parallel inference useful.

3.2 Structured Newton Layer Parallelism↩︎

SNLP replaces the exact layer Jacobian in Eqn. 1 with a cheap structured surrogate. Let the first \(S\) layers be evaluated sequentially, producing a prefix state \(h_S\). The remaining suffix \(\{S+1,\ldots,L\}\) is solved by iterative correction. At iteration \(k\), each suffix layer is first evaluated using the current estimate of its input, \[\widetilde{h}_l^{(k)} = f_l\!\left(h_{l-1}^{(k)}\right), \qquad l=S+1,\ldots,L .\] These evaluations are independent across \(l\) and can be batched or fused. SNLP then applies the structured Newton correction \[\label{eq:snlp-update} h_l^{(k+1)} = \widetilde{h}_l^{(k)} + A_l^{(k)} \left(h_{l-1}^{(k+1)} - h_{l-1}^{(k)}\right), \qquad h_S^{(k+1)}=h_S ,\tag{2}\] where \(A_l^{(k)}\) is a surrogate for the exact block Jacobian \(J_l^{(k)}\). If \(A_l^{(k)}=J_l^{(k)}\), this recovers the exact DEER/Newton update over depth. SNLP instead chooses \(A_l^{(k)}\) so that the correction is much cheaper than evaluating or materializing the true Jacobian, while still propagating information from earlier corrected layer states to later ones.

The update in Eqn. 2 separates the two costs that matter for inference. The nonlinear layer evaluations \(\widetilde{h}_l^{(k)}\) are parallel across the suffix and dominate GPU work. The Newton correction still propagates through depth, but because \(A_l^{(k)}\) is either trivial to compute or directly available from the architecture, this sequential correction is cheap relative to a Transformer block. Thus SNLP realizes speedup by parallelizing the expensive block forwards while keeping only a lightweight structured recurrence on the critical path. After \(K\) iterations, the model projects the final corrected state \(h_L^{(K)}\) to logits.

Effect of the correction. The correction in Eqn. 2 is what moves information across the whole suffix within a single solver iteration. Once the layer outputs \(\widetilde{h}_l^{(k)}\) are computed, the corrected prefix state propagates from layer \(S\) to layer \(L\) through the structured recurrence, so \(h_L^{(k+1)}\) depends on the corrections from all layers \(S+1,\ldots,L\). Without this correction, a naive parallel fixed-point update only advances information by one layer per iteration: after \(K\) iterations, the effect of the prefix can reach only the next \(K\) layers of the suffix. We verify this propagation effect empirically in 5.3 and 10.8.

3.3 Structured Surrogates↩︎

Identity Newton (IDN). For residual Transformer blocks, \(f_l(x)\) contains an explicit identity path. SNLP uses the architecture-induced surrogate \[A_l^{(k)} = I .\] The correction becomes \[h_l^{(k+1)} = \widetilde{h}_l^{(k)} + h_{l-1}^{(k+1)} - h_{l-1}^{(k)} ,\] which reduces the Newton correction to additive propagation of the previous-layer correction. This is our main residual-Transformer instantiation because it requires no Jacobian estimation and makes the correction essentially a prefix-sum over depth. We refer to this variant as Identity Newton (IDN).

Diagonal Newton (DiagN). A closer approximation to the exact Newton step uses only the diagonal of the layer Jacobian, \[A_l^{(k)} = \operatorname{diag}\!\left(J_l^{(k)}\right).\] This connects SNLP to quasi-DEER and ELK-style approximations [16]. With a diagonal surrogate, the correction in Eqn. 2 becomes an elementwise affine recurrence over depth and can be evaluated efficiently by an associative prefix scan [22], [23], [25]. In our implementation, the diagonal can be estimated by a Hutchinson-style finite-difference or VJP estimator [20], [41], [42], optionally only on a subset of layers.

HC Newton (HCN). For hyper-connection and mHC-style models [17], [18], the architecture exposes an explicit residual mixing matrix over streams. If a block applies residual mixing matrices \(H^{\mathrm{res}}_{\mathrm{attn},l}\) and \(H^{\mathrm{res}}_{\mathrm{mlp},l}\), we use \[A_l = H^{\mathrm{res}}_{\mathrm{mlp},l} H^{\mathrm{res}}_{\mathrm{attn},l}. \label{eq:hcn-A}\tag{3}\] This surrogate is small: it acts on the stream dimension rather than on the full hidden dimension. The mHC case demonstrates that SNLP is not tied to the identity residual path; any architecture with a cheap structured approximation to inter-layer sensitivity can define an SNLP correction.

3.4 SNLP-Aware Training↩︎

Off-the-shelf sequential models need not have layer dynamics that match a cheap surrogate. We therefore add an auxiliary loss that makes a finite SNLP solve match the sequential trace. For each suffix length \(N\in\mathcal{S}\), let \(\mathcal{T}_N\) be the stride-selected supervised layers in that suffix, and let \(\widehat h_l^{\mathrm{SNLP}}(N,K;A)\) be the SNLP state at layer \(l\) after \(K\) iterations with surrogate family \(A\). We optimize \[\mathcal{L} = \mathcal{L}_{\mathrm{CE}} + \lambda \sum_{N\in\mathcal{S}} \sum_{l\in\mathcal{T}_N} \tfrac{ \left\|\widehat h_l^{\mathrm{SNLP}}(N,K;A)-h_l^{\mathrm{seq}}\right\|_2 }{ \left\|h_l^{\mathrm{seq}}\right\|_2+\epsilon } . \label{eq:snlp-training-loss}\tag{4}\] In our runs, \(K=1\) during training and \(\mathcal{S}\) contains one or more configured suffix lengths. The set \(\mathcal{T}_N\) controls where the matching loss is applied: stride 0 uses only the final layer, \(\mathcal{T}_N=\{L\}\), while positive strides add sparse intermediate layers and always include \(L\) to reduce memory cost; see 11 for ablations. The surrogate \(A\) is identity for IDN, diagonal for DiagN, and the stream-mixing matrix for HCN. This objective does not make layers removable; rather, it makes the chosen structured correction a better finite-iteration solver for the sequential trace.

3.5 Inference With Fusion and Chunking↩︎

At inference time, SNLP runs a sequential prefix and applies Eqn. 2 to a suffix of \(N=L-S\) layers. The suffix hidden states can be initialized from the prefix state \(h_S\), from a one-shot batched forward, or from a lightweight predictor; our main evaluations focus on simple prefix-state and batched-forward initializations. The number of iterations \(K\) controls the quality-cost tradeoff.

Layer fusion. Wall-clock speedups require more than replacing the Jacobian. We therefore combine SNLP correction with GPU-oriented execution of the suffix. In the batched form, per-layer weights are stacked so all suffix layers evaluate in one grouped operation. In the fused form, several layers that read the same input are combined into one wider layer: the attention \(Q,K,V\) projections and MLP expansion matrices are concatenated along their output dimension, while the attention output projection and MLP down-projection are concatenated along their input dimension. Equivalently, the fused layer computes all branch outputs in one wide matmul and performs the required sum-reductions after the attention output projection and after the MLP projection. This converts layer-parallel algorithmic structure into larger GPU-efficient matrix multiplies.

Chunkwise strategy. For more aggressive parallelization, we split the suffix into multiple fused chunks, inspired by DeltaNet-style chunkwise parallelization [43]. Each chunk is treated as a wide layer as above, and all chunk forwards are parallelizable because they use the current chunk-input estimates from iteration \(k\). SNLP then applies the structured Newton correction between chunk outputs rather than between individual layers: \[h_c^{(k+1)} = \widetilde{h}_c^{(k)} + A_c^{(k)} \left(h_{c-1}^{(k+1)} - h_{c-1}^{(k)}\right), \label{eq:snlp-iterative}\tag{5}\] where \(c\) indexes chunks and \(A_c^{(k)}\) is the corresponding identity or architecture-induced chunk surrogate. Chunking trades a coarser solver approximation for better hardware utilization, since the expensive work is executed as a small number of wide parallel chunk forwards followed by a cheap correction across chunks. These fusion choices change the finite-iteration computation, so the resulting model should be understood as practical SNLP inference rather than exact recovery of the sequential forward.

4 Analysis↩︎

Exact convergence of Newton’s method on Eqn. 1 recovers the sequential forward pass, so lower-PPL SNLP configurations should not be interpreted as monotonic inference-time scaling. Practical SNLP uses approximate surrogates, finite iterations, initialization, fusion, and chunking; together these define a solver-induced inference bias. We summarize the main mechanisms here and defer derivations to the appendix.

Training-side effects. SNLP-aware training makes a cheap structured correction match the sequential final state. For residual blocks \(f_l(x)=x+g_l(x)\), IDN training encourages \(g_l(h_S)\approx g_l(h_l^{\mathrm{seq}})\) over the suffix, putting implicit Lipschitz pressure on the non-residual branch: smaller \(J_{g_l}\) makes \(J_{f_l}=I+J_{g_l}\) closer to the IDN surrogate. This can improve gradient flow and encourage capacity partitioning, with prefix layers handling more input-dependent processing and suffix layers acting more like stable feature-correction modules. The suffix is still useful, but its features become less sensitive to the exact state where they are evaluated.

Inference-side effects. IDN and fused SNLP evaluate many suffix contributions at a common or chunk-level input instead of along the fully accumulated sequential chain. This removes part of the variance from layerwise error compounding, at the cost of bias from evaluating \(g_l(h_S)\) rather than \(g_l(h_l^{\mathrm{seq}})\). When SNLP training makes this bias small, the variance reduction can dominate. Fusion and chunking add another bias: fused branches see summed cross-layer signals, which can create useful feature conjunctions but can also hurt when chunks are too aggressive.

Layer coupling. The results suggest that SNLP benefits from structured depth coupling rather than removing depth interactions entirely. HC and mHC parameterize residual-stream mixing [17], [18], while AttnRes learns attention over depth [27]. SNLP is complementary: IDN uses identity coupling, HCN uses the learned residual mixing matrix, and fused SNLP induces implicit cross-layer coupling inside each chunk.

Table 1: Main results for layer-parallel decoding across Nanochat model variants. Brackets under model names give sequential PPL and, when shown, regularization gain over No Reg.; all SNLP inference uses IDN correction for residual models or HCN correction for mHC models. Quality-oriented configs and most speed-oriented configs reduce PPL, with up to 32.1% lower PPL and \(2.3\times\) practical speedup. AR Match uses 32 generated tokens, so 30% observed match requires roughly 90% conditional per-token agreement (10.1).
Model Config \(K\) PPL \(\Delta\)PPL Speedup Top-1 LogitSim EmbSim AR Match
Nanochat-3B standard

multitables-tbl:tab:main95results0

4xF1-fwd 2 32.27 -13.2% \(0.94\times\) 0.872 0.992 0.955 78.3%
12xF1-h0 8 31.45 -15.4% \(0.59\times\) 0.803 0.989 0.943 92.2%
1-10 4xF1-fwd 2 32.96 -6.7% \(0.99\times\) 0.905 0.998 0.969 91.0%
12xF1-h0 8 30.12 -14.7% \(0.57\times\) 0.799 0.993 0.950 95.5%
1-10 4xF1-fwd 2 31.52 -11.0% \(0.92\times\) 0.877 0.989 0.948 68.8%
12xF1-h0 8 31.39 -11.3% \(0.57\times\) 0.792 0.990 0.907 87.7%
Nanochat-0.5B standard

multitables-tbl:tab:main95results1

12xF1-h0 4 62.01 -10.8% \(1.11\times\) 0.626 0.982 0.952 61.4%
16xF1-h0 8 47.25 -32.1% \(0.78\times\) 0.509 0.977 0.889 72.3%
1-10 12xF2-h0 2 53.68 +0.8% 2.37\(\times\) 0.532 0.979 0.879 35.3%
2xF6-fwd 1 44.00 -17.4% \(1.37\times\) 0.689 0.988 0.935 98.8%
1-10 4xF2-h0 2 63.40 +0.5% \(1.17\times\) 0.610 0.979 0.938 50.4%
12xF1-h0 8 51.42 -18.5% \(0.88\times\) 0.649 0.984 0.943 90.8%
Nanochat-0.5B w/o x0ve

multitables-tbl:tab:main95results2

8xF2-fwd 2 81.35 -4.0% \(1.39\times\) 0.761 0.992 0.965 55.3%
6xF2-fwd 4 78.54 -7.3% \(1.05\times\) 0.907 0.998 0.986 97.9%
1-10 4xF6-h0 2 75.09 -6.1% \(2.32\times\) 0.736 0.996 0.952 84.5%
4xF4-h0 4 72.71 -9.1% \(1.24\times\) 0.740 0.996 0.952 95.9%
Nanochat-0.5B-mHC

multitables-tbl:tab:main95results3

4xF3-fwd 2 69.42 -5.2% \(1.31\times\) 0.561 0.980 0.937 71.1%
4xF2-fwd 2 61.34 -16.2% \(1.13\times\) 0.667 0.990 0.955 89.2%
1-10 20xF1-h0 4 66.56 -1.0% \(1.22\times\) 0.911 0.993 0.986 80.1%
8xF1-h0 1 65.91 -2.0% \(0.97\times\) 0.911 0.998 0.988 82.8%

5 Experiments↩︎

From-scratch models. Our main results use Nanochat [19] models trained from scratch at two 32-layer scales: a 3B model with \(n_{\mathrm{embd}}=2048\) and 16 heads, and a 0.5B model with \(n_{\mathrm{embd}}=640\) and 5 heads. Forward Nanochat uses rotary position embeddings [44], an \(x_0\) residual connection [29], and value embeddings [28]. For both standard scales, we train No Reg., IDN Reg., and DiagN Reg. variants. We also train 0.5B variants without \(x_0\)/VE to isolate SNLP from Nanochat-specific features, and an mHC model [17], [18], where HCN uses the learned matrix surrogate.

Off-the-shelf models. We also evaluate SNLP post hoc on Qwen2.5-0.5B-Instruct [38], TinyLlama-1.1B-Chat-v1.0 [39], and Gemma-3-1B-it [40]. Their best SNLP configurations can match, but do not improve, sequential perplexity and are slower than sequential execution; see 16. We additionally finetune TinyLlama to test whether SNLP compatibility can be introduced after pretraining.

Inference configurations. We evaluate chunkwise SNLP with IDN correction for residual models and HCN correction for mHC models. A configuration NxFM-init denotes \(N\) parallel chunks, each fusing \(M\) layers, with initialization h0 from the prefix state \(h_S\) or fwd from a one-shot parallel forward \(f_l(h_S)\). For example, 8xF2-fwd uses 8 fused 2-layer chunks with one-shot initialization. Preheat initialization is deferred to the appendix.

Metrics and protocol. All models are implemented in PyTorch [45] using HuggingFace Transformers [46]. Training and evaluation use ClimbMix, a FineWeb-Edu subset [47]; PPL is measured on a fixed 1M-token validation split. Timing uses batch size 1 on H100 GPUs with 50 warmup and 200 measured runs. Top-1 and LogitSim are prefill metrics against the original sequential model. AR Match is token-level greedy-generation agreement over 32 tokens; for fused-weight variants, it compares to sequential execution of the same fused model. EmbSim compares generated text to original sequential generation using BGE-small-en-v1.5 embeddings [48].

5.1 Main results↩︎

5 reports two representative SNLP configurations per model: one speed-oriented and one quality-oriented; checkpoint settings are listed in 10. All quality-oriented configurations, and most speed-oriented configurations, achieve lower PPL than the corresponding sequential forward pass. On 0.5B models, SNLP reaches up to \(2.3\times\) speedup while maintaining comparable or lower PPL; the fastest configurations use aggressive 24-layer parallelization, either 12xF2 or 4xF6, covering 75% of the model depth. Across both 3B and 0.5B models, SNLP-aware regularization also improves the sequential model itself: IDN/HCN and DiagN regularization reduce baseline PPL by 4.7%–23.4%. The 3B models also obtain lower PPL but not speedup in our implementation. At this width, sequential Transformer blocks already saturate the H100 more effectively, so PyTorch-level layer fusion does not overcome the overheads. Custom fused kernels or software-hardware co-design, such as compute-in-memory-style execution [49], may be needed to realize the algorithmic parallelism at larger scale.

The diagonal variant is useful as an ablation because it relaxes the strong identity assumption, but it adds extra block evaluations or autodiff work. 6 shows that, unlike IDN inference, most quality-oriented diagonal-correction configurations only recover comparable PPL to sequential inference. Compared with IDN, DiagN introduces a different solver-induced bias that is numerically closer to the sequential computation, but this bias is not necessarily beneficial for reducing PPL.

Table 2: Best diagonal-Jacobian Newton correction configurations. Configs use nN-VJP-init notation, where nN is the number of parallel layers/chunks, VJP denotes the diagonal estimator, and fwd denotes one-shot forward initialization.
Model Variant Seq PPL Config \(K\) PPL Speedup
Nanochat-0.5B standard No Reg. 69.54 n8-VJP-h0 2 75.04 (+7.9%) \(0.58\times\)
n8-VJP-fwd 2 70.24 (+1.0%) \(0.57\times\)
IDN Reg. 53.25 n12-VJP-h0 1 55.89 (+5.0%) \(0.79\times\)
n24-VJP-fwd 4 52.31 (-1.8%) \(0.44\times\)
DiagN Reg. 63.08 n8-VJP-h0 4 62.65 (-0.7%) \(0.44\times\)
Nanochat-0.5B w/o x0ve No Reg. 84.74 n8-VJP-fwd 2 92.27 (+8.9%) \(0.59\times\)
n8-VJP-h0 4 85.00 (+0.3%) \(0.48\times\)
IDN Reg. 79.96 n16-VJP-h0 2 83.96 (+5.0%) \(0.76\times\)
n8-VJP-h0 2 81.36 (+1.8%) \(0.66\times\)
Nanochat-0.5B-mHC No Reg. 73.24 n8-VJP-h0 4 78.20 (+6.8%) \(0.46\times\)
n8-VJP-h0 8 73.30 (+0.1%) \(0.31\times\)
HCN Reg. 67.23 n8-VJP-h0 8 68.90 (+2.5%) \(0.27\times\)

5.2 Training effect↩︎

SNLP-aware regularization improves the sequential standard models: on 3B, IDN and DiagN regularization reduce PPL from 37.16 to 35.31 and 35.41; on 0.5B, they reduce PPL from 69.54 to 53.25 and 63.08. This suggests that the loss changes learned layer dynamics rather than only fitting the parallel inference path. 7 measures the Jacobian of the non-residual branch \(g_l\) for the last 8 layers of the 0.5B standard models. For layers 24–30, IDN Reg. reduces spectral estimates by roughly \(12\times\) and Hutchinson Frobenius estimates by roughly \(12\times\), supporting the implicit Lipschitz-regularization interpretation. [tab:amplification] shows the same reduction in full-layer amplification \(\|J_{f_l}v\|/\|v\|\), including removal of the previous layer-31 outlier. For diagonal-Jacobian inference, VJP-based estimates may introduce additional bias, especially in HC/mHC-style models where asymmetric routing makes \(J^\top v\) deviate from the required forward sensitivity.

Table 3: Per-layer Jacobian, amplification, and substitution-error diagnostics on selected suffix layers of 0.5B standard models. The \(10^3|\epsilon_l|\) and \(10^3 C_\epsilon\) columns report relative substitution errors multiplied by 1000.
IDN Reg. No Reg.
2-7(lr)8-13 Layer \(\sigma_{\max}\) \(\|J\|_F\) amp. \(10^3|\epsilon_l|\) \(10^3 C_\epsilon\) \(\Delta_g\) \(\sigma_{\max}\) \(\|J\|_F\) amp. \(10^3|\epsilon_l|\) \(10^3 C_\epsilon\) \(\Delta_g\)
25 1.66 2.40 2.92 0.271 0.271 0.056 18.25 24.75 16.57 20.463 20.463 0.159
27 1.75 2.54 2.79 0.458 0.827 0.142 21.93 27.01 14.91 46.101 61.991 0.272
29 1.69 2.45 2.55 1.453 2.379 0.277 19.87 25.66 12.29 66.422 123.962 0.436
31 1.97 2.84 2.73 1.250 3.895 0.269 30.26 34.44 13.43 239.148 351.378 0.717
Table 4: Correction-ordering summary for the 0.5B IDN Reg. model. Best shuffle is the lowest PPL among random shuffles; shuffle std. is computed over finite random-shuffle PPL values; div. denotes divergence. All IDN runs use h0 initialization.
Sequential IDN (\(K=1\))
2-5(lr)6-10 \(N\) Forward Reversed Best shuffle Shuffle std. Forward Reversed Best shuffle No correction Shuffle std.
8 53.2 53.5 52.9 0.3 53.1 164.4 55.5 164.4 37.6
12 53.2 54.6 53.3 0.4 53.8 433.7 53.8 433.7 194.2
16 53.2 706.0 47.0 26792.1 55.1 div. 73.6 div. 2135.6
image
Early-exit PPL (K=0) for the 0.5B models. N=0 is ordinary sequential inference; larger N skips the final N layers.

5.3 Inference effect↩︎

Correction ordering. 8 tests whether correction order matters on the IDN Reg. model; full tables are in 10.7. Sequentially executing the permuted suffix is almost invariant to layer order up to \(N=12\), with very low shuffle variance, suggesting that IDN regularization makes these suffix layers effectively parallelizable. SNLP with IDN correction is more order-sensitive: the best \(K=1\) PPL in the summary is always achieved by forward order, possibly because the correction recurrence preserves the causal direction of the original depth computation. At \(N=16\), however, sequential permutation reaches 47.0 PPL with the best shuffle; and in an earlier, less parallelized IDN \(\lambda=0.5\), stride-0 checkpoint, 23 shows that a random shuffle can outperform forward order. This suggests that single-iteration SNLP may benefit from searching over correction orders.

Correction propagation. Layer-activation ablations in 10.8 confirm the propagation pattern from 3: with correction, every active suffix layer can affect the final output in one iteration; without correction, influence moves only one layer per iteration, producing a staircase pattern.

Variance reduction. For each suffix layer \(l\), write \(f_l(h)=x_{\mathrm{in},l}(h)+g_l(h)\), where \(g_l\) is the non-residual attention/MLP update. Let \(h_S\) be the clean prefix state and \(h_l^{\mathrm{seq}}\) the sequential input to layer \(l\). We define the substitution error \(\epsilon_l=g_l(h_l^{\mathrm{seq}})-g_l(h_S)\) and report: \[|\epsilon_l| = \tfrac{ \mathbb{E}_{b}\left[\|\epsilon_{l,b}\|_2\right] }{ \mathbb{E}_{b}\left[\|h_{S,b}\|_2\right] + \epsilon }, \qquad C_\epsilon(l) = \tfrac{ \mathbb{E}_{b}\left[ \left\|\sum_{r=S+1}^{l}\epsilon_{r,b}\right\|_2 \right] }{ \mathbb{E}_{b}\left[\|h_{S,b}\|_2\right] + \epsilon }, \qquad \Delta_g(l) = \tfrac{ \mathbb{E}_{b}\left[ \left\|g_l(h_{l,b}^{\mathrm{seq}})-g_l(h_{S,b})\right\|_2 \right] }{ \mathbb{E}_{b}\left[\left\|g_l(h_{S,b})\right\|_2\right] + \epsilon }.\] Here \(|\epsilon_l|\) measures the per-layer substitution error relative to the prefix-state scale, \(C_\epsilon(l)\) measures how these errors accumulate through the suffix, and \(\Delta_g(l)\) measures sensitivity relative to the layer update magnitude. [tab:variance95reduction] shows that IDN Reg. keeps relative per-layer error in the 0.03%–0.15% range of \(\|h_S\|\), while No Reg. ranges from 2% to 24%; IDN Reg. also has lower \(\Delta_g\) than No Reg. at every reported layer.

What \(J\approx I\) really means. Input-invariant suffix layers are not droppable. In an earlier d32 IDN model, early exiting before the last seven layers increases PPL by 52%, while evaluating those layers on the same prefix input preserves the sequential output; see [tab:not95droppable]. The same holds for the highly parallel IDN Reg. checkpoint used in our main 0.5B results and most ablations: skipping 8–16 suffix layers greatly increases PPL ([tab:early95exit95h5v3]). Thus \(J\approx I\) means that the non-residual features are nearly input-invariant, not unnecessary.

6 Conclusion↩︎

We introduced Structured Newton Layer Parallelism, a training and inference framework for relaxing the strict layerwise dependency in Transformer inference. SNLP treats the hidden-state trace across depth as a residual equation, but replaces exact layer Jacobians with cheap structured surrogates induced by the architecture or training objective. In residual Transformers this yields IDN, while mHC-style models use HCN with a learned matrix surrogate. With SNLP-aware regularization and chunkwise layer fusion, trained-from-scratch Nanochat models can execute groups of layers in parallel and, in 0.5B settings, reach up to \(2.3\times\) speedup with comparable or lower perplexity. These results should be interpreted through the finite-iteration solver rather than as monotonic inference-time scaling. Exact convergence of the residual formulation recovers the sequential trace, while practical SNLP uses structured surrogates, initialization choices, and chunkwise fusion to define a related but distinct computation. When training makes the surrogate accurate enough, this solver-induced inference bias can preserve or improve quality while exposing useful layer parallelism.

6.0.0.1 Limitations.

SNLP does not yet provide universal wall-clock acceleration: our 3B models improve PPL but do not speed up with the current PyTorch implementation, likely because the larger sequential blocks already saturate the H100. More efficient kernels, runtime support, or software-hardware co-design may be needed at larger scale. We also only observe lower-PPL SNLP inference on models trained from scratch with SNLP-compatible objectives; on off-the-shelf models such as Qwen2.5, SNLP can match but does not improve sequential perplexity.

Appendix↩︎

[1.4em]

[3.2em]

7 Algorithm↩︎

The main SNLP update is given in Eqn. 2 . 2 shows the standard layer-by-layer execution, while 3 shows the batched structured-correction implementation used by the NxF1-h0 configurations. For HCN, \(A_l\) acts only on the HC/mHC stream dimension rather than the full hidden dimension.

Figure 2: Standard Sequential Layer Execution
Figure 3: IDN/HCN Batched SNLP Inference with h0 Initialization
Figure 4: DiagN Inference with Associative Scan

In 4, FD, JVP, and VJP change only how the diagonal estimator is obtained; once \(a_j=\operatorname{diag}(J_{S+j}^{(k)})\) is available, all variants use the same affine scan recurrence.

8 Analysis Details↩︎

8.1 Variance Reduction Derivation↩︎

Consider a residual suffix beginning at prefix state \(h_S\), with \[f_l(h)=h+g_l(h), \qquad l=S+1,\ldots,L .\] The sequential suffix computes \[h_L^{\mathrm{seq}} = h_S + \sum_{l=S+1}^{L} g_l(h_{l-1}^{\mathrm{seq}}),\] where each branch \(g_l\) is evaluated at a different accumulated hidden state. In contrast, one-step IDN initialized from \(h_S\) computes \[h_L^{\mathrm{idn}} = h_S + \sum_{l=S+1}^{L} g_l(h_S).\] Thus the difference is entirely due to evaluation points: \[h_L^{\mathrm{seq}} - h_L^{\mathrm{idn}} = \sum_{l=S+1}^{L} \left[g_l(h_{l-1}^{\mathrm{seq}})-g_l(h_S)\right].\] First-order expansion around \(h_S\) gives \[g_l(h_{l-1}^{\mathrm{seq}})-g_l(h_S) \approx J_{g_l}(h_S)\left(h_{l-1}^{\mathrm{seq}}-h_S\right) = J_{g_l}(h_S) \sum_{r=S+1}^{l-1} g_r(h_{r-1}^{\mathrm{seq}}).\] Sequential execution therefore couples every later layer deviation to all earlier deviations through the branch Jacobians. If the branch contributions have covariance scale \(\sigma^2\) and \(\|J_{g_l}\|\le \rho\) over the suffix, this term contributes a variance scale of order \(\rho^2\sum_l(l-S)\sigma^2\) under a first-order independence approximation. IDN removes this compounding term by evaluating all branches at the same prefix state. The price is bias: \[\operatorname{Bias}_{\mathrm{idn}} = \sum_{l=S+1}^{L} \left[g_l(h_S)-g_l(h_{l-1}^{\mathrm{seq}})\right].\] SNLP-aware training directly reduces this bias by making the branch functions less sensitive over the suffix trajectory. When the induced bias is small, the variance reduction from avoiding chain-wise error compounding can improve the finite-iteration inference path.

8.2 Connection to Hyper-Connections and mHC↩︎

Hyper-Connections expand the residual stream into \(M\) streams and mix them through learned matrices [17]. A simplified HC sublayer can be written as \[x_{l+1} = H^{\mathrm{res}}_l x_l + H^{\mathrm{post}}_l F_l\!\left(H^{\mathrm{pre}}_l x_l\right),\] where the \(H\) matrices act on stream dimension and \(F_l\) is the nonlinear branch. For an mHC Transformer block, the attention and MLP wrappers each have their own residual mixing: \[\begin{align} x'_l &= H^{\mathrm{res}}_{\mathrm{attn},l} x_l + H^{\mathrm{post}}_{\mathrm{attn},l} \operatorname{Attn}_l\!\left(H^{\mathrm{pre}}_{\mathrm{attn},l}x_l\right),\\ x_{l+1} &= H^{\mathrm{res}}_{\mathrm{mlp},l} x'_l + H^{\mathrm{post}}_{\mathrm{mlp},l} \operatorname{MLP}_l\!\left(H^{\mathrm{pre}}_{\mathrm{mlp},l}x'_l\right). \end{align}\] The exact sublayer Jacobians contain both the residual mixing and the nonlinear branch sensitivity: \[\begin{align} J_{\mathrm{attn},l} &= H^{\mathrm{res}}_{\mathrm{attn},l} + H^{\mathrm{post}}_{\mathrm{attn},l} J_{\operatorname{Attn}_l} H^{\mathrm{pre}}_{\mathrm{attn},l},\\ J_{\mathrm{mlp},l} &= H^{\mathrm{res}}_{\mathrm{mlp},l} + H^{\mathrm{post}}_{\mathrm{mlp},l} J_{\operatorname{MLP}_l} H^{\mathrm{pre}}_{\mathrm{mlp},l}. \end{align}\] If training makes the nonlinear branches locally input-invariant, the branch Jacobian terms become small and the block Jacobian is approximated by \[J_{\mathrm{block},l} \approx H^{\mathrm{res}}_{\mathrm{mlp},l} H^{\mathrm{res}}_{\mathrm{attn},l}.\] This is exactly the HCN surrogate used in Eqn. 2 . It is available from the architecture and acts only on stream dimension, avoiding full hidden-state Jacobian estimation.

IDN is the degenerate residual case. For \(f_l(x)=x+g_l(x)\), the known residual Jacobian is \(I\). IDN uses \(A_l=I\) and trains the branch sensitivity \(J_{g_l}\) to be small enough that \(J_{f_l}=I+J_{g_l}\approx I\). In this sense, IDN and HCN follow the same template: keep the cheap architecture-induced residual transition, and train the nonlinear branch to be compatible with it.

8.3 Fused Cross-Layer Coupling↩︎

Layer fusion combines several parallel layers that read the same input \(h\) into one wide layer. For a chunk \(\mathcal{C}\), the fused attention computes the branch projections for all \(l\in\mathcal{C}\) and sums the output projections: \[a_{\mathcal{C}}(h) = \sum_{l\in\mathcal{C}} O_l\,\operatorname{Attn}_l(Q_lh,K_lh,V_lh).\] The fused MLP then receives the shared post-attention state \[u_{\mathcal{C}}(h)=h+a_{\mathcal{C}}(h),\] and applies the concatenated expansion and down-projection weights, equivalently summing the per-layer MLP branches: \[m_{\mathcal{C}}(h) = \sum_{l\in\mathcal{C}} P_l\,\phi\!\left(W_l\,\operatorname{Norm}(u_{\mathcal{C}}(h))\right),\] where \(\phi\) is the MLP nonlinearity. The fused chunk output is \[F_{\mathcal{C}}^{\mathrm{fused}}(h) = u_{\mathcal{C}}(h)+m_{\mathcal{C}}(h).\] This is not identical to independently evaluating and summing each layer branch, because every MLP branch sees the aggregate attention state \(h+\sum_{r\in\mathcal{C}}a_r(h)\) rather than only its own \(h+a_l(h)\). The cross-layer coupling term is \[\sum_{l\in\mathcal{C}} P_l \left[ \phi\!\left(W_l\operatorname{Norm}\!\left(h+\sum_{r\in\mathcal{C}}a_r(h)\right)\right) - \phi\!\left(W_l\operatorname{Norm}\!\left(h+a_l(h)\right)\right) \right].\] This term captures the change induced by evaluating every MLP branch on the aggregate post-attention state rather than on its own per-layer post-attention state. It is generally nonzero: layer normalization, nonlinear MLP activations, and non-canceling projections can all make a branch react to attention evidence produced by other layers in the same chunk. This implicit cross-layer coupling connects fused SNLP to the broader observation that richer depth mixing can be beneficial, as in HC/mHC and AttnRes [17], [18], [27], while also explaining why overly aggressive fusion can change model behavior.

9 Training Configuration and Ablations↩︎

9 summarizes an early training-side ablation that motivated SNLP-aware regularization. Vanilla Jacobi, which initializes every layer state from the prefix state and repeatedly applies \(h_l^{(k+1)}=f_l(h_{l-1}^{(k)})\), diverged on trained models: measured layer Jacobian norms were far from contractive. Spectral regularization reduced this norm substantially, but it only modestly reduced the number of Newton iterations and did not address the dominant cost of Jacobian estimation. This motivated the IDN/HCN direction: instead of making exact Newton cheaper, train the model so a cheap structured correction is useful.

Table 5: Summary of early training-side attempts. Spectral regularization improved contractiveness but targeted Jacobian magnitude rather than the practical bottleneck: computing or estimating Jacobian corrections during inference.
Attempt Training target Observation Outcome
Vanilla Jacobi None \(\sigma_{\max}\!\approx\!44\); fixed-point iteration diverges Failed
Spectral Reg. Penalize \(\operatorname{ReLU}(\widehat\sigma_l-1)\) \(\sigma_{\max}\) reduced to \(\approx\!2.3\), but iterations only drop about 20% Insufficient
IDN/HCN Reg. Match parallel states to sequential Removes JVP from correction and makes cheap structured updates effective Used

10 lists the training settings used for the trained-from-scratch models in 5. 11 shows that the best loss configuration depends on architecture and scale: the 0.5B standard model benefits strongly from stride-3 IDN regularization, while detaching the MSE target hurts; the no-x0/VE model works best with stride 6; the 3B model prefers stride 0 over stride 3. For HCN on the mHC model, not detaching hurts PPL, so our default is no detach for IDN and detach for DiagN/HCN.

Table 6: Training and SNLP-aware regularization settings for models used in the main results. Detach indicates whether the sequential target in Eqn. 4 is detached.
Model Regularization Steps \(\lambda\) Stride Detach
Nanochat-3B standard None 9600
IDN 9600 0.1 0
DiagN 9600 0.1 3
Nanochat-0.5B standard None 4800
IDN 4800 0.5 3
DiagN 9600 0.1 3
Nanochat-0.5B w/o x0ve None 9600
IDN 4800 0.5 6
Nanochat-0.5B-mHC None 4800
HCN 4800 0.5 0
Table 7: Ablation of SNLP-aware regularization loss settings. Detach indicates whether the sequential target is detached. \(\Delta\)PPL is relative to the corresponding No Reg. baseline: 37.16 for 3B standard, 69.54 for 0.5B standard, 84.74 for 0.5B w/o x0ve, and 73.24 for 0.5B-mHC.
Model Regularization \(\lambda\) Stride Detach PPL \(\Delta\)PPL
Nanochat-3B standard IDN 0.1 0 35.31 -5.0%
IDN 0.1 3 41.18 +10.8%
IDN 0.5 0 47.91 +28.9%
Nanochat-0.5B standard IDN 0.5 3 53.25 -23.4%
IDN 0.5 0 59.07 -15.1%
IDN 0.5 2 61.57 -11.5%
IDN 0.0625 3 63.53 -8.6%
IDN 0.1 3 69.96 +0.6%
IDN 0.5 0 87.34 +25.6%
IDN 0.5 3 NaN
Nanochat-0.5B w/o x0ve IDN 0.5 6 79.96 -5.6%
IDN 0.5 3 90.03 +6.2%
IDN 0.5 0 123.0 +45.1%
Nanochat-0.5B-mHC HCN 0.5 0 67.23 -8.2%
HCN 0.5 0 75.10 +2.5%
HCN 0.5 3 98.89 +35.0%

10 Additional Inference Ablations↩︎

10.1 Interpreting AR Match Rate↩︎

12 gives a rough conversion between the observed greedy autoregressive match rate and an effective local per-token agreement rate. For AR Match, each sample is evaluated over \(T=32\) generated tokens. The reported AR match rate \(\alpha\) is token-level agreement against the sequential baseline over \(N\) samples \(\alpha = \tfrac{\#\text{matched generated tokens}}{N T}\). Because generation is autoregressive, a single mismatch changes the prefix for all later positions. Under a simple absorbing-divergence model, let \(\beta\) be the probability of matching the next token conditioned on all previous generated tokens matching. Then token \(i\) matches with probability \(\beta^i\), so \[\alpha = \tfrac{1}{T}\sum_{i=1}^{T}\beta^i = \tfrac{\beta(1-\beta^T)}{T(1-\beta)} .\] Thus an apparently modest AR match can still imply high local agreement before prefix divergence; for \(T=32\), \(\alpha=0.30\) corresponds to \(\widehat\beta\approx0.905\).

Table 8: Conversion from observed token-level AR match rate to effective conditional per-token agreement for \(T=32\) generated tokens under an absorbing-divergence model.
Observed AR match \(\alpha\) Implied conditional match \(\widehat\beta\)
0.95 0.9969
0.90 0.9935
0.80 0.9859
0.70 0.9767
0.60 0.9654
0.50 0.9510
0.40 0.9320
0.30 0.9048

10.2 Coupling SNLP with Jacobi Decoding↩︎

SNLP parallelizes over the layer axis, while Jacobi decoding (JD) parallelizes over future token positions by iteratively refining a block of draft tokens [15]. Speculative decoding and speculative Jacobi decoding (SJD) further combine draft proposals with verification [8], [9], [50]. A natural extension is to couple the two axes and solve over a layer-token lattice \[h_{\ell,t}, \qquad \ell=0,\ldots,L,\quad t=1,\ldots,T .\] In principle, one could update hidden states and token guesses jointly, \[h_{\ell,t}^{(r+1)} = \mathcal{F}_{\ell,t}\!\left(h^{(r)}, x^{(r)}\right), \qquad x_t^{(r+1)} = \operatorname{JDUpdate}\!\left(\operatorname{LMHead}(h_{L,t}^{(r+1)})\right),\] rather than using a nested loop, \[x^{(r+1)} \leftarrow \operatorname{JDUpdate}\!\left( \operatorname{SNLPForward}(x^{(r)};K) \right).\] This view is appealing because a successful 2D solver could avoid paying a full inner SNLP solve for every token-level Jacobi iteration. In practice, the main difficulty is initialization. JD changes the draft tokens between iterations; reinitializing all layer states from the new prefix state \(h_0\) reduces to the nested baseline, while reusing hidden states from the previous JD iteration carries features computed for old draft tokens.

13 evaluates this design on the 0.5B IDN Reg. model. The naive variants run a fresh SNLP forward inside each JD iteration. The h0-JD variants recompute the first parallel input but warm-start deeper parallel states from the previous JD iteration. Naive \(K=1\) already obtains 100% token match across all tested configurations, leaving no inner-iteration gap for coupling to close. Increasing to \(K=2\) adds cost without improving match. By contrast, h0-JD degrades match to roughly 21–37%, because stale hidden states encode features for old draft tokens and are propagated by the IDN correction. SJD-style variable-length acceptance makes direct hidden-state reuse even less straightforward, so the tested SJD path effectively reduces to naive composition. We therefore leave useful 2D layer-token coupling to future work; it likely requires a better transport or reinitialization rule when draft tokens change.

Table 9: Coupling JD with SNLP on the IDN stride-0 checkpoint, evaluated on 8 prompts with 32 generated tokens and lookahead window 5. Naive runs reinitialize SNLP hidden states in each JD iteration. h0-JD recomputes the first parallel input but reuses deeper parallel states from the previous JD iteration.
8xF1, \(N=8\) 12xF1, \(N=12\) 4xF3, \(N=12\)
2-5(lr)6-9(lr)10-13 Config Match Accept JD iters Fwd passes Match Accept JD iters Fwd passes Match Accept JD iters Fwd passes
naive \(K=1\) 100.0% 1.04 1.96 30.9 100.0% 1.13 1.91 28.8 100.0% 1.05 1.96 30.4
naive \(K=2\) 100.0% 1.02 1.98 31.5 100.0% 1.04 1.95 30.8 100.0% 1.06 1.93 30.2
h0-JD \(K=1\) 25.0% 0.85 2.37 37.9 21.2% 0.70 2.88 45.9 22.8% 1.10 2.16 31.0
h0-JD \(K=2\) 37.2% 1.00 2.07 31.9 27.8% 0.94 2.17 34.2 36.5% 1.03 2.01 31.1

10.3 ELK Tempering and Preheat Initialization↩︎

We also explored two auxiliary inference knobs that are not included in the main configuration search. The first is an ELK-style tempering of the Newton correction [16], which scales the correction term without changing the number of block forwards and therefore should not affect speed. The second is preheat initialization: offline calibration fits a low-rank affine predictor for each layer output, \[\widehat h_l(x_0) = (x_0 V_l) U_l^\top + b_l ,\] where the basis \(V_l\) is obtained from a truncated SVD of calibration embeddings and \(U_l,b_l\) are fit by linear regression to sequential hidden states. At inference time, \(\widehat h_l(x_0)\) initializes the parallel suffix. In the table below, preheat was calibrated on random tokens; later validation-set calibration did not consistently improve results.

14 shows that ELK tempering can substantially reduce PPL for some configurations, but the effect is not uniform. Preheat is also inconsistent: it can be close to h0, but it can also be much worse. To reduce search space, our main experiments do not tune ELK or preheat; better quality may be achievable at little or no additional runtime cost with a more systematic search.

Table 10: ELK tempering and preheat initialization ablation for \(N=12\), \(K=1\), with sequential PPL 59.07. Configs follow the main chunk notation: 1xF12, 2xF6, 4xF3, and 12xF1. The fwd column corresponds to one-shot batched-forward initialization.
1xF12 2xF6 4xF3 12xF1
3-5(lr)6-8(lr)9-11(lr)12-14 ELK Init h0 fwd preheat h0 fwd preheat h0 fwd preheat h0 fwd preheat
0 PPL 94.04 94.04 94.04 102.8 102.5 169.1 105.8 94.44 281.0 144.5 93.83 1218
0.1 PPL 94.04 94.04 94.04 97.94 93.90 124.7 91.75 82.43 124.2 586.5 92.87 81293

10.4 Off-the-Shelf Model Results↩︎

16 summarizes the best post-hoc SNLP configurations for off-the-shelf models. We select a fast configuration as the fastest run within \(\pm 8\%\) PPL of sequential, and a quality configuration as the lowest-PPL run, breaking ties within 1% PPL by speed. Matching sequential perplexity requires multiple Newton iterations and does not produce speedup, supporting the need for SNLP-aware training. Gemma’s absolute PPL is unusually high on this WikiText-style evaluation: on short raw text, Gemma-3-1B is comparable to Qwen2.5-0.5B and TinyLlama-1.1B, but its WikiText PPL is much higher, likely because its instruction tuning is less compatible with the article formatting and structure in this benchmark.

Table 11: Prompt-format sensitivity for off-the-shelf models. Gemma is comparable on short raw text but much worse on WikiText-style and chat-formatted evaluations.
Model Raw text PPL WikiText PPL Chat PPL
Gemma-3-1B 11.74 264.98 1303.98
Qwen2.5-0.5B 8.26 34.25
TinyLlama-1.1B 7.67 20.18
Table 12: Best post-hoc SNLP configurations on off-the-shelf models. Config names follow the chunk notation used in 5; 8xF1-h0 denotes 8 parallel single-layer chunks initialized from the prefix state.
Model Seq PPL Config \(K\) PPL Speedup
Qwen2.5-0.5B 31.14 8xF1-h0 8 31.14 (+0.0%) \(0.78\times\)
1-6 TinyLlama-1.1B 17.42 8xF1-h0 8 17.42 (-0.0%) \(0.65\times\)
1-6 229.36 8xF1-h0 4 233.22 (+1.7%) \(0.88\times\)
8xF1-h0 8 229.41 (+0.0%) \(0.74\times\)

10.5 Diagonal-Jacobian Correction Results↩︎

17 benchmarks the local cost of Jacobian-vector primitives used by the diagonal-correction sweep in 6. Finite-difference (FD) estimates \(Jv\) by evaluating \(f(x+\epsilon v)-f(x)\), exact forward-mode JVP returns both \(f(x)\) and \(Jv\) in one call, and VJP uses reverse-mode autodiff to compute \(J^\top v\). FD is efficient in our solver because \(f(x)\) is already computed by the parallel block forward, so the finite difference only adds the extra \(f(x+\epsilon v)\) evaluation, similar to the cost of forward initialization. However, FD often diverges in our sweep, plausibly because the correction stacks multiple approximations: replacing the full Jacobian by its diagonal, estimating that diagonal with a Hutchinson-style probe, and then using a noisy finite difference. JVP and VJP are more stable but expensive: 17 shows roughly \(3\times\) overhead for VJP and \(6\)\(8\times\) for JVP over a plain forward. Exact JVP also lacks fused-SDPA support, so the diagonal experiments use FD or VJP estimators.

For an earlier mHC baseline, no diagonal Newton configuration reaches the 10% fast threshold relative to sequential PPL 88.67: the best diagonal result reaches 104.2 PPL, or +17.5% above sequential. With the x0+VE mHC models in 6, diagonal correction can match PPL but remains much slower. This failure mode is expected: mHC routing through \(H_{\mathrm{res}}\), \(H_{\mathrm{pre}}\), and \(H_{\mathrm{post}}\) is asymmetric, so a VJP estimates \(J^\top v\) rather than the required \(Jv\) direction. The resulting diagonal approximation is poor, causing slow convergence or divergence.

Table 13: Single-layer operation benchmark. Nanochat timings use layer 24, and Qwen2.5 timings use a standalone middle layer. Times are milliseconds over 100 warmup and 500 timed runs; parentheses report cost relative to a plain forward.
Model \(T\) Forward (ms) FD (ms) JVP (ms) VJP (ms)
Nanochat-3B standard 1 0.458 0.816 (\(1.78\times\)) 3.274 (\(7.14\times\)) 1.346 (\(2.94\times\))
16 0.459 0.959 (\(2.09\times\)) 3.356 (\(7.31\times\)) 1.369 (\(2.98\times\))
32 0.458 0.926 (\(2.02\times\)) 3.441 (\(7.51\times\)) 1.379 (\(3.01\times\))
64 0.463 0.952 (\(2.05\times\)) 3.421 (\(7.38\times\)) 1.355 (\(2.92\times\))
128 0.454 1.006 (\(2.22\times\)) 3.380 (\(7.44\times\)) 1.345 (\(2.96\times\))
Nanochat-0.5B standard 1 0.418 0.784 (\(1.88\times\)) 3.235 (\(7.74\times\)) 1.330 (\(3.18\times\))
16 0.420 0.833 (\(1.98\times\)) 3.299 (\(7.85\times\)) 1.292 (\(3.08\times\))
32 0.411 0.845 (\(2.06\times\)) 3.378 (\(8.23\times\)) 1.339 (\(3.26\times\))
64 0.424 0.872 (\(2.05\times\)) 3.321 (\(7.83\times\)) 1.309 (\(3.08\times\))
128 0.421 0.832 (\(1.98\times\)) 3.397 (\(8.07\times\)) 1.334 (\(3.17\times\))
Qwen2.5-0.5B 1 0.522 1.059 (\(2.03\times\)) 3.014 (\(5.77\times\)) 1.753 (\(3.35\times\))
16 0.545 1.091 (\(2.00\times\)) 3.132 (\(5.75\times\)) 1.855 (\(3.40\times\))
32 0.545 1.090 (\(2.00\times\)) 3.179 (\(5.84\times\)) 1.875 (\(3.44\times\))
64 0.542 1.071 (\(1.97\times\)) 3.127 (\(5.77\times\)) 1.843 (\(3.40\times\))
128 0.537 1.080 (\(2.01\times\)) 3.162 (\(5.89\times\)) 1.852 (\(3.45\times\))

10.6 Pretrained TinyLlama Fine-Tuning↩︎

We finetune TinyLlama-1.1B-Chat-v1.0 [39] with IDN regularization to test whether layer-parallel compatibility can be retrofitted onto an off-the-shelf pretrained model. TinyLlama is a standard LLaMA-style model with 22 layers, hidden dimension 2048, 32 attention heads, and 4 KV heads. We finetune and evaluate on ClimbMix [47] using AdamW with cosine learning-rate decay. 18 summarizes the finetuning grid, and 19 reports representative IDN inference results.

Table 14: TinyLlama IDN finetuning grid. Runs marked with * crashed before the planned 10000 steps; the checkpoint near 2000 steps was still usable for evaluation.
Run IDN weight Target \(N\) LR Steps Final PPL
baseline 0 \(2{\times}10^{-5}\) 2000 17.82
idn05 0.5 4,8,12 \(2{\times}10^{-5}\) 2000 17.91
idn2_npar48 2.0 4,8 \(5{\times}10^{-5}\) 5000 19.29
idn5_npar4 5.0 4 \(1{\times}10^{-4}\) 5000 26.03
idn10_npar4 10.0 4 \(1{\times}10^{-4}\) 5000 26.04
idn5_npar4812 5.0 4,8,12 \(5{\times}10^{-5}\) 5000 19.53
idn1_long 1.0 4,8 \(1{\times}10^{-5}\) 4000* \(\approx 17.8\)
idn5_long_npar4 5.0 4 \(1{\times}10^{-5}\) 4000* \(\approx 17.8\)
Table 15: Representative IDN inference results after TinyLlama finetuning. Finetuning reduces some IDN losses, but no configuration improves over sequential perplexity.
Run Seq PPL \(N=4\), \(K=1\) h0 \(N=4\), \(K=1\) fwd \(N=4\), \(K=2\) fwd
baseline 16.76 33.93 26.14 17.77
idn2_npar48 18.23 40.55 28.35 19.07
idn5_npar4 24.41 46.58 34.20 25.24
idn10_npar4 24.52 45.06 33.32 25.30
idn5_npar4812 18.46 40.25 28.21 19.20
idn1_long_2k 16.74 37.50 26.07 17.74
idn5_long_2k 16.78 38.48 26.38 17.80

The finetuning results support the co-design interpretation. Mild IDN regularization preserves base quality but leaves large \(K=1\) gaps, while aggressive regularization reduces the IDN loss but degrades sequential PPL. The best runs can bring \(K=2\) one-shot-forward SNLP close to sequential perplexity, but they do not produce the lower-PPL behavior observed in models trained from scratch. This suggests that pretrained layer Jacobians are difficult to reshape late in training without damaging the base model.

10.7 Correction Ordering↩︎

20 21 22 report the correction-ordering ablations used to construct the summary in 8. 23 reports an earlier IDN \(\lambda=0.5\), stride-0 checkpoint with explicit permutations. AR-ness is the average of local- and global-AR-ness scores as defined in DiffuCoder [51]. At \(K=1\), several non-forward orders remain usable; after repeated correction at \(K=4\), only forward ordering remains stable.

Table 16: Correction ordering ablation for \(N=8\) on the IDN Reg. checkpoint and No Reg. baseline.
IDN Reg. No Reg.
3-5(lr)6-8 Order AR-ness Seq-Perm \(K=1\) \(K=4\) Seq-Perm \(K=1\) \(K=4\)
forward 1.000 53.2 53.1 53.3 69.5 1724.8 71.2
shuffle_15 0.384 53.4 93.0 828.0 263.0 168.4 div.
shuffle_0 0.339 53.4 72.6 128.8 4743.6 643.1 19277.7
shuffle_14 0.321 53.7 111.8 66.2 1383.0 137.1 343313.6
shuffle_5 0.259 53.2 62.8 53.9 572.0 565.3 div.
shuffle_10 0.259 52.9 55.5 71.2 135.7 998.1 div.
shuffle_13 0.205 53.1 68.9 58.6 1165.5 15529.5 div.
shuffle_9 0.196 53.0 69.1 div. 294.8 116.9 div.
shuffle_6 0.188 53.5 104.9 div. 163.2 93.7 div.
shuffle_11 0.188 53.6 111.8 74.6 1761.0 137.1 610218.9
shuffle_12 0.188 53.5 88.2 90.7 195.4 87.0 201882.2
shuffle_2 0.134 52.9 61.3 127.5 295.4 28185.4 384058.1
shuffle_1 0.125 53.6 195.7 91.0 2790.1 181.8 515628.8
shuffle_3 0.125 53.6 76.5 84.8 183.7 88.3 div.
shuffle_4 0.125 53.1 124.4 div. 975.9 145.3 54205.2
shuffle_7 0.125 53.5 164.4 55.4 11019.9 162.2 233590.4
shuffle_8 0.125 53.6 81.8 99.5 401.6 144.8 div.
reversed 0.062 53.5 164.4 112.3 36460.7 211.8 div.
no correction 164.4 66.3 211.8 125.7
Table 17: Correction ordering ablation for \(N=12\) on the IDN Reg. checkpoint and No Reg. baseline.
IDN Reg. No Reg.
3-5(lr)6-8 Order AR-ness Seq-Perm \(K=1\) \(K=4\) Seq-Perm \(K=1\) \(K=4\)
forward 1.000 53.2 53.8 53.2 69.5 409.5 90.0
shuffle_7 0.390 54.3 110.7 112.0 24878.7 609.0 679312.8
shuffle_10 0.341 54.8 764.6 2079.7 117548.9 870.6 div.
shuffle_13 0.299 53.5 53.8 597.8 219.3 409.4 div.
shuffle_0 0.261 53.5 108.6 div. 21285.9 1074.0 div.
shuffle_6 0.254 53.3 87.9 div. 453.1 230.7 div.
shuffle_9 0.212 53.6 92.8 div. 3374.4 270.5 div.
shuffle_5 0.171 53.5 53.8 68.7 177.9 409.4 div.
shuffle_11 0.167 53.7 90.1 1148.1 18758.2 248.6 div.
shuffle_3 0.125 54.6 433.7 51.6 116140.6 1250.5 209677.1
shuffle_4 0.125 53.9 433.7 62.9 2878.7 1250.5 div.
shuffle_12 0.125 53.7 335.2 div. 8154.8 3358.7 div.
shuffle_1 0.087 53.4 61.6 276146.6 886.3 1386.9 div.
shuffle_2 0.083 54.2 69.5 div. 86222.2 857.8 div.
shuffle_14 0.083 54.1 158.6 div. 27743.3 245.5 div.
shuffle_8 0.042 53.7 60.6 div. 4647.4 1344.0 div.
shuffle_15 0.042 53.9 119.1 2235.6 29169.5 260.8 div.
reversed 0.042 54.6 433.7 202.0 972113.7 1250.5 154214.9
no correction 433.7 102.7 1250.5 250.3
Table 18: Correction ordering ablation for \(N=16\) on the IDN Reg. checkpoint and No Reg. baseline.
IDN Reg. No Reg.
3-5(lr)6-8 Order AR-ness Seq-Perm \(K=1\) \(K=4\) Seq-Perm \(K=1\) \(K=4\)
forward 1.000 53.2 55.1 53.2 69.5 415.8 3307.2
shuffle_7 0.254 79.5 4254.5 5164.9 57701.0 2718.1 div.
shuffle_15 0.225 59.2 231.7 div. 715357.8 1896.4 div.
shuffle_10 0.190 155.7 367.3 div. 9361.4 511.8 div.
shuffle_13 0.190 115.8 242.0 7382.3 798.0 326.1 div.
shuffle_2 0.156 59.5 149.3 88660.0 div. 1273.7 div.
shuffle_14 0.131 712.9 div. 16554.5 92503.4 430.9 div.
shuffle_0 0.129 110806.4 div. 827563.3 99815.3 605.6 div.
shuffle_3 0.127 81.4 6159.8 div. 68031.2 2452.7 div.
shuffle_4 0.127 47.0 73.6 div. 25657.3 766.7 div.
shuffle_6 0.127 55.5 div. 1216.4 383786.8 1429.2 div.
shuffle_9 0.125 77.4 div. 761.2 357862.9 4407.7 div.
shuffle_12 0.125 53.6 152.4 div. 100153.3 1782.8 div.
shuffle_5 0.094 70.9 81.0 34843.6 78917.1 455.6 div.
shuffle_8 0.094 47.8 div. 614.1 58315.7 8090.4 div.
shuffle_1 0.062 147.0 div. 219888.1 25863.0 1263.3 div.
shuffle_11 0.062 112.0 3537.1 div. 22024.7 490.1 div.
reversed 0.031 706.0 div. div. div. div. 42676.1
no correction div. div. 10948.7 516.1
Table 19: Correction ordering ablation for \(N=8\), \(K=1\) with explicit permutations on an earlier IDN \(\lambda=0.5\), stride-0 checkpoint. Sequential PPL is 59.07 for IDN Reg. and 69.54 for No Reg.
IDN Reg. No Reg.
4-5(lr)6-7 Order Permutation AR-ness Seq-Perm \(K=1\) Seq-Perm \(K=1\)
forward [0,1,2,3,4,5,6,7] 1.000 59.07 75.71 69.54 1724.78
shuffle_15 [4,7,0,2,1,3,5,6] 0.384 2.8e8 66.47 263.04 168.44
shuffle_0 [3,4,6,7,2,5,0,1] 0.339 5.5e7 48248.89 4743.61 643.07
shuffle_14 [0,7,6,1,2,5,4,3] 0.321 4.9e8 71.49 1382.99 137.13
shuffle_16 [2,0,1,6,3,7,5,4] 0.321 3.3e6 69.57 139.65 219.66
shuffle_17 [1,7,5,6,0,3,4,2] 0.268 4.9e8 58.16 11148.41 139.02
shuffle_5 [5,3,6,4,0,7,1,2] 0.259 2.3e6 401.51 571.95 565.33
shuffle_10 [4,0,3,5,1,6,7,2] 0.259 578081.74 85.65 135.66 998.10
shuffle_13 [4,5,6,3,2,7,1,0] 0.205 1.0e6 938159.91 1165.53 15529.51
shuffle_9 [5,4,1,2,7,0,6,3] 0.196 2.7e7 60.46 294.81 116.94
shuffle_6 [3,1,0,7,4,2,6,5] 0.188 4.4e8 75.43 163.25 93.70
shuffle_11 [0,7,3,6,1,5,4,2] 0.188 4.9e8 71.49 1760.96 137.13
shuffle_12 [0,3,2,1,7,6,5,4] 0.188 1.1e8 73.36 195.45 86.95
shuffle_2 [3,5,2,4,1,6,7,0] 0.134 196534.50 2478.13 295.39 28185.37
shuffle_1 [3,7,2,0,4,6,5,1] 0.125 4.9e8 136.24 2790.09 181.80
shuffle_3 [2,1,0,7,4,6,5,3] 0.125 2.3e8 71.58 183.66 88.29
shuffle_4 [5,2,7,3,1,0,6,4] 0.125 2.3e8 126.78 975.89 145.35
shuffle_7 [5,7,6,2,4,0,3,1] 0.125 4.9e8 146.56 11019.86 162.18
shuffle_8 [2,4,7,1,6,0,5,3] 0.125 1.3e8 73.01 401.55 144.80
reversed [7,6,5,4,3,2,1,0] 0.062 4.9e8 72.90 36460.70 211.82
no correction 72.90 211.82

10.8 Correction Propagation↩︎

24 compares subset ablations with and without Newton correction. The identical columns in the no-correction block show that information advances only one layer per iteration, while the correction block shows that all active suffix layers can influence the output immediately.

Table 20: Subset ablation with and without Newton correction. Columns activate progressively more suffix layers ending at layer 31. With correction, all active layers affect PPL at \(K=1\). Without correction, influence propagates one layer per iteration: at \(K=1\) all columns are identical, at \(K=2\) columns last 2–last 8 are identical, and so on.
Correction \(K\) last 1 last 2 last 3 last 4 last 5 last 6 last 7 last 8
w/ Corr. 1 139.17 83.36 74.04 64.00 64.96 60.57 51.70 47.95
2 138.83 83.51 73.73 62.98 63.85 59.54 50.94 47.62
3 138.81 83.50 73.76 62.98 63.96 59.64 50.93 47.67
4 138.80 83.49 73.81 62.93 63.96 59.64 50.90 47.61
5 138.80 83.48 73.85 62.94 63.92 59.62 50.89 47.65
6 138.80 83.48 73.80 62.96 63.95 59.63 50.89 47.62
7 138.80 83.48 73.79 62.94 63.93 59.64 50.90 47.64
8 138.80 83.48 73.80 62.94 63.93 59.63 50.90 47.64
w/o Corr. 1 136.82 136.82 136.82 136.82 136.82 136.82 136.82 136.82
2 114.57 74.22 74.22 74.22 74.22 74.22 74.22 74.22
3 137.73 83.48 74.01 74.01 74.01 74.01 74.01 74.01
4 116.47 74.55 67.77 59.29 59.29 59.29 59.29 59.29
5 138.72 83.85 74.18 63.04 64.13 64.13 64.13 64.13
6 139.35 84.09 74.44 63.15 64.28 59.89 59.89 59.89
7 182.62 96.56 85.06 68.82 68.53 63.27 53.61 53.61
8 138.80 83.48 73.80 62.94 63.93 59.63 50.90 47.64

References↩︎

[1]
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. Advances in Neural Information Processing Systems, 30:5998–6008, 2017.
[2]
A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever. Language models are unsupervised multitask learners. 2019.
[3]
T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. Language models are few-shot learners. Advances in Neural Information Processing Systems, 33:1877–1901, 2020.
[4]
M. Shoeybi, M. Patwary, R. Puri, P. LeGresley, J. Casper, and B. Catanzaro. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053, 2019.
[5]
Y. Huang, Y. Cheng, A. Bapna, O. Firat, D. Chen, M. X. Chen, H. Lee, J. Ngiam, Q. V. Le, Y. Wu, and Z. Chen. Gpipe: Efficient training of giant neural networks using pipeline parallelism. Advances in Neural Information Processing Systems, 32:103–112, 2019.
[6]
T. Dao, D. Y. Fu, S. Ermon, A. Rudra, and C. Ré. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in Neural Information Processing Systems, 35, 2022.
[7]
W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. E. Gonzalez, H. Zhang, and I. Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pages 611–626, 2023.
[8]
Y. Leviathan, M. Kalman, and Y. Matias. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning, pages 19274–19286. PMLR, 2023.
[9]
C. Chen, S. Borgeaud, G. Irving, J.-B. Lespiau, L. Sifre, and J. Jumper. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318, 2023.
[10]
J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, and D. Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.
[11]
H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
[12]
Y. H. Lim, Q. Zhu, J. Selfridge, and M. F. Kasim. Parallelizing non-linear sequential models over the sequence length. In The Twelfth International Conference on Learning Representations, 2024.
[13]
F. Danieli, M. Sarabia, X. Suau Cuadros, P. Rodriguez, and L. Zappella. Deeppcr: Parallelizing sequential operations in neural networks. Advances in Neural Information Processing Systems, 36:47598–47625, 2023.
[14]
Y. Song, C. Meng, R. Liao, and S. Ermon. Accelerating feedforward computation via parallel nonlinear equation solving. In International Conference on Machine Learning, pages 9791–9800. PMLR, 2021.
[15]
A. Santilli, S. Severino, E. Postolache, V. Maiorca, M. Mancusi, R. Marin, and E. Rodola. Accelerating transformer inference for translation via parallel decoding. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12336–12355, 2023.
[16]
X. Gonzalez, A. Warrington, J. T. Smith, and S. W. Linderman. Towards scalable and stable parallelization of nonlinear rnns. Advances in Neural Information Processing Systems, 37:5817–5849, 2024.
[17]
D. Zhu, H. Huang, Z. Huang, Y. Zeng, Y. Mao, B. Wu, Q. Min, and X. Zhou. Hyper-connections. In The Thirteenth International Conference on Learning Representations, 2025.
[18]
Z. Xie, Y. Wei, H. Cao, C. Zhao, C. Deng, J. Li, D. Dai, H. Gao, J. Chang, K. Yu, et al. mhc: Manifold-constrained hyper-connections. arXiv preprint arXiv:2512.24880, 2025.
[19]
A. Karpathy. nanochat: The best chatgpt that $100 can buy, 2025.
[20]
D. M. Zoltowski, S. Wu, X. Gonzalez, L. Kozachkov, and S. W. Linderman. Parallelizing mcmc across the sequence length. Advances in Neural Information Processing Systems, 38, 2025.
[21]
S. Bai, J. Z. Kolter, and V. Koltun. Deep equilibrium models. Advances in Neural Information Processing Systems, 32:688–699, 2019.
[22]
G. E. Blelloch. Prefix sums and their applications. In Synthesis of Parallel Algorithms, pages 35–60. Morgan Kaufmann, 1990.
[23]
E. Martin and C. Cundy. Parallelizing linear recurrent neural nets over sequence length. In International Conference on Learning Representations, 2018.
[24]
A. Gu, K. Goel, and C. Ré. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations, 2022.
[25]
A. Gu and T. Dao. Mamba: Linear-time sequence modeling with selective state spaces. In First Conference on Language Modeling, 2024.
[26]
K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016.
[27]
K. Team, G. Chen, Y. Zhang, J. Su, W. Xu, S. Pan, Y. Wang, Y. Wang, G. Chen, B. Yin, Y. Chen, J. Yan, M. Wei, Y. Zhang, F. Meng, C. Hong, X. Xie, S. Liu, E. Lu, Y. Tai, Y. Chen, X. Men, H. Guo, Y. Charles, H. Lu, L. Sui, J. Zhu, Z. Zhou, W. He, W. Huang, X. Xu, Y. Wang, G. Lai, Y. Du, Y. Wu, Z. Yang, and X. Zhou. Attention residuals, 2026.
[28]
Z. Zhou, T. Wu, Z. Jiang, F. Obeid, and Z. Lan. Value residual learning. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 28341–28356, 2025.
[29]
K. Jordan, J. Bernstein, B. Rappazzo, B. Vlado, Y. Jiacheng, F. Cesista, and B. Koszarsky. modded-nanogpt: Speedrunning the nanogpt baseline, 2024.
[30]
M. Dehghani, S. Gouws, O. Vinyals, J. Uszkoreit, and Ł. Kaiser. Universal transformers. In International Conference on Learning Representations, 2019.
[31]
Z. Lan, M. Chen, S. Goodman, K. Gimpel, P. Sharma, and R. Soricut. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations, 2020.
[32]
J. Geiping, S. McLeish, N. Jain, J. Kirchenbauer, S. Singh, B. R. Bartoldson, B. Kailkhura, A. Bhatele, and T. Goldstein. Scaling up test-time compute with latent reasoning: A recurrent depth approach. Advances in Neural Information Processing Systems, 38, 2025.
[33]
A. Zeitoun, L. Torroba-Hennigen, and Y. Kim. Hyperloop transformers. arXiv preprint arXiv:2604.21254, 2026.
[34]
K. Alizadeh, S. I. Mirzadeh, D. Belenko, S. Khatamifard, M. Cho, C. C. Del Mundo, M. Rastegari, and M. Farajtabar. Llm in a flash: Efficient large language model inference with limited memory. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12562–12584, 2024.
[35]
T. Schuster, A. Fisch, J. Gupta, M. Dehghani, D. Bahri, V. Q. Tran, Y. Tay, and D. Metzler. Confident adaptive language modeling. Advances in Neural Information Processing Systems, 35, 2022.
[36]
R. Zhen, J. Li, Y. Ji, Z. Yang, T. Liu, Q. Xia, X. Duan, Z. Wang, B. Huai, and M. Zhang. Taming the titans: A survey of efficient llm inference serving. arXiv preprint arXiv:2504.19720, 2025.
[37]
X. Miao, G. Oliaro, Z. Zhang, X. Cheng, H. Jin, T. Chen, and Z. Jia. Towards efficient generative large language model serving: A survey from algorithms to systems. ACM Computing Surveys, 58(1):1–37, 2025.
[38]
Q. Team. Qwen2.5: A party of foundation models, September 2024.
[39]
P. Zhang, G. Zeng, T. Wang, and W. Lu. Tinyllama: An open-source small language model. arXiv preprint arXiv:2401.02385, 2024.
[40]
G. Team. Gemma 3 technical report. arXiv preprint arXiv:2503.19786, 2025.
[41]
M. F. Hutchinson. A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Communications in Statistics – Simulation and Computation, 19(2):433–450, 1990.
[42]
C. Bekas, E. Kokiopoulou, and Y. Saad. An estimator for the diagonal of a matrix. Applied numerical mathematics, 57(11-12):1214–1229, 2007.
[43]
S. Yang, B. Wang, Y. Zhang, Y. Shen, and Y. Kim. Parallelizing linear transformers with the delta rule over sequence length. Advances in Neural Information Processing Systems, 37, 2024.
[44]
J. Su, Y. Lu, S. Pan, A. Muffin, B. Wen, and Y. Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 2024.
[45]
A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in Neural Information Processing Systems, 32:8024–8035, 2019.
[46]
T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, et al. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38–45, 2020.
[47]
S. Diao, Y. Yang, Y. Fu, X. Dong, D. Su, M. Kliegl, Z. Chen, P. Belcak, Y. Suhara, H. Yin, M. Patwary, C. Lin, J. Kautz, and P. Molchanov. Nemotron-climb: Clustering-based iterative data mixture bootstrapping for language model pre-training. Advances in Neural Information Processing Systems, 38, 2025.
[48]
S. Xiao, Z. Liu, P. Zhang, and N. Muennighoff. C-pack: Packaged resources to advance general chinese embedding, 2023.
[49]
W. Wan, R. Kubendran, C. Schaefer, S. B. Eryilmaz, W. Zhang, D. Wu, S. Deiss, P. Raina, H. Qian, B. Gao, S. Joshi, H. Wu, and H.-S. P. Wong. A compute-in-memory chip based on resistive random-access memory. Nature, 608(7923):504–512, 2022.
[50]
Y. Teng, H. Shi, X. Liu, X. Ning, G. Dai, Y. Wang, Z. Li, and X. Liu. Accelerating auto-regressive text-to-image generation with training-free speculative jacobi decoding. In International Conference on Learning Representations, 2025.
[51]
S. Gong, R. Zhang, H. Zheng, J. Gu, N. Jaitly, L. Kong, and Y. Zhang. Diffucoder: Understanding and improving masked diffusion models for code generation. arXiv preprint arXiv:2506.20639, 2025.