Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Random Erasing Data Augmentation

Random Erasing makes CNNs more robust to occlusion by erasing image patches

  • Problem CNNs trained on fully visible objects often fail on partly hidden ones. Collecting occluded training photos is costly and covers only a few occlusion levels.
  • Method Random Erasing randomly picks a rectangle in each training image and fills its pixels with random values. Unlike collecting occluded photos, it needs no extra data and no learned parameters.
  • Results Random Erasing lowers WRN-28-10 top-1 error on CIFAR-10 from 3.80 to 3.08 percent.

Why occlusion is a gap in training data

The starting point is generalization. A network with many parameters relative to its training set can fit noise in the data and then perform poorly on new inputs. Occlusion makes this worse in a specific way. If every training object is fully visible, the network can score well on clean test images yet fail on objects that are partly hidden.

Adding occluded photographs to the training set would close the gap, but such images are costly to gather, and the range of occlusion levels they cover is small.

Cropping, flipping, dropout and batch normalization already improve generalization, but none of them is aimed at partial occlusion as such. The study therefore asks whether a cheap, image-level operation that simulates occlusion can improve generalization without any learned component.

How an erasing region is sampled and filled

Each training image in a mini-batch first passes through a probability gate. A uniform value p1 is drawn from the interval 0 to 1, and if p1 is at least p the image is returned unchanged. Otherwise the image is erased, so p is the probability that a given training image is modified. The erasing probability is one of three hyper-parameters, together with the area ratio range and the aspect ratio range.

The rectangle size is set from an area S_e drawn between s_l and s_h times the image area S = W×H, and an aspect ratio r_e drawn between r1 and r2. The height and width then follow from these two draws: \[ H_e = \sqrt{S_e \times r_e}, \qquad W_e = \sqrt{\frac{S_e}{r_e}} \] The product of the two sides is S_e, and their ratio H_e/W_e is r_e.

A top-left corner (x_e, y_e) is sampled uniformly over the image. If the rectangle with these sides fits inside the image, it is accepted as the erasing region I_e; otherwise the corner and size are sampled again. Each pixel inside I_e is then set to a random value in [0, 255], so the fill is per pixel rather than one constant colour. The paper's Algorithm 1 gives the whole procedure in this order.

Where it differs from cropping, flipping and dropout

Random flipping and random cropping also act on the image and are the closest relatives. Flipping removes no information, whereas cropping can cut away the corners of an object. Random Erasing keeps the overall object structure and occludes only some parts of it. Its erased pixels are replaced by random values, which acts like block noise added to the image.

Dropout discards hidden and visible units with a probability p. Random Erasing can be read as dropout applied on the image, but it works on a continuous rectangle and discards no pixels. Its aim is robustness to noise and occlusion, not removing units from the network.

A-Fast-RCNN instead trains an adversary that produces occluded examples for object detection, and it blocks feature maps in feature space. Random Erasing works on the input image, needs no extra parameters to learn and adds very little computation.

Choosing the erasing region for each task

For image classification the training data does not give the object's location, so the erasing rectangle is sampled over the whole image using the procedure above. Person re-ID images are pedestrian crops in which people sit roughly in the same position. Because a pedestrian can be occluded anywhere in the crop, the method still samples over the whole image.

Object detection training provides bounding boxes, so the region can be chosen with respect to the objects. The paper defines three schemes. Image-aware Random Erasing (IRE) samples regions on the whole image, as in classification and re-ID. Object-aware Random Erasing (ORE) samples inside each object's bounding box, applying the operation to each object separately when several are present.

Image and object-aware Random Erasing (I+ORE) combines both, sampling regions on the whole image and inside each bounding box.

Image classification error across architectures

Experiments use CIFAR-10 and CIFAR-100, with 50,000 training and 10,000 testing 32×32 colour images, and Fashion-MNIST, with 60,000 training and 10,000 testing 28×28 gray-scale images. Models include ResNet, pre-activation ResNet, ResNeXt and WRN-28-10, trained with the default settings p = 0.5, sl = 0.02, sh = 0.4 and r1 = 1/r2 = 0.3. Each entry is the mean and standard deviation of top-1 error over 5 runs.

On CIFAR-10, the WRN-28-10 test error falls from 3.80 to 3.08 (%), and the authors describe 3.08% as a new state of the art. ResNet-110 falls from 5.10 to 4.61 (%).

Across the architectures in Table 1, the Random Erasing row has lower error than the baseline row for each dataset, so the reductions are not limited to one network.

Sensitivity to hyper-parameters and fill values

The sweep uses ResNet18 (pre-act) on CIFAR-10. The base setting is p = 0.5, sh = 0.4 and r1 = 0.3, with sl fixed at 0.02 and r1 = r2, and each parameter is varied while the other two are held. Across the sweep, Random Erasing stays below the baseline. For p and sh both in [0.2, 0.8], the average error is 4.48%, against 5.17% for the baseline.

Four fill strategies were compared on the same model: random values in [0, 255], the ImageNet mean pixel value [125, 122, 114], all zeros and all 255. Test error is 4.31 for random values, 4.35 for the ImageNet mean, 4.62 for zeros and 4.85 for 255, all below the 5.17 baseline. Random values and the ImageNet mean are close, while zero and 255 fills are worse.

