Dissecting a Small Artificial Neural Network
Xiguang Yang, Krish Arora, Michael Bachmann
TL;DR
The paper investigates how a minimal sigmoid XOR network learns and how its high-dimensional loss landscape governs backpropagation convergence. It uses cross-sectional analysis of a $9$-parameter space, examines convergence dynamics under nonrandomized and randomized batches, and introduces a microcanonical entropy $S(L)=k_B \ln g(L)$ estimated via Wang-Landau/multicanonical methods to characterize phase-transition–like learning behavior. Key findings include a three-phase convergence with a long-time decay $L(\tau)\sim \tau^{-\gamma}$ where $\gamma$ grows with the hidden size $n_h$, the existence of zero-loss states for $n_h\ge 2$, and entropic barriers that fade as networks scale, suggesting barrier-free learning in larger systems. The study connects learning dynamics to annealing and phase-transition concepts, showing that the microcanonical-entropy framework can guide training strategies and scaling to broader neural architectures.
Abstract
We investigate the loss landscape and backpropagation dynamics of convergence for the simplest possible artificial neural network representing the logical exclusive-OR (XOR) gate. Cross-sections of the loss landscape in the nine-dimensional parameter space are found to exhibit distinct features, which help understand why backpropagation efficiently achieves convergence toward zero loss, whereas values of weights and biases keep drifting. Differences in shapes of cross-sections obtained by nonrandomized and randomized batches are discussed. In reference to statistical physics we introduce the microcanonical entropy as a unique quantity that allows to characterize the phase behavior of the network. Learning in neural networks can thus be thought of as an annealing process that experiences the analogue of phase transitions known from thermodynamic systems. It also reveals how the loss landscape simplifies as more hidden neurons are added to the network, eliminating entropic barriers caused by finite-size effects.
