ResNet-5MResearch
An image classifier for a deep learning class competition: recognize objects in tiny 32×32 photos using under 5 million parameters.

- 97.7%
- accuracy on the CIFAR-10 test set
- <5M
- parameters, about 20 MB
- 31
- models trained across 11 rounds
ResNet-5M is an image classifier Shubham Tanwar and I built for a class competition in NYU's deep learning course. The task: teach a model to recognize ten kinds of objects in tiny 32×32-pixel photos, using at most 5 million parameters, with no outside data and no pretrained models. Our best model gets 97.7% of the standard test images right, and 90.1% of the competition's hidden ones.
CIFAR-10 is one of the classic benchmarks in computer vision: 60,000 small photos of airplanes, cars, birds, cats, deer, dogs, frogs, horses, ships and trucks. At 32 by 32 pixels, a cat can be a dozen orange smudges.

The 5 million parameter cap is what makes it interesting. Modern image models often run to hundreds of millions of parameters, while this one fits in about 20 MB. So the question isn't how big a model you can build, but how much you can get out of a small one.
We ran the project as a series of experiments, each round asking one question and keeping what worked. The chart at the top shows every model we trained.
- The network's shape barely mattered. Five layouts, deeper or wider, all finished within half a percentage point of each other.
- Variety in training mattered more. Showing the model randomly cropped, recolored and blended versions of each photo added up to 0.75 points.
- Teachers helped most. We trained a group of models first, then trained the final one to match their combined answers instead of only the right label. This is called knowledge distillation, and ten teachers fed into our best model.
- More wasn't always better. Training for longer raised the CIFAR-10 score but lowered the competition score, and much bigger teachers didn't help either.
The most surprising number was the difference between the two test sets. From the very first round, every model scored about eight points lower on the competition's hidden photos than on CIFAR-10's own test set, which suggests the hidden images were collected or processed a little differently.
It was a useful lesson: a model can be excellent on the test it practices against and still stumble when the world looks slightly different. Several changes that helped on one set did nothing, or worse, on the other.
The network is a ResNet, a design where each layer adds to what came before instead of replacing it, so deep networks still train well. The training code refuses to start any model over the 5 million limit, and every round's settings, logs and model weights are published so each result can be reproduced.