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

Holistically-Nested Edge Detection

Holistically-nested network detects edges in whole images at once

  • Problem Earlier CNN edge detectors predict one patch at a time, which is slow, and their hidden layers get no direct supervision. Their intermediate responses are therefore hard to interpret.
  • Method HED, short for holistically-nested edge detection, trains a trimmed VGG-16 network with side outputs at five stages. Each side output gets its own deep-supervision loss, and a learned fusion layer combines them.
  • Results Reached ODS .782 on BSDS500 and ODS .746 on NYUD when RGB and HHA predictions are averaged.

Why learned edge detectors stall

The task is to find edges and object boundaries in natural images and return an edge map for the whole image. CNN methods that followed improved F-score, yet a single prediction could take several seconds or even a few hours on modern GPUs.

Patch-based CNN detectors predict edges one patch at a time, and their hidden layers receive no direct supervision, so the intermediate responses carry less clear meaning.

HED targets two things at once: holistic image-to-image prediction, borrowed from fully convolutional networks, and nested multi-scale learning, borrowed from deeply-supervised nets. The rest of the design follows from these two aims.

Where HED sits among multi-scale designs

Multi-scale deep learning comes in four configurations: multi-stream, skip-layer, one model run on several inputs, and independent networks. Multi-stream networks use parallel streams with different parameters and receptive fields, and merge their features in one output layer. Skip-layer networks keep one primary stream and add links from its intermediate levels into a shared output.

Both produce a single loss and a single prediction, whereas edge detection often benefits from several predictions that are then combined.

Running one model on several scaled inputs yields multi-scale predictions, and this can serve as data augmentation during training or as ensemble testing. Ensemble testing slows prediction, especially for deeper models. Independent networks, each with its own depth and output loss, cover the multi-scale idea but multiply the training cost.

HED keeps a single stream with several side outputs. It can be read as a holistically-nested version of the independent-network setting, without the duplicated networks. The side outputs also allow an optional fusion layer when a single unified output is needed. The closest precedent is deeply-supervised nets, which showed that hidden-layer supervision can help optimization and generalization in classification.

A trimmed VGG-16 as the backbone

The backbone must be deep enough for multi-level features, must have several stages with different strides, and must start from weights that train reliably. VGGNet meets these needs with 16 convolutional layers, stride-1 kernels and five 2-stride down-sampling stages. Fine-tuning from a network pre-trained on ImageNet classification has been reported to help low-level edge detection, so HED starts from pre-trained VGG-16 Net weights.

The receptive field of each of these layers matches its side-output layer. The 5th pooling layer and all fully connected layers are removed. A stride-32 output would be too coarse to interpolate into a usable map, and fully connected layers are costly in memory and time.

The trimmed network has five stages with strides 1, 2, 4, 8 and 16, and its receptive field sizes run from 5 to 212. Table 1 lists the receptive field and stride of each retained layer.

The training objective and the fusion layer

Training uses input images paired with binary edge maps, and each side output has its own classifier weights. The side losses form a weighted sum over the M side outputs: \(L_{side}(W,w)=\sum_{m=1}^{M}\alpha_m\,\ell^{(m)}_{side}(W,w^{(m)})\), where W holds the shared network parameters.

Edge pixels are rare, since about 90% of the ground truth in a typical natural image is non-edge. The class-balanced cross-entropy multiplies the edge term by \(\beta=|Y_-|/|Y|\), which is the non-edge fraction, and the non-edge term by 1-β, so rare edge pixels carry the larger weight. Each pixel probability is a sigmoid of that pixel's activation.

Each side output gives an edge map as a sigmoid of its activations, and the weighted-fusion layer applies a sigmoid to a learned sum of them: \(\hat{Y}_{fuse}=\sigma\big(\sum_{m=1}^{M}h_m\hat{A}^{(m)}_{side}\big)\). The fusion weights h are learned jointly with the network, and the fused map is scored with cross-entropy against the ground truth.

