Learning Orthonormal Bases for Function Spaces

Hamidreza Kamkari, Mohammad Sina Nabizadeh, Justin SolomonNeurIPS 2026

TL;DR

Standard mathematical bases like Fourier series give us clean linear algebra and continuous functions, while neural networks give us incredible adaptability at the cost of turning function space into a non-linear mess. This paper bridges the two by teaching neural networks to smoothly "rotate" a fixed reference basis (like Fourier) into a custom, problem-adapted basis. The result is an infinite, continuous, and strictly orthonormal set of basis functions tailored to your data or physics simulation.

What Problem Does This Paper Address?

When working with functions—whether simulating fluids, processing signals, or analyzing data—we usually face a tradeoff.

Classical orthonormal bases (like Fourier series or wavelets) are mathematically polite: they are infinite, continuous (grid-free), and make inner products or projections trivial to compute. However, they are completely rigid and cannot adapt to the quirks of a specific dataset.

On the flip side, modern Implicit Neural Representations (INRs) and neural operators adapt brilliantly to specific tasks, but they throw linear algebra out the window: simply adding two functions or applying a derivative translates into bizarre, unpredictable contortions in weight space. Meanwhile, classical attempts to find custom bases (like matrix PCA or grid-based eigensolvers) force you onto a discrete grid, locking in discretization errors and Nyquist frequency limits, while recent neural eigensolvers only recover a small handful of functions without strictly guaranteeing orthogonality.

The authors ask: Can we use neural networks to learn an entire infinite sequence of continuous, strictly orthonormal basis functions?

Figure 1: Method and Applications Overview. (a) Parameterizing a change-of-basis map Qθ allows us to adapt a reference ONB to various applications: eigenfaces that describe the variance of the data, visualizing the training dynamics of a non-linear neural function by the eigenfunctions of its neural tangent kernel, or dynamic modes of a fluid simulation. (b) The learned bases inherit properties of the reference such as continuity and being discretization-free. (c) Our method parameterizes paths on the Lie manifold of the infinite orthogonal group and gradually transform an initial basis by traversing this manifold; by optimizing the path, we are able to implicitly learn ONBs.

Methods

Instead of trying to build an infinite set of mutually orthogonal functions from scratch, the authors start with a known, well-behaved reference basis (such as the Fourier basis) and learn an orthogonal change-of-basis operator to transform it.

Directly parameterizing an infinite-dimensional orthogonal operator with a neural network is notoriously difficult because orthogonality is a strict manifold constraint. Drawing on Lie theory, the authors view the target basis as the endpoint of a continuous rotation path starting from the reference basis.

  • Neural ODE Formulation: This path is governed by an ordinary differential equation (ODE) driven by a time-dependent, skew-adjoint generator ($A^* = -A$, the infinite-dimensional cousin of a skew-symmetric matrix). Because the space of skew-adjoint operators is linear, a neural network can parameterize it without constraints.
  • Low-Rank Parameterization: Modeling an infinite-dimensional generator sounds impossible, so the authors restrict the neural network to output a finite, low-rank ($r$) skew-adjoint kernel using multilayer perceptrons (MLPs) that take spatial coordinates and time as inputs.
  • Structure-Preserving Integration: Standard ODE solvers (like Euler or Runge-Kutta) accumulate numerical drift that ruins orthonormality—causing basis energy to either vanish or explode. The authors instead use a Cayley Lie group integrator, which preserves inner products and norms exactly at every step. By applying the Woodbury matrix identity to exploit the low-rank structure, they drop the per-step computational cost from $\mathcal{O}(D^3)$ down to $\mathcal{O}(r^3 + r^2D)$ across $D$ randomly resampled quadrature points.
Numerical pipeline showing the structure-preserving Cayley integration and how standard solvers fail to preserve norm.

Datasets

No new benchmarks are introduced, though the authors construct synthetic continuous tasks alongside existing datasets:

  • Synthetic 1D Discontinuous Signals: Functions on $[0, 1]$ with a sharp jump at $x = 0.5$, engineered to induce Gibbs ringing in standard Fourier bases.
  • INR Zoo (MNIST & CIFAR10): Datasets where each image is represented by a continuous, pre-trained SIREN network, enabling a genuinely discretization-free evaluation.
  • CelebA: A 1,024-image subset evaluated on a $64 \times 64$ RGB grid.
  • Synthetic Operators & Flows: A two-moon classification dataset (for Neural Tangent Kernel analysis) and a 2D Taylor-Green fluid vortex simulation on a flat torus.

