Paper commentary
Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
Fashion-MNIST swaps digits for clothing images to make a harder drop-in benchmark
- Problem MNIST is nearly solved, with trained models reaching accuracies above 99.7%, so it has little room left to rank methods. A harder benchmark was needed that keeps MNIST's easy format.
- Method Fashion-MNIST keeps MNIST's 28 × 28 format and swaps the digits for fashion product images. Zalando's product photos are cropped, shrunk, sharpened, padded and negated into grayscale images with one label each.
- Results Fashion-MNIST is harder than MNIST for scikit-learn classifiers. The best SVC score on it is 0.897, below MNIST's best.
Why MNIST no longer separates methods
MNIST remains the default testbed in deep learning, largely because its small size lets researchers prototype quickly. Common libraries and frameworks ship helper functions and examples built around MNIST, so most people reach for it first. The digits are now close to solved, since trained models reach accuracies above 99.7%. A benchmark at that level has little room left to rank methods.
The authors wanted a successor that keeps MNIST's accessibility, namely its small size, simple encoding and permissive license, while posing a harder classification task. Switching an existing MNIST pipeline over needs only a change of the URL the data is fetched from.
They also considered EMNIST, which adds uppercase and lowercase letters, but using it means extending the framework's MNIST helpers and changing the network to output the extra classes.
A product-image dataset in MNIST's format
The key idea is to keep MNIST's container and image size while replacing the digits with pictures of clothing, footwear and bags. The source images come from Zalando's catalogue, where every product has professional photographs showing several views.
White products are left out, because their low contrast against the light-gray background would make them hard to see. The original pictures are 762 × 1000 JPEG files, and the 51 × 73 thumbnails are the input that the conversion starts from.
How a thumbnail becomes a 28 × 28 image
The conversion runs in seven steps, and each step prepares the image for the next. The thumbnail is first converted to PNG, and then edges whose color matches the corner pixels are trimmed. Closeness is judged by a color distance of up to 5% of the full RGB intensity range.
Next, the longer side is shrunk to 28 pixels by dropping some rows and columns rather than computing new pixel values. A Gaussian sharpening step with radius and standard deviation of 1.0 follows, and its effect is strongest near outlines.
The shorter side is then extended to 28 pixels, and the image is placed at the center of the canvas. Finally the intensities are negated and the result is stored as 8-bit grayscale pixels.
Labels, split and file format
Each product's class comes from its silhouette code, which fashion experts label by hand and a separate team at Zalando reviews. A product carries only one silhouette code, so every image has exactly one label.
The training set takes 6, 000 randomly selected examples from each class, which gives 60, 000 training images. The test set has 10, 000 images.
The files follow the MNIST layout, and the labels are sorted by class, which makes the label files smaller after compression. Sorting also makes it easier to pull out one class, but it means that shuffling the examples is left to the algorithm developer.
Benchmark results against MNIST
The authors ran many scikit-learn classifiers on both datasets. Each algorithm was repeated 5 times with shuffled training data, and the mean test accuracy is the score.
This suggests that the extra difficulty shows up mainly for models that can capture more structure.
The authors also varied C for LinearSVC with the one-vs-rest scheme and L2 penalty. With the hinge loss, Fashion-MNIST accuracy fell from 0.836 at C=1 to 0.764 at C=10 and 0.758 at C=100. The squared hinge loss shows the same direction, dropping from 0.820 at C=1 to 0.779 and 0.776. So a larger C hurts this linear model on Fashion-MNIST across both losses.
Limits of the evidence
The benchmark covers scikit-learn classifiers only, and each score is a mean over 5 runs with no spread shown. The tables include an MLPClassifier with at most two hidden layers, but no convolutional network appears. The EMNIST comparison stays at the level of discussion, so Fashion-MNIST was not benchmarked against it. Whether the harder ranking holds beyond the listed configurations was not tested.
Paper info
- Authors
- Han Xiao, Kashif Rasul, Roland Vollgraf
- Venue
- arXiv · Preprint
- First published
- 2017-8-25
- Added
- 2026-11-11
- Updated
- 2017-9-15
- Version
- v2
- arXiv
- 1708.07747
- Category
- cs.LG · cs.CV · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Han Xiao, Kashif Rasul, Roland Vollgraf (2017). Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms. arXiv:1708.07747v2. https://arxiv.org/abs/1708.07747v2
BibTeX
@misc{xiao2017fashion,
title = {{Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms}},
author = {Han Xiao and Kashif Rasul and Roland Vollgraf},
year = {2017},
eprint = {1708.07747},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1708.07747v2}
}