Products-10K: A Large-scale Product Recognition Dataset
- Publication
- Publication venue not yet verified
- First submitted to arXiv
- arXiv:2008.10545
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{retailproductproducts10k2020,
title = {{Products-10K: A Large-scale Product Recognition Dataset}},
author = {Yalong Bai and Yuxiang Chen and Wei Yu and Linfang Wang and Wei Zhang},
year = {2020},
eprint = {2008.10545},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2008.10545}
}
On an e-commerce platform, the same product usually comes with two kinds of photos.
One kind is taken by the seller: white background, studio lighting, front view, centered, the product looking better than it does in real life. The other kind is taken by the buyer: on their own desk, bed or hand, in dim light, at whatever angle, and sometimes the photo is mostly of something else.
Chinese internet slang calls these the "seller's show" and the "buyer's show". A product recognition model has to recognize both. Train it on seller's shows and it learns the clean appearance; but when a user snaps a phone photo and uploads it to search, what arrives is a buyer's show.
This paper comes from JD AI Research and runs only four pages. Its main contribution is a dataset of ten thousand products frequently bought on JD.com, with both kinds of photos, every one of them checked by hand.
Problem Definition
The SKU (stock keeping unit) is the smallest unit a retailer uses to manage inventory. The 400 ml and 750 ml bottles of the same shampoo are two SKUs; the black and the navy versions of the same jacket are also two SKUs. Recognition down to the SKU level is, at heart, fine-grained classification.

There were already a few product recognition competitions at the time, and the authors list their limitations one by one. iMaterialist 2017 labeled attributes, not SKUs; 2018 covered only furniture; 2019 had two thousand-odd SKUs, but its training data was not labeled by humans. AliProducts at CVPR 2020 was large, but its training set had not been cleaned by hand either and was very noisy. Two other competitions covered fashion products only.
How bad is the noise? The authors estimate that about 44.5% of the buyer photos on JD.com have nothing to do with the SKU they are labeled with. Training on data like this makes a model perform noticeably worse.
The Dataset

Products-10K collects ten thousand frequently bought SKUs from JD.com, covering clothing, consumer electronics, food, health products and household goods. Every SKU has both shop photos and customer photos; in the figure above, each column is one SKU.
All the photos were checked by JD.com's team of product experts, each one by at least three people. The 44.5% of noisy customer photos mentioned above were filtered out, leaving the dataset as a whole with a noise rate below 0.5%. The relations between SKUs form a hierarchical graph, recording, for example, which brand and which category an SKU belongs to.
The paper gives a total of nearly 150,000 images; the dataset's later web page says nearly 190,000.

Every top-level category has a long-tailed distribution: a few popular SKUs have a hundred-odd photos, while most have only single digits. The authors say they kept this imbalance on purpose, to reflect what people actually buy.
The dataset is open for non-commercial research. JD.com also used it to run a Kaggle competition co-hosted with ICPR 2020, and the labels for the validation and test sets were later released.
A Few Training Tricks
Besides the dataset, the paper collects three tricks. The authors say these tricks were also used in the winning solutions of the AliProducts (CVPR 2020) and iMaterialist 2019 product recognition competitions.
Use Bigger Images
The usual ImageNet training recipe resizes images to 256×256 and takes random 224×224 crops. That resolution is enough to tell a cat from a dog, but two bottles of cooking oil may differ only in a few words on the label, which are simply unreadable at 224 pixels. The authors resize to 512×512 and crop 448×448 instead.
Fine-Tune on a Balanced Subset at the End
The data is long-tailed, so the model naturally leans towards popular SKUs. Rather than a complicated class-balanced loss, the authors first train on all the data, then randomly draw at most 5 photos from each SKU to form a balanced subset and fine-tune on it.
Optimize Accuracy Directly
The last trick is the more interesting one. A classification model is trained with cross-entropy but evaluated on top-1 accuracy, and the two do not always agree.
The authors run a small experiment to show this. On a three-class problem with 12 samples, they randomly generate 1,000 predictions for each sample and plot the cross-entropy and the accuracy of each prediction. At the same accuracy, cross-entropy can vary a lot; at the same cross-entropy, accuracy can also differ.
So they design an "accuracy loss":
is the one-hot vector of the correct answer and is the probability after softmax. is the probability the model assigns to the correct class, so this loss is simply the average of , that is, the expected error rate.
How does it differ from cross-entropy's ? Look at their gradients with respect to the correct class's logit. For cross-entropy it is ; for the accuracy loss it is .
- A sample the model has no confidence in at all, . The cross-entropy gradient is ; the accuracy loss gives only .
- A sample the model is undecided about, . The cross-entropy gradient is ; the accuracy loss gives .
Cross-entropy pushes hardest on the samples the model gets completely wrong; the accuracy loss pushes hardest on the samples sitting right in the middle, which a small nudge can turn from wrong to right. That is closer to what top-1 accuracy cares about.
The price is that it all but ignores the samples the model gets completely wrong, so training from scratch with it would be very slow. The authors therefore use it only for the final fine-tuning on the balanced subset, for 2 to 3 epochs.
Discussion
The experiments use an ImageNet-pretrained EfficientNet-B3 and measure top-1 accuracy on the Products-10K validation set, stacking the three tricks one after another:
| Setting | Top-1 (%) |
|---|---|
| EfficientNet-B3, 224×224 | 60.04 |
| Switch to 448×448 | 62.98 |
| + balanced subset fine-tune | 63.36 |
| + accuracy loss | 64.12 |
Source: Table 1 of the paper.
Resolution has the largest effect, adding 2.9 points; the other two tricks together add another 1.1 points. The paper says none of these tricks adds any inference cost. The last two do change only training; for the resolution change, if the test input is also 448×448, the computation is roughly four times that at 224×224, and the paper never states the test resolution. The "4.9%" and "1.8%" in the paper's text are relative improvements.
The most striking thing is really the starting point. With ten thousand classes and both kinds of photos mixed together, EfficientNet-B3 reaches a top-1 of only around sixty percent. RP2K from the same year has 2,388 classes, and ResNet-34 reaches 95% on it. Part of the gap comes from the number of classes, and part from the buyer's shows. All of RP2K's photos were taken in front of shelves inside stores; Products-10K asks a model to match a white-background product shot and a dim unboxing photo to the same SKU.
The experiments in this paper are thin. There is one model and one table; accuracy is not reported separately for shop photos and customer photos, and there is no comparison with other fine-grained methods. Each of the three tricks adds only a point or two, and nobody checks whether they carry over to other backbones. At four pages, the paper's main value is the dataset itself.
Conclusion
Products-10K is a hand-cleaned e-commerce product dataset of ten thousand SKUs, with shop photos and customer photos for each SKU and a noise rate below 0.5%. Compared with the competition data of the time, scraped from the web with noise easily reaching forty percent, it is a clean fine-grained benchmark.
The three tricks that come with the paper are a higher resolution, a final fine-tune on a balanced subset, and the expected error rate as the loss for the last few epochs of fine-tuning. Their evidence is a single table, but all of them are cheap, and on long-tailed product classification you can try any of them.
Judging by that 60% starting point, product recognition at the scale of ten thousand classes, with buyer's shows in the mix, still had plenty of room in 2020.