The random-value fill is the default for the rest of the classification experiments.

Dropout, noise and combination with other augmentations

The comparison uses ResNet18 (pre-act) on CIFAR-10. Image-layer dropout is applied with probability λ1, and random noise changes pixels to random values in [0, 255] with probability λ2, with both methods used on half of the images, as Random Erasing is. For dropout, error goes from 5.37 to 6.38 as λ1 rises from 0.001 to 0.1. For random noise, error goes from 5.38 to 6.52 as λ2 rises from 0.01 to 0.4.

Both stay above the 5.17 baseline in these settings.

Table 4 compares random flipping (RF), random cropping (RC) and Random Erasing (RE) on the same model. Random cropping alone reaches 6.33 (%), which is the lowest single method reported. Combining flipping, cropping and Random Erasing reaches 4.31% error. The paper describes this as a 7% improvement over the baseline without augmentation, whose error is 11.31 (%).

The authors describe Random Erasing as complementary to flipping and cropping, not a substitute for them.

Robustness to added occlusion

At test time, a rectangular region of a chosen area is filled with random values, and its aspect ratio is drawn from [0.3, 3.33]. The occlusion level l runs from 0 to 0.5 in the reported plot. The model is ResNet18 (pre-act) on CIFAR-10. The baseline error rises quickly as the occluded area grows, while the Random Erasing model's error rises more slowly.

At occlusion level l = 0.5, the Random Erasing model has 56.36% error and the baseline reaches 75.04%. The authors read this as evidence that Random Erasing improves robustness to occlusion.

Object detection gains on VOC 2007

Fast-RCNN with VGG16 starts from ImageNet classification weights and is fine-tuned on the detection data with SGD for 80K iterations, with the learning rate set to 0.001 and reduced to 0.0001 after 60K iterations. Random Erasing uses p = 0.5, sl = 0.02, sh = 0.2 and r1 = 1/r2 = 0.3, and training uses selective search proposals.

Trained on VOC07 trainval, the baseline reaches 69.1% mAP. IRE raises it to 70.5%, ORE to 71.0% and I+ORE to 71.5%. ORE is slightly better than IRE, and I+ORE gives the highest value. The paper reports that I+ORE outperforms A-Fast-RCNN by 0.5% in mAP, and it notes that Random Erasing needs no parameter learning.

I+ORE reaches 76.2% mAP, which is 1.4% above the baseline.

Person re-ID gains on Market-1501, DukeMTMC-reID and CUHK03

IDE, TriNet and SVDNet are the baselines, with IDE and SVDNet trained with the Softmax loss and TriNet with the triplet loss. Inputs are resized to 256×128, and Random Erasing uses p = 0.5, sl = 0.02, sh = 0.2 and r1 = 1/r2 = 0.3. Performance is measured by rank-1 accuracy and mAP, and the ResNet-18, ResNet-34 and ResNet-50 backbones are used for IDE and TriNet, with ResNet-50 for SVDNet.

On Market-1501, IDE with ResNet-50 rises from 83.14 to 85.24 rank-1, and SVDNet reaches 87.08 with Random Erasing, against 84.41 without it. On DukeMTMC-reID, rank-1 for IDE with ResNet-50 goes from 71.99 to 74.24, and for SVDNet from 76.82 to 79.31.

On CUHK03 under the labeled setting, TriNet with ResNet-50 rises from 49.86 to 58.14 rank-1, and under the detected setting from 50.50 to 55.50. The authors attribute the CUHK03 gain to over-fitting, since data is scarce there. With Random Erasing, IDE with ResNet-50 (38.50) outperforms IDE with ResNet-34 (36.36) on the detected subset, where it does not without it.

With re-ranking added, the paper reports 89.13% rank-1 on Market-1501, 84.02% on DukeMTMC-reID and 64.43% on CUHK03 detected. These numbers combine Random Erasing with re-ranking and are not the augmentation's effect alone.

Limits of the tested settings

The hyper-parameter sweep fixes sl at 0.02 and ties r1 to r2, so the area lower bound and the aspect ratio bounds are not varied independently. The dropout and noise comparison, the fill study and the occlusion test all use ResNet18 (pre-act) on CIFAR-10. Object detection uses only Fast-RCNN with VGG16 on VOC 2007, and the detection tables report mAP values without standard deviations.

The paper leaves image retrieval and face recognition as future work.

Paper info

Authors
Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, Yi Yang
Venue
arXiv · Preprint
First published
2017-8-16
Added
2026-11-12
Updated
2017-11-16
Version
v2
arXiv
1708.04896
Category
cs.CV
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

Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, Yi Yang (2017). Random Erasing Data Augmentation. arXiv:1708.04896v2. https://arxiv.org/abs/1708.04896v2

BibTeX
@misc{zhong2017random,
  title = {{Random Erasing Data Augmentation}},
  author = {Zhun Zhong and Liang Zheng and Guoliang Kang and Shaozi Li and Yi Yang},
  year = {2017},
  eprint = {1708.04896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.04896v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up