Skip to content

chc.research.residual

Stability tier: research.

The research half of chc.residual.

The research half of chc.residual: the evidence for its circulant backbone.

spectral_residual_certificate fits SpectralResidual and an MLP to the periodic advection-diffusion plant of chc.research.transport, and reports what the circulant structure buys against the MLP: the symbol's error, held-out and rollout error, and equivariance. It sits outside the surface 0.20.0 freezes (chc.research).

SpectralResidualCurve dataclass

Evidence that a circulant backbone earns its place on a translation-invariant plant.

spectral_residual_certificate(*, seed=0, n=64, length=1.0, speed=0.8, viscosity=0.01, n_train=256, n_test=128, steps=400, lr=0.02, rollout=40, dt=0.002)

Does a circulant backbone beat an MLP on the plant that justifies it -- and how, exactly.

This is the backbone's kill-criterion: if the MLP matches it on its own home ground, the backbone is deleted and the finding recorded.

The plant is chc.research.transport's periodic advection-diffusion field plus a Gaussian-smoothed control channel -- translation-invariant by construction, so the truth lies IN the circulant hypothesis class. That makes the fit-quality arms a test of inductive bias rather than of approximation power (the MLP carries ~130x more parameters and is not handicapped), and it makes the EQUIVARIANCE arm the decisive one: that gap cannot be closed by more training.

Each backbone is fit the way it should be: the circulant by the closed-form per-mode least squares of fit_spectral_residual, the MLP by Adam. spectral_adam_test_mse records what happens when the circulant is instead fit by Adam on the MLP's own budget -- it loses, and the reason is arithmetic rather than structural (see that function's docstring).