2024 · DL · GitHub

CNN architectures on CIFAR-10

Which convolutional network works best on small, low-resolution images, and how much do tuning and augmentation help?

Dataset
CIFAR-10: 60,000 images, 32 × 32 pixels, 10 classes
Models
ResNet-18, MobileNet, EfficientNet
Training
CrossEntropyLoss, SGD with momentum, 10 epochs, 80/20 train-validation split
When
2024
72.2%best validation accuracy, with moderate augmentation
69.35%best tuned ResNet-18 validation accuracy
55.03%final test accuracy

The goals

  1. Compare architectures

    Evaluate how well each network extracts features from CIFAR-10.

  2. Tune hyperparameters

    Find the best learning rate and weight decay for the strongest model.

  3. Augment the data

    Test how much more varied training images improve robustness.

Experiment 1: architectures

All three models trained for 10 epochs. ResNet-18's residual connections gave the most stable training. MobileNet was efficient but limited, and EfficientNet-B0 underperformed on this dataset.

ModelTraining accuracyValidation accuracy
ResNet-1892.36%68.59%
MobileNet66.02%59.45%
EfficientNet35.93%39.27%

Experiment 2: tuning ResNet-18

A learning rate of 0.01 with weight decay of 1e-4 gave the best balance between accuracy and overfitting.

Learning rateWeight decayValidation accuracy
0.01067.65%
0.011e-469.35%
0.001059.47%
0.0011e-457.55%

Experiment 3: augmentation

Moderate augmentation added variety without making the task too hard, and scored highest.

AugmentationValidation accuracy
Basic68.00%
Moderate (horizontal flips)72.20%
Aggressive68.58%

Result

The optimised ResNet-18 reached a test accuracy of 55.03%. It recalled distinctive classes such as automobile and ship well, but struggled to separate visually similar classes such as cat and dog.

Next steps would be deeper networks like ResNet-34, ensembles, and stronger augmentation such as cutout and mixup.

Where this sits in the story