---
title: Cyclic Patch-Size Rollout in PDE Surrogates
url: https://www.emergentmind.com/topics/cyclic-patch-size-rollout
type: topic
---

# Cyclic Patch-Size Rollout in PDE Surrogates

Searching arXiv for the specified paper and closely related context.
arXiv search query: 2507.09264
Cyclic patch-size rollout is an inference-time scheduling mechanism for patch-based surrogate models of partial differential equations in which the patch size, or the effective stride that determines patch extraction, alternates across rollout steps rather than remaining fixed. In “Controllable Patching for Compute-Adaptive Surrogate Modeling of Partial Differential Equations,” the mechanism is introduced as part of a framework for inference-time patch-size tunability in patch-based PDE surrogates, implemented through the Convolutional Kernel Modulator (CKM) and Convolutional Stride Modulator (CSM), and combined with a cyclic schedule such as $\{4,8,16\}$ to mitigate “checkerboard” or harmonic artifacts in long autoregressive rollouts without retraining [2507.09264].

## 1. Definition and Operational Setting

In a standard autoregressive rollout of a patch-based ViT surrogate, the patch or stride size is fixed once at the start and then kept constant at every timestep. The cited work identifies this as a major source of long-horizon degradation: fixed grids produce “checkerboard” or harmonic artifacts that grow over long rollouts because errors align with the same spatial locations at every step [2507.09264].

Cyclic patch-size rollout replaces that fixed-grid regime with an alternating schedule. At inference time, and without any retraining, the patch size in CKM or the stride in CSM cycles through a small set of values, one value per time step. For a cycle $P=\{p_1,p_2,p_3\}=\{4,8,16\}$, the stepwise selection rule is
\[
P_t \;=\; p_{\bigl((t-1)\bmod 3\bigr)+1},
\]
so that
\[
P_1=4,\;P_2=8,\;P_3=16,\;P_4=4,\dots
\]
This schedule continually shifts the grid boundaries. The stated rationale is that systematic error accumulation at the same spatial locations is thereby prevented [2507.09264].

The mechanism is presented specifically for patch-based transformer surrogates used in spatiotemporal PDE modeling, including 2D and 3D PDE benchmarks and video-like prediction tasks. The transformer block itself, whether vanilla, axial, or other, is unchanged; cyclicity is introduced through the patching interface rather than through modification of the latent processor [2507.09264].

## 2. Mathematical Formulation of the Rollout Schedule

Let $x_0$ denote the initial field, and let the goal be to predict $x_t$ for $t=1,\dots,T$ in an autoregressive manner. The paper defines a length-$M$ cycle of patch sizes
\[
\{P_t\}_{t=1}^T,\quad
P_t = c_{((t-1) \bmod M)+1},\quad
c = [4,8,16],\;M=3.
\]
At each rollout step $t$, the surrogate applies either CKM or CSM with patch or stride size $P_t$ [2507.09264].

For CKM, the base convolutional weight is
\[
W^{\rm base}\in\mathbb{R}^{k_{\rm base}\times k_{\rm base}\times C_{\rm in}\times C_{\rm out}},
\]
and the resized kernel is obtained through a PI-resize construction based on a bicubic interpolation matrix
\[
B\in\mathbb{R}^{P_t\times k_{\rm base}}
\]
and its pseudoinverse $B^{T\dagger}$:
\[
W_t \;=\; B^{T\dagger} \;W^{\rm base}.
\]
The encoder and decoder then use the step-dependent stride $P_t$:
\[
x_{\rm enc} \;=\; \mathrm{Conv}(x_{t-1},\,W_t,\;\mathrm{stride}=P_t),
\]
\[
\hat x_t \;=\; \mathrm{ConvTranspose}(x_{\rm lat},\,W_t,\;\mathrm{stride}=P_t).
\]

For CSM, the kernel size remains fixed at $k^{\rm base}$, but the stride is sampled dynamically as $s_t=P_t$:
\[
x_{\rm enc} \;=\; \mathrm{Conv}(x_{t-1},\,k^{\rm base},\;\mathrm{stride}=s_t),
\]
\[
\hat x_t \;=\; \mathrm{ConvTranspose}(x_{\rm lat},\,k^{\rm base},\;\mathrm{stride}=s_t).
\]

A compact way to distinguish the two mechanisms is to note that CKM changes the kernel and stride jointly through kernel resizing, whereas CSM leaves the kernel untouched and changes only the stride. In both cases, the same cyclic schedule $\{4,8,16\}$ supplies the stepwise control variable [2507.09264].

## 3. CKM and CSM as Architecture-Agnostic Modulators

The paper introduces CKM and CSM as lightweight, architecture-agnostic modules that enable dynamic patch size control at inference in patch-based models, without retraining or accuracy loss. Their plug-and-play role is central: rather than replacing the transformer backbone, they adapt the tokenization or patch-extraction interface around it [2507.09264].

| Module | What changes with $P_t$ | Core formula |
|---|---|---|
| CKM | Kernel size and stride | $W_t=(B^T)^\dagger W^{\rm base}$ |
| CSM | Stride only | $s_t=P_t$ |
| Shared property | Transformer block unchanged | Same cyclic schedule $\{4,8,16\}$ |

