# Hyperplane-Gated Piecewise Neural Dynamics

- ID: 2585
- Canonical URL: https://synthcore.org/idea/2585/hyperplane-gated-piecewise-neural-dynamics
- API JSON: https://synthcore.org/api/idea/2585.json
- API Markdown: https://synthcore.org/api/idea/2585.md
- Verification status: failed_benchmark
- Source: [arXiv:2608.19785](https://arxiv.org/abs/2608.19785)
- Category: architecture
- Solves: stability, accuracy, generalization
- ML areas: ssm, rnn, world-model, mlp
- Math tags: dynamical-systems, geometry, linear-algebra, optimization
- Ratings: usefulness 7/10; difficulty 5/10; novelty 6/10

## Idea description

Replace a single smooth neural vector field with a finite collection of smooth subnetworks selected by learned affine hyperplanes. The architecture exposes switching geometry directly, allowing it to represent friction-like or threshold dynamics without approximating discontinuities using excessively steep activations.

## Mathematical statement

Let the latent state be x in R^d and let R learned affine hyperplanes be H_r={x:n_r^T x=c_r}, with normal n_r in R^d and offset c_r in R. The hyperplane arrangement partitions state space into open convex cells P_k={x:A_k x<b_k}, where each row of A_k and corresponding entry of b_k encode the relevant hyperplane inequalities. Learn one smooth vector field f_k(x;theta_k) for each cell and define dx/dt=f_k(x;theta_k) for x in P_k. The transferable mechanism is explicit representation of the discontinuity set union_r H_r while each regional model remains smooth and can be regularized independently.

## Key formulas

- $$H_r=\{x\in\mathbb{R}^{d}:n_r^{\top}x=c_r\},\qquad s_r(x)=n_r^{\top}x-c_r.$$
- $$\mathcal{P}_k=\{x\in\mathbb{R}^{d}:A_kx<b_k\},\qquad \dot{x}=f_k(x;\theta_k)\quad\text{for }x\in\mathcal{P}_k.$$
- $$\hat f(x)=\sum_{k=1}^{K}\pi_k(x)f_k(x;\theta_k),\qquad \pi_k(x)=\mathbf{1}\{x\in\mathcal{P}_k\}.$$
- $$\mathcal{L}=\frac{1}{N}\sum_{i=1}^{N}\left\|\frac{x_{i+1}-x_i}{\Delta t}-\hat f(x_i)\right\|_2^2+\lambda_n\sum_{r=1}^{R}\|n_r\|_2^2+\lambda_c\mathcal{L}_{\mathrm{complexity}}.$$

## Implementation notes

Integrate this at the transition-function level of a neural ODE, continuous-time state-space model, or latent world model. Parameterize each switching function as s_r(x)=n_r^T x-c_r and each regional vector field as a small MLP f_k. For a fixed number R of hyperplanes, enumerate only the cells observed in the training data rather than constructing all O(R^d) possible cells. Compute signed distances s=Nx-c, assign a sign pattern, map that pattern to a regional expert, and return that expert's vector field. Train with one-step derivative loss plus multi-step rollout loss. During early training use a hysteresis band around each surface so routing does not oscillate from numerical noise; later anneal the band toward zero. Periodically refit hyperplanes using samples with high derivative residuals or abrupt changes, then jointly optimize hyperplanes and experts. The paper supplies the affine-arrangement construction and separation of geometry learning from smooth dynamics learning; N, c, cell assignments, and regional weights must be estimated from data. First cheap experiment: use a known 2D oscillator with a switch at x_1=0, comparing a smooth MLP, ReLU MLP, and this model. Measure derivative error versus signed distance to the true surface. The predicted signature is that the learned zero set should localize the switch within 10% of the state scale, while within-cell error decreases without requiring a very large network Lipschitz constant. A correct model should show a kink in error slope at the switching surface.

## Verification

- Status: failed_benchmark
- Mechanism evidence: yes
- Mechanism confirmed: no
- Practical verdict: harms
- Verdict: Built a hyperplane-gated two-expert dynamics model with learned threshold selection and compared it against smooth tanh and ReLU MLP baselines. Hysteresis-band coverage matched the predicted h scaling within 0.6%, boundary-offset MSE followed the predicted linear |delta| law with observed/predicted ratios 1.0025–1.0073, and regional affine recovery reached approximately 2e-29 MSE versus 0.0881 for one global affine model. On the matched toy derivative task, the gated model achieved approximately 4e-31 MSE, better than tanh MLP 0.00379 and ReLU MLP 0.00145; this demonstrates the intended representation benefit, though not broad stability or generalization.

### Mechanism check

- Verdict: Built a hyperplane-gated two-expert dynamics model with learned threshold selection and compared it against smooth tanh and ReLU MLP baselines. Hysteresis-band coverage matched the predicted h scaling within 0.6%, boundary-offset MSE followed the predicted linear |delta| law with observed/predicted ratios 1.0025–1.0073, and regional affine recovery reached approximately 2e-29 MSE versus 0.0881 for one global affine model. On the matched toy derivative task, the gated model achieved approximately 4e-31 MSE, better than tanh MLP 0.00379 and ReLU MLP 0.00145; this demonstrates the intended representation benefit, though not broad stability or generalization.
- Confidence: 9/10
- Limitations: Only a synthetic 2-D single-hyperplane derivative-regression task was tested. The experiment did not test continuous-time rollout stability, multiple hyperplanes/cells, noisy observations, learned normals and offsets jointly, hysteresis during actual integration, FLOPs-normalized training, or out-of-distribution generalization.

### Practical benchmark

- Paired seeds: 8
- Baseline mean: 0
- Idea mean: 0
- p-value: 0.02205
- Paired wins: 1/8
- Benchmark verdict: idea worse (significant)

## Artifacts

- [bench_report.json](https://synthcore.org/code/991/bench_report.json)
- [piecewise_dynamics_experiment.py](https://synthcore.org/code/991/piecewise_dynamics_experiment.py)
- [report.md](https://synthcore.org/code/991/report.md)
- [report_bench_2026-09-01T175225.md](https://synthcore.org/code/991/report_bench_2026-09-01T175225.md)
- [results.json](https://synthcore.org/code/991/results.json)
- [stage2_bench.py](https://synthcore.org/code/991/stage2_bench.py)
- [stage2_rerun_stdout.json](https://synthcore.org/code/991/stage2_rerun_stdout.json)
- [Download all files as ZIP](https://synthcore.org/download/991)

## Disclaimer

AI-generated research hypothesis, automatically tested. Not peer-reviewed.
