OFormer (Operator-Transformer)
Attention-based operator learner for PDEs that can be queried at arbitrary output locations.
Physics and weather · 952 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Physics and weather
- Parameters
- 1.9M
- Operations
- 952
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- Transactions on Machine Learning Research (arXiv 2022)
- Cited by
- 56 (as of 28 October 2026)
- Authors
- Zijie Li, Kazem Meidani, Amir Barati Farimani
- Source
- GitHub: BaratiLab/OFormer
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18930
- Graph hash
- 94de9b109954566e9a3eda70047d89b20c001220bb18e8b3d783581bd77373fd
- Skeleton hash
- 14de346cd4b7973326bf7f0e82ca8b8d9ddae21fadf20977083a379e4ecc408f
- Architecture hash
- ddeb1090fad439984bc90d4a0cbd3d9d3850dae76c70a61b3c0b61cfaf3e403e
- Diagram SHA-256
- 2cd5b2113509da80dadbc7e21765f03bf7abcb504fd83e83951f56f9801b057b
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
OFormer, short for Operator Transformer, is an attention-based network that learns the solution operators of partial differential equations from data. It is built from self-attention, cross-attention and point-wise MLPs, so it assumes little about how the input function or the query locations are sampled.
A cross-attention step separates output from input: each query row encodes an output location, so the solution can be read out at points independent of the input grid. Positions are encoded with Rotary Position Embedding (RoPE) instead of a convolutional architecture tied to a structured grid. The query coordinates pass through a shared point-wise MLP whose first layer is a random Fourier projection. For time-dependent problems the model advances the dynamics in latent space instead of observable space, so the encoder is called only once. The propagator that carries the latent state from step to step is a point-wise MLP shared across all query locations and all time steps.
The paper reports that on smooth targets (viscid Burgers', Darcy) OFormer generally does not show superiority over other operator-learning frameworks. On the Navier-Stokes equation it reports performance on par with MWT on NS2-full with substantially fewer parameters. The authors name the main limitation: with few assumptions made about grid structure, the model needs sufficient data to reach its optimal performance.
Key idea. OFormer learns PDE solution operators with self-attention, cross-attention and point-wise MLPs, querying outputs at arbitrary locations and marching time-dependent problems forward in latent space.
- OFormer
- Operator Transformer
- Operator-Transformer
- PDE operator learning
- neural operator
- partial differential equations
- Navier-Stokes
- latent time-marching
- cross-attention
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{li2023transformerpartialdifferentialequations,
title={Transformer for Partial Differential Equations' Operator Learning},
author={Zijie Li and Kazem Meidani and Amir Barati Farimani},
year={2023},
eprint={2205.13671},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2205.13671},
}