Controllable Patching for Compute-Adaptive Surrogate Modeling of Partial Differential Equations

Payel Mukhopadhyay, Michael McCabe, Ruben Ohana, Miles Cranmer
7/12/2025
cs.LGcs.AIeess.IV

No confident code implementation found for this paper.

Abstract

Patch-based transformer surrogates have become increasingly effective for modeling spatiotemporal dynamics, but the fixed patch size is a major limitation for budget-conscience deployment in production. We introduce two lightweight, architecture-agnostic modules-the Convolutional Kernel Modulator (CKM) and Convolutional Stride Modulator (CSM)-that enable dynamic patch size control at inference in patch based models, without retraining or accuracy loss. Combined with a cyclic patch-size rollout, our method mitigates patch artifacts and improves long-term stability for video-like prediction tasks. Applied to a range of challenging 2D and 3D PDE benchmarks, our approach improves rollout fidelity and runtime efficiency. To our knowledge, this is the first framework to enable inference-time patch-size tunability in patch-based PDE surrogates. Its plug-and-play design makes it broadly applicable across architectures-establishing a general foundation for compute-adaptive modeling in PDE surrogate tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{mukhopadhyay2025controllable,
  title  = {Controllable Patching for Compute-Adaptive Surrogate Modeling of Partial Differential Equations},
  author = {Payel Mukhopadhyay and Michael McCabe and Ruben Ohana and Miles Cranmer},
  year   = {2025},
  eprint = {2507.09264},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.09264v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.09264.svg)](https://codeofpaper.com/paper/2507.09264)

Discussion