Energy-Based Operator Learning in Function Space

Hong Chul Nam, Jeonghwan Cheon, Jae Mo Shin, Hyun Kwon

TL;DR

Energy-Based Operators (EBOs) bridge the gap between energy-based modeling and neural operators, allowing machines to learn probability distributions over continuous functions rather than just fixed-grid vectors. By parameterizing a scalar energy functional that is discretization-invariant, EBOs enable robust function generation and state-of-the-art unsupervised anomaly detection in fields ranging from fluid dynamics to neurology and finance.

What Problem Does This Paper Address?

Most machine learning models treat data as finite-dimensional vectors (like a $256 \times 256$ image). However, many scientific and engineering problems—such as solving partial differential equations (PDEs) or analyzing medical signals—deal with functions defined over continuous domains.

Standard Energy-Based Models (EBMs) struggle here because they are typically tied to a specific discretization. If you change the resolution of your sensor or the grid of your simulation, a standard EBM often fails or requires retraining. While "Neural Operators" were designed to be discretization-invariant, they are usually deterministic. On the other hand, function-space diffusion models provide probabilistic outputs but lack an explicit "energy" score, which is a vital tool for identifying outliers or anomalies. The authors aim to create a framework that is simultaneously probabilistic, discretization-invariant, and capable of providing a clear scalar energy metric.

Methods

The authors introduce Energy-Based Operators (EBOs). Instead of predicting a function directly, an EBO learns an energy functional $\Phi_\theta(f, u)$ that assigns a scalar value to a candidate function $u$ given some context $f$.

Key technical components include:

  • Gaussian Reference: The model induces a probability measure through a Gaussian Random Field (GRF) reference. This provides a mathematically rigorous way to define "likelihood" in infinite-dimensional function spaces.
  • Iterative Energy Minimization (EM): To generate a function, the model starts with random noise (from the GRF) and iteratively updates it by following the gradient of the energy functional. This is essentially "polishing" a noisy guess into a physically plausible function.
  • Architecture Agnosticism: The EBO framework can sit on top of various backbones, such as Transformers, Fourier Neural Operators (FNO), or Galerkin Transformers.
  • Theoretical Guarantees: The paper proves two critical properties: Discretization Invariance (the energy estimate converges even as you refine the grid) and Universal Approximation (EBOs can represent any continuous energy functional).

Datasets

The researchers evaluated EBOs across a diverse set of challenges:

  1. Synthetic 1D Functions: Oscillations, damped waves, and the non-smooth Izhikevich neuron model.
  2. Partial Differential Equations (PDEs): Standard benchmarks including Navier-Stokes (fluid dynamics), Darcy Flow (porous media), and Burgers’ Equation (shock waves).
  3. Real-World Signals:
    • TUSZ (Temple University Hospital Seizure Corpus): A large-scale EEG dataset used for unsupervised seizure detection.
  4. Limit Order Book (LOB): High-frequency financial data from the Korea Exchange, used to predict market volatility.

Key Insights and Ideas

  • The "Energy" as a Universal Anomaly Score: One of the most powerful "aha" moments is that because the model learns the "shape" of normal data, it naturally assigns high energy to anything that doesn't fit the pattern. This allows for unsupervised anomaly detection. For example, the model can detect an epileptic seizure in EEG data without ever being told what a seizure looks like during training.
  • Test-Time Scaling: Unlike deterministic models that give you one answer and stop, EBOs allow you to trade computation for quality. If a specific instance is "hard," you can simply run more energy minimization steps at test time to refine the result.
  • Handling Irregular Grids: Because the model is built on operator learning principles, it handles data sampled at irregular intervals or different frequencies (common in medical and financial data) without needing to interpolate or downsample.

Key Results

  • Superior Reconstruction: In super-resolution and forecasting tasks for smooth signals, EBOs improved upon one-shot prediction baselines by up to 5x in Mean Squared Error (MSE).
  • PDE Performance: On Darcy Flow, EBO reduced the missing-region relative $L^2$ error from 0.108 to 0.026 (a ~75% reduction) when only 20% of the context was provided.
  • Unsupervised Seizure Detection: The model achieved an AUROC of 0.848 for detecting seizures, outperforming supervised baselines that were not designed for function-space invariance.
  • Financial Volatility: The energy score showed a strong positive correlation (Spearman’s $\rho = 0.563$) with future realized volatility, suggesting the model can "sense" market instability before it happens.

Limitations and Future Work

  • Smoothness Bias: The current use of Gaussian Process priors (like the Matern kernel) tends to favor smooth functions. The model struggled slightly on the Izhikevich neuron model, where one-shot predictors performed better due to the spiky, non-smooth nature of the data.
  • High-Context Regimes: In the Burgers' PDE experiments, when data was very dense (60-80% context), a standard supervised operator was sometimes more accurate. This suggests EBO is most beneficial in "underdetermined" scenarios where the model must fill in significant gaps.
  • Computational Overhead: Iterative energy minimization is inherently slower than a single forward pass of a deterministic network. Future work might explore faster sampling methods or "distilling" the energy minimization process into a faster generator.

Summary updated

BibTeX
@inproceedings{nam2026energy,
  author = {Hong Chul Nam and Jeonghwan Cheon and Jae Mo Shin and Hyun Kwon},
  title = {{Energy-Based Operator Learning in Function Space}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=I9qAqBoxNx},
}
Figure