The network is trained with several error propagation paths, so each side output receives error through its own loss and through the fusion path.

At test time one pass returns the fused map and every side map. The final map is their average: \(\hat{Y}_{HED}=\mathrm{Average}(\hat{Y}_{fuse},\hat{Y}^{(1)}_{side},\ldots,\hat{Y}^{(M)}_{side})\). Different subsets of outputs give different scores, so the averaging set is a choice that accompanies each reported result.

Training setup and label handling

Hyper-parameters were tuned on a validation set, following the evaluation protocol of Structured Edges, and then held fixed for the later variants. The values are mini-batch size 10, learning rate 1e-6, side-loss weight α_m of 1 for each side output, momentum 0.9, nested filters initialized at 0, fusion weights initialized at 1/5, weight decay 0.0002, and 10,000 iterations with the learning rate divided by 10 after 5,000.

These settings were used on BSDS500 and carried over to NYUD. An extra 50-filter ReLU layer before each side output was tried and made performance worse.

The ground truth is duplicated at each side output and resized to that output's scale, so coarse high-level predictions meet weak edges in the labels. The authors observed that this mismatch makes gradients explode at the high-level side outputs. Consensus sampling assigns a positive label only where at least three annotators mark an edge, and all other labeled pixels become negatives.

The authors report that this reduces the gradient explosion at high-level outputs and makes the low-level layers more robust to weak edges. Finer handling of consensus levels was not explored.

Each training image is rotated to 16 angles, the largest inner rectangle is cropped, and each rotation is also flipped, giving a training set 32 times the original. Training images are resized to 400 × 400, and the authors observed that the nested framework is insensitive to input scale. At test time each image keeps its original size, and ensemble testing over rotations and flips did not raise F-score or AP.

Side-output combinations on BSDS500

Table 3 scores each side output alone and several averages on BSDS500, all obtained from one pass, so the combinations cost nothing extra. Side output 3 reached ODS .738 and AP .717, and side output 4 reached ODS .740 with AP .672. The lowest and highest side outputs score much lower alone, at ODS .595 and .606.

Averaging all five side outputs gives ODS .774 and AP .822, while the learned fusion output gives ODS .782 and AP .787. Adding side output 5 to the average of side outputs 1 to 4 raised ODS from .760 to .774. The authors conclude that every side output contributes, either to F-score or to average precision.

The fusion output has the best ODS among the single outputs, while the plain average of all five side outputs has higher AP. Merging the fusion output with the side averages gives ODS .782, OIS .804 and AP .833. The authors attribute the AP gap to the fusion-layer weights focusing on global object boundaries.

What deep supervision changes

Table 2 compares HED with FCN variants on BSDS, trained under the same setting as HED. FCN-8S, trained with a cross-entropy edge loss, reached ODS .697, OIS .715 and AP .673. FCN-2S, which adds links from pool1 and pool2, reached ODS .738, OIS .756 and AP .717. Both are below the fusion output of HED with deep supervision, which reached ODS .782.

Without deep supervision, the fusion output of HED reaches ODS .771, OIS .785 and AP .738. With deep supervision, the same architecture reaches ODS .782, OIS .802 and AP .787.

Figure 4 shows side maps with and without deep supervision for two images. With deep supervision the side maps move from coarse to fine as the layers go deeper. Without it the side maps lack that order, and many critical edges are missing from the higher side outputs. The F-score gap is small, ODS .771 against .782, but AP falls from .787 to .738, and the authors read the result as a network biased toward large structure edges.

The ordering is judged visually, so it is a qualitative observation rather than a measurement.

BSDS500 benchmark results

BSDS500 has 200 training, 100 validation and 200 testing images, each with manually annotated contours. Edges are thinned with non-maximal suppression before scoring. ODS uses one contour threshold for the whole dataset, OIS picks the best threshold for each image, and AP summarizes average precision.

