Skip to content

Do Larger Fully Connected Neural Networks Generalize Better?

Mohammad Jalili Torkamani, Suhib Hamid, Moaz N. Ishag

cs.LG

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.

Create a lesson