Piecewise Polynomial Regression of Tame Functions via Integer Programming

Gilles Bareilles, Johannes Aspman, Jiří Němeček, Jakub Marecek · Submission to ICLR 2026 · Rejected

TL;DR

This paper introduces the first theoretical approximation error bounds for fitting nonsmooth, nonconvex "tame" functions (such as neural networks) using piecewise polynomials defined by oblique decision trees. The authors formulate this fitting problem as a linear Mixed-Integer Program (MIP) that simultaneously learns optimal hyperplane partition boundaries and leaf polynomial parameters, yielding fast, high-quality approximations for low-dimensional problems.

What Problem Does This Paper Address?

Standard polynomial approximation theory requires high smoothness (regularity): an $m$-times continuously differentiable function can be approximated with an error rate of $\mathcal{O}(N^{-m})$ for degree $N$. However, real-world machine learning models—such as deep neural networks with ReLU, sigmoid, or max-pooling layers—are nonsmooth and nonconvex, which slows standard polynomial approximation down dramatically (e.g., approximating $|x|$ converges at a slow rate of $\mathcal{O}(1/N)$).

While these functions lack global smoothness, they are often tame (definable in o-minimal structures), meaning their domains can be partitioned into a finite number of smooth regions ("strata"). Existing piecewise regression methods typically assume axis-aligned splits on regular grids or only fit piecewise constant/affine functions. This paper tackles the challenge of providing both theoretical guarantees and an exact optimization formulation for approximating generic tame functions using piecewise polynomials of arbitrary degree with general, oblique hyperplane splits.

Methods

The paper bridges model theory, approximation theory, and mathematical optimization:

  • Theoretical Construction: Uses stratification theorems from o-minimal geometry to split the domain into smooth strata and an $(n-1)$-dimensional nonsmooth singular locus. The authors use recent results on triangulating manifolds to approximate the nonsmooth boundaries with $l$ hyperplane cuts, then apply smooth multivariate polynomial approximation (Jackson-type theorems via Fefferman’s smooth extensions) on the smooth cells.
  • Mixed-Integer Programming (MIP) Formulation:
  • Builds on Optimal Classification Trees with Hyperplanes (OCT-H), parameterizing splits as $a_m^\top x \ge b_m$.
  • Novelty in split normalization: Constrains $\|a_m\|_1 = 1$ rather than $\|a_m\|_1 \le 1$ using auxiliary variables. This eliminates continuous scaling ambiguities and drastically speeds up solver progress on the primal bound.
  • Piecewise Polynomial Fitting: In leaf nodes, features are lifted to include monomial terms up to degree $N$. The Mean Absolute Error (MAE) objective is linearized with big-M constraints, yielding a fully linear MIP (unlike prior methods containing quadratic constraints).

Datasets

The authors evaluate their formulation on several synthetic and benchmark function regression tasks:

  • The "Cone" Function: A synthetic 2D non-convex, piecewise-linear function with 7 distinct strata.
  • Non-Piecewise-Linear Neural Network: A 2D function fitted by a trained neural network consisting of 27 parameters with ReLU, Sigmoid, Tanh activations, and 1D max-pooling.
  • Pure ReLU Neural Network: A 2D neural network with 25 parameters trained on $x \mapsto 2\sin(x_1) + 2\cos(x_2) + x_2/2$.
  • Standard Norms: 2D $\ell_1$ norm (axis-aligned strata) and $\ell_\infty$ norm (non-axis-aligned strata).
  • High-Dimensional Benchmark: A 10-dimensional neural network (3 hidden layers: 20-20-10) trained on 10,000 samples from the multidimensional generalized Rosenbrock function.
  • Image Denoising Benchmark: Four 2D piecewise-constant synthetic image scenarios on a $25 \times 25$ grid corrupted by Gaussian noise ($\sigma = 0.5$).

Key Insights and Ideas

  • Decomposed Error Bound: The approximation error neatly separates into two components: $$\|f - p\|_{\infty, A} \le \left(C_1 N^{-m} + C_2 l^{-\frac{2}{n-1}}\right) \max_{M} \|f\|_{C^m(M)}$$ The first term reflects polynomial degree $N$ and smoothness order $m$ inside smooth cells, while the second term accounts for the geometric error of approximating nonsmooth boundaries using $l$ hyperplane cuts.

  • Expressiveness of Oblique Splits: For functions with diagonal boundaries (such as the $\ell_\infty$ norm), axis-aligned decision trees perform poorly, whereas oblique hyperplane splits capture the geometry and reduce error by orders of magnitude.

  • Fast Heuristic Quality via Exact Solvers: While proving global optimality in the MIP takes hours due to slow lower-bound (dual) progress, Gurobi discovers near-optimal primal candidates within tens of seconds.

Key Results

  • Cone Function: Increasing tree depth from $D=2$ (at most 4 leaves) to $D=3$ (8 leaves) captured the 7 underlying strata and dropped mean absolute error from $4.7 \times 10^{-2}$ to $1.0 \times 10^{-2}$ (maximum error dropped from $0.50$ to $0.37$).
  • Mixed-Activation Neural Network: Using degree $N=2$ polynomials, moving from depth $D=2$ to $D=3$ halved the mean error from $3.6 \times 10^{-2}$ to $1.3 \times 10^{-2}$ (max error dropped from $0.33$ to $0.19$).
  • $\ell_\infty$ vs $\ell_1$ Norms: On the $\ell_\infty$ norm, affine-hyperplane trees outperformed axis-aligned trees by orders of magnitude: maximum error dropped from $7.2 \times 10^{-1}$ to $6.6 \times 10^{-2}$, and mean error fell from $8.5 \times 10^{-2}$ to $4.2 \times 10^{-4}$.
  • Solving Speed: For the cone function and $\ell_\infty$ norm, candidate solutions within $10^{-6}$ of global optimality were identified within 29 and 65 seconds, respectively.

Limitations and Future Work

  • Scalability to High Dimensions: The exact MIP formulation scales exponentially with input dimension and tree depth. The 10-dimensional benchmark required 256GB of RAM and failed to prove optimality within a 20-hour limit even for depth-1 trees.
  • Slow Dual Bound Convergence: A significant gap remains between finding near-optimal primal solutions (fast) and proving global optimality via dual bounds (very slow).
  • Future Directions: Developing tighter dual relaxations, leveraging heuristic tree algorithms like Tree Alternating Optimization (TAO) for higher dimensions, and extending theoretical guarantees beyond cubic domains to arbitrary compact sets.

Summary updated

BibTeX
@inproceedings{bareilles2025piecewise,
  author = {Gilles Bareilles and Johannes Aspman and Jiří Němeček and Jakub Marecek},
  title = {{Piecewise Polynomial Regression of Tame Functions via Integer Programming}},
  booktitle = {XAI4Science @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=YYJlzCNVwn},
}
Figure