Do Larger Fully Connected Neural Networks Generalize Better?
Organizations: School of Computing, University of Nebraska–Lincoln, Lincoln, NE, USA · Agronomy and Horticulture, University of Nebraska–Lincoln, Lincoln, NE, USA · Biological System Engineering, University of Nebraska–Lincoln, Lincoln, NE, USA
Abstract
Greater neural-network capacity does not necessarily yield better performance on unseen data. This study investigates whether a deeper, fully connected neural-network architecture generalizes better than a shallower architecture on the Fashion-MNIST dataset. We compare two architectures under two learning rates and two L2-regularization settings, producing eight configurations. The architectures contain 95,410 and 561,470 trainable parameters, respectively, an approximately 5.9-fold difference. Checkpoints and the final configuration are selected by validation loss, and all configurations are evaluated on a held-out test set. The selected larger configuration achieves 89.82% validation accuracy and 88.77% test accuracy. Selecting the lowest-validation-loss configuration within each architecture yields test accuracies of 88.77% and 88.52%, respectively, a difference of 0.25 percentage points. Across matched training settings, the larger architecture achieves higher test accuracy in only one of four comparisons. Class-level errors are concentrated among visually similar garment categories, and qualitative pixel-removal analyses suggest sensitivity to shape and boundaries. Overall, the findings suggest that increasing architectural capacity alone does not guarantee better generalization, highlighting the importance of considering optimization and regularization when selecting neural-network architectures.
Figures & tables
| Property | Basic | Extended |
|---|---|---|
| Input dimensions | 784 | 784 |
| Hidden layers | 1 | 3 |
| Hidden units | 120 | 500, 300, 60 |
| Hidden activation | ReLU | ReLU |
| Output units | 10 | 10 |
| Output activation | Softmax | Softmax |
| Model | Epochs | Regularization | Learning Rate | Val. CE loss | Val. acc. (%) | Test CE loss | Test acc. (%) | Error CI (%) |
|---|---|---|---|---|---|---|---|---|
| Basic-1 | 14 | 0.0 | 0.001 | 0.2995 | 89.35 | 0.3409 | 88.22 | [11.16, 12.43] |
| Basic-2 | 20 | 0.0001 | 0.001 | 0.2975 | 89.47 | 0.3323 | 88.06 | [11.32, 12.59] |
| Basic-3 | 15 | 0.0 | 0.0005 | 0.3077 | 88.87 | 0.3408 | 87.68 | [11.69, 12.98] |
| Basic-4 † | 21 | 0.0001 | 0.0005 | 0.2923 | 89.42 | 0.3300 | 88.52 | [10.87, 12.12] |
| Extended-1 | 8 | 0.0 | 0.001 | 0.3006 | 88.65 | 0.3531 | 87.56 | [11.81, 13.10] |
| Extended-2 | 9 | 0.0001 | 0.001 | 0.2992 | 88.78 | 0.3435 | 87.63 | [11.74, 13.03] |
Neural Network Generalization
Neural network generalization studies why trained models perform well on unseen data and how architecture, data, and training shape that ability.
See all 329 papers