# Dynamic Quadtree Tokenization for Autoregressive PDE Forecasting

*Yilin Zhuang, Noah Zambrano, Karthikeyan Duraisamy*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152814) · [OpenReview](https://openreview.net/forum?id=QEBPUFXUHr) · [alphaXiv](https://www.alphaxiv.org/abs/2610.04044) · [Open on the map](../papers.html#p152814)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Physics-Guided Neural Operators](../pgroup/169.md) · Type: new method · Keywords: Dynamic Quadtree Tokenization, autoregressive PDE forecasting, Vision Transformers, adaptive mesh refinement, wavelet-inspired refinement, 3D rotary positional embedding

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Scientific and Medical Architectures › Neural Operators

## Summary
WAMRViT introduces dynamic quadtree tokenization for autoregressive PDE forecasting, enabling adaptive token counts and stable long rollouts on multi-level AMR data.

## Explained to a 5-year-old
We have a computer program that predicts how things change over time, like weather or fluids. It breaks the picture into a special tree shape that can get more detailed where needed. The program remembers where things are and how detailed they are, and it can keep predicting for a long time without getting confused. It works better than old methods on hard problems. It helps scientists solve tough problems faster.

## Explained to a 5-year-old, longer
The paper is about making computers predict how things move and change over time, like in fluids or weather. Traditional computer models use a fixed grid, which can be wasteful and miss small details. Vision Transformers, a type of computer model, need a lot of computing power because they look at every part of the grid. The authors noticed that many important events, like shocks or fire fronts, happen only in small parts of the domain. They created a new way to split the space into a tree shape that can get finer where needed, like a map that zooms in on important spots. This tree is built using a rule that looks at how the data changes, similar to how a wavelet works. The model also remembers both where things are and how detailed the tree is at each point. At prediction time, the model can change the grid on the fly, which helps it stay stable for long predictions. There is also a version that keeps the original fine details of each part and only changes the overall resolution. This new method can work directly on data that already uses an adaptive mesh, which old methods cannot. Experiments show it does better than old methods on both simple and complex problems, using fewer computing resources. Overall, the idea helps scientists solve tough problems faster and more accurately.

## For a technical reader
The paper addresses the quadratic attention complexity of Vision Transformers when applied to autoregressive forecasting of partial differential equations, which limits the discretization granularity and rollout horizon. The approach tokenizes the input space using a balanced quadtree refined by a wavelet-inspired criterion, jointly encoding spatial position and refinement level with a 3D rotary positional embedding that includes a soft level axis. At inference, the model regrids in cell space to maintain stability over long rollouts, and a multi-scale variant preserves native source resolution per leaf while deferring resolution differentials to the model. The tokenizer imposes no a priori token count, enabling fully adaptive topology during autoregressive generation, and the method natively handles multi-level Adaptive Mesh Refinement (AMR) data without projection. Experiments on uniform-grid benchmarks and a complex AMR combustion problem demonstrate superior performance on the region of interest with fewer tokens and reduced finest-level error compared to uniform-grid baselines.

## Problem
Autoregressive forecasting with Vision Transformers suffers from quadratic attention cost, forcing a trade-off between discretization granularity and rollout horizon, especially for fine-scale PDEs with localized features. Existing neural surrogates do not adapt dynamically to localized features, leading to instability and inefficiency.

## Method
The approach tokenizes input as a balanced quadtree under a wavelet-inspired refinement criterion, encodes position and refinement level via a 3D rotary positional embedding with a soft level axis, and regrids in cell space at inference to maintain stability over long rollouts. A multi-scale variant preserves native source resolution per leaf and defers the resolution differential to the model. The tokenizer imposes no a priori token count, enabling fully adaptive topology during autoregressive rollouts.

## Results
On uniform-grid datasets, the approach exceeds a finest-patch uniform backbone on the region of interest while using a fraction of the tokens, with a structural interpolation cost on the global metric that the multi-scale variant closes at the initial rollout steps. On a complex AMR combustion problem whose extremely fine scale features uniform-grid baselines cannot represent natively and must project onto a coarser grid, the approach operates directly on the adaptive cells and substantially reduces finest-level error at matched parameters.

## Contributions
The paper introduces dynamic quadtree tokenization for Vision Transformers that adapts token count on the fly, encodes multi-level refinement via a 3D rotary positional embedding, and supports native multi-level AMR data. It also presents a multi-scale variant that preserves native resolution and demonstrates superior performance on both uniform-grid and complex AMR combustion problems.

## Research questions this paper is counted under

- [How can transformer attention adapt to varying data scales and non-stationarity while staying computationally efficient?](../q/699.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152814)