DeepContour and CSCNN are listed at ODS .756 and DeepEdge at ODS .753. The human reference is ODS .80, and Canny is at ODS .600. The other rows are reported results for those methods, so they should not be read as one shared controlled experiment.

The authors note that deep methods lose more precision at high recall than non-deep ones. They credit deep supervision with HED's better behavior in the high-recall range.

Pooling and upsampling choices

Earlier work reported that the pooling function can have a major effect on edge detection, so all pooling layers were replaced with average pooling. This lowers ODS to .741, against .782 for HED with its original pooling. The authors call this a controlled experiment, and it compares only average pooling against the original setting.

Side outputs are upsampled with in-network deconvolution layers that are fixed to linear interpolation. In the authors' experiments, learned deconvolutions gave no noticeable improvement.

Adding training data

Edge benchmarks are small, so the authors asked whether more training images would help. They added 100 images randomly sampled from the test set to training, and evaluated on the remaining 100 test images. The result is averaged over 5 trials.

ODS rose from .782 to .797 (±.003). The .797 comes from a different set of 100 test images than the .782, which was scored on all 200 testing images. The authors describe the gain as nearly touching the human benchmark of .80. The extra images come from the test pool rather than from new data.

Training and inference cost

Training takes about 7 hours on one NVIDIA K40 GPU. For a 320×480 image, producing the final edge map takes 400 ms, with interface overhead included. The authors call this significantly faster than the CNN-based methods [34, 2] they compare with. The conclusion gives 0.4 seconds on a GPU and 12 seconds on a CPU.

Some earlier detectors raise scores by testing several scales and averaging, which the authors regard as sacrificing efficiency. HED avoids this cost because one forward pass returns all side maps.

NYUD and depth encoding

NYUD has 1449 RGB-D images, split into 381 training, 414 validation and 654 testing images. During evaluation the match tolerance was raised from .0075 to .011, following earlier work. HED uses the same architecture and hyper-parameters as on BSDS500.

Depth is encoded as HHA, with horizontal disparity, height above ground, and the angle of the local surface normal relative to the inferred gravity direction. Two models are trained in parallel, one on RGB and one on HHA, and their predictions are averaged. Using the raw depth channel, or concatenating depth with RGB before the first convolution, gave no notable gain over HHA.

RGB alone reaches ODS .720, HHA alone .682, and the averaged RGB and HHA predictions .746. The averaged result is above SE+NG+ at .710 and SE at .685 in the same table. The RGB-only model is already above the earlier entries in the table, according to the authors. Testing uses the Average2-4 prediction rather than the fusion output, because it scored best here.

The authors read the HHA result as showing that hand-designed depth features remain useful when training data is limited. No late merging is applied on NYUD.

Limitations

The image-to-image formulation does not enforce constraints between neighboring pixel labels, so context is not modeled explicitly. The conclusion repeats that explicit contextual and high-level information was not enforced.

The consensus rule uses at least three annotators, and finer treatment of consensus levels was not explored. The architecture comparisons and the qualitative ordering of side outputs are reported on BSDS500 only, and the ordering is judged visually.

The 400 ms figure is for one image size on one GPU. The extra-data gain is measured on a different 100-image evaluation split from the original benchmark. The pooling experiment compares only average pooling with the original setting. Ensemble testing gave no gain and an extra ReLU layer worsened results, so neither was kept.

Paper info

Authors
Saining Xie, Zhuowen Tu
Venue
arXiv · Preprint
First published
2015-4-24
Added
2026-11-12
Updated
2015-10-4
Version
v2
arXiv
1504.06375
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

Saining Xie, Zhuowen Tu (2015). Holistically-Nested Edge Detection. arXiv:1504.06375v2. https://arxiv.org/abs/1504.06375v2

BibTeX
@misc{xie2015holistically,
  title = {{Holistically-Nested Edge Detection}},
  author = {Saining Xie and Zhuowen Tu},
  year = {2015},
  eprint = {1504.06375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1504.06375v2}
}

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