TL;DR
By proving an exact bijection between depth-2 discrete fully connected networks and Disjunctive Normal Form (DNF) Boolean logic formulas, this paper provides an analytically solvable "Ising model" for deep learning generalization. This framework allows researchers to mathematically trace how network initialization creates an innate "simplicity bias," how $L_1$ weight decay acts directly as a complexity penalty in the Bayesian posterior, and why inherently complex functions (like high-order parity) remain unlearnable even with more training data.
What Problem Does This Paper Address?
Modern deep neural networks generalize surprisingly well even when they have vastly more parameters than data points. Existing explanations are typically incomplete:
- Kernel/NTK theories linearize training in the infinite-width limit, explaining spectral bias but ignoring feature learning (since representations remain static).
- Mean-field theories capture feature evolution, but only under specific assumptions or for simple linear setups.
- Mechanistic interpretability reverse-engineers learned circuits (like induction heads) after training, but rarely explains why or how those features arose from architectural priors and optimization dynamics.
The fundamental challenge is the lack of a tractable, end-to-end toy model where architecture, initialization, feature learning, and generalization can be examined analytically from first principles.
Methods
The paper builds an exactly solvable framework using Depth-2 Discrete Fully Connected Networks (DFCNs):
- DFCN–DNF Bijection: The authors construct a 2-layer network with ternary first-layer weights ($W^{(1)}_{ij} \in \{-1, 0, 1\}$), ReLU activations, and structurally dependent biases. Each hidden unit corresponds exactly to an AND clause, while the output layer computes an OR (with an optional global negation $\beta$). Thus, every parameter configuration corresponds bijectively to a DNF formula.
- Function-Level Complexity Metric $K(f)$: The network's weight norm $\|W^{(1)}\|_1$ is shown to equal the literal count of the corresponding DNF. Minimizing this norm yields the DNF complexity $K(f)$, directly connecting geometric parameter norms to a symbolic complexity measure.
- Training Algorithms: Since weights are discrete, the network cannot be trained with ordinary gradient descent. The authors investigate:
- Metropolis–Hastings MCMC (Algorithm 1): Explores parameter space under an energy function combining MSE loss ($\kappa \Delta \mathcal{L}$) and weight decay ($\lambda \Delta \|\theta\|_1$).
- Min-Norm Oracle (Algorithm 2): Uses the Quine–McCluskey-style
SOPformlogic engine to find the exact minimum-complexity DNF consistent with the data. - Greedy SGD-like Descent (Algorithm 3): Performs 1-hop discrete neighborhood search to maximize batch accuracy, with a probability $p$ of breaking ties by minimizing $L_1$ norm (emulating weight decay).
Datasets
The authors study synthetic Boolean functions on the hypercube $\{0, 1\}^n$ ($n \in \{3, 4, 5, 7\}$) drawn across three canonical families:
- Constant functions: Outputs identical labels for all inputs ($K(f) = 0$).
- $t$-entropy functions: Functions outputting $1$ on exactly $t$ inputs and $0$ on the remaining $2^n - t$.
- $k$-parity: The sum modulo 2 of a subset of $k$ bits ($f(x) = \bigoplus_{i \in S} x_i$). Parity has high complexity ($K(f) = k 2^{k-1}$) and serves as the hardest target.
- $k$-sparse & repeating patterns (Appendix): Functions depending on only $k$ inputs or generated by repeated string tiles (lengths $l \in \{2, 4, 5, 8, 13, 16, 32\}$).
For generalization tests, $n=7$ was used ($2^7 = 128$ total points), training on subsets of size $m \in \{16, 32, 64, 96\}$ and evaluating on the remaining $2^n - m$ points.
Key Insights and Ideas
- Inherent Simplicity Bias in Weight Space: Even before training, uniform sampling over weights does not produce a uniform prior over functions $P(f)$. Functions with low DNF complexity occupy exponentially larger volumes of parameter space. Constant functions dominate ($P \sim 1 - 2^{-O(\alpha_w (4/3)^n)}$), whereas $k$-parity has vanishingly small prior probability ($P \sim 2^{-\Theta(\alpha_w k 2^{n-1})}$).
-
Weight Decay as an Explicit Prior Sharpener: In the Bayesian posterior, $L_1$ regularization translates directly into a multiplicative factor: $$P_\lambda(f \mid S) \propto e^{-\lambda K(f)} P_{\lambda=0}(f \mid S)$$ Weight decay actively penalizes high-complexity interpolants, forcing the model to converge on the minimal DNF representation (the optimal features).
-
The "More Data Harms Generalization" Parity Paradox: For high-order parity (e.g., 7-parity on $n=7$), the model is so strongly biased against complex representations that as training set size $m$ grows, test accuracy drops (falling well below 50% chance level). When given partial observations, the minimum-norm solution fits lower-order parities that disagree systematically with unseen test points.
Key Results
- Empirical Sampling Matches Theory ($n=4$): In $10^8$ Monte Carlo draws over 65,536 functions, 631 were never observed. Parity had an empirical prior probability of $P \approx 2 \times 10^{-11}$, exactly matching the theoretical bounds and explaining its extreme rarity.
- Optimal Feature Discovery: On 4-parity, training without weight decay ($\lambda = 0$) reached zero training error but sub-optimal test accuracy. Introducing weight decay ($\lambda = 0.01$) drove test accuracy to 100%, with the weight matrix $W^{(1)}$ converging precisely to the exact 8-clause minimal DNF.
- Sample Complexity vs. Complexity: For $k \le 4$, DFCNs quickly achieved high generalization, closely matching the Bayes-optimal Min-Norm Oracle. For $k \in \{6, 7\}$, the network never exceeded chance level regardless of sample size $m$.
- Optimal Width and Zipf's Law: The prior distribution adheres to Zipf's law ($P(f) \propto 1/R(f)$) only when width scaling satisfies $\alpha_w \sim n (3/4)^n$. At larger widths, the function space becomes overwhelmingly dominated by trivial constant functions.
Limitations and Future Work
- Discrete vs. Continuous Gap: Real-world networks operate on continuous inputs with gradient backpropagation; DFCNs use discrete ternary weights and combinatorial/MCMC updates.
- Scalability: Finding exact DNF minimizations or exhaustively checking discrete neighborhoods becomes computationally intractable for large $n$.
- Continuous Parity Difference: The authors note continuous networks handle large-$k$ parity somewhat better because their inductive bias toward simple functions is slightly less rigid than that of DFCNs.
- Future Work: Extending the framework to model optimizers like Adam, exploring grokking and neural collapse within the DNF-weight dynamics, and deriving analytical priors for continuous architectures.
Summary updated