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

U$^2$-Net: Going Deeper with Nested U-Structure for Salient Object Detection

U2-Net trains a deep nested network for salient object detection without pretraining

  • Problem Salient object detection networks usually borrow features from classification backbones pretrained on ImageNet. Those features favor semantic meaning over local detail, and shrinking maps early in the backbone costs accuracy on fine boundaries.
  • Method U2-Net stacks residual U-blocks (RSU) inside a two-level U-shaped encoder-decoder. Each RSU keeps a high-resolution path and runs an inner encoder-decoder at smaller scales, and the network is trained from scratch with deep supervision.
  • Results On DUT-OMRON the full U2-Net reaches maxFβ 0.823 and MAE 0.054, the best among the compared methods. The 4.7 MB U2-Net† reaches maxFβ 0.813 on the same dataset.

Why backbone-based saliency detection leaves room for change

Most salient object detection networks rely on feature extractors such as AlexNet, VGG, ResNet and DenseNet that were designed for image classification. Those extractors emphasize semantic meaning, while saliency depends on local detail and global contrast, so features taken from them are a partial fit for the task. Pretraining on ImageNet also adds a data requirement, and it becomes a weakness when the target data follow a different distribution.

A second problem is resolution. To keep deep backbones affordable, early layers shrink the feature maps, for example to one fourth of the input size in ResNet and DenseNet. High resolution matters for segmentation as much as depth, so shrinking the maps early costs accuracy on fine boundaries. Taken together, the study asks whether a network can be trained from scratch and match backbone-based models, and whether it can go deeper while keeping high-resolution maps at modest memory and compute cost.

How one residual U-block is computed

Standard convolution blocks have small receptive fields, so a shallow layer sees only local structure. Dilated convolutions widen the receptive field but are expensive on full-resolution maps, and pyramid-style pooling reduces cost at the risk of losing high-resolution detail when the scales are fused. The RSU block is designed to avoid both costs by keeping its high-resolution path intact while the inner encoder-decoder gathers context at smaller scales.

An RSU-L block with input channels Cin, middle channels M and output channels Cout has three parts. A plain convolution first maps the input x to an intermediate feature map F1(x) with Cout channels, which captures local features. A U-Net-like encoder-decoder of height L then takes F1(x) and produces the multi-scale context U(F1(x)). Larger L adds pooling steps and enlarges the receptive field, and the decoder upsamples, concatenates and convolves back to high resolution.

The block output is the sum of the local feature and the multi-scale context, which gives the following form. This differs from the standard residual block, whose output is F2(F1(x)) + x, because the RSU block replaces the second plain weight path with a U-shaped structure applied to the local feature.

Most of the operations in the U-shaped part run on downsampled maps, which keeps its cost low. The computation measured for a 320×320×3 input mapped to a 320×320×64 output shows that the FLOPs of the dense block, the inception block and RSU all grow quadratically with M, but RSU has a much smaller coefficient on the quadratic term. Plain and residual blocks grow linearly with M, so the RSU overhead relative to them is described as not significant.

Nesting the RSU blocks in U2-Net

Sequentially stacked U-Nets multiply compute and memory with the number of repetitions. U2-Net uses a nested notation with n set to 2, so each stage of an outer U-structure is itself a U-shaped block rather than another stacked network. The outer level has 11 stages, arranged as a six-stage encoder and a five-stage decoder.

The encoder stages En1 to En4 use RSU-7, RSU-6, RSU-5 and RSU-4, where the number is the height L and larger L is chosen for larger feature maps. The resolutions in En5 and En6 are already low, so further downsampling would discard context there; both use RSU-4F. In RSU-4F the pooling and upsampling operations are replaced by dilated convolutions, so every intermediate map has the same resolution as the block input.

The decoder mirrors the encoder around En6, and its first stage De5 also uses the dilated RSU-4F block. Each decoder stage takes the upsampled features from the previous stage concatenated with the features of its symmetric encoder stage. Six side output saliency maps come from En6 and De5 to De1, each produced by a 3×3 convolution and a sigmoid, and the logits of these maps are upsampled to the input size.

The logits are concatenated, passed through a 1×1 convolution and a sigmoid to give the fused map Sfuse.

