r/learnmachinelearning • u/No_Maybe_5176 • 7d ago
MNIST first steps 99.12% recognition
Hello everyone I'm interested in learning neural networks. I tried to train a 4-layer perceptron on the MNIST dataset. Got a 99.12% recognition result. I would like to know if this is a good result and if my network 784-1200-1200-1200-10 is too big for such a model. All thanks for the answers or feedback
6
Upvotes
9
u/ModularMind8 7d ago
Mnist is a very simple dataset. Try cifar10 or cifar100 if you want to test if your model is good
4
u/Electrical_Ninja3805 7d ago
Solid result for an MLP, but on MNIST 0.1-0.3% is basically noise. Rough reference points: a plain well-tuned MLP lands ~98.5-98.9%, one with dropout/augmentation gets ~99.0-99.4%, and the best MLP result I know is ~99.65% (Ciresan et al. 2010, huge MLP + elastic distortions). CNNs sit at 99.5-99.8%. A few test labels are honestly ambiguous, so 100% isn't a real target.
If you want to know whether your approach actually adds something:
- Run 3-5 seeds and report mean ± std. Seed-to-seed spread on MNIST is about ±0.1%, so a single run can't show a difference that small.
- Train a plain baseline with the same size, epochs and optimizer, with normal 0-1 input scaling. If your 500-5000 range is the new idea, the only difference between the two runs should be that idea.
- Check the train/test gap. 784-1200-1200-1200-10 is ~3.8M params, which is large for MNIST. A big gap means it's memorizing.
- Then try Fashion-MNIST or CIFAR-10. MNIST is too easy to separate methods, and the gaps show up on harder data.
If it beats the matched baseline across seeds on a harder dataset, that's interesting.
2
u/mystical-wizard 7d ago
Practical / Competition Models: Standard well-tuned CNNs in Keras or PyTorch typically achieve **99.2%–99.7%**test accuracy, and compact CNNs with under 10,000 parameters can still reach 99.5%+.