NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Rethinking Attention in Depth for Operator Learning

Jaehyeon Lee, Kiwon Um, Min-Koo Kang, JungHyun HanNeurIPS 2026

TL;DR

When training Transformers to simulate complex physics, stacking more layers often yields diminishing returns because deeper layers end up learning redundant, collapsed representations. The authors introduce Mixture of Depth Differential (MoDD), a plug-and-play module that treats network depth as an active computational dimension—mixing differences in attention features across layers rather than just passing raw states down the chain. The result is a leaner, sharper neural physics solver that matches the accuracy of models nearly four times its size.

What Problem Does This Paper Address?

Partial Differential Equations (PDEs) are the mathematical bedrock for modeling everything from airflow over a wing to structural stress in materials. Traditional numerical solvers are accurate but painfully slow. Recently, "neural operators"—specifically Transformer-based ones—have stepped in to learn fast mappings directly from input conditions to physical solutions.

To model intricate, multiscale physics, we naturally want deeper networks. However, standard Transformers suffer from a hidden bottleneck: depth under-utilization. Simply stacking layers leads to feature oversmoothing, attention noise, and weak coupling between layers. In practice, less than half of a standard Transformer's layers meaningfully contribute to the final prediction. Existing fixes usually focus on spatial tricks within a single layer or naive cross-layer feature averaging, leaving the true potential of network depth untapped.

Figure 1: Transformer and intra-layer strat- egy often under-utilize model depth.

Methods

Instead of letting depth be a passive hyperparameter (just the number of stacked blocks), MoDD promotes depth to an explicit axis of attention computation. Operating right inside standard Multi-Head Attention, MoDD replaces the isolated query ($Q$), key ($K$), and value ($V$) tensors of layer $l$ with an enriched, cross-layer mixture in two steps:

  1. Layer-wise Differentiation: Rather than grabbing raw $Q, K, V$ features from earlier layers, MoDD computes the inter-layer differences ($\Delta Z^{(l)} = Z^{(l)} - Z^{(l-1)}$ for $Z \in \{Q, K, V\}$). Subtracting consecutive layers strips away shared, redundant background correlations and isolates what is newly learned at each step.
  2. Gated Mixture: A lightweight gating network looks at the stacked Key representations across all preceding layers and outputs softmax weights. MoDD then takes a linear weighted sum of all historical $\Delta Q, \Delta K$, and $\Delta V$ tensors to form the final $\hat{Q}, \hat{K}, \hat{V}$ used in standard scaled dot-product attention.
Figure 3: Architecture and working mechanism of MoDD. (a) A Transformer layer with MoDD leverages a cross-layer path of query, key, and value. (b) MoDD computes inter-layer differences of Q, K, and V , and aggregates them using a gating strategy so that each head at layer L takes a weighted combination as input.

Mathematically, because attention relies on exponential dot-products, feeding a weighted sum of differences into the exponent turns the attention mechanism into a product of weakly correlated kernels accumulated from all previous depths—a "mixture of depth experts" with provably tighter generalization bounds.

Comparison between standard single-kernel attention and MoDD's accumulated multi-kernel experts across depth.

Datasets

No new datasets are introduced; the authors evaluate MoDD across well-established fluid dynamics and solid mechanics PDE benchmarks spanning diverse geometries:

  • Point clouds: Elasticity, Plasticity
  • Structured meshes: Airfoil, Pipe
  • Regular grids: Navier-Stokes (NS), Darcy Flow
  • 3D / Large-scale spatiotemporal benchmarks: Darcy-Poisson (DP), 4D Shape-Net Car (predicting pressure and velocity), and the industrial-scale 3D AIRCRAFT benchmark (~0.3 million mesh points per sample).

Key Insights and Ideas

  • Target $Q/K/V$, not the block input $X$: Applying the exact same difference-and-gate math to the layer input $X$ yields zero accuracy improvement. Why? Projecting a mixed $X$ through a single layer's weight matrix mathematically collapses back into a single kernel. Mixing $Q/K/V$ after projection is essential to unlock true multi-kernel expressivity.
  • Curing "Spectral Collapse": In standard Transformers, the eigenvalues of attention matrices tend to cluster near zero with one massive outlier—meaning attention degenerates into a blunt, rank-one projection. MoDD flattens this eigenvalue spectrum, preserving rich representational diversity deep into the network.
  • Simultaneous Local and Global Vision: Standard Transformers quickly lose spatial diversity in deeper layers, while naive cross-layer averaging (without differencing) gets stuck looking only locally. MoDD maintains heads that attend both locally and globally across all layers.
  • Emergent Physics Awareness: When predicting stress around a hole in a material (Elasticity), gradient receptive fields show that MoDD naturally focuses sharply on symmetric, high-stress void boundaries, whereas a vanilla Transformer scatters attention across irrelevant regions.

Key Results

  • Broad SOTA Gains: Plugging MoDD into top solvers consistently lowers relative $\ell^2$ error—improving Transolver across all benchmarks (e.g., by 18.9% on Airfoil and 16.7% on Pipe) and boosting the graph-based AMG solver by up to 20.5% on Navier-Stokes. On a vanilla Transformer, MoDD cuts error by 35.5% on Elasticity.
  • Massive Depth Efficiency: Achat-sized MoDD model punches way above its weight. On Elasticity, an 8-layer Transformer + MoDD matches the accuracy of a 32-layer standard Transformer using 3.9$\times$ fewer parameters and FLOPs. On the massive 3D AIRCRAFT mesh, a 4-layer Transolver++ with MoDD matches a 16-layer baseline with 3.8$\times$ fewer parameters and FLOPs.
  • Better than Dense Mixing: MoDD achieves 1.7–2.6$\times$ greater error reductions than recent cross-layer mixing architectures (DenseFormer, MUDDFormer, Full AttnRes) while requiring ~30% less training time than MUDDFormer and Full AttnRes.

Limitations and Future Work

The authors note that a deeper theoretical understanding is still needed regarding when MoDD most effectively eliminates cross-layer redundancy. They also highlight potential optimization failure modes to investigate next: gating weights becoming overly sharp (collapsing to one layer) or overly diffuse, as well as large-magnitude inter-layer differentials potentially destabilizing training. Finally, because MoDD is completely agnostic to PDE-specific inductive biases, testing it in mainstream domains like computer vision and natural language processing is an obvious next frontier.

Summary updated

BibTeX
@inproceedings{lee2026rethinking,
  author = {Jaehyeon Lee and Kiwon Um and Min-Koo Kang and JungHyun Han},
  title = {{Rethinking Attention in Depth for Operator Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ebPb7taENV},
}
Figure