Candidate Library Constraints in Sparse Equation Discovery

15 concepts14 papers1 proposal

Imagine trying to describe a complex physical phenomenon using only a limited vocabulary. If you are restricted to basic geometric terms, you will struggle to accurately articulate the concept of a fractal or a chaotic attractor.

This is the fundamental challenge underlying the sparse identification of nonlinear dynamical systems. Algorithms like Sparse Identification of Nonlinear Dynamics (SINDy) discover the governing differential equations of a system directly from data by framing the task as a sparse regression problem. Instead of searching through an infinite space of mathematical expressions, the algorithm selects a small subset of terms from a predefined dictionary—or candidate library—of functions (such as polynomials, sinusoids, or custom differential terms).

While open-source toolkits like PySINDy and its robust extensions (PySINDy: A comprehensive Python package for robust sparse system identification) have standardized this process, the entire paradigm hinges on a critical assumption: the true mathematical terms governing the system must already exist within the candidate library. If the library is incomplete, the mathematical foundation of sparse regression breaks down, forcing a trade-off between model simplicity and physical accuracy.


The Mechanics of Library Incompleteness

To understand why library dependency is a bottleneck, consider how sparse identification operates mathematically. We collect state measurements $\mathbf{X}$ and their time derivatives $\dot{\mathbf{X}}$, and construct a feature matrix $\Theta(\mathbf{X})$ where each column represents a candidate function:

$$\dot{\mathbf{X}} = \Theta(\mathbf{X})\Xi$$

The sparse regression algorithm attempts to find a coefficient matrix $\Xi$ that is highly sparse (mostly zeros), meaning only a few candidate functions actively contribute to the dynamics.

True Dynamics:  ẋ = -0.5x³ + sin(y)

Case 1: Complete Library 
Library: [1, x, x², x³, sin(x), sin(y)]  ───> Regression succeeds: Identifies x³ and sin(y)

Case 2: Incomplete Library
Library: [1, x, x², x³, x⁴, x⁵]         ───> Regression fails: Tries to approximate sin(y) 
                                               using a non-sparse combination of polynomials

When a true physical mechanism is missing from $\Theta(\mathbf{X})$, the optimization objective is forced to compromise. It can no longer achieve a low residual error with a sparse set of coefficients. Instead, the algorithm typically responds in one of two ways:

  1. Loss of Parsimony: It selects a dense, complex combination of incorrect candidate terms to approximate the missing function (e.g., using a high-order Taylor series expansion to mimic a missing trigonometric term).
  2. Failure to Converge: The algorithm fails to find any stable model structure, yielding inaccurate equations that generalize poorly outside the training data.

As Khatiry Goharoodi et al. demonstrate in A relaxed model selection method for Duffing oscillator identification, standard sparse regression techniques fail when encountering real-world physical systems with unexpected, non-standard terms—such as position-dependent friction—unless the library is explicitly designed to accommodate them.


How Library Constraints Manifest Across Scales

The risk of library dependency intensifies when modeling multiscale or chaotic systems. In multiscale physics, fast periodic oscillations often mask slow-moving underlying dynamics.

When attempting to isolate these slow timescales, the choice of basis functions becomes highly sensitive. Bramburger et al. note in Sparse identification of slow timescale dynamics that if the library lacks the precise functional forms required by the underlying attractors, the model fails to capture the long-term evolution of the system. Similarly, when constructing data-driven Poincaré maps to analyze cross-sections of complex trajectories, an inadequate library yields non-sparse solutions that obscure the true geometric structure of the phase space (Poincaré maps for multiscale physics discovery and nonlinear Floquet theory).

Even when researchers employ sophisticated data-sampling techniques to minimize data requirements, the structural boundary of the dictionary remains absolute. As emphasized by Champion et al. in Discovery of Nonlinear Multiscale Systems: Sampling Strategies and Embeddings, clever data collection cannot compensate for an absent mathematical term; if the true physics are omitted from the user's initial candidate set, the algorithm is fundamentally incapable of reconstructing the correct governing law.


Evolving Past Fixed Libraries

To overcome the constraints of user-defined dictionaries, recent research focuses on moving away from static libraries toward dynamic, generative, and hybrid architectures.

Generative and Symbolic Expansion

Rather than forcing a human expert to guess every potential mathematical term, newer frameworks generate candidate terms algorithmically. One strategy is to pair sparse regression with symbolic or generative models that propose new functional forms based on the data's behavior. For example, Jacobs et al. introduce a generative approach in HyperSINDy: Deep Generative Modeling of Nonlinear Stochastic Governing Equations that points toward integrating symbolic regression to discover novel terms on the fly.

Taking this concept to its logical conclusion, Xu et al. developed EqGPT in Generative discovery of partial differential equations by learning from math handbooks. By training a generative model on the structural "language" of mathematics found in handbooks, the framework uses a generation-evaluation-optimization loop to discover complex partial differential equations (PDEs), successfully identifying non-standard physical terms that were entirely absent from traditional predefined libraries.

Traditional SINDy:  [Fixed Library] ──────> Sparse Regression ───> Final Model
                                                                     (Bounded by initial choices)

Generative SINDy:   [Math Handbook] ───> Generative Loop ───> Dynamic Library Expansion ───> True Equation
                                                                     (Discovers novel terms)

Hybrid Neural-Spline Architectures

Another prominent direction embeds sparse regression within flexible machine learning models. Instead of calculating derivatives directly from noisy data, these methods use continuous spline curves or neural networks to smoothly interpolate the state space while simultaneously enforcing sparsity constraints.

Frameworks like Physics-informed Spline Learning (Physics-informed Spline Learning for Nonlinear Dynamics Discovery) and its uncertainty-aware counterpart (Bayesian Spline Learning for Equation Discovery of Nonlinear Dynamics with Quantified Uncertainty) combine the local flexibility of B-splines with global sparse regression. While these methods excel at filtering out measurement noise, the authors reinforce that the final step—isolating the exact analytical law—remains bounded by the completeness of the candidate library.

This architectural dependency is equally visible when extracting physical laws from raw video footage or highly obscured observations. Frameworks designed for vision-based tracking (Vision-based Discovery of Nonlinear Dynamics for 3D Moving Target) and deep recurrent networks like PeRCNN (Discovering Nonlinear PDEs from Scarce Data with Physics-encoded Learning) rely on deep learning to reconstruct clean state trajectories from messy environments. However, when they pass these trajectories to a sparse regression layer, the accuracy of the discovered PDE or ODE still depends on whether the underlying physical mechanisms match the model's structural assumptions.


Preserving Physics Under Uncertainty

If a library might be incomplete, how do we prevent the algorithm from selecting a collection of incorrect terms? When the true function is missing, statistical metrics like the Bayesian Information Criterion (BIC) often fail because they overfit spurious terms to minimize the remaining error.

To mitigate this, recent work focuses on robust model selection and structural preservation:

Key Foundational Work

PySINDy: A Python package for the sparse identification of nonlinear dynamical systems from data (2020) — contributed 1 concept elements to this direction.
Discovery of Nonlinear Multiscale Systems: Sampling Strategies and Embeddings (2019) — contributed 1 concept elements to this direction.
Sparse identification of slow timescale dynamics (2020) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_basis_library_dependency_bef5c5cb,
  title = {basis library dependency},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/basis-library-dependency/rdr_bef5c5cba6474dd6838894b88183141b},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_basis_library_dependency_bef5c5cb_v1,
  title = {basis library dependency},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/basis-library-dependency/rdr_bef5c5cba6474dd6838894b88183141b/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake