Dynamic Quadtree Tokenization for Autoregressive PDE Forecasting
Yilin Zhuang, Noah Zambrano, Karthik Duraisamy
NeurIPS 2026
TL;DR. We propose WAMRViT, a ViT that tokenizes PDE fields on a 2:1-balanced, wavelet-adapted quadtree, supports native ingestion of multi-level adaptive data, and dynamically re-adapts its topology in cell space across long autoregressive rollouts.
Abstract. The quadratic attention cost of Vision Transformers (ViTs) forces a trade-off between spatial resolution and rollout horizon, particularly for fine-scale PDEs where shocks, reaction fronts, and material interfaces occupy small, evolving regions of the domain. Conventional neural surrogates also lack mechanisms to adapt resolution dynamically. We propose WAMRViT, a ViT that tokenizes inputs as balanced quadtrees using a wavelet-inspired refinement criterion, jointly encodes position and refinement level with 3D rotary positional embeddings, and regrids in cell space during inference for stable long-horizon rollouts. A multi-scale variant retains each leaf at its native source resolution and lets the model learn across resolution levels. Unlike fixed-budget adaptive-tokenization methods, WAMRViT imposes no predetermined token count and supports fully adaptive topology throughout autoregressive rollout. To our knowledge, it is the first machine-learning surrogate to natively tokenize multi-level Adaptive Mesh Refinement (AMR) data. On uniform-grid benchmarks, uniform-patch WAMRViT improves finest-level region-of-interest VRMSE over a finest-patch uniform ViT while using substantially fewer tokens. The multi-scale variant achieves the lowest first-step full-field RMSE and VRMSE on both benchmarks and improves rollout-averaged full-field and refined-region accuracy at long horizons. With parallelized regridding, its end-to-end rollout cost lies between finest-patch and approximately token-matched coarser-patch ViTs. On a complex AMR combustion problem whose finest features cannot be represented natively by the evaluated uniform-grid baselines, WAMRViT operates on adaptive cells built from the simulator hierarchy and substantially reduces finest-level error at matched transformer capacity. Code: https://github.com/tonyzyl/wamrvit
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper proposes a transformer variant that uses dynamic quadtree tokenization and adaptive regridding for autoregressive PDE forecasting. It aims to better handle localized fine-scale structures by following AMR principles. Experiments on combustion, shock propagation, and turbulence simulations show competitive accuracy with fewer tokens and improved performance on native adaptive mesh data.
Pros: The paper addresses an important limitation of transformer-based PDE models: inefficient uniform discretization for localized dynamics. The quadtree-based representation and adaptive rollout mechanism are technically interesting and closer to real AMR practice than previous fixed adaptive patching methods. The evaluation includes challenging physical simulation datasets, especially native AMR data, which makes the study relevant and valuable.
Cons: The main weakness is that the practical advantage of the method is not fully established. The paper shows token reduction, but the expensive regridding process may remove the expected efficiency gain. More complete runtime, memory, and accuracy–cost comparisons are needed. The novelty is also somewhat unclear because adaptive tokenization and rollout adjustment have been studied previously; the paper should better distinguish its contribution from related AMR transformer approaches.
The evaluation is promising but still limited. It mainly focuses on 2D problems, uses a handcrafted refinement criterion, and lacks stronger analysis of generalization and scalability. Some reported metrics are difficult to interpret, and additional relative error analysis would improve the evaluation. Finally, the presentation is overly dense, making important ideas such as quadtree construction and regridding harder to understand. The acceptance decision could change if the authors provide convincing evidence that adaptive tokenization leads to a real computational advantage after including regridding overhead.
Final justification
The rebuttal substantially addressed the main technical and efficiency concerns through improved regridding, end-to-end runtime analysis, and clearer presentation plans. Although novelty remains moderate, the contribution is technically solid, practically meaningful, and supported by strong experiments. Overall, the reasons to accept outweigh the remaining concerns.
Read meta-review
Meta-review
The paper proposes a transformer variant that uses dynamic quadtree tokenization and adaptive regridding for autoregressive PDE forecasting. It aims to better handle localized fine-scale structures by following AMR principles. Experiments on combustion, shock propagation, and turbulence simulations show competitive accuracy with fewer tokens and improved performance on native adaptive mesh data.
Pros: The paper addresses an important limitation of transformer-based PDE models: inefficient uniform discretization for localized dynamics. The quadtree-based representation and adaptive rollout mechanism are technically interesting and closer to real AMR practice than previous fixed adaptive patching methods. The evaluation includes challenging physical simulation datasets, especially native AMR data, which makes the study relevant and valuable.
Cons: The main weakness is that the practical advantage of the method is not fully established. The paper shows token reduction, but the expensive regridding process may remove the expected efficiency gain. More complete runtime, memory, and accuracy–cost comparisons are needed. The novelty is also somewhat unclear because adaptive tokenization and rollout adjustment have been studied previously; the paper should better distinguish its contribution from related AMR transformer approaches.
The evaluation is promising but still limited. It mainly focuses on 2D problems, uses a handcrafted refinement criterion, and lacks stronger analysis of generalization and scalability. Some reported metrics are difficult to interpret, and additional relative error analysis would improve the evaluation. Finally, the presentation is overly dense, making important ideas such as quadtree construction and regridding harder to understand. The acceptance decision could change if the authors provide convincing evidence that adaptive tokenization leads to a real computational advantage after including regridding overhead.
Final justification
The rebuttal substantially addressed the main technical and efficiency concerns through improved regridding, end-to-end runtime analysis, and clearer presentation plans. Although novelty remains moderate, the contribution is technically solid, practically meaningful, and supported by strong experiments. Overall, the reasons to accept outweigh the remaining concerns.
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a principled framework for combining adaptive mesh refinements with the tokenization of ViTs. The proposed mesh refinement strategy is based on balanced quadtrees and a wavelet-inspired refinement criterion. The authors compare their model, WAMRViT, on three relevant PDE learning tasks. As baselines, they consider hierarchical shifted-window transformers and standard ViTs operating with different token counts. WAMRViT achieves superior accuracy on all tasks on the finest patchification level while having a lower token count than ViTs.
Strengths and weaknesses
Strengths:
- Polished paper with comprehensive literature review, high technical knowledge and good presentation.
- The authors consider three very suited experiment setups, compare to relevant baselines and show a high level of transparency. I especially appreciate the experiments on the native AMR data.
- Adaptive mesh refinements and tokenizations are a very intuitive direction to improve transformer-based PDE modeling.
Weaknesses:
- There are several similar approaches for ViTs and adaptive tokenizations. While I think this paper proposes one of the best strategies for refinements and has the most comprehensive treatment, experiments and a very solid technical implementation, this impacts the novelty of the idea.
- In principle it is not clear why ViTs using patches on the finest scale are not better or on par with WAMRViT, if we ignore additional lower throughput and higher memory due to the increased token count. Indeed, they are better on the full-field VRMSE and only get beaten by WAMRViT on the aggregated finest level. How plausible is it that this is just because they require more training time and are not fully converged?
- A decisive advantage of WAMRViT compared to ViT is that they can potentially achieve a much higher througput due to the reduced token count. However, it seems like the total total inference time (Table 6) of ViT-finest and WAMRViT is almost the same due to the time needed to do the regrid. WAMRViT requires many more hyperparameters that need to be tuned for the specific dataset and the regrid is difficult to implement. Maybe WAMRViT is more competitive to ViT-finest in terms of throughput for 3D data?
- It is not clear to me why we cannot use ViT-finest for the AMR data. Can we not just upsample the lower resolution blocks? WAMRViT is also significantly slower than the baselines here.
- The SwinV2 baseline seems bad compared to the ViTs. I would expect SwinV2 to be comparable or even better than them. While ViT and WAMRViT share the same backbone, SwinV2 does not. Looking at the inference/training time in the appendix, SwinV2 is also noticeably faster for inference. A fairer comparison would use more parameters for SwinV2 to match the memory requirements or throughput of ViT. SwinV2 is a very relevant baseline, as it has a natural way to process multi-scale data, so it's important that the comparison is fair.
- Section 3.5 (and also 3.3/3.4) are a bit difficult to follow due to the high information density and plots interleaved with the text. A lot of ablations and experiments from the appendix are referenced in section 3.5 without fully integrating and discussing them in the main paper.
Questions
- Is it possible that ViT-finest matches the WAMRViT metrics even on the aggregated finest level given enough training compute?
- Could we use ViT-finest for the AMR dataset too if we just upsample to the finest resolution?
- Do you think WAMRViT achieves a higher throughput than ViT-finest on 3D data?
- Can you check that the SwinV2 baseline is tuned correctly and the comparison is fair?
- Why do you use the parallel-layout transformer blocks?
- What are the memory requirements for batch size 1? Would you expect a speedup using a larger batch size but with padding?
- Table 1: why can you not use the multi-scale WAMRViT for the AMR data? The explanation ("full-field training objective requires scattering per-level predictions onto that grid") is not clear to me. Is this really necessary?
- Figure 3: Why not show aggregated full-field RMSE in (c) similar to (a)?
Limitations
Limitations are discussed by the authors. Additionally, the increased compute from the regrid operation should be highlighted, which significantly lowers the throughput at the moment.
Final justification
My main concern about the slow runtime of WAMRViT is resolved. Issues that remain:
- Better SwinV2 comparison with matched runtime/backbone
- Limited novelity regarding adaptive tokenization and AMR primitives for ViTs
- Clarity and writing in Sections 3.3, 3.4 and 3.5
Formatting concerns
None
4 comments
Rebuttal (1/2)
We thank the reviewer for emphasizing end-to-end cost and baseline feasibility.
End-to-end benefit including regridding and batch-one memory.
We agree that forward time alone is insufficient. In the submitted Table 6, serial Python-object reconstruction consumed 51–76% of adaptive inference and obscured the token-count benefit. We replaced it with packed topology arrays and parallel refinement, protection, balancing, and coarsening kernels. PLI and TRL use CPU array operations. For AMReX, CPU kernels determine authoritative topology and compact lineage from selected detector planes, while CUDA replays payload operations on resident tensors. All four regrids are included in each 20-step timing below.
The backend-sensitivity check uses seed-matched object and production array/GPU-replay rollouts; the four AMReX rows are three-seed means. RMSE/VRMSE entries are channel means; leaf count describes topology.
The topology comparison diagnoses sensitivity of switching regridding techniques. The deterministic object and array protection/balancing implementations can select different valid leaves, changing the AMReX cell population. On fixed-population PLI, step-20 full-field RMSE differs by 2.1%. The complete array campaign preserves the scoped first-step accuracy conclusions; production AMReX has no replay fallback, while PLI multi-scale is array-primary with visible object fallback.
Revised Table 6 reports ten batch-size-one, 20-step rollouts per model on one H100 using seed-42 checkpoints; denotes population standard deviation. Peak VRAM is maximum PyTorch-allocated CUDA memory.
With all four regrids included, uniform/multi-scale WAMRViT is 3.06×/2.54× faster than ViT-finest on PLI and 1.24×/1.42× faster on TRL. On AMReX, its forward pass is faster than ViT-mid but total inference is slower (3.82 versus 3.52 s); SwinV2 remains fastest. The submitted object result was 11.51 s, but differing checkpoints, topology, environment, and population make that an operational rather than backend-only comparison. Adaptive inference still introduces tolerance, selected-channel, dilation, and regrid-interval choices, so the array implementation reduces overhead without eliminating tuning or implementation complexity.
Rebuttal (2/2)
Q 1, 4 & 5: Convergence, baseline fairness, and parallel blocks.
Plateaued training losses are the available convergence evidence. Three-seed first-step VRMSE (mean ± SD) tests ranking robustness, not convergence.
| Region | WAMR-U | WAMR-M | ViT-F | SwinV2 |
|---|---|---|---|---|
| PLI full | .066 ± .002 | .049 ± .0007 | .054 ± .006 | .115 ± .0006 |
| PLI finest | 2.68 ± .17 | 2.79 ± .09 | 3.41 ± .30 | 7.86 ± .10 |
| TRL full | .150 ± .0003 | .251 ± .006 | .149 ± .0007 | .242 ± .0003 |
| TRL finest | 9.04 ± .67 | 41.70 ± 1.76 | 16.51 ± .35 | 106.57 ± .07 |
Across seeds, uniform WAMRViT performs best on both finest-resolution rows, whereas ViT-finest consistently performs best on the full-field metric. We hypothesize that this behavior is problem- and loss-dependent. Unlike the settings in prior work, the problems selected here are suited to an adaptive approach because they do not contain high-frequency features throughout the entire domain. The modified L2 loss in Eq.2 averages over the number of patches. Since WAMRViT uses fewer patches, its training dynamics place relatively greater emphasis on the high-frequency regions than those of ViT-finest.
SwinV2 has 290M parameters versus 287M for WAMRViT. We therefore describe SwinV2 as backbone-matched rather than total-parameter-matched. Its lower accuracy is stable across seeds, although we did not perform an exhaustive Swin hyperparameter sweep.
The parallel block feeds attention and SwiGLU branches from one pre-normalized residual stream and combines them with a projected update. Using it in all three ViT variants controls backbone layout and parameter budget. A conventional sequential attention–MLP ViT could be added, but the current layer count, embedding dimension were held fixed across three different problems; we do not claim that this design is independently optimal for every architecture or dataset.
Q 2, 6, & 7: Dense AMReX feasibility, batching, and multi-scale WAMRViT.
Dense level-4 upsampling is mathematically possible but exceeds the evaluated hardware regime. The reported level-2 projection already has 6k tokens; level 4 would have approximately 98k tokens and 256× as many attention pairs. Its FP32 two-frame, 17-channel input alone is about 12.8 GB. ViT-mid is therefore the feasible projection-based control. We agree that the caption and main text should state this quantitative boundary more clearly.
The multi-scale omission has two implementation boundaries. It requires uniform grid, which the AMReX data is adaptive. Uniform WAMRViT pre-coarsens each leaf to a fixed patch shape and applies one shared Conv3D; multi-scale WAMRViT instead retains native per-level resolution and uses level-specific shrink/expansion paths, while still producing one token per leaf. Finally, variable leaf counts require an adaptive micro-batch size of one. Padding could improve hardware utilization; however, padding to the largest leaf count may eliminate the memory savings (MATEY). At BS=1, bf16 WAMR-U already has a ~40 GB VRAM footprint during training. We also observe that the primary throughput bottleneck is data transfer across the disk–CPU–GPU pipeline.
Q 3: Would WAMRViT be faster in 3D?
The motivation becomes stronger in 3D because the cost of uniform refinement grows exponentially, whereas localized structures may occupy only a small fraction of the domain. However, all experiments in this work are two-dimensional, and we have not yet measured the corresponding speedup in 3D. Nevertheless, we expect that the revised regridding procedure, together with the reduced token count, will allow WAMRViT to outperform ViT computationally in 3D as well.
Q 8: Why not show full-field RMSE in Figure 3?
The original figure prioritized per-level RMSE because it isolates errors within dynamically refined regions. We agree that full-field RMSE is also useful: finest-grid reconstruction gives an area-weighted domain metric for comparing between AMR grids. Large smooth regions can dominate it, and a level-2 regular prediction cannot recover unresolved level-4 content, so it complements rather than replaces the per-level view.
Novelty and presentation.
Adaptive tokenization and AMR primitives are not individually new. Our system-level contribution is autoregressive prediction with online regridding, five coexisting refinement levels, and operation on both native AMR and sparse uniform-grid data. This capability is demonstrated on an exceptionally challenging combustion problem characterized by extreme stiffness, dispersed multiscale structures, and chaotic dynamics. To our knowledge, this is the first ML-based AMR method to accurately reproduce the soot-foil pattern in Fig. 2, highlighting its potential for combustion surrogate modeling. We will state the novelty scope explicitly, reduce plot–text interleaving, integrate the referenced ablations into the main discussion, and make the feasibility boundaries easier to locate.
Thank you for the additional results and explanations.
I agree with reviewer hCeY that the improved inference speeds are a significant improvement.
I'm still skeptical about the comparison with SwinV2. I believe that matching the WAMRViT inference time or peak VRAM and aligning the SwinV2 and WAMRViT backbone would give a much fairer comparison (although I see that the peak VRAM is already close to WAMRViT).
I therefore raise my score to 4.
SwinV2 hierarchy revision
We thank the reviewer for raising the score and identifying this weakness. We agree that the submitted SwinV2 used an atypical hierarchy despite sharing ViT-finest's patchification and approximately matching WAMRViT's transformer budget.
Roles of the controls.
ViT-finest/mid remain our primary anchors: fixed transformer blocks isolate tokenization and token count. Such regular-grid controls recur in AMR/adaptive-tokenization studies, supporting qualitative—not numerical—cross-problem comparison. It is possible to replace SwinV2's conventional sequential transformer blocks with WAMRViT's parallel-layout blocks while retaining shifted-window attention and hierarchical patch merging. However, this would create a hybrid architecture rather than represent how the community typically uses SwinV2; the shared parallel backbone is already controlled by ViT-finest/mid. We therefore retain conventional SwinV2 blocks and tailor its hierarchy through a four-stage SwinV2 control.
Revised PLI SwinV2-finest.
Due to the time limit, we only trained two additional seed-42 models on PLI's finest regular grid using the same protocol that generated the original Table 1. Patchification and window are unchanged; depths become with heads . The Swin stages contain 286.5M parameters versus 286.7M in WAMRViT's transformer; complete models contain 289.2M and 290.2M.
A second diagnostic strengthens only the decoder: two ConvNeXt blocks refine each non-bottleneck skip, and a learned correction follows each bilinear upsampling operation (taking inspiration from Poseidon's nonlinear multiscale refinement). It totals 294.2M parameters. Below is channel-mean VRMSE from the same seed-42, 20-step array-primary rollout; these diagnostics do not replace three-seed Table 1.
The four-stage model improves step-1 full/finest errors by approximately 15\% and substantially improves step-20 errors. Decoder refinement improves step-1 and step-20 finest errors, but worsens step-20 full-field error by 25.0\%, dominated by the evaluator's aggregated energy_case channel. We nevertheless select the refined decoder for the final revised SwinV2: under the shared one-push-forward-step protocol, it performs better on step-1 full/finest metrics and also improves step-20 finest error.
The Table 6 measurements above use matched ten-window cohorts. We chose matched capacity while retaining shifted-window attention. Revised SwinV2 is faster and uses less VRAM.
On this single-seed PLI diagnostic, four-stage SwinV2 remains about worse than ViT-finest at step 1 and - worse at step 20; decoder refinement does not close the gap. For the final submission, we will complete the remaining PLI seeds, extend the four-stage refined-decoder SwinV2 to TRL/AMReX, and update results accordingly. ViT-finest/mid remain the architecture-controlled tokenization anchors, as they provide a qualitative comparison across different architectures and problems in AMR tokenization research.
Application difficulty and recent progress.
We hope the challenge of this application also merits consideration. Detonation is unusually difficult: soot-foil morphology is solver-sensitive and the flow is highly irregular. WAMRViT predicts future states rather than reconstructing observed frames, making its agreement with held-out simulations encouraging. We are also on track to resolve the Ray streaming bottleneck on the AMReX dataset (as mentioned in the last response) and achieved high GPU utilization in AMReX training. We will release these improvements, and we believe our open-source repository offers SciML a practical path toward efficient AMR surrogates.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a transformer surrogate for PDE forecasting named WAMRViT, that replaces uniform patch tokenization with a dynamically evolving 2:1-balanced quadtree. Tokens correspond to quadtree leaves, and the topology is periodically updated during autoregressive rollout through a refine-protect-coarsen procedure inspired by classical AMR. The method is evaluated on a combustion AMR dataset, a multimaterial shock propagation dataset and a 2D Turbulent radiative layer dataset from the Well.
Strengths and weaknesses
Strengths:
- Use of adaptive tokenization for problems where the highest gradients in the solution are localized in small areas
- The quadtree-based tokenization allows in theory for memory savings in comparison to a uniformly fine tokenization
- Available codebase
Weaknesses
- The regridding procedure is very slow and cancels the inference wall time gains granted by the adaptive tokenization
- No clear memory usage gains are presented
- Tests were only performed on 2D datasets
- The writing is at times unncessarily convoluted
Questions
- Some of the RMSEs reported in Figure 3 are huge. Could we report a per-channel relative L2 error maybe ?
- Could report the memory gains by this method against the other considered frameworks based on uniform tokenizations, for comparable RMSEs ?
- The current implementation leads to the framework being on par or slower at training and inference than other models which use the whole uniform tokenization, because the current regridding implementation is very inefficient. Could the authors at the very least explore (if not implement) AMR-based techniques to accelerate regridding on GPUs and share those with the readers in a short paragraph ?
- For now, the refinement criterion was handcrafted, inspired by AMR techniques. Have the authors experimented with learning this criterion ?
Limitations
Yes
Final justification
My main concerns regarding the slowness of the regridding approach were addressed by the authors through their rework of this element. They have also provided a more in depth breakdown of the results by channel, and have provided the peak memory consumption for every test case.
Formatting concerns
No concerns
4 comments
Rebuttal (1/2)
We thank the reviewer for the constructive feedback.
Weaknesses 1–2 and Question 3: End-to-end benefit including regridding.
We agree that forward time alone is insufficient and that fewer tokens do not automatically imply lower memory or faster inference. In the submitted Table 6, serial Python-object reconstruction consumed 51–76% of adaptive inference. We have replaced it with packed topology arrays and parallel refinement, protection, balancing, and coarsening kernels. PLI and TRL use this CPU array path. For the larger AMReX payload, only selected detector planes are transferred to CPU; CPU kernels determine topology and compact lineage, while CUDA replays refine, coarsen, and gather operations on resident payload tensors. This CPU-topology/GPU-payload design avoids repeatedly transferring the full payload.
The paired accuracy checks use seed-matched object and production array/GPU-replay rollouts; the four AMReX rows are three-seed means. RMSE/VRMSE entries are channel means and lower is better; leaf count describes topology rather than accuracy.
The native PLI comparison is array-primary with 28 visible object fallbacks over 3,044 regrids; the production GPU-replay rollout on AMReX has zero fallback.
Across the complete three-seed array-primary evaluation, uniform WAMRViT retains lower first-step finest-level VRMSE than the regular-grid controls on PLI, TRL, and AMReX; PLI multi-scale does as well, whereas TRL multi-scale does not. On AMReX, the array backend changes the evaluated leaf population, while step-20 channel-mean RMSE and VRMSE differ from the object reference by and , respectively. On fixed-population PLI, step-20 full-field RMSE differs by 2.1%. These checks support the stability of the accuracy conclusion, but the differences are not interpreted as backend accuracy gains. Production PLI multi-scale uses visible object fallback for 121 of 9,132 regrids and will therefore be reported as array-primary rather than pure-array execution.
The revised Table 6 uses the canonical seed-42 checkpoint and reports means over ten batch-size-one, 20-step rollouts on one H100; denotes population standard deviation across rollouts. Peak VRAM is the maximum PyTorch-allocated CUDA memory; non-PyTorch CUDA allocations are excluded.
Including all four regrids, uniform/multi-scale WAMRViT is faster than ViT-finest on PLI and TRL. On AMReX, its forward pass is faster than ViT-mid, but total is slower (3.82 versus 3.52 s). The submitted object result was 11.51 s, but different checkpoints, topology, environment, and population make the change operational rather than backend-only. We claim neither universal inference nor training throughput; adaptive training uses batch size one per worker.
Rebuttal (2/2)
Q 1: Per-channel relative error.
AMReX channels span different physical scales: at the first-step finest level, HRR dominates the summed channel RMSE/VRMSE. We agree that per-channel relative is easier to interpret. Using the same array/GPU-replay rollouts, we computed three-seed finest-level means at steps 1/20:
| Field | WAMRViT | ViT-mid | SwinV2 |
|---|---|---|---|
| HRR | 0.720/0.787 | 0.846/0.950 | 0.864/0.932 |
| 0.022/0.035 | 0.082/0.075 | 0.083/0.082 | |
| Mach | 0.062/0.106 | 0.205/0.202 | 0.189/0.193 |
| pressure | 0.067/0.105 | 0.196/0.195 | 0.182/0.200 |
| 0.071/0.122 | 0.203/0.211 | 0.186/0.210 | |
| 0.179/0.306 | 0.449/0.498 | 0.419/0.496 | |
| 17-channel mean | 0.154/0.247 | 0.338/0.393 | 0.324/0.392 |
For every seed and all 17 channels, WAMRViT is lower than both controls at both endpoints. The per-field AMReX VRMSE/RMSE evolution for six representative fields was already plotted in Sec. F.8.
W 2 and Q 2: Peak memory.
The models use the same ten input windows; for each model, the VRAM breakdown uses its own peak-attaining rollout. Resident is the allocation before rollout (model plus one starting window); rollout increment is the additional allocation, and the two sum to Peak VRAM.
This decomposition shows that the additional rollout allocation on PLI is 0.45/0.47 GB for uniform/multi-scale WAMRViT versus 0.83 GB for ViT-finest. SwinV2 peaks at 1.28/1.15 GB on PLI/TRL, below WAMRViT; the memory savings therefore apply to ViT-finest, not SwinV2. In the separate three-seed Table 1 campaign, PLI multi-scale WAMRViT has lower first-step full-field and finest-level VRMSE; uniform WAMRViT improves the finest level but not the full field. On TRL's windows, uniform WAMRViT uses slightly less peak VRAM than ViT-finest, has slightly higher full-field VRMSE, and substantially lower finest-level VRMSE.
On AMReX, WAMRViT has lower resident allocation than ViT-mid but a larger rollout increment, giving peaks of 6.09 and 5.3 GB. The revised SwinV2 composes its adjacent temporal and spatial patch-embedding convolutions into one inference operation. Its 2.1 GB resident allocation plus 2.6 GB rollout increment gives a 4.7 GB peak, below WAMRViT and ViT-mid.
Q 4: Handcrafted versus learned refinement.
We have not tested a learned refinement criterion, but the framework is designed to accommodate one. Mesh construction and regridding are swappable components: we replaced the serial object backend with the parallel array backend without retraining the model. The local-range detector could likewise be replaced by a learned multi-field score while preserving the token/model interface. A learned score could add inference and CPU–GPU synchronization overhead, while a stochastic criterion could reduce run-to-run determinism; its accuracy or token savings would need to outweigh that processing. The current detector therefore remains a deterministic, parameter-free reference rather than a claim of optimal design.
To our knowledge, WAMRViT is the first adaptive-token autoregressive surrogate demonstrated with five coexisting refinement levels, in the AMR experiment. The object and array backends use different protection/balancing implementations and are not topology-identical, yet the paired experiments show similar performance. It shows that the model tolerates valid topology variation during online regridding. We therefore view learned or domain-specific refinement as a compatible future extension.
Weaknesses 3–4: Two-dimensional scope and presentation.
All experiments are two-dimensional. Although adaptive tokenization may offer greater advantages in three dimensions, where uniform refinement grows volumetrically, we have not yet measured three-dimensional accuracy, memory, or throughput benefits and therefore present this only as future work. Nevertheless, the showcased AMR problem is already exceptionally challenging because of its extreme stiffness, multiscale dispersed structures, and chaotic dynamics. To our knowledge, this is the first ML-based AMR method to accurately reproduce the soot-foil pattern in Fig. 2, highlighting its potential for combustion surrogate modeling. We also agree that parts of the submission are unnecessarily dense. The revision will organize the method around tokenization, transformer processing, and rollout-time regridding; shorten the experimental setup; and separate the main conclusions from secondary ablations.
I would like to thank the authors for their response. The performance gains after the rework of the regridding are significant. I also appreciated the breakdown of the performance per channel which makes it much more easily readable, as well as the addition of the peak memory consumption. The authors have addressed most of my concerns, and I will raise my score to 4.
We thank the reviewer for the reassessment and for raising the score. We appreciate that the revision addressed the main concerns. We will integrate these results and the array/GPU-replay implementation and provenance details into the revised manuscript while keeping the remaining two-dimensional, batching, and AMReX baseline limitations explicit.
We hope the challenge of this application also merits consideration. Detonation is unusually difficult: soot-foil morphology is solver-sensitive and the flow is highly irregular. WAMRViT predicts future states rather than reconstructing observed frames, making its agreement with held-out simulations encouraging. We are also on track to resolve the Ray streaming bottleneck on the AMReX dataset (as mentioned in the last response) and achieved high GPU utilization in AMReX training. We will release these improvements, and we believe our open-source repository offers SciML a practical path toward efficient AMR surrogates.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces WAMRViT, an adaptive tokenisation vision transformer for solving spatio-temporal PDEs. The main idea is to tokenise the PDE state as leaves of a balanced quadtree, rather than using fixed regular grid of patches. The model uses a tubelet / 3D convolution to encode space-time tokens of varying spatial dimensions. For context 3D rotary and AdaLN content is injected into a parallel-layout transformer, and level-\ell information in the multi-scale variant. At inference the model recalculates the quadtree every R steps, so the token topology readjust on long rollouts which allows to track shocks. Three interesting datasets are chosen for evaluation covering combustion, material shocks and turbulent mixing. The model is baselined against a non-adaptive versions of itself on coarsest and finest resolution data and a SWIN transformer.
Strengths and weaknesses
The main strength is fully adaptive tokenisation during autoregressive rollout at inference. The quadtree / AMR implementation looks nontrivial and much closer to real AMR practice than fixed adaptive patching. The datasets are strong and varied, covering combustion, multi-material shocks, and turbulent mixing.
The novelty should not be overclaimed: adaptive tokenisation and adaptive rollout are not new in themselves, AMR-Transformer and MeshTok are both architectures that can retokenise every auto-regressive step. The main novel contribution seems to be the specific combination of 2:1-balanced quadtree topology, conservative regridding and longer more thorough autoregressive evaluation.
The main issue with the paper is structure and clarity. The paper is mostly correct, but hard to parse and read. I try to provide some specific feedback below: Sections 2 and 3 have too many large blocks of text, with overly long sentences and insufficiently defined concepts. There is also repetition of sections and a lack of detail of important concepts in the main body. I found 2.1 and 2.2 particularly hard to follow on first read, and does not show the architecture well. Figure 1 is not enough instead a proper architecture diagram would help supplement 2.1/2.2 a lot. Section 2.3 is repetitiion of paragraph Long-horizon adaptive rollout line 65 in Section 1, with no further detials. I would suggest a rewrite of 2.1-2.3 and use the space for an architecture diagram to support clarity.
The experiment section is also hard to read. There are big walls of text and very little dataset visualisation in the main paper, at least point clearly to Figures 26 and 27 in the Appendix. The paragraph around line 213 is difficult to parse because it mixes all three datasets, hyperparameters, rollout setup, metrics, and push-forward training. There is also a lot of repetition: lines 157-185 describe the datasets, then Section 3.4 describes them again. The ordering is confusing: the datasets are introduced as AMReX / PLI / TRL, but results are discussed as PLI / AMReX / TRL and table PLI / TRL / AMReX.
Important details are pushed too far into the appendix. Refine-protect-coarsen and 2:1 balance are mentioned repeatedly in the main text, they seem the main novelty of the model, but the actual procedure is only explained in the appendix. If this is a central part of the method, so it should be explained in the main paper.
There are many examples of long difficult sentences. Lines 133-136, 250-255, 278-284, and 284-290 are examples of long dense sentences where the paper should be split into shorter, clearer steps. Lines 124-131 contain several undefined or unclear terms: axial extension, spatial scale, unit position step, indexed uniform ViT convention, and level axis.
The baselines and argument for AMR in neural surrogates is not convincing enough. Most of the comparison is against non-adaptive versions of the same model, so this is essentially an ablation study. The SwinV2 baseline is useful, but it is just the backbone part of proper neural-PDE solver baselines like Poseidon.
The performance gain looks modest, and once regridding is included the model can become slower from Table 6 in the appendix If the main challenge of remeshing offers no acceleration then it is hard to accept as useful AMR ML-surrogate model.
Overall, I find this submission interesting but borderline. The implementation effort and datasets are strong. However, the novelty is weaker given MeshTok and AMR-Transformer, the paper is hard to parse, and the efficiency claim is not strong with the 1 table buried in the appendix. Some concerns could be addressed in rebuttal, especially novelty and speed/token clarification, but the main issues are paper-level: clearer structurer, main-text clarity and description of architecture novelties.
Questions
Do the authors agree with my feedback that Sections 2 and 3 are hard to parse, especially around the architecture, regridding procedure, and experimental setup? If so, can they describe how they would fix this in a revision, e.g. with a clearer architecture diagram, less repetition, and more main-text detail on refine-protect-coarsen / 2:1 balancing?
Can the authors respond to the concern that an AMR surrogate should demonstrate an improved accuracy / wall-clock tradeoff? Appendix Table 6 suggests that once regridding cost is included, the efficiency is not yet convincing. If efficient remeshing / dynamic batching is still unsolved, why should this be considered a mature AMR surrogate rather than a promising but premature implementation?
Limitations
The limitations section does not sufficiently outline the main limitation. For an AMR surrogate, the main selling point should be accuracy per unit cost. Appendix Table 6 makes this unclear: once regridding is included, WAMRViT is slower than the non-adaptive version of itself on the finest mesh. The discussion below Table 6 says there are engineering paths to close this cost, collected in Section 4, but I do not see these paths clearly laid out in Section 4. The AMR dataset timing comparison is also hard to interpret because ViT-finest is missing, so it is not possible to verify the cost / accuracy tradeoff against the full-resolution baseline.
Final justification
Authors have reimplemented the backend for regridding resulting in better acceleration gains. Uncertainties still remain on what will be the structure and clarity of the write-up.
Formatting concerns
N/A
7 comments
Rebuttal
We thank the reviewer for highlighting presentation clarity, end-to-end efficiency, and experimental maturity. We agree that the submission did not explain the method or its practical cost clearly enough. Since submission, we have expanded Table 1 to three training seeds and implemented an array-based regridding backend.
Scope of novelty.
Adaptive tokenization and AMR primitives are not new individually. WAMRViT instead treats topology as evolving surrogate state rather than one-time patch selection. To our knowledge, it is the first AMR-token transformer to perform autoregressive rollout with online regridding, and prior adaptive-token PDE surrogates have not demonstrated five coexisting refinement levels. We establish feasibility for native AMR inputs (AMReX) and sparse uniform-grid data (PLI). Ablations probe level scaling, grid resampling, and push-forward training; to our knowledge, the latter two have not previously been demonstrated for an AMR-token transformer.
Architecture and regridding clarity.
We agree that Sections 2 and 3 obscure the dataflow. The revision will present three stages: (1) convert the input field or native AMR hierarchy into balanced leaves, (2) embed the variable-length tokens and process them with the shared transformer, and (3) decode per-leaf predictions and periodically refine–protect–coarsen during rollout. We will consolidate the repeated rollout description and explain 2:1 balancing in the main text.
End-to-end benefit including regridding.
We agree that forward time alone is insufficient. In the submitted Table 6, serial Python-object reconstruction consumed 51–76% of adaptive inference time. We implemented parallelized array topology operations. Both backends are deterministic, but distinct protection/balancing implementations can select different leaves; we therefore regenerated the evaluation. PLI and TRL use CPU array. For the AMReX workload, moving the full leaf payload between CPU and GPU would be costly, so the revised pipeline transfers only selected detector planes to CPU, computes authoritative topology and compact lineage there, and replays payload operations on CUDA-resident tensors. The benchmark below includes all four regrids in each 20-step rollout.
We assessed topology sensitivity with paired object/array runs. On AMReX, the mesh-dependent metric evaluates a changing per-cell population; multi-scale PLI complements this check by scattering both predictions onto the same dense field. Accuracy rows use seed-matched object and production array/GPU-replay rollouts; the four AMReX rows are three-seed means. RMSE/VRMSE entries are channel means; leaf count diagnoses topology rather than accuracy.
The native PLI comparison is array-primary with 28 visible object fallbacks over 3,044 regrids; the production GPU-replay rollout on AMReX has zero fallback. Since this also changes the evaluated cell population, we do not interpret the lower errors as a backend accuracy gain. The complete three-seed array-primary campaign preserves the central conclusion that WAMRViT has substantially lower finest-level error than the feasible regular-grid controls. In the fixed-population PLI check, step-20 full-field RMSE differs by only about 2%. We will replace all rollout-derived tables and figures with regenerated array-primary artifacts; object artifacts remain references.
Times use the canonical seed-42 checkpoint and are means over ten batch-size-one, 20-step rollouts on one H100; denotes population standard deviation across those rollouts. Peak memory is the maximum PyTorch-allocated CUDA memory; non-PyTorch CUDA allocations are excluded.
Including regridding, the uniform/multi-scale WAMRViT variants are 3.06×/2.54× faster than ViT-finest on PLI and 1.24×/1.42× faster on TRL. Uniform WAMRViT also uses less peak VRAM than ViT-finest on PLI/TRL. These are batch-one array-primary operating points, not equal-work speedups over historical object artifacts.
On AMReX, uniform WAMRViT does not yield a raw throughput win. In the seed-42 benchmark, its forward pass is faster than ViT-mid, but four regrids increase total time to 3.82 s versus 3.52 s. For context—not as a matched backend-only ratio—the submitted object-backed result was 11.5 s. Separately, three-seed Table 1 shows that WAMRViT has 61% lower first-step finest-level RMSE than ViT-mid. SwinV2 remains the fastest model; WAMRViT trades throughput for accuracy and uses less peak VRAM than SwinV2 on AMReX. Its peak VRAM is higher than ViT-mid because GPU replay temporarily retains the source payload, lineage workspace, gathered tensors, and output.
Baselines and maturity.
Revised Table 1 reports mean and sample SD over seeds for each evaluated model family. ViT-finest shares WAMRViT's backbone to isolate tokenization; SwinV2 is parameter-matched (292M versus 287M) and uses the same data protocol. We do not claim an exhaustive comparison with every PDE foundation model or Swin configuration.
Revised first-step VRMSE (channel mean; lower is better) from the array-primary rollouts. Entries are mean sample SD over seeds . WAMR-U/M denote uniform/multi-scale WAMRViT; ViT-F/M denote finest/mid. Bold/underlined values are best/second-best by mean; IAP* uses a different published protocol and is excluded from ranking.
The submission explains why ViT-finest is absent from the AMReX evaluation, but the explanation was too easy to miss. Five tokenized levels imply a level-4 field and 98k tokens, versus 6k for ViT-mid. We will move this hardware/protocol infeasibility into the main comparison.
In summary, the revised implementation reduces regridding to 5.9–17.2% of adaptive inference and establishes end-to-end feasibility under the evaluated batch-one protocol. On PLI, both WAMRViT variants are faster than ViT-finest and have lower finest-level VRMSE. On TRL, both are faster, while only the uniform variant retains the finest-level advantage; the multi-scale variant remains weaker. On AMReX, uniform WAMRViT is 8.6% slower than ViT-mid end to end but has 60.8% lower first-step finest-level RMSE. Important limitations remain: native multi-scale WAMRViT and ViT-finest were not evaluated on AMReX because both require impractical materialization under the current full-field protocol; object and array backends can select different valid topologies under refinement dilation.
SwinV2 VRAM revision
We revised the SwinV2 inference path by algebraically composing its adjacent temporal and spatial patch-embedding convolutions. This eliminates an unnecessary full-resolution intermediate tensor without changing the trained parameters, reducing both inference time and peak VRAM. The revised inference time table is shown above.
Thank you for the rebuttal and for performing the additional end-to-end timing experiments and congratulations for re-implementing the regridding backend.
The performance has improved by a good margin. As per the table
| Dataset | Variant | Performance Change |
|---|---|---|
| PLI | Uniform | 1.14× faster → 3.06× faster |
| PLI | Multi-scale | 1.25× faster → 2.54× faster |
| TRL | Uniform | 1.46× slower → 1.24× faster |
| TRL | Multi-scale | 1.54× slower → 1.42× faster |
| AMReX | Uniform | 3.29× slower → 8.6% slower |
there is speed up on PLI and TRL. On the AMReX dataset there is still no speed-up but this is over ViT-mid rather than ViT-finest, but the runtime gap has been reduced from 3.29× slower to only 8.6% slower, but achieves lower finest-level RMSE.
The proposed rewrite also sounds sensible and should better clarify both the architecture and the distinction from the existing literature. However, given that structure and clarity were my main concerns alongside acceleration, it is still difficult to judge how this will be presented the paper, as there is not a lot of detail in the Architecture and regridding clarity paragraph above and there is a reasonable edit distance from what was reviewed.
I therefore raise my score to 3 (borderline).
Comments on the paper
1 comment
Reply to authors
Dear reviewers,
Thank you again for your valuable efforts in reviewing this paper.
The authors have submitted their rebuttal and provided detailed responses/revisions addressing your comments. Please take a moment to read the authors' response and let us know if it addresses your concerns or if you have any follow-up questions.
Your timely feedback and active participation in the discussion phase are crucial for reaching a well-informed final decision.
--AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair and all reviewers for their constructive feedback, which materially improved the implementation and helped us reorganize the manuscript for clarity.
Measured end-to-end trade-off. We agree that token count alone is insufficient. We replaced serial object regridding with packed-array refinement, protection, balancing, and coarsening. With the revised array backend, regridding is 6-17% of adaptive inference. Including regridding, the uniform/multi-scale WAMRViT variants are 3.0×/2.5× faster than ViT-finest on PLI and 1.2×/1.4× faster on TRL; on AMReX, uniform WAMRViT is 8.6% slower than ViT-mid but dynamically captures the reaction front and achieves substantially lower finest-level error. We also added peak-memory breakdowns. We note that the new array-based approach generates grids that differ slightly (~10%) from those produced by the inefficient object-based approach; nevertheless, the results generally hold, demonstrating the robustness of the trained models.
Scoped novelty. We agree that adaptive tokenization and regridding are not new individually. WAMRViT's contribution is their specific integration into an autoregressive surrogate, together with a revised training and inference workflow demonstrated on an AMReX hierarchy with five coexisting refinement levels. To our knowledge, WAMRViT is the first ML-based AMR surrogate to reproduce the soot-foil morphology, revealing a new practical path for adaptive PDE forecasting. The proposed framework will be released as open source, and we believe this flexible framework will support many future extensions, including different refinement strategies and ML model backbones.
Evaluation, exposition, and limitations. Completed Table 1 model families now use three seeds. Separately, the revised SwinV2 will be more capable than the submitted version (see “SwinV2 hierarchy revision” in our response to reviewer hWT7); results from the full runs will be presented in the final version. Sections 2-3 will be reorganized around an ordered leaf-to-token-to-prediction dataflow, a self-contained main-text regridding algorithm, baseline roles, rollout protocol, and metric scopes. We will split overloaded paragraphs and link exact appendix details. We will also address the remaining limitations: all experiments are 2D; refinement is non-learned; AMReX uses one trajectory; adaptive training remains batch-one; and dense ViT-finest/native multi-scale AMReX controls are infeasible due to hardware constraints.
We believe these changes address the principal concerns by quantifying the end-to-end trade-off, clarifying our contribution, and demonstrating a viable path for adaptive PDE surrogates.
Edit: We have updated the anonymous repo to support validation and reproducibility, incorporating revisions for array regridding and SwinV2.