3 Random Seeds, Model Stability, and the Complexity-Parsimony Trade-off
3.1 Introduction: the lines you would draw
Shown a scatterplot with a clear class boundary, most people picture the few straight lines that would separate it. This chapter asks whether a neural network trained on the same data finds those lines.
Two facts rarely reach the people who fit these networks. A much smaller network would often do the same job, and the random seed largely decides whether training finds it.
3.2 What parsimony means for a neural network
A parsimonious model uses no more parameters than the structure of the data requires. In statistics this is routine, but deep learning practice usually sets it aside in favour of width.
Each ReLU node contributes one hinge, so for a piecewise-linear boundary the number of nodes needed can be read directly from the picture.
3.3 Reading the architecture from the data
If the structure of the data can be seen, the analyst can draw the network it needs: one node for each visible segment of the boundary.
sillysplines generates data from a boundary with a known number of pieces. That makes it a test case where the parsimonious answer is known in advance.
3.4 The expected network, built by hand
Placing each hinge at a knot of the spline gives a minimal network that reproduces the boundary exactly. So the parsimonious solution exists and can be reached.
3.5 The learned networks, seed by seed
When the same architecture is trained from different random seeds, it rarely lands on the hand-built solution. Each seed settles on its own partial version of the boundary.
Test accuracy hides this. Networks with clearly different boundaries can have almost the same score.
3.6 Where expectation and optimisation diverge
Training puts hinges where a person would not and leaves out segments a person would draw first. The gap is systematic, not random noise.
Adding width raises the chance that some seed recovers the whole boundary, but the extra nodes contribute little to the final fit.
3.7 The seed is a modelling choice
Two runs that differ only in their seed can learn different boundaries. Reporting a single seed therefore reports one draw from a distribution of fits, not the model.
3.8 Balancing parsimony and accuracy: recommendations
The analyst’s mental picture of the data provides a parsimony target that the network can be checked against.
- Plot the data’s structure before choosing a width.
- Train across many seeds and report the spread.
- Compare each learned boundary with the expected one.
- Prune back to the nodes that actually carry the boundary.
3.9 Conclusion
Width and lucky seeds can stand in for understanding the data, but when the structure is visible the analyst can do better by looking first.