NN2: The S-Invariant Attractor: A Principled Criterion for Neural Network Convergence
收藏资源简介:
Neural network training stops when the validation loss plateaus—"early stopping." The threshold is arbitrary: if the loss hasn't improved in k epochs, stop. This can halt training before convergence is complete or continue long after overfitting has begun. The choice of k is a hyperparameter with no theoretical grounding. We propose a principled convergence criterion derived from the Canvas Model: training is complete when the weight matrix reaches its S-invariant attractor—the configuration where each degree of freedom is individually invariant under the symmetry operator \mathcal{S} that exchanges positive and negative primitives. What this paper provides: · A mathematical convergence criterion derived from first principles. For a weight matrix W, with \mathcal{S}[W] = -W^\top, the attractor is W = -W^\top: an antisymmetric matrix. Convergence is not "the loss stopped decreasing." Convergence is W_{\text{base}} \to 0, where W_{\text{base}} = \frac{1}{2}(W + W^\top) is the symmetric baseline.· A convergence measure C(W) = \|W_{\text{base}}\|_F / \|W\|_F. When C(W) = 1, the weight matrix is purely symmetric—completely baseline, no directional information. When C(W) = 0, the weight matrix is purely antisymmetric—fully directional, at the S-invariant attractor. Training is complete when C(W) < \epsilon for all layers. Based on our experiments, we recommend \epsilon = 0.01.· Theoretical grounding in the Steering dynamics. Systems evolve in meta-time \tau according to gradient flow on spectral energy. The spectral energy is a Lyapunov function; the system cannot stop evolving until it reaches S-invariance. Any configuration with C(W) > 0 has not converged—it is merely passing through.· Connection to the Riemann zeros and the cosmological constant. The same criterion determines whether the Riemann zeros have reached the critical line (\mathcal{S}[\rho] = \rho \Rightarrow \operatorname{Re}(\rho) = 1/2) and whether the cosmological constant has reached its observed value. The mathematics is the same in every case: gradient flow in meta-time, toward the S-invariant attractor.· Empirical validation on MNIST and CIFAR-10. On MNIST, the S-invariant criterion achieves 98.31% test accuracy (vs 98.24% for early stopping with patience=50) with dramatically lower variance across runs (\pm 0.04\% vs \pm 0.06\%). The stopping epoch under the S-invariant criterion (42) falls within the range where early stopping performs well, but without requiring the practitioner to guess this value in advance. The convergence measure correlates with validation loss at r = 0.84 on MNIST and r = 0.81 on CIFAR-10.· Diagnostic capabilities beyond early stopping. The measure provides early warning of overfitting (if C(W) stops decreasing while validation loss continues to improve, the network is memorizing), architecture diagnostics (if C(W) cannot decrease below a threshold for a particular layer, that layer lacks capacity), and layer-specific analysis (identifying which layers converge quickly and which struggle). Why this matters: The S-invariant attractor replaces an arbitrary heuristic with a physical law. Convergence is not when the loss stops decreasing—that is a symptom. Convergence is when the weight matrix becomes antisymmetric—that is the condition. The criterion is universal. It governed the Riemann zeros as they settled onto the critical line. It governs the cosmological constant as it drifts toward its observed value. It governs your neural network as it learns. The mathematics is the same in every case: gradient flow in meta-time, toward the S-invariant attractor, with the spectral energy as the Lyapunov function that guarantees arrival. Keywords: S-invariant attractor, neural network convergence, early stopping, symmetry operator, antisymmetric weight matrix, Canvas Model, Steering dynamics, Riemann zeros, cosmological constant, MNIST, CIFAR-10