CKM uses bicubic interpolation and a pseudoinverse-based projection to resize a base kernel of size $k_{\rm base}$ to the current patch size $P_t$. CSM instead preserves the base kernel and treats the rollout variable as a stride control. The formal distinction matters because the paper applies both variants across multiple backbones and benchmarks, while emphasizing that the transformer block itself is not altered [2507.09264].

The framework is also described as broadly applicable across architectures. The text explicitly mentions ViTs and AFNO, and notes that in hybrid models such as CViT with a query-based decoder, only CKM is applied to the encoder; even in that restricted configuration, cyclic CKM improves rollouts. This suggests that the cyclic mechanism is not tied to a single token mixer or decoder topology, but to the spatial discretization imposed at the encoder-decoder boundary [2507.09264].

## 4. Empirical Behavior: Artifact Suppression and Stability

The principal empirical claim is that cyclic rollout suppresses spectral artifacts and improves long-term rollout fidelity. Figure 1 is described as plotting residual power spectra at rollout step 20 on the turbulent dataset: fixed-p$\times 16$ shows clear harmonics at frequencies multiple of $1/16$, whereas CKM and CSM with cyclic rollout largely eliminate these spikes [2507.09264].

Quantitatively, the paper reports 10-step VRMSE reductions of $5$–$50\,\%$ over the corresponding fixed patch 16 model across six diverse PDE benchmarks and two transformer backbones, Axial and Vanilla. A specific example is given on the shear dataset with Vanilla ViT: fixed $p=16$ gives $\mathrm{VRMSE}=0.107$, while CKM cyclic gives $0.057$, described as an approximately $50\,\%$ gain [2507.09264].

The work also emphasizes visual stability in long rollouts. Figure 5 is summarized as showing a 100-step trajectory of the shear field in which fixed $p=16$ develops checkerboard artifacts by step 40, whereas CKM and CSM remain smooth. In the terminology of the paper, cyclic patch-size rollout improves long-term stability for video-like prediction tasks and improves rollout fidelity and runtime efficiency on a range of challenging 2D and 3D PDE benchmarks [2507.09264].

A plausible implication is that the benefit arises less from any single preferred patch size than from the repeated displacement of grid boundaries over time. The paper’s own phrasing supports this interpretation by linking the mechanism to prevention of systematic error accumulation at the same spatial locations.

## 5. Ablations, Failure Modes, and Misconceptions

The paper includes ablations that distinguish cyclic schedules from superficially similar alternatives. The most direct is the comparison with randomized patch-size selection. Section F.3 reports that randomizing patch sizes instead of cycling degrades performance: on the turbulent dataset, cyclic CSM yields $\mathrm{VRMSE}=0.370$ versus randomized $=0.625$ [2507.09264]. This directly contradicts a common simplification that any non-fixed patch schedule should be equally effective.

The stated explanation is that a structured cyclic schedule provides consistent spectral smoothing, whereas fully random schedules break periodicity but can re-introduce misalignments each step. The distinction is important because both approaches vary the grid, but only one is presented as systematically improving long-horizon rollout behavior [2507.09264].

A second failure mode concerns training diversity. Section F.2 reports that omitting a patch size during training, for example never training on $p=8$, leads to poor results when that size appears at inference. The paper gives the example that VRMSE jumps from approximately $0.18 \to 0.45$ for CKM on turbulent under such omission [2507.09264]. This constrains interpretation of the phrase “without any retraining”: the cyclic rollout schedule itself is inference-time, but all patch sizes intended for rollout must be seen during training through randomized patch sampling.

A further misconception would be to treat cyclic patch-size rollout as a modification of the transformer proper. The paper explicitly states the opposite: the transformer block itself is unchanged. The intervention is confined to how spatial fields are patchified and reconstructed at each autoregressive step [2507.09264].

## 6. Design Trade-offs, Scope, and Generalization

The cycle used in the paper is $\{4,8,16\}$, chosen because these are powers of two commonly used in PDE data. The authors note that a longer cycle or non-power-of-two choices may further diversify grid alignments, but at the cost of increased hyperparameter tuning [2507.09264]. This frames cyclic patch-size rollout not as a uniquely determined algorithm, but as a family of structured schedules with a concrete instantiation.

Compute cost varies substantially across patch sizes. The paper states that smaller patches such as $p=4$ yield approximately $16\times$ more tokens than $p=16$, raising self-attention cost from $\mathcal{O}(N^2)$ to $\mathcal{O}((16N)^2)$. It therefore suggests that in practice one may cycle between $p=8$ and $p=16$ for a milder compute swing [2507.09264]. This makes the mechanism compute-adaptive in a literal sense: patch scheduling trades off token count, attention cost, and rollout robustness.

The framework is positioned as the first to enable inference-time patch-size tunability in patch-based PDE surrogates. Its stated scope includes applicability across architectures, but the paper also identifies open territory: although demonstrated on ViTs and AFNO, further work is needed to explore cyclic patching in Swin, CSWin, or foundation PDE models [2507.09264]. This suggests that the mechanism should be understood as a general foundation for compute-adaptive modeling in PDE surrogate tasks rather than a closed design.

In summary, cyclic patch-size rollout is characterized in the source paper as a simple, inference-only scheduling of patch or stride between a small set of values that has no impact on the transformer block, injects grid diversity to suppress checkerboard artifacts, and yields large gains in long-horizon stability across PDE surrogate tasks and architectures, provided that the rollout sizes have been represented during training [2507.09264].

Source: https://www.emergentmind.com/topics/cyclic-patch-size-rollout