SINDy-LOM: Optimized Libraries for Sparse Dynamics
- SINDy-LOM is a methodological family that adapts the candidate-function library through expansion, pruning, or parameterization, reducing manual design while preserving sparsity and interpretability.
- It leverages sparse regression techniques like LASSO and STLSQ to manage computational complexity and enhance recursive long-term predictions under noise and high dimensionality.
- Empirical studies demonstrate significant speed-ups and improved forecasting accuracy in applications such as the Lorenz system, diesel-engine airpaths, and ecological data.
SINDy with Library Optimization Mechanism (SINDy-LOM) denotes a class of extensions to Sparse Identification of Nonlinear Dynamics in which the candidate-function library is not treated as a fixed, user-specified object, but is instead expanded, pruned, parameterized, sampled, or generated during identification. Across the recent literature, the shared objective is to preserve the sparse, interpretable structure of SINDy while reducing manual library design, controlling computational complexity, or improving recursive long-term prediction under noise, uncertainty, or high dimensionality (Choi, 2024, Yonezawa et al., 24 Jul 2025, Yahagi et al., 7 Mar 2025, Basiri et al., 10 May 2026, Lin, 7 Feb 2026, O'Brien, 2024).
1. Core formulation and the library-design problem
In its standard form, SINDy seeks a sparse coefficient matrix such that the observed dynamics are represented by a small number of active basis functions from a library . In the continuous-time setting, with state snapshots , derivatives , and a dictionary , the model takes the form
Two standard sparse-regression formulations are the -constrained problem
and the -regularized problem
The central difficulty is that SINDy’s effectiveness depends strongly on the choice of candidate functions: a larger dictionary can improve approximation quality, but the computational complexity scales with dictionary size, and poor library choice can omit critical terms or induce overfitting (Choi, 2024).
A parallel discrete-time formulation is used in several SINDy-LOM variants, especially when control or exogenous inputs are present. With 0, the sparse-regression objective remains convex at the inner level, typically via LASSO or STLS. This discrete-time representation is especially prominent in industrial-system settings, where one-step accuracy alone may be insufficient because recursively simulated multi-step forecasts can diverge even when the one-step fit is strong (Yahagi et al., 7 Mar 2025).
2. Meanings of “library optimization mechanism” in the literature
The term “SINDy-LOM” is used for multiple non-identical procedures. The unifying feature is library adaptation; the mechanism differs substantially across papers.
| Variant | Library mechanism | Representative paper |
|---|---|---|
| Iterative SINDy | Expand monomials, then prune survivors | (Choi, 2024) |
| Two-layer SINDy-LOM | Optimize parametrized basis functions for RLT accuracy | (Yonezawa et al., 24 Jul 2025) |
| Ensemble SINDy-LOM | Library bagging, elite gathering, clustering, model selection | (Yahagi et al., 7 Mar 2025) |
| AutoSINDy | Symbolic mining, curation, collinearity pruning, sparse solve | (Basiri et al., 10 May 2026) |
| LLM-aided SINDy-LOM | Prompted candidate generation with sparse-regression evaluation | (Lin, 7 Feb 2026) |
| Joint library learning | Alternating minimization over coefficients and library parameters | (O'Brien, 2024) |
| High-noise toolkit | Weighted regression, FFT augmentation, iterative culling and restoration | (Delahunt et al., 2021) |
This usage pattern indicates that SINDy-LOM is best understood as a methodological family rather than a single canonical algorithm. In all cases, the library is optimized in response to data or prediction quality, but the optimization variable may be the support of a monomial set, a random sub-library, parametric basis-function parameters, symbolic expressions mined from data, or a learned library block.
3. Iterative expansion and compression of monomial libraries
One 2024 formulation introduces iterative SINDy with Library Optimization via Monomials. The procedure starts from the “unity set”
1
and then alternates expansion and compression over 2 iterations. At iteration 3, the expansion step forms
4
so that 5 contains all monomials up to total degree 6. The compression step evaluates the corresponding library matrix 7, solves a LASSO problem for each state, and retains only the survivor library
8
The procedure therefore grows the library only as needed and prunes unhelpful terms at each stage (Choi, 2024).
This formulation also includes a convergence analysis. Under mild assumptions—Lipschitz continuity of the true vector field, full rank of each 9, sufficiently small residual error, and fixed 0—Theorem 1 establishes finite-support convergence: if at iteration 1 the survivors do not change, 2, then for every subsequent iteration 3, one has 4. Lemma 2 gives an error-threshold pruning condition: if the residual norm 5 is below a threshold depending on 6, then the optimal coefficients on all newly introduced basis functions are exactly zero. In this variant, convergence can thus be detected by the simple support-stability condition 7.
The same work reports a computational-complexity comparison. For standard SINDy with library size 8, solving a single LASSO of dimension 9 costs roughly 0 when 1. For iterative SINDy-LOM, if the maximum library size per iteration is 2, the total cost over 3 iterations is 4, with an estimated speed-up factor of approximately 5 when 6. The example 7 yields a speed-up of about 8. Reported simulations show that standard SINDy and SINDy-LOM both recover the Lorenz system exactly,
9
with negligible coefficients below 0 on spurious monomials, and that prediction of 1 over 2 s matches the true trajectory to machine precision. On real traffic-volume data, for 3, 4, and 5, SINDy-LOM achieves the same error as SINDy while using fewer monomials and less than 6 of the compute time for 7; its CPU time remains essentially flat up to 8, whereas the CPU time of SINDy explodes for 9. The reported full-library sizes for degree 0 are 1 for 2, respectively (Choi, 2024).
4. Recursive long-term prediction and industrial-system variants
A distinct SINDy-LOM formulation treats library design as a bi-level optimization problem. In the inner layer, a sparse coefficient matrix is extracted for a parametrized library 3, typically using STLSQ. In the outer layer, the basis-function parameters 4 are optimized to minimize a recursive long-term prediction loss 5 computed over multiple long-term datasets. The resulting model remains linear in the sparse coefficients,
6
but the library itself is learned from the viewpoint of recursive long-term accuracy rather than one-step fit. In the diesel-engine air-path study, the practical library uses 7 candidate basis functions: constant, linear and quadratic terms in states and inputs, plus five Gaussian radial basis functions with tunable centers and widths. The inner layer uses STLSQ with threshold 8, and the outer layer is optimized by a Genetic Algorithm with default MATLAB ga() settings, population about 9–0, and stopping tolerance about 1 in relative change of 2 (Yonezawa et al., 24 Jul 2025).
On the diesel air-path benchmark, three strategies were compared: vanilla SINDy with polynomial library only; SINDy with an extended library including random RBFs; and SINDy-LOM with learned Gaussian RBF parameters. The polynomial model gave moderate one-step error but recursive long-term errors of order 3 and 4; the random-RBF model often diverged under recursion; and the learned SINDy-LOM model achieved comparable one-step error while reducing recursive long-term errors by more than 5. The reported 6-norm errors on the out-of-library long-term set decreased from 7 to 8 for pressure and from 9 to 0 for EGR rate. All strategies remained sparse, with the learned SINDy-LOM model typically using 1–2 nonzeros per equation (Yonezawa et al., 24 Jul 2025).
Another industrial variant keeps each sparse-regression subproblem convex but wraps it in an ensemble-learning, elite-gathering, clustering, and model-selection pipeline. Here the library is optimized by random sub-library sampling (“library bagging”), and models are retained only if they deliver high-quality multi-step predictions on a validation sequence. The elite criterion is 3; the surviving elite coefficient matrices are clustered, cluster means are treated as discrete candidate models, and the final model is selected by long-term 4 with a preference for lower sparsity. In simulation on a 4-cylinder diesel engine airpath with time-delay embedding, baseline single-shot SINDy produced one-step 5 but long-term forecasts rapidly diverged, and a naïve ensemble-SINDy using bagging plus mean aggregation also became unstable. The SINDy-LOM ensemble, by contrast, achieved long-term 6 and 7 under noiseless data, remained at least 8 under output-noise levels up to 9, and produced final models with about 0–1 active terms out of roughly 2 candidate functions. The reported computation time was about 3 s to collect 4 elites on a 5 GHz Xeon with MATLAB (Yahagi et al., 7 Mar 2025).
5. Automated basis generation, adaptive library learning, and LLM-guided refinement
A further development is SINDy-LOM as automated basis-function generation. In the AutoSINDy formulation, discovery is partitioned into three stages: symbolic mining with PySR on bootstrapped data chunks; library curation by decomposition, algebraic expansion, and collinearity filtering; and sparse coefficient regression using STLSQ or SR3 with a bootstrap inclusion filter. The curation step sorts candidate atoms by operator count, discards degenerate columns, and greedily accepts a basis function only if its correlation with already retained functions is below 6, or equivalently by a VIF test. On six canonical ODEs under noise levels 7 and five random seeds, the reported ground-truth recovery rate is 8 for AutoSINDy, versus 9 for standard SINDy and 0 for PySR alone; the long-horizon “Excellent” rate 1 is 2, 3, and 4, respectively; hard integration failures are 5, 6, and 7; and symbolic complexity is within 8–9 operators of the true model. Discovery time is approximately 00–01 s per state variable, versus less than 02 s for standard SINDy, but simulation time is about 03 s because the discovered models are compact (Basiri et al., 10 May 2026).
An even more adaptive form uses a LLM in the loop. This pipeline begins with a baseline SINDy fit using an initial broad library, computes structural priors from the training trajectory, and then iteratively prompts an LLM to propose new candidate equation templates that remain linear in unknown coefficients and obey an allowed symbolic grammar. Valid candidates are parsed, converted into feature sets, refit by sparse regression, simulated on test data, and ranked by a multi-objective score combining worst-case rollout error 04, symbolic complexity, and a structural prior penalty. Early stopping is triggered if 05 or after 06 iterations. On 07 ODEBench tasks plus the March-Leuba boiling water reactor model, early stop was achieved in 08 tasks versus 09 for baseline SINDy; median test NRMSE was 10 versus 11; baseline SINDy diverged on 12 systems whereas the LLM-aided variant found stable models in all cases; and “good” structural term match increased from 13 to 14. On March-Leuba, baseline SINDy diverged immediately, while the SINDy-LOM pipeline produced a sparse bilinear/polynomial model with test 15 and max NRMSE about 16 (Lin, 7 Feb 2026).
A more classical adaptive-library view appears in a joint optimization over sparse coefficients 17 and an adjustable library block 18. The full library is written as 19, and the optimization problem is
20
This problem is solved by alternating minimization: first a Lasso-type update for 21, then a library-adjustment update for 22 based on the residual unexplained by the known library block 23. On ecological data, the reported FPIV is driven to 24 across all 25-sweeps, whereas standard SINDy yields average FPIV of about 26–27 on Canadian lynx–snowshoe hare and about 28–29 on Pacific sardine–northern anchovy. On five canonical ODE systems with partial libraries plus learned extras of size 30, the reported FDECS for SINDy-LOM is approximately 31–32, while standard SINDy remains around 33–34; in the Lorenz case, the reported FDECS values are 35 for 36, versus 37 for standard SINDy (O'Brien, 2024).
6. Noise robustness, related outer-loop search methods, and limitations
In high-noise regimes, SINDy-LOM has also been formulated as a library-culling toolkit rather than as a new basis generator. The reported modules include smoothing with a Hamming low-pass filter, timepoint weighting based on local z-scores, FFT-augmented regression, bagging over random subsets, coefficient rescaling, linear-dependence culling, one-at-a-time support removal, restoration and protection of recently culled terms, and a final linear-span transform for assessing equivalence classes of noisy models. In the Lorenz system with a polynomial library up to degree 38, the toolkit recovers the correct sparse libraries with median coefficient estimate errors of 39–40 at 41 noise, 42–43 at 44 noise, and 45–46 at 47 noise. At 48 noise, the reported trajectories collapse to simple figure-8s rather than the multi-loop Lorenz attractor, but the sparsity pattern remains correct (Delahunt et al., 2021).
A related outer-loop optimization strategy is Delay-SINDy with Bayesian optimization, which augments the SINDy library by delayed samples 49 and minimizes the reconstruction error 50 over candidate delays. This method is not labeled SINDy-LOM in the source paper, but it operates on the same general principle of optimizing an augmented library structure outside the sparse-regression inner loop. The reported reduction in SINDy calls relative to brute-force search is 51 for the logistic equation with 52, 53 for logistic with 54, 55 for SIR, and 56 for Mackey–Glass delay identification (Pecile et al., 2024).
Several limitations recur across SINDy-LOM variants. In the two-layer recursive-long-term formulation, the outer problem is non-convex and relies on heuristic optimizers such as a Genetic Algorithm; the basis class must still be chosen a priori; and hyperparameters such as 57, 58, GA settings, and dataset weights require tuning (Yonezawa et al., 24 Jul 2025). In the high-noise toolkit, one-at-a-time culling and repeated ODE integrations make real-time use difficult (Delahunt et al., 2021). In AutoSINDy, symbolic discovery is substantially slower than standard SINDy, even though downstream simulation can be cheaper because the final model is compact (Basiri et al., 10 May 2026). Because the same name is attached to several distinct mechanisms, reported improvements are variant-specific: computational speed-up in iterative monomial SINDy-LOM, recursive-forecast reliability in industrial SINDy-LOM, symbolic recovery in AutoSINDy and LLM-guided refinement, and uncertainty robustness in alternating library learning should not be conflated into a single benchmark claim.
Taken together, the literature defines SINDy-LOM as a broad strategy for moving library design from a fixed preprocessing choice into the identification loop itself. The mechanism may be combinatorial, parametric, ensemble-based, symbolic, or language-model-assisted, but the persistent goal is the same: a sparse, interpretable dynamical model whose basis functions are selected or learned in direct response to predictive performance and data structure.