DeepEdge: A multi-scale bifurcated deep network for top-down contour detection
Paper · 2015 · Gedas Bertasius, Jianbo Shi and Lorenzo Torresani
Summary
An edge detector can find the stripes on a zebra and the outline that separates the zebra from the background. Both produce changes in the image, but they play different roles in describing what is there. DeepEdge asks whether features learned for object recognition can help tell them apart. This reverses a familiar order in computer vision, where a system detects edges first and passes them to a later stage that recognizes objects. DeepEdge still starts with a conventional edge detector. It uses that detector to nominate locations, then uses information about shapes and object parts to decide which locations deserve high contour scores.
For each candidate point, DeepEdge examines views that range from a small surrounding patch to the full image. It extracts features with the first five convolutional layers of a network previously trained to classify ImageNet objects. Those layers stay fixed. DeepEdge reads their responses around the candidate, preserving evidence from the center as well as the immediate neighborhood. The resulting description combines fine detail from smaller crops with evidence about larger structures from wider views.
Two independently trained branches then give the location different kinds of scores. One learns whether anybody marked the point as a contour. The other learns what fraction of the annotators marked it. A point marked by only one observer gets the same binary target as a point marked by everyone, but the agreement targets differ. DeepEdge averages the outputs at test time. On BSDS500, the regression branch alone has higher average precision than the classification branch alone, and the combined output improves on both branches for average precision and the best-per-image F-score.
In the main BSDS500 comparison, DeepEdge records average precision of 0.807, the highest value among the methods listed by the authors. Its F-score with a common threshold is 0.753, tied with N⁴-fields. Its best-per-image F-score is 0.772, below MCG’s 0.779. The architecture comparisons show that features from deeper convolutional layers can be more useful than those from early layers alone, and that combining layers, views, and ways of reading the feature maps gives the strongest reported settings. The results concern a detector that rescores locations supplied by Canny. They show how recognition features can improve the selection of contours from those candidates.
Deep dive: DeepEdge: A multi-scale bifurcated deep network for top-down contour detection
DeepEdge uses features learned for object recognition to score image contours, combining multiple views and two ways of learning from human labels. · about 32 minutes to read
The problem and its context
Which edges describe the scene?
A photograph contains many places where appearance changes over a short distance. Some trace the outline of an object against its surroundings. Others come from patterns inside the object. The zebra example in the paper makes the distinction visible. A stripe can give a sharp response to an edge detector even though it contributes little to the outline that a person draws around the animal. A detector that gives every strong local change a high score will treat much of the coat as important boundary evidence.
Contour detection matters because a boundary map can support other vision tasks. A segmentation system can use boundaries to help decide where to divide an image into regions. An object detector can use the arrangement of contours as evidence about what it is seeing. The paper describes a common sequence in which low-level features, such as texture cues, are used to find contours, and those contours then inform a higher-level task. That sequence gives early decisions a consequence. When a contour map preserves a dense pattern along with the outline of the object, the next stage inherits the problem of telling the two apart.
The authors ask what happens if some of the evidence normally available later is brought into the contour decision itself. An outline may help identify an object, and evidence about the spatial extent of an object may clarify which visible changes form its outline. Those observations motivate using recognition features before committing to the contour map. The concrete proposal is to borrow intermediate responses from a network trained for object classification. A response associated with a shape or an object part can provide evidence for a contour at a particular point, even when that point also has an ordinary local edge response.
“Top-down” describes this direction of information. DeepEdge can give a location a different score when the surrounding patch supplies recognizable structure. The pretrained network does not have to announce an object category first or give DeepEdge a completed object outline. The authors use the spatial feature maps computed along the way to recognition. Those maps let the contour detector use object-related information while keeping the task focused on a location in the image.
There is a second difficulty in defining the task. People looking at the same image can draw different boundaries. A line may appear in several annotations, in a single annotation, or in none. A training procedure can treat any human mark as evidence that the point is a contour. It can also retain the number of people who marked it, relative to the number who annotated the image. These choices matter when several cues support a contour weakly, or when different observers select different levels of detail. DeepEdge treats the presence of a mark and the degree of agreement as related prediction problems.
Local and global approaches before DeepEdge
The paper distinguishes local methods, which make decisions from small patches, from global methods, which use information from across the image. The distinction concerns the evidence available to the detector. A small patch can show orientation and nearby texture clearly. A wider analysis can take account of where an edge sits relative to a larger structure. The same physical location can look different to those two kinds of method because each can see different relationships around it.
The authors describe Sketch Tokens and Structured Edges as supervised local methods based on random forests. In this setting, a forest learns decision rules from labeled image examples. Sketch Tokens formulates the problem as a classification with multiple possible labels and predicts a label for each pixel individually. Structured Edges predicts the labels of a group of pixels together. The difference matters because a local method can represent some structure even within a patch. It can learn how neighboring labels fit together without considering the full image at once.
The global methods in the review include the gPb detector and Multiscale Combinatorial Grouping, or MCG. The paper associates both with spectral methods, which use relationships across the image to inform the boundary analysis. It also discusses Sparse Code Gradients, which uses supervised learning with a support vector machine, and names Normalized Cuts and pointwise mutual information, or PMI, among the spectral approaches. This earlier work already offered ways to look beyond immediate pixel changes. DeepEdge’s specific question is whether features learned in an object classification task can supply a different kind of wider evidence.
The authors also discuss earlier learned contour detectors. They describe SCT as a sparse coding approach. N⁴-fields combines a convolutional network with dictionary learning and nearest-neighbor prediction, where a new example is related to stored examples by similarity. DeepNet uses a convolutional architecture to predict visual boundaries. The question was therefore more specific than whether a deep network could detect edges. The authors wanted to know whether reusing features from a recognition network, reading them at several scales, and training separate predictors for contour presence and annotator agreement would work together.
Why a recognition network can still locate a contour
Object classification gives an answer about the contents of an input image or patch. Contour detection needs an answer about a position. A representation that preserves where its responses occur can serve the second task even when it was originally trained for the first. A convolutional feature map is such a representation. It gives responses at positions on a grid, with each map corresponding to a learned filter. One can examine a response near the center of a patch without relying solely on a category prediction for the whole patch.
The paper calls its source network KNet. It credits the recognition training with giving the convolutional filters features that apply across many kinds of objects. The authors also point to object detection, attribute prediction, and image style recognition as examples of other tasks that had used such features. In particular, region-based object detection and segmentation offered a precedent for taking features originally learned for recognition and applying them to a different vision task. ImageNet Classification with Deep Convolutional Neural Networks · Rich feature hierarchies
DeepEdge uses the feature maps at several depths. Early responses can help establish what sort of local edge is present. Deeper responses can give the small neighborhood a place within a larger pattern. Access to both is important to the proposal. Knowing that a patch contains a recognizable shape is useful for contour detection only if the features can also help decide where that shape meets its surroundings. Taking responses around the candidate gives the recognition information a specific position to inform.
The method, step by step
Nominate a point and choose what it can see
DeepEdge starts with the Canny edge detector. Its job here is to produce a set of candidate locations with high recall, meaning that the set should cover as many plausible contour locations as possible. Canny supplies coordinates for the learned part of the detector to examine. A candidate can be a useful boundary, an internal pattern, or some other local change that the later stages should give a lower score. The final decision is made after the wider context has been examined.
The authors first explain the architecture at a single scale. They take a square patch centered on a candidate, resize it to fit KNet, and run it through the convolutional layers. When a patch extends beyond the image, they fill the missing part by reflecting image content at the boundary. This lets the point remain at the center of the patch even when it lies close to the edge of the photograph. Keeping that position fixed matters because the feature extraction procedure will later read the center of each spatial map.
In the complete detector, the candidate has several views. The square crops measure 64 × 64, 128 × 128, and 196 × 196. The remaining scale uses the full image. All views enter KNet at 227 × 227. Scale refers to the extent covered in the original image before resizing. A view that starts with a small patch devotes the input grid to a narrow neighborhood. A view that starts with a large patch or the full image can bring other parts of the scene into view, with less of the input grid devoted to any one local detail.
This is how the detector brings local and broad evidence to the same location. Imagine following a candidate on a zebra stripe through the views used by DeepEdge. The smaller crop can contain a strong contrast near the point. A broader view can place that change among many similar lines on the same body. A candidate at the animal’s outline has a different relationship to the surrounding structures. The network branches receive the features from all views together and can use such differences in context when assigning the score.
How DeepEdge scores a candidate contour point
The steps in order.
Reuse the recognition features while preserving position
The authors describe KNet as having been trained on 1.2 million images from 1000 ImageNet categories. They report more than 60 million parameters for the original network, whose architecture has 5 convolutional layers followed by 3 fully connected layers. Those training and parameter figures describe the source network. DeepEdge uses its convolutional layers and supplies its own fully connected layers for contour prediction. ImageNet Large Scale Visual Recognition Challenge
A convolutional map still arranges responses by spatial position. DeepEdge keeps that arrangement long enough to read features associated with the candidate. The original fully connected layers combine information across spatial positions for classification. The authors stop before those layers because their task calls for a decision about a particular image point. They also leave the convolutional weights fixed during training. The learned contour-specific work takes place in the branches that receive the pooled map values.
This distinction applies at every scale. DeepEdge runs the views through identical copies of the feature extraction procedure. There is no separately trained set of recognition filters for the smallest view or for the full image. What changes across the streams is the image content presented to the filters. The same kind of response can therefore describe a narrow region at one scale and a structure from a much wider region at another. The branch can use both because the responses from the scales occupy separate parts of its input.
The paper illustrates the feature hierarchy by showing selected filter responses at the size of the original image. The authors associate the second layer with oriented edges and coherent edge structure. Their examples from the third and fourth layers show responses to shapes, with the fourth layer in particular responding strongly over fuller object shapes. Selected responses from the fifth layer highlight specific parts. These displays explain what the authors mean by object-related features. The underlying input to DeepEdge is a set of numerical activations, and the visualizations give a way to relate some of those activations to visible structures.
Reading every convolutional layer lets the detector retain evidence that might be useful for different reasons. An early response can show whether a local change is clear right at the candidate. A deeper response can place that change against evidence for an organized shape. Even within a single crop, the layers can contribute differently. Combining depths and combining scales are separate operations. Depth changes which learned representation DeepEdge reads, while scale changes how much of the scene enters the network.
Read the center and its neighborhood
At each layer, DeepEdge takes a small region from the stack of feature maps. This region consists of a spatial window across the maps, so it can be thought of as a small volume. The spatial center anchors the readout to the candidate. In the first convolutional layer the window is 7 × 7, in the second it is 5 × 5, and in each of the remaining convolutional layers it is 3 × 3. These sizes concern the grids of activations. They are distinct from the input patch sizes in image pixels.
The feature-map grids get smaller deeper in KNet because of pooling within the recognition network. As a consequence, a window that spans a fixed number of cells in two different layers does not necessarily cover the same extent in the image. The authors choose progressively smaller windows so that the neighborhood read from the layers corresponds roughly to the same spatial extent. DeepEdge then applies a separate pooling operation to these chosen windows. Here pooling means reducing the values in each map’s window to a small set of descriptive numbers.
Max pooling retains the largest activation in a window. It can carry evidence that a filter responded strongly somewhere near the center. Average pooling uses the mean of the window’s values, which reflects how much the filter responded across the neighborhood. Center pooling takes the activation at the center itself. It gives the learned branch an indication of how the filter responded at the position associated with the candidate. This difference matters when a strong response lies close to a point but the point itself has a weaker response.
The paper gives the size of the descriptor from a convolutional layer at a single scale as follows.
3 × F
Here F is the number of feature maps produced by the layer. The factor 3 accounts for the maximum, average, and center activation taken from each map. The multiplication sign indicates that each of the F maps contributes the same number of values. The dimension describes the pooled descriptor from that layer, which is only part of what the branch eventually receives.
The center and neighborhood values are passed along together. They can agree when a response is both strong at the candidate and widespread around it. They can differ when only an adjacent spot activates a filter, or when the center activates a filter amid a generally weak neighborhood. The pooling operations preserve these distinctions in a compact form. For example, the center and maximum can be informative together even if they sometimes coincide. A difference between them tells the branch that the highest response occurs away from the center.
The pooled descriptors from the convolutional layers form the single-scale input to the two branches. For the multiscale detector, the authors build a descriptor in the same way at each scale and join the results. The branch receives the center and neighborhood evidence from each view. It can learn that a response in one view is informative in combination with a response in another. The design does not need a rule stating in advance which scale should decide an outline or which layer should decide a weak edge.
Give the same examples two targets
The two branches share the feature extraction procedure but have separate learned weights. Each has two fully connected layers, with reported widths of 1024 and 512. A fully connected layer can combine values from across its input. Here that allows a branch to use evidence from several depths, pooling operations, and scales in the same decision. The branches fit different targets using the same underlying images and feature descriptions.
The classification target asks whether any human annotator marked the point. Once at least one person marks it, the target is positive. This definition lets a contour with limited agreement count as a positive example. Two marked points can differ in their agreement and still have identical classification targets. Such a branch is trained to recover a broad set of possible contours, including ones that some observers omit.
The regression target retains the agreement fraction. In regression, the target can vary in degree. The paper’s illustration contrasts locations marked by 80% of the annotators with locations marked by 20%. Both are positive under the binary rule. The regression target differs because the larger share of observers gives the first location a larger target. With the same inputs for the branches, this is a direct way to change what the learned score is meant to express.
The agreement target described in the paper can be written as follows.
r(p) = a(p) / h(p)
Here p denotes the candidate image point. The function r(p) is its regression target, a(p) counts the annotators who marked the point as a contour, and h(p) counts the annotators who supplied labels for its image. The slash denotes division. A point that nobody marked has no positive votes, so it has a zero agreement target as well as a negative binary target.
The authors motivate the regression branch by observing that a labeler uses evidence the training procedure cannot directly record. Agreement is a measurable result of those decisions. Training on it preserves distinctions that are lost when every positive vote pattern is collapsed into the same class. At the same time, the vote fraction describes the annotation outcome for the particular location. It gives the regressor a graded target without supplying a record of what shape, texture, or object evidence any individual observer used.
The classification and regression branches both use a sum of squared differences. The paper describes the loss in words. Written for a branch and a collection of examples, it has this form.
L = Σᵢ (ŷᵢ − yᵢ)²
Here L is the branch’s loss, i indexes the examples, and Σᵢ adds the terms over those examples. The symbol ŷᵢ denotes the branch’s prediction for instance i, and yᵢ is its training target. The minus sign forms the prediction error, and the exponent squares that error before summation. For the classification branch, yᵢ is binary. For the regression branch, yᵢ is the fraction of annotators who marked the point. Changing the target changes the discrepancy a branch must reduce even though both branches use the same kind of loss.
At test time, the detector gives equal weight to the two scalar outputs.
s(p) = mean(c(p), r̂(p))
Here s(p) is the final score for point p, c(p) is the classification branch’s output, and r̂(p) is the regression branch’s predicted agreement. The mean operation averages the two inputs equally. The hat distinguishes the predicted agreement from the agreement target r(p) used during training. A location that receives a high score from both branches can remain highly ranked. A location strongly supported by only one branch receives a score between the two outputs.
This averaging occurs after each branch has made its prediction. The system therefore preserves the difference between the label definitions all the way through training. The classification score reflects the broad criterion of receiving any mark, while the regression score can favor locations with more consistent support. The final score is used to rank candidates and to decide which ones to retain when producing a thresholded map.
Build the training set and revisit missed positives
The training procedure starts from images with annotations by multiple people. The authors sample 40, 000 positive points from locations marked by at least one observer. To get negatives, they look at points detected by Canny that nobody marked. They randomly sample 40, 000 of these. The negative pool is therefore made of detected edges that lack human contour marks under the paper’s labeling rule. These are relevant examples for a system that will spend test time deciding what to keep from a Canny candidate set.
The resulting 80, 000 examples train both branches. The branch that predicts presence gets the binary assignments used to select the examples. The branch that predicts agreement gets the vote fractions for those same locations. A weakly agreed positive thus enters both training sets with the same patch views, but the target for it has a different value in each branch. The shared examples let the difference in supervision persist without needing to assemble a separate collection of image patches for the regressor.
DeepEdge is implemented in Caffe. The authors report a learning rate of 0.1, which controls the size of training updates, and a dropout fraction of 0.5, which controls the share of units omitted when dropout is applied during training. They report a batch size of 100 examples and 50 epochs. A batch is the group of examples used together in a training update, and an epoch is a pass through the current training set. The convolutional weights remain fixed through the schedule. Caffe
For the first 25 epochs, the branches learn independently on the initial examples. The authors also draw a separate set of 40, 000 examples for hard-positive mining. A hard positive is an example that should receive a positive contour decision but that the current predictor misses. After the initial training phase, the authors run both branches on this set and look for false negatives made by each. This check uses the branch’s actual mistakes to identify positives worth adding to the training data.
The authors augment the original data with the missed positives and an equal number of randomly selected true negatives. They train on the augmented data for the remaining 25 epochs. A missed contour can therefore enter the second phase alongside negatives that the branch already handles correctly. The purpose of the step is to give difficult positive cases more influence without adding positives alone. The reserved set serves this training procedure. The BSDS500 test results come from a separate evaluation of the completed detector.
Experiments and results
What the benchmark measures
The authors evaluate DeepEdge on BSDS500, a benchmark for detecting contours in natural images. Of its images, 200 are used for training, 100 for validation, and 200 for testing. Human annotations provide the contour reference. The point examples used to train the branches and the image split used to report test performance describe different units. Many point examples can come from a single training image, whereas the reported detector scores concern maps on the benchmark images. Evaluation & benchmarks
A score map supports different operating points. At a strict threshold, only high-scoring candidates remain. The retained set may be reliable while omitting many reference contours. Lowering the threshold lets more candidates through, which can recover additional contours and introduce detections without reference support. Precision measures the share of detections that match reference contours. Recall measures the share of reference contours recovered. An F-score combines precision and recall at a given operating point.
The paper reports ODS, OIS, and AP. ODS is the F-score with a common contour threshold for the dataset. It shows how well a detector balances precision and recall under a shared threshold across images. OIS uses the best threshold for each image, so it describes performance when the score cutoff can adapt to the individual case. The threshold selected with reference information serves as an evaluation device. The number does not describe how to select that threshold on an unseen image. AP, or average precision, summarizes the precision and recall behavior across thresholds. A method can lead on AP while sharing the best ODS value or falling behind on OIS.
The baseline comparison spans several of the families discussed earlier. It includes segmentation approaches such as Mean Shift and Normalized Cuts. It also includes Sketch Tokens and Structured Edges as supervised local methods, and gPb-owt-ucm and MCG among the broader approaches. DeepNet and N⁴-fields provide comparisons with other neural contour detectors. The result table is a comparison of reported detector performance. The architecture experiments inside DeepEdge address changes under a more closely related setup.
Where DeepEdge leads
DeepEdge’s BSDS500 test AP is 0.807. Structured Edges follows at 0.803 in the main comparison. N⁴-fields has 0.784 and PMI has 0.783. This metric describes how the scored detections behave over a range of thresholds. It captures the effect of putting well-supported contours near the top of the ranking, along with behavior as more candidates are admitted.
Average precision on the BSDS500 test set
DeepEdge leads the reported comparison, with Structured Edges close behind.
The numbers
| System or setting | AP |
|---|---|
| PMI | 0.783 |
| N⁴-fields | 0.784 |
| Structured Edges | 0.803 |
| DeepEdge (this paper) | 0.807 |
On BSDS500 test ODS, DeepEdge and N⁴-fields both record 0.753. MCG records 0.747 and Structured Edges records 0.746. The tie matters to the paper’s claim. The advantage visible in average precision does not produce a higher fixed-threshold F-score than every competing method. With the single operating point chosen by the benchmark, the reported best result is shared.
Fixed-threshold F-score on the BSDS500 test set
DeepEdge and N⁴-fields share the best reported fixed-threshold result.
The numbers
| System or setting | ODS F-score |
|---|---|
| Structured Edges | 0.746 |
| MCG | 0.747 |
| N⁴-fields | 0.753 |
| DeepEdge (this paper) | 0.753 |
The ordering changes when each image can use its best threshold. DeepEdge’s BSDS500 test OIS is 0.772. MCG has 0.779, while PMI has 0.771 and N⁴-fields has 0.769. MCG also has AP of 0.759 in the same comparison. Its strong OIS therefore goes with a different pattern of performance over thresholds than DeepEdge’s. Looking at the three measures together gives a precise reading of the claim. DeepEdge leads the AP comparison, shares the best ODS result, and trails the highest OIS result.
The paper’s precision–recall figure shows DeepEdge approaching 100% precision at low recall. These are the strongest-scoring detections, before the threshold is relaxed enough to admit much of the map. High precision in this region means that the points retained under a strict cutoff agree well with the reference annotations. The low recall identifies the other side of that operating choice. The detector is recovering only a portion of the annotated contours there.
What the score maps look like
The qualitative comparison follows the detector from input to output. The authors show the image, the Canny candidate map, the raw DeepEdge scores, the thresholded predictions, and a reference map formed by averaging the annotations. The raw map exposes how DeepEdge ranks the candidates. The thresholded map shows which candidates survive one particular decision rule. The authors use 0.5 as that rule’s cutoff in the figure. ODS and OIS summarize their own threshold selections for the quantitative evaluation.
In the zebra example, Canny exposes the internal pattern along with the boundary against the background. DeepEdge gives the stripes weaker scores than the outline. The thresholded image therefore suppresses stripe detections and looks closer to the human reference. This example illustrates what a useful change in ranking looks like. The visible local edge can still be present in the raw scores while its relative position in the ranking lets the final decision discard it.
The comparison also makes it easier to see where the learned detector contributes. Canny supplies an initial map that includes more responses than the desired contour map. DeepEdge’s contribution is the new ordering of those responses. A score that treats repeated texture and an object boundary differently can improve the final selection without first tracing a closed outline or assigning an object name. The qualitative example shows this behavior in a scene. The benchmark metrics describe how the detector’s ranking and thresholded results perform across the test images.
What the ablations show
The paper compares several variants to see what contributes to the complete detector. It changes the extent of the input views, the source layers for image features, and the pooling operations. It also evaluates the branch outputs separately. These comparisons vary identifiable parts of the architecture. Their reported values use fewer decimal places than the main comparison in several places, so an apparent tie in these tables is a tie at the precision shown.
Additional scales help when they complement the close view
The single-scale experiments train and test DeepEdge with one choice of view. Among those settings, the patch listed as 128 has the strongest results across all three reported measures. Its BSDS500 ODS is 0.72, its OIS is 0.74, and its AP is 0.78. The settings listed as 64 and 196 each have ODS of 0.71, OIS of 0.73, and AP of 0.76. The full-image setting on its own has ODS of 0.67, OIS of 0.69, and AP of 0.57.
Those comparisons establish that access to the whole scene is insufficient by itself in this detector. In the full-image view, wide context is available, but the network reads it through the same input dimensions used for the smaller crops. The poor standalone AP indicates that a descriptor built solely from that view is less effective for ordering candidate points. The smaller views concentrate the representation on a more limited portion of the image around the candidate.
The combination listed as 64, 128 has ODS of 0.72, OIS of 0.75, and AP of 0.78. The combination listed as 64, 128,196 reports the same values for those measures. Adding views in this part of the comparison gives a higher best-per-image F-score than the strongest standalone crop. ODS and AP show the same values to the reported precision. The results help distinguish evidence that the complete multiscale setting works from a stronger claim that every extra scale produces an observable gain.
The complete setting includes the full image along with all the smaller crops. It reaches BSDS500 ODS of 0.75, OIS of 0.77, and AP of 0.81 in the scale comparison. The full image appears in both the weakest standalone setting and the strongest combined setting. The difference suggests that the broad view is useful when the detector has finer evidence available too. The comparison supports the design choice to make different extents jointly available to the branches. It does not indicate which individual candidates depend on the full-image features or whether another set of crops would do as well.
The scale results also put the paper’s use of global information in perspective. DeepEdge collects a wide view and a close view for a candidate and decides on its score. It does not assemble a new contour by jointly scoring every candidate in the image. Full-image context can influence a local decision through the descriptor. The experiment measures the value of that context when made available in this specific way.
Deeper features help, and the full hierarchy helps further
When DeepEdge reads features from the first convolutional layer alone, the reported BSDS500 results are ODS of 0.66, OIS of 0.68, and AP of 0.69. The second layer alone gives ODS of 0.71, OIS of 0.74, and AP of 0.76. These are features from the same recognition network at different depths. The performance change indicates that the choice of where to read that network already matters before reaching the layers illustrated with clearer shape responses.
The third and fourth layers each give ODS of 0.74 and AP of 0.79. Their OIS values are 0.75 and 0.76, respectively. The authors describe the fourth layer as the most effective individual layer, consistent with its OIS lead and its ties for the strongest individual values on the other two measures. The fifth layer by itself has ODS of 0.73, OIS of 0.74, and AP of 0.77. In this comparison, moving to the last convolutional layer does not continue the earlier improvement.
These values make the visualizations of KNet easier to interpret. The layers in which the authors identify fuller shapes are among the most useful by themselves. A layer with responses to object parts can also give a more effective descriptor than the earliest layer, while still trailing the layers with strong shape responses. The experiment links the choice of feature depth to good contour predictions. The visualization gives possible meanings for selected responses, instead of identifying which responses account for the performance of a whole layer.
Using all the convolutional layers gives ODS of 0.75, OIS of 0.77, and AP of 0.81 in the layer comparison. All three values exceed the corresponding entries for any single layer. The gains are consistent with early and later features contributing complementary information. A clear local edge can help locate a boundary, and responses from deeper layers can help put it in context. The experiment tests the complete collection against individual layers. It leaves open whether a smaller subset of layers could retain the same performance.
The candidate’s exact position helps most among individual readouts
The pooling comparison tests what information to keep from each feature map around the candidate. With average pooling alone, DeepEdge obtains BSDS500 ODS of 0.73, OIS of 0.75, and AP of 0.78. With max pooling alone, it obtains ODS of 0.69, OIS of 0.72, and AP of 0.73. Center pooling alone yields ODS of 0.74, OIS of 0.76, and AP of 0.8. The center value leads across the three measures among the individual readouts.
This result fits the geometry of the task. The target is about the location at the center of the patch, and the center readout preserves the activation associated with that location. The maximum can come from a strong response nearby. The average can be influenced by many responses elsewhere in the window. Those are useful descriptions of surrounding evidence, but either can discard the activation at the position under evaluation. The result favors keeping that position explicit.
Using all the pooling operations yields BSDS500 ODS of 0.75, OIS of 0.77, and AP of 0.81. The comparison supports keeping neighborhood evidence alongside the center. The branch can take a high central activation into account differently depending on whether the neighborhood also responds strongly. These settings show that the complete readout works better than any individual one tested. They do not resolve whether each neighborhood statistic is essential when the center is already supplied, because the paper does not list the pairwise pooling combinations.
The branches contribute differently across metrics
The branch comparison uses the classification output alone, the regression output alone, and their average. On BSDS500, classification alone gives ODS of 0.75, OIS of 0.76, and AP of 0.78. Regression alone gives ODS of 0.74, OIS of 0.76, and AP of 0.80. The results fit the difference in target definitions. With the agreement target, the regression branch learns to distinguish degrees of support among points that the binary target counts alike. Its stronger AP shows the benefit of that supervision for the reported behavior across thresholds.
The classification branch’s stronger ODS shows that the grading of agreement does not improve every measure in isolation. A branch trained to respond to any marked point can be effective at the shared operating point used to calculate the fixed-threshold F-score. OIS is the same for the individual branches at the precision shown. The comparison is especially informative because the branches learn from the same example locations and receive the same kinds of features. Their targets give them different reasons to score a point highly.
Averaging the outputs gives BSDS500 ODS of 0.75, OIS of 0.77, and AP of 0.81 in the branch comparison. ODS matches the classification branch at the reported precision, and OIS and AP are higher than for either branch alone. Thus the combined output preserves the strongest reported common-threshold result while improving the two other entries in that comparison. The evidence for complementarity is metric-specific. It does not require treating the classification score as a precisely calibrated probability or the regression score as an exact prediction of what a new group of observers would do.
The four architecture experiments also differ in what changes when a component is removed. Reading a single layer, using a single pooling operation, or considering a single scale reduces the descriptors available to the branches. Evaluating one branch rather than their average changes the readout at the end. The results identify effective configurations of the whole detector under these changes. They do not measure independent increments that can be added together, since the usefulness of a feature or view can depend on what else is available.
Limitations
Limits the authors identify
The authors describe DeepEdge as local in how it makes decisions. Each candidate gets a score from its features. The full-image view broadens the evidence available for a point, while the decisions themselves are still made point by point. The paper suggests that spectral methods or a conditional random field could be applied afterward. Such a stage could use relationships between candidate decisions, for example by favoring a more coherent contour. The paper presents the addition as a possibility and gives no experimental result for it.
The computational burden comes from evaluating KNet repeatedly on patches. The authors estimate about 60K KNet evaluations for feature extraction, with 15K per scale. Drawing on the reported Caffe runtimes, they estimate a GPU execution time of about 5 minutes. This is a runtime estimate for the implementation they describe. They state that improving speed was outside the focus of their experiments, which concentrated on the value of object-related features.
Their proposed shortcut would compute feature maps for whole-image inputs and interpolate the entries needed at candidate locations. Interpolation would estimate a value at a desired position from the nearby entries in the computed map. The authors estimate that this would bring the number of convolutional network evaluations from 60K to 4, with one per scale. They suggest that it could permit real-time execution even on CPUs, with a possible small accuracy loss from interpolation. The speed and accuracy of that version are projections. Both would depend on how faithfully the whole-image feature computation reproduces the evidence DeepEdge obtains from individually resized patches.
The paper also distinguishes the evidence available for annotation from what it would take to explain an annotator’s decision. The authors can use the fraction of labelers who marked a location. They do not have a record of the evidence those people considered. Their regression branch aims to capture variation in the outcome of human judgments. An example with high agreement can show that several annotators selected the point, but the label leaves unanswered whether they relied on the same visible feature.
Limits visible in the experimental setup
The dependence on Canny places a bound on what the detector can score. A point outside the candidate set does not receive a learned contour score under the described procedure. Broad object evidence can help decide which proposed points deserve high scores. Recovering an entire contour that the proposal stage failed to nominate would require a way to add new locations. The qualitative comparison shows the value of refining the Canny map, but it does not measure performance if the learned branches evaluate every image location or receive candidates from a different detector.
The reported benchmark tests detection on BSDS500. It does not directly measure whether replacing another detector’s boundaries with DeepEdge boundaries improves a downstream segmentation or recognition task. Such downstream uses explain why the quality of the contour map matters. The demonstrated direction in this paper is the transfer of recognition features into contour scoring. The authors’ broader suggestion that convolutional networks could help with other low-level vision tasks is a research direction beyond the benchmark evidence.
The depth comparison supports the usefulness of learned features from intermediate and deeper layers relative to earlier ones. It does not isolate object classification training as the only cause of the advantage. The layers differ in how they compute responses and in what region of the input influences those responses. The paper does not include a matched comparison against a network trained under a different objective, a randomly initialized feature extractor, or one whose convolutional layers are updated with the contour labels. The results show that the fixed recognition features are effective in this setup. They leave the choice of pretraining task and training strategy open.
The scale experiment varies the amount of visual context available and the size of the descriptor presented to the branches. It establishes the benefit of the tested multiscale configuration over the tested single views. It does not identify an optimal crop set or independently hold descriptor size constant. The paper specifies the input dimensions, crop sizes, and pooling windows. Its description also leaves some reproduction details open, including the precise coordinate handling when the candidate is read from the full-image view rather than from a crop centered on it.
The branch experiment shows that predicting degree of agreement gives a useful second score. It has no direct test of the scores’ calibration against a separate group of annotators. The classification training set is balanced through sampling, and its negatives are drawn from Canny responses rather than arbitrary image points. That is appropriate to learning a ranking among candidates, but it does not establish that an output value can be read as a literal probability over all pixels. A high score is supported by the detection and ranking results. A claim about the frequency with which a new observer would choose such a point would require a different evaluation.
Finally, the hard-positive mining step is part of the training procedure used for the reported detector. The ablation tables vary other decisions and give no isolated result for training with and without that step. Its stated motivation is to reduce missed positives. The experiments do not quantify how much of DeepEdge’s recall or overall performance comes from mining. The evidence is strongest where the paper reports direct comparisons, such as the advantage of combining views and the gains in OIS and AP from averaging the branches.
What came after
No later study is documented here as building on DeepEdge. The paper points instead to directions the authors wanted to pursue. One is to reuse feature maps across candidates, and another is to give the pointwise contour scores a stage that reasons about connections across the image. Both are proposals in DeepEdge, without reported follow-up results.
Feature reuse addresses a cost created by the patch procedure. Nearby candidates can have crops that cover much of the same image content, yet DeepEdge evaluates those patches separately. Computing maps at the whole-image level would make the responses available for repeated reads. The key empirical question raised by the proposal is how much the resulting features would differ from those obtained by recentering and resizing each crop for KNet. A fast implementation would have to preserve the useful combination of spatial precision and wider context that the scale and pooling experiments identify.
The authors cite Hypercolumns, OverFeat, and Fully Convolutional Networks as precedents for the use of feature interpolation in vision. They invoke those works to motivate a possible implementation of DeepEdge’s shortcut. That relationship in the paper runs from existing techniques to a proposed improvement. It does not establish that those works adopted DeepEdge’s branching scheme, its use of agreement labels, or its contour results. OverFeat · Fully Convolutional Networks
A stage for contour coherence would address a separate question. Two neighboring points may each have modest scores while both fit a longer, consistent boundary. Conversely, some high scores may sit on isolated responses. A method that considers relationships among points could use the learned scores as evidence when evaluating a larger structure. DeepEdge supplies and evaluates the point scores. The authors leave the performance of the combined system to future work.
Cite
Cite as Gedas Bertasius, Jianbo Shi and Lorenzo Torresani. 2015. DeepEdge: A multi-scale bifurcated deep network for top-down contour detection. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.
@inproceedings{bertasius2015deepedge,
title = {{DeepEdge: A multi-scale bifurcated deep network for top-down contour detection}},
author = {Gedas Bertasius, Jianbo Shi and Lorenzo Torresani},
booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
year = {2015},
doi = {10.1109/cvpr.2015.7299067},
eprint = {1412.1123},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/cvpr.2015.7299067}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bertasius-2015-deepedge-multi-scale-bifurcated-deep/