[Paper Review] Assessing four Neural Networks on Handwritten Digit Recognition Dataset (MNIST)
This paper evaluates four neural network architectures—CNN, ResNet, DenseNet, and a CapsNet-enhanced CNN—on the MNIST handwritten digit dataset across multiple data splits (25%, 50%, 75%, 100%). The proposed CapsNet-based model achieves the highest accuracy of 99.75% on the full dataset and demonstrates superior generalization, outperforming all baselines even with only 25% of the training data, highlighting its data efficiency and robustness in image recognition tasks.
Although the image recognition has been a research topic for many years, many researchers still have a keen interest in it[1]. In some papers[2][3][4], however, there is a tendency to compare models only on one or two datasets, either because of time restraints or because the model is tailored to a specific task. Accordingly, it is hard to understand how well a certain model generalizes across image recognition field[6]. In this paper, we compare four neural networks on MNIST dataset[5] with different division. Among them, three are Convolutional Neural Networks (CNN)[7], Deep Residual Network (ResNet)[2] and Dense Convolutional Network (DenseNet)[3] respectively, and the other is our improvement on CNN baseline through introducing Capsule Network (CapsNet)[1] to image recognition area. We show that the previous models despite do a quite good job in this area, our retrofitting can be applied to get a better performance. The result obtained by CapsNet is an accuracy rate of 99.75\%, and it is the best result published so far. Another inspiring result is that CapsNet only needs a small amount of data to get excellent performance. Finally, we will apply CapsNet's ability to generalize in other image recognition field in the future.
Motivation & Objective
- To evaluate the generalization performance of four neural network models—CNN, ResNet, DenseNet, and a CapsNet-enhanced CNN—across multiple data splits of the MNIST dataset.
- To investigate whether CapsNet, a novel architecture emphasizing spatial relationships and dynamic routing, can outperform standard CNNs and other deep learning models on image recognition tasks.
- To assess the data efficiency of CapsNet by testing its performance on reduced training sets (25%, 50%, 75%, 100%) compared to full data.
- To determine whether CapsNet’s architectural innovations lead to better generalization and robustness in image recognition, especially under low-data regimes.
Proposed method
- The authors trained and evaluated four models: standard CNN, ResNet, DenseNet, and a modified CNN incorporating CapsNet for improved feature representation.
- The MNIST dataset was divided into 25%, 50%, 75%, and 100% training subsets to assess model performance across varying data availability.
- CapsNet employs dynamic routing between capsules, where routing weights are updated based on agreement between predictions and actual outputs, using a squashing activation function to preserve vector magnitude.
- The CapsNet architecture includes a convolutional layer (256 filters, 9×9, stride 1), a PrimaryCaps layer (32 capsules, each with 8×9×9×256 kernels, stride 2), and a DigitCaps layer (10 capsules, one per digit class).
- The squashing activation function is applied to capsule outputs: $ v_j = \frac{||s_j||^2}{1+||s_j||^2} \cdot \frac{s_j}{||s_j||} $, ensuring that activity vectors represent attention and spatial relationships.
- Performance was measured via classification accuracy on the test set for each data split, with results compared across models.
Experimental results
Research questions
- RQ1Does CapsNet achieve higher accuracy than standard CNN, ResNet, and DenseNet on the MNIST dataset across all data splits?
- RQ2How does CapsNet’s performance compare to baseline models when trained on only 25% of the MNIST training data?
- RQ3To what extent does CapsNet’s architectural design enable better generalization and robustness in image recognition tasks?
- RQ4Can CapsNet maintain high performance with significantly less training data compared to traditional CNNs?
Key findings
- CapsNet achieved the highest test accuracy of 99.75% on the full MNIST dataset, outperforming CNN (98.32%), ResNet (99.16%), and DenseNet (99.37%).
- On the 25% data split, CapsNet achieved 87.68% accuracy, surpassing the full-data CNN baseline (80.73%) and demonstrating strong data efficiency.
- CapsNet consistently outperformed all other models across all data splits, indicating superior generalization capability.
- With only 50% of the training data, CapsNet reached 97.12% accuracy, approaching the full-data performance of standard CNNs.
- The results suggest that CapsNet’s dynamic routing and vector-based representation reduce information loss and improve robustness to input variations.
- CapsNet’s performance on small data sets indicates its potential for low-data machine learning applications in image recognition.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.