Polynomial-depth derivative regularization
Implementation & benchmark of arXiv:2608.26526 — High Probability Derivative Bounds for Random tanh Neural Networks on a Hypercube
Source paper: High Probability Derivative Bounds for Random tanh Neural Networks on a Hypercube arXiv:2608.26526 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Train a wide tanh network with a regularizer that constrains input Jacobians and sampled square-free mixed derivatives according to the theorem's depth scaling. First-order derivatives receive a depth-independent target, while an order-k mixed derivative is allowed to scale like k! L^(k-1), avoiding the exponentially conservative penalties implied by multiplying layer operator norms.
Formulas
Mathematical statement
The paper defines the Euclidean Lipschitz constant as Lip_2(f;D)=sup_{x != y}|f(x)-f(y)|/||x-y||_2 and uses Lip_2(f;D)<=sup_{x in D}||grad f(x)||_2 for convex D and continuously differentiable f. For a scalar-output tanh network R_{Phi^(L)} with input dimension n_0, depth L, Xavier Gaussian weights, and hidden width n satisfying n >= C[L^3 n_0^2(1+log n_0)+L^2(1+log(L/eta))], the paper gives, with probability at least 1-eta, |D^u R_{Phi^(L)}(x)| <= C_0 |u|! (C_1 L)^(|u|-1) product_{j in u} beta_j(eta,n_0), simultaneously for x in [0,1]^(n_0) and every nonempty coordinate subset u of [n_0]. Here D^u is the mixed derivative over distinct coordinates in u, |u| is its order, eta is the failure probability, beta_j is the coordinate-dependent confidence factor, and C,C_0,C_1 are constants. Since the supplied extraction does not specify beta_j or numerical values for C_0,C_1, the implementation treats their product as tunable scales tau_k and preserves the theorem's factorial and polynomial-in-L dependence.
Implementation notes
(1) Integration point: add the displayed derivative loss to the training objective of a wide scalar-output tanh MLP, evaluated with respect to the input tensor x. Use Xavier Gaussian initialization for every affine layer. For vector outputs, either sum over output coordinates or apply the penalty to randomly selected coordinates. Keep the task loss unchanged and use the derivative penalty only during training.
(2) Pseudocode:
for x, y in minibatch:
pred = f_theta(x)
loss = task_loss(pred, y)
g = grad_x(f_theta(x), x) # first order
reg = mean(norm(g, dim=-1)**2 / tau1**2)
for k in K: # e.g. K={2}
for u in random_coordinate_subsets(k):
d_u = mixed_derivative(f_theta(x), x, u)
target = tau_k * factorial(k) * (L + eps)**(k-1)
reg += mean(d_u**2 / target**2) / number_of_subsets
(loss + lambda * reg).backward()
optimizer.step()
Use forward-mode JVPs for sampled mixed derivatives when input dimension is moderate; use nested reverse-mode autodiff otherwise. The formula's factor k!(L+eps)^(k-1) is the adapted version of the theorem's C_0|u|!(C_1L)^(|u|-1) bound.
(3) Computed from the mathematics: the width scaling L^3 n_0^2 and the factorial/polynomial depth dependence. Estimated empirically: tau_1 and tau_k, because the extracted theorem does not provide numerical C_0, C_1, or beta_j. Initialize tau values from the 90th percentile of derivative magnitudes on a few untrained minibatches, then optionally update them with an exponential moving average. Estimate the Lipschitz proxy by the maximum observed ||grad_x f|| on validation samples.
(4) First experiment: use a depth-8, width-512 tanh MLP on a 20-dimensional smooth synthetic regression problem with a known target. Compare Xavier initialization with no penalty against the same network with k=1 and k=2 penalties. Repeat for depths 4, 8, and 16. Measure validation MSE, maximum sampled Jacobian norm, sampled mixed-derivative magnitudes, robustness to projected-gradient input perturbations, and wall-clock training cost. Success is derivative growth that remains approximately depth-independent for k=1 and polynomial rather than exponential for k=2, with improved perturbation robustness and less than 20% training overhead.
Verification
This idea has not been verified yet.
Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.
Artifacts
Artifacts unavailable.