Scientific question¶
How can we avoid resolving every high-order interaction in a tensor product? Sparse grids retain selected hierarchical tensor increments and are effective when the integrand has mixed smoothness or low effective dimension.
Geometric picture¶
Imagine each axis carrying a refinement level. A multi-index selects one combination of levels. A downward-closed set fills the lower-left portion of this index lattice before admitting more expensive interactions.
Derivation¶
Define nested one-dimensional differences (\Delta_\ell=Q_\ell-Q_{\ell-1}), with (Q_0=0). For a downward-closed set (\mathcal{I}),
Dimension-adaptive selection uses a profit such as
and reports the active-frontier sum
Computational cost¶
Cost is the number of unique nested nodes, not the sum of all tensor sizes. Jaxstro coalesces nodes by exact dyadic-angle identity. Capacities independently bound accepted indices, frontier rows, nodes, and evaluations.
What the estimator means¶
ErrorKind.SPARSE_GRID_SURPLUS measures the executed hierarchy’s frontier.
It can be conservative, as in the frozen level-5 exponential case, or miss a
feature not represented by the current index set.
JAX and differentiation¶
First-order replay materializes the accepted sparse formula and differentiates its coalesced weighted sum. Index admission and surplus diagnostics are not differentiated.
Quantities and units¶
Heterogeneous axes work through CoordinatePoint. ProductMeasure can attach
one Lebesgue or weighted component to each axis while sharing explicit args.
Worked astrophysical example¶
A population moment can combine heterogeneous coordinates:
When high-order interactions are weak, sparse increments can require far fewer unique evaluations than a uniform tensor rule.
Failure modes¶
Audit recipe¶
Save the level or initial level, anisotropy, all four capacities, unique-node count, accepted-index count, frontier evidence, status, and an independent truth or convergence sequence.
Warranted claim¶
Jaxstro provides fixed and dimension-adaptive Smolyak formulas with exact node reuse and honest surplus evidence. The surplus is not a universal error bound.