Two instances are built from this design: the full U2-Net at 176.3 MB and the reduced U2-Net† at 4.7 MB. The reduced model keeps the same stage layout but uses 16 middle channels and 64 output channels in every RSU stage.

Training with deep supervision

Training uses deep supervision in the style of HED, so intermediate side outputs receive their own loss. The total loss is a weighted sum over the six side-output losses and the fusion loss. \[ \mathcal{L} = \sum_{m=1}^{M} w^{(m)}_{side}\,\mathcal{L}^{(m)}_{side} + w_{fuse}\,\mathcal{L}_{fuse} \] Here M equals 6, and all weights are set to 1 in the implementation.

Each term is a pixel-wise binary cross-entropy between the ground-truth mask and the predicted saliency probability. \[ \ell = -\sum_{(r,c)} \left[ P_G(r,c)\log P_S(r,c) + (1-P_G(r,c))\log(1-P_S(r,c)) \right] \] At test time the fused output is used as the final saliency map.

Training uses DUTS-TR with 10553 images, and horizontal flipping doubles it to 21106 images. Each image is resized to 320×320, randomly flipped vertically and cropped to 288×288 before it enters the network. Convolutional layers are initialized with Xavier, and the Adam optimizer is run with its default settings except for an initial learning rate of 1e-3.

Training runs for 600k iterations at batch size 12 and takes about 120 hours, and no validation set is used because the loss is trained until it converges. The code is implemented in PyTorch 0.4.0 on a GTX 1080ti.

What the evaluation metrics measure

Six benchmarks are used: DUT-OMRON with 5168 images, DUTS-TE with 5019, HKU-IS with 4447, ECSSD with 1000, PASCAL-S with 850 and SOD with 300. DUTS-TE is the held-out split of DUTS, so it is an evaluation set here rather than training data.

maxFβ takes the maximum F-measure over the binarization thresholds, with β² set to 0.3. \[ F_\beta = \frac{(1+\beta^2)\,\mathrm{Precision}\times\mathrm{Recall}}{\beta^2\,\mathrm{Precision}+\mathrm{Recall}} \] Precision-recall curves come from the same thresholding, with the threshold varied from 0 to 1 and the scores averaged over the dataset.

MAE averages the absolute per-pixel difference between the predicted map and the ground truth over all H×W pixels, and lower values are better. \[ \mathrm{MAE} = \frac{1}{H\times W}\sum_{r=1}^{H}\sum_{c=1}^{W}\left|P(r,c)-G(r,c)\right| \] The weighted F-measure Fwβ is used alongside maxFβ to reduce comparison errors caused by how F-measures are computed.

The S-measure mixes a region-aware term Sr and an object-aware term So, with α set to 0.5. \[ S = (1-\alpha)S_r + \alpha S_o \] The relaxed boundary F-measure binarizes the map at 0.5, takes one-pixel boundaries from both maps, and allows a tolerance of ρ = 3 pixels when matching them.

Which design choices carry the gains

In the block ablation the outer encoder-decoder is kept fixed and its stages are replaced by PLN, RES, DSE, INC, PPM or RSU blocks. On DUT-OMRON the full RSU U2-Net reaches maxFβ 0.823 and MAE 0.054, while the best of the other block variants reaches maxFβ 0.792 with PPM U-Net. On ECSSD the full model reaches maxFβ 0.951 and MAE 0.033, against 0.933 for RES U-Net, the best of the other block variants.

Against the second best block variant, the text gives a maxFβ gain of about 3.3% on DUT-OMRON and 1.8% on ECSSD, and an MAE reduction of 12.9% and 21.4%; these percentages are the authors' values and are not recomputed from Table 2. Against the baseline U-Net, the text gives maxFβ gains of 9.8% and 8.8% for U2-Net and U2-Net† on DUT-OMRON and MAE reductions of 34.1% and 27.0%.

Time per image on ECSSD is 33 ms for the full U2-Net and 25 ms for U2-Net†, against 14 ms for the baseline U-Net and 16 ms for PLN U-Net. The authors state that the RSU-based models do not add a noticeable time cost, which is the claim this comparison supports; the latency figures here are measured under the ablation setup and not the 30 FPS speed quoted for the full model.

