Research
Neuron Block Dynamics for XOR Classification with Zero-Margin
Overview Research area: Deep learning theory, specifically the analysis of stochastic gradient descent (SGD) training dynamics for neural network classification (stat.ML). Technical level: Advanced. T

- arXiv
- 2602.00172
- Published
- 2026-01-30
- Authors
- Guillaume Braun, Masaaki Imaizumi
AI summary
Overview
Research area: Deep learning theory, specifically the analysis of stochastic gradient descent (SGD) training dynamics for neural network classification (stat.ML).
Technical level: Advanced. The paper is a theoretical proof paper with supporting simulations; it relies on concentration inequalities, mean-field-style block arguments, and asymptotic notation.
Scope in one sentence: The paper proves that a two-layer ReLU network trained by vanilla SGD can learn the Gaussian XOR classification problem in a zero-margin regime, by tracking aggregates of neurons ("blocks") rather than individual neurons.
What This Paper Is About
Most theoretical work on neural network classification assumes the classes are separated by a positive margin, so worst-case gradient bounds are enough to explain learning. This paper studies the opposite regime: a Gaussian XOR problem where the input x ~ N(0, I_d) is continuous and unbounded and the label is y = f*(x) = -sgn(x_1 x_2), so a non-negligible fraction of data sits arbitrarily close to the decision boundary. The goal is to explain, and prove, how SGD still learns useful features and generalizes when no margin exists.
Key Contributions
-
Block dynamics. The authors show that neurons rapidly self-organize into four coherent blocks aligned with the directions
±μ_1and±μ_2(whereμ_1 = (1,-1)^T/√2andμ_2 = (1,1)^T/√2), and use a mean-field-style argument to show block masses remain comparable. This gives a low-dimensional description of the network instead of a per-neuron one. -
Average-case analysis without margins. Because a positive fraction of samples lie arbitrarily close to the boundary, the authors introduce an average margin statistic
g_μ^(t) = E_z[ℓ'_{ρ^(t),id}(z) σ(μ^T z)]and prove that it governs classifier accuracy, replacing worst-case margin arguments. -
A convergence theorem for Gaussian XOR (Theorem 1). With
θ = (log d)^{-C}, mini-batch sizeV ≥ d/θ, step sizeη ≍ θ, and width polynomial ind, there exists with high probability a stopping timeT ≍ (log d)^{C+1}such thatE_x[ℓ_{ρ^(T)}(x)] = O(1/√(log log d)). Remark 1 states the sample complexity isO(d polylog(d)), near-optimal up to logarithmic factors and consistent with CSQ lower bounds. Corollary 1 adds a classification guarantee: inputsx = z + ξwhose planar projectionzlies outside the near-boundary setC_εare classified correctly with probability at least1 - exp(-C(log d)^c). -
Numerical experiments. Simulations confirm the predicted two-phase block dynamics and test robustness beyond the Gaussian assumption.
Main Findings
-
Two-phase dynamics. Phase I is characterized by near-independent neuron growth under a linearized (correlation-loss) approximation; Phase Ia shows homogeneous multiplicative signal growth at rate
(1 + η√2/π^{3/2}(1+o(1))), while Phase Ib shows heterogeneous growth. Phase II is a block-level regime where neuron interactions matter and the signal component dominates. -
Four balanced blocks. Neurons group into four blocks
N_1^±,N_2^±based on the sign ofaand the initial correlation withμ_1,μ_2. The unbalance levelU^(t) ≤ log^{-c_U} d, wherec_U > 0can be made arbitrarily large by increasing batch size (Lemma 3). The proof uses a surrogate sequence and a rotation symmetry argument. -
Average margin drives block growth. The average margin satisfies
c_1(1 ∧ (N^(t))^{-3}) ≤ g_μ^(t) ≤ c_2(1 ∧ (N^(t))^{-3})(Lemma 5), and block mass grows multiplicatively asN^(t+1) = (1 + 2η g_μ^(t))(1+o(1)) N^(t)(Lemma 6). -
Slower convergence than Boolean XOR. The rate
√(log log d)^{-1}is explicitly described as slower than the Boolean-input setting of Glasgow (2024), because in the Gaussian case the expected loss is dominated by points arbitrarily close to the decision boundary (Remark 2). -
Errors localize near the boundary. The near-boundary region is shown to have probability mass
O((log log d)^{-1/2}); outside it, the idealized block model outputs the correct sign with high confidence. Figure 5 in the experiments shows misclassifications only for points extremely close to the boundary. -
Elementary sensitivity results. Replacing Gaussian inputs with uniform or other symmetric inputs still trains successfully as long as the distribution is symmetric with respect to
±μ_1, ±μ_2. Flipping only5%of labels degrades test performance significantly while biasing the boundary only slightly along the axes. Anisotropic covariance still learns a boundary but weight evolution becomes disordered. For a highly nonlinear (sinusoidal) boundary, the network learns only a linear approximation and training plateaus quickly. -
Experimental setup. The simulation uses
d = 600,m = 400,M = 82000, andθ = η = 0.01, visualized atT = 8000,12000, and30000iterations, keeping only neurons with||w_sig^(0)|| ≥ 2θ log d/√d. The residual massR = Σ|a| ||w_⊥||stays small.
Methodology in Plain English
The authors pick the simplest problem that has all the hard ingredients — nonlinear boundary, feature learning required, and no gap between classes — and analyze it exactly. Instead of tracking every neuron, they:
- Linearize the logistic loss when outputs are small, so neurons evolve almost independently, and prove each neuron's signal component grows multiplicatively while the off-signal components stay bounded.
- Once signals are large enough, group neurons into four blocks aligned with the XOR directions and show the blocks stay nearly balanced in mass, using a surrogate process and a rotational symmetry that makes block laws identical.
- Replace the true gradient with an "oracle" approximation based on the dominant signal direction and perfectly balanced blocks, which makes the average margin computable, and derive a multiplicative growth law for block mass.
- Translate block mass growth into a bound on the expected loss and on misclassification probability away from the boundary, separating the unavoidable near-boundary errors from the learnable region.
They then run numerical simulations to see whether the predicted two-phase, four-block behavior actually appears, and to test variants the theory does not cover (uniform inputs, label noise, anisotropy, nonlinear boundaries).
Why This Matters
Impact on research. It extends the analysis of XOR/parity learning from the discrete Boolean setting with a positive margin to the continuous, unbounded, zero-margin Gaussian setting, where the standard margin-based toolbox fails. It offers "block dynamics" as a reusable analytical lens: even when individual neurons behave heterogeneously, coherent group-level structure can carry the learning signal, and average-case rather than worst-case reasoning can explain generalization.
Real-world applications.
- Digit and character recognition with overlapping classes, such as MNIST digits 4 versus 9, which the paper uses as a motivating example of heavy class overlap with no clean separation.
- Learning from noisy or mislabeled data, since the paper directly probes how label flipping (5% in experiments) affects learned decision boundaries.
- Sample-efficiency-sensitive settings, where knowing that
O(d polylog(d))samples suffice for this class of problem informs expectations about data budgets. - Problems with inherent ambiguity near class boundaries, such as medical or risk scoring tasks where some cases genuinely sit on the threshold and should be expected to be misclassified.
Industry relevance. Practitioners building classifiers on data with overlapping classes can take two messages: feature learning through plain SGD can still work without separability, but convergence is intrinsically slower and performance is sensitive to label noise and to boundaries that are much more nonlinear than XOR.
Future Directions
- Richer decision boundaries. The authors state their analysis is limited to the XOR boundary with isotropic Gaussian inputs; extending block dynamics to more general boundaries is named as a natural next step, and the sinusoidal experiment suggests plain SGD may only learn a linear approximation there.
- More general input distributions. The Gaussian assumption is chosen for tractability; the experiments hint that symmetry with respect to the four directions may be the real requirement, which would be worth formalizing.
- Robustness to label noise. The observed sensitivity to 5% flipped labels is not covered by the theory, so characterizing when block dynamics break down under noise is an open question.
- Anisotropic and non-isotropic covariance structure. Experiments show disordered weight evolution under anisotropy, leaving a gap between the theory and this more realistic setting.
Target Audience
Learning theorists and graduate students working on training dynamics, feature learning, and implicit bias of SGD; researchers interested in classification beyond separability and benign overfitting; and machine learning practitioners who want a rigorous account of why neural networks can still succeed when classes overlap and no margin exists.
Authors’ abstract
The ability of neural networks to learn useful features through stochastic gradient descent (SGD) is a cornerstone of their success. Most theoretical analyses focus on regression or on classification tasks with a positive margin, where worst-case gradient bounds suffice. In contrast, we study zero-margin nonlinear classification by analyzing the Gaussian XOR problem, where inputs are Gaussian and the XOR decision boundary determines labels. In this setting, a non-negligible fraction of data lies arbitrarily close to the boundary, breaking standard margin-based arguments. Building on Glasgow's (2024) analysis, we extend the study of training dynamics from discrete to Gaussian inputs and develop a framework for the dynamics of neuron blocks. We show that neurons cluster into four directions and that block-level signals evolve coherently, a phenomenon essential in the Gaussian setting where individual neuron signals vary significantly. Leveraging this block perspective, we analyze generalization without relying on margin assumptions, adopting an average-case view that distinguishes regions of reliable prediction from regions of persistent error. Numerical experiments confirm the predicted two-phase block dynamics and demonstrate their robustness beyond the Gaussian setting.