Key Insights and Ideas

  • Rank-2 Generators Are Universal: Restricting an infinite-dimensional operator's generator to finite rank sounds like a massive bottleneck. Yet the authors prove (Theorem 1) that time-evolving rank-2 generators are dense in the Hilbert-Schmidt orthogonal group. Just as any 3D rotation can be built from a sequence of 2D planar (Givens) rotations, chaining infinitesimal rank-2 rotations over continuous time can approximate any rotation in this infinite space.
  • Stochastic Optimization Over Infinite Indices: To find eigenfunctions (like in functional PCA), the authors weight the variational objective with a strictly decreasing probability distribution $p(i)$ over the infinite basis indices $i = 1, 2, \dots$. This neat trick turns an infinite sum into an expectation, letting you train an infinite basis via standard stochastic gradient ascent by sampling basis indices at random.
  • Free Physics Conservation Laws: In volume-preserving physical systems (like incompressible fluids), the Koopman operator governing state evolution is orthogonal. Because the learned operator $Q_\theta$ is orthogonal by construction, fitting it to fluid trajectories guarantees exact $L^2$ energy conservation during rollouts—even when trained on imperfect numerical simulations that leak energy.

Key Results

  • 1D Functional PCA: On discontinuous 1D signals, the learned basis eliminates Fourier's Gibbs ringing and bypasses discrete PCA's Nyquist cutoff, surpassing finite PCA with as few as 10 basis functions and achieving an order-of-magnitude lower reconstruction error around 100 basis elements.
  • 2D Real Data PCA: On MNIST INRs and CelebA, the first few learned basis functions morph into recognizable digits and "eigenfaces," capturing dataset variance much faster than Fourier bases without hitting a resolution ceiling.
  • Diagonalizing the NTK & Koopman Rollouts: When diagonalizing a classifier's Neural Tangent Kernel, the continuous basis resolves sharp, localized features along the decision boundary where discrete grid solvers pixelate. On the Taylor-Green vortex, iterative rollouts maintain an exact $L^2$ norm of $1.000$ over time, whereas RK2 and RK4 baselines drift to $1.282$ and $0.942$, respectively.
Figure 3: 1D Synthetic PCA on Function Space. (a) Samples from a distribution of signals described by (15), exhibiting a jump at x = 0.5 on a 1D domain. (b) The Fourier basis is transformed to diagonalize the covariance operator, allowing the basis to better capture the variance of signals. Our results improve upon the traditional finite-dimensional PCA construction, which is limited by the Nyquist cutoff inherent to that setting. (c) Reconstruction of several sample signals from the distribution. Our learned basis yields better reconstructions across all cutoff frequencies. (d) In particular, finite PCA is limited by Nyquist limits and the Fourier basis exhibits the Gibbs ringing phenomenon at the discontinuity. (e) A quantitative comparison of reconstructions averaged across the distribution of signals. The reconstruction error is shown on a log scale. We achieve an order-of-magnitude improvement using roughly 100 basis elements.

Limitations and Future Work

  • ODE Training Bottlenecks: While rank-2 generators are theoretically universal, reaching arbitrary targets can require long ODE integration horizons. Backpropagating through long ODE trajectories is computationally heavy and creates challenging optimization dynamics.
  • Theory vs. Optimization: The theoretical guarantees strictly cover expressivity (a path exists), leaving convergence guarantees and finite-sample statistical bounds as open questions.
  • Future Directions: Beyond tailored architectures to speed up ODE training, the authors suggest applying this framework to diagonalize elliptic differential operators in physics, Laplace-Beltrami operators on 3D geometric surfaces, and broader Dynamic Mode Decomposition (DMD) problems.

Summary updated

Abstract

Infinite-dimensional orthonormal basis expansions play a central role in representing and computing with function spaces due to their favorable linear algebraic properties. However, common bases such as Fourier or wavelets are fixed and do not adapt to the structure of a given problem or dataset. In this paper, we aim to represent these bases with neural networks and optimize them. Our key idea is that any target infinite-dimensional orthonormal basis can be viewed either as a point on the Lie manifold of the orthogonal group, or equivalently, as the endpoint of a continuous path on that manifold that connects a reference basis, e.g. Fourier, to that target. Paths on the Lie manifold satisfy ordinary differential equations (ODEs) governed by skew-adjoint integral operators. Using neural networks to define finite-rank generators of such ODEs allows us to parameterize and optimize orthonormal bases in function space. While relying on finite-rank generators to model infinite operators might seem restrictive, we prove a universality result: even with a rank-2 generator, the integrated solutions of the ODE are dense in the orthogonal group under the appropriate operator topology. In other words, for any target orthonormal basis, there exists a path originating from a reference basis and driven by finite-rank generators that gets arbitrarily close to that target basis. We demonstrate the flexibility of our framework by transforming the Fourier basis into the principal components of a functional dataset, eigenfunctions of linear operators, or dynamic modes of energy-preserving physical simulations.
BibTeX
@inproceedings{kamkari2026learning,
  author = {Hamidreza Kamkari and Mohammad Sina Nabizadeh and Justin Solomon},
  title = {{Learning Orthonormal Bases for Function Spaces}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6ZYEKF9qcC},
}
Figure