The cascaded Stacked HourglassNet reaches maxFβ 0.756 and MAE 0.073 on DUT-OMRON, and CU-NET reaches 0.767 and 0.072. Both U2-Net variants score higher on DUT-OMRON than either cascaded model, at 0.823 for the full U2-Net and 0.813 for U2-Net†. The naive-block variant NIV U2-Net reaches 0.803 on DUT-OMRON, which is also above both cascaded models, but its ECSSD MAE of 0.085 is higher than the 0.059 of Stacked HourglassNet and the 0.061 of CU-NET.

Replacing the encoder with VGG-16 or ResNet-50 extended by one stage gives maxFβ 0.808 and 0.813 on DUT-OMRON, while RSU blocks remain in the decoder. Both backbone variants stay below the full RSU U2-Net on DUT-OMRON, and on ECSSD their MAE values of 0.038 and 0.041 are above the 0.033 of the full model. These backbone runs were measured with a single configuration each, so the comparison supports only the reported gap under this setup.

Comparison with state-of-the-art methods

The comparison covers 20 methods built on AlexNet, VGG, DenseNet, ResNeXt and ResNet backbones, with scores taken from the original authors where they exist and otherwise from released code and trained models. Compared methods differ in backbone and model size, so the table-level comparison is across heterogeneous settings.

On DUT-OMRON the full U2-Net reaches maxFβ 0.823 and MAE 0.054, which are the highest maxFβ and lowest MAE in Table 3; PoolNet is next at 0.808 and 0.056. The full model also reports the top weighted F-measure of 0.757 on that dataset.

On DUTS-TE the full U2-Net reaches maxFβ 0.873, below PoolNet at 0.880, and the text places it second overall on this benchmark. On HKU-IS the full model reaches maxFβ 0.935 and MAE 0.031, while PoolNet has a structure measure of 0.917 against the full model's 0.916.

The authors describe U2-Net† as the smallest model in the field of salient object detection, and it is 4.7 MB in size. Qualitative comparisons on sample images show that the full U2-Net and U2-Net† segment small objects, thin structures and multiple targets more completely than the compared methods.

Limitations

The authors state that faster and smaller models are still needed for devices with limited computation and memory, such as mobile phones and robots. Training uses only DUTS-TR, and the authors call for larger and more diverse salient object datasets to train more accurate and robust models.

The full U2-Net is reported at 30 FPS and U2-Net† at 40 FPS, while Table 2 gives per-image times on ECSSD of 33 ms and 25 ms under the ablation setup; the two sets of numbers come from different measurement conditions and are not combined here. The ablation and comparison tables give one value per configuration, with no variance across runs reported.

The backbone variants add one extra stage to VGG-16 and ResNet-50 and keep the RSU decoders, and the text does not give separate training details for them. The naive-block NIV U2-Net scores higher than the cascaded models on DUT-OMRON but has higher MAE on ECSSD. On PASCAL-S, DUTS-TE and SOD the full model is not the top scorer on maxFβ, and PoolNet leads on those benchmarks.

Paper info

Authors
Xuebin Qin, Zichen Zhang, Chenyang Huang, Masood Dehghan, Osmar R. Zaiane, Martin Jagersand
Venue
arXiv · Preprint
First published
2020-5-18
Added
2026-11-12
Updated
2022-3-8
Version
v3
arXiv
2005.09007
DOI
10.1016/j.patcog.2020.107404
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

Xuebin Qin, Zichen Zhang, Chenyang Huang, Masood Dehghan, Osmar R. Zaiane, Martin Jagersand (2020). U$^2$-Net: Going Deeper with Nested U-Structure for Salient Object Detection. arXiv:2005.09007v3. https://doi.org/10.1016/j.patcog.2020.107404

BibTeX
@article{qin2020going,
  title = {{U$^2$-Net: Going Deeper with Nested U-Structure for Salient Object Detection}},
  author = {Xuebin Qin and Zichen Zhang and Chenyang Huang and Masood Dehghan and Osmar R. Zaiane and Martin Jagersand},
  year = {2020},
  eprint = {2005.09007},
  archivePrefix = {arXiv},
  doi = {10.1016/j.patcog.2020.107404},
  url = {https://arxiv.org/abs/2005.09007v3}
}

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