Elamur Research

Weakly supervised object detection with convex clustering

Paper · 2015 · Hakan Bilen, Marco Pedersoli and Tinne Tuytelaars

Summary

A photograph can be labeled “bicycle” without saying where the bicycle is. That label tells a detector that something in the picture is worth looking for, but leaves it to decide whether the evidence lies in the whole bicycle, a wheel, the rider or a patch of road. The decision matters because the regions selected during training become the examples the detector learns from. A detector that starts by favoring road can teach itself to favor road more strongly. Hakan Bilen, Marco Pedersoli and Tinne Tuytelaars investigate whether candidate regions can help correct one another when they are compared across photographs carrying the same label.

Their method combines a detector that learns to distinguish images with and without the target class and a clustering procedure that finds representative regions among the positive images. The detector assigns a distribution of weights to the candidate windows in each positive image, so several locations can influence training while the answer is still uncertain. The clustering procedure then gives more influence to representatives that resemble the windows the detector favors. In turn, those representatives make it less costly for the detector to favor similar windows. A class can have several representatives, including examples of whole objects and recurring parts. The detector and the representatives are updated in alternation, with the influence of clustering growing once the detector has begun to learn.

On PASCAL VOC 2007, the convex-clustering detector achieved 27.7 mean average precision on the test split and 43.7 mean correct localization on positive training images. In the authors’ controlled comparison, the paper reports a gain of 3.3% in test mean average precision over the soft-max detector without clustering. Weighted k-means, tested in the same role, gave a gain of 0.5 points over that baseline. Wang and colleagues’ published method still had higher averages on both evaluations. The paper’s examples show how the proposed training can tighten a box around an object or recover its extent when a part initially attracts the highest score. They also show a bicycle detection that includes its rider, a recurring association that the clustering can reinforce.

The convexity guarantee applies to choosing the representatives with the detector held fixed. Learning the detector and the locations together still poses the original non-convex problem. Clustering gives that learning process additional evidence about which regions deserve attention. It adds work during training, while prediction on a new image uses the same window features and linear scoring operation as the baselines.

Deep dive: Weakly supervised object detection with convex clustering

A study of how convex clustering helps train object detectors from image-level labels by favoring candidate regions that resemble shared examples. · about 34 minutes to read

The problem and its context

A label gives the class and leaves the location open

An object detector must decide whether a target class is present and locate instances of that class. With bounding-box supervision, the training annotations already locate each target instance. A learner can use the regions inside those boxes as examples of the object and learn to distinguish them from other regions. Drawing those boxes across a large collection takes work. Image-level supervision asks only for a label indicating whether a class is present, a kind of information that can be available for collections with sparse or noisy annotation.

Under the paper’s setup, an image with the target label is positive for that class. Any object of the class is enough to make it positive, whether the image contains an isolated object or several instances amid other objects. A negative image gives firmer information about the class. Its regions can contain many different things, but they lack the target. In a positive image, in contrast, a region could contain the full object, part of it, another object nearby or only background. The learner has no box annotation to tell those possibilities apart.

The distinction between class evidence and location evidence makes weak supervision difficult. A bicycle wheel can say a great deal about whether an image contains a bicycle while saying little about how far the bicycle extends. The rider can carry useful evidence about the photograph’s label even when the corresponding window is a poor box for the bicycle. Within a collection, the road may be associated with bicycles or cars. Clues of that kind help explain how a detector can learn a plausible distinction between positive and negative images while still drawing the wrong boxes.

The unknown location is a latent variable, meaning a quantity that influences learning but is missing from the labels. The standard approach described by the authors alternates between selecting the likely location under the current detector and learning a detector from those selections. The authors compare the logic to expectation maximization, where an estimate of missing information is used to update the fitted parameters. In weak detection, early choices can acquire an influence greater than their reliability warrants. If the first selections favor conspicuous object parts, the next detector sees those parts as evidence of what the class looks like. Windows showing the entire object can then rank lower, even if they were available from the beginning.

The paper calls the learning problem non-convex. Practically, that means improving the objective from the current setting can bring the learner to a solution from which its optimization procedure sees no good move, even though a better solution is possible elsewhere. A poor solution can correspond to consistently misplaced boxes, or to finding the right object in some images and missing it in others. Starting with good boxes would help, but supplying them would remove the central difficulty the paper aims to address. The authors point to the contrast between fully supervised detection and weakly supervised detection on PASCAL VOC 2007 to motivate that distinction. Their fully supervised reference is the region-based work of Girshick and colleagues. Rich feature hierarchies for accurate object detection and semantic segmentation

The paper describes several ways earlier work tried to make location learning less sensitive to early mistakes. One line of work softened the operation that selects the strongest window. A hard maximum makes the highest score decisive, even when a rival window is almost as plausible. A smoother objective lets several configurations contribute and gives an optimizer more information about how the objective changes as the detector changes. The paper adopts the soft-max formulation from the authors’ earlier work. It also discusses a convex relaxation studied by Joulin and Bach and a different smoothing technique used by Song and colleagues. Those approaches motivate smoothing as a way to make the search more manageable.

Other work intervened in the way the learner starts or in the data it sees on each update. Kumar and colleagues first learned from examples judged easier and then enlarged the set as learning progressed. Song and colleagues used clustering to select initial windows or initial arrangements of parts. Cinbis and colleagues divided the positive images into folds to reduce the tendency to reinforce the same region choices from one round to the next. These strategies differ in how they give the learner a chance to move away from an unreliable choice. The first changes which examples come into play, the second changes the starting locations, and the third changes how a detector participates in selecting the windows used to train it.

A further line of work placed constraints on plausible locations. In the authors’ earlier posterior-regularization approach, properties such as symmetry and mutual exclusion could make some combinations of windows less plausible. The new work adds a different form of preference. It asks whether windows that the detector currently finds persuasive also resemble regions supported elsewhere in the training collection. A location that looks convincing under the classification objective can therefore receive less support if it has few good counterparts.

The authors trace that idea partly to co-segmentation, the task of finding corresponding object regions across a set of images. If the object is the persistent element and the backgrounds vary, appearance similarity can identify a region of interest even without a box marking it. Weak detection adds a separate demand. The learned detector also has to distinguish the target class from images where it is absent. The authors argue that a procedure devoted to discrimination has no reason to preserve resemblance among its selected regions. Different positive images can be separated from the negatives using evidence with markedly different appearances. An explicit similarity term makes those relationships matter during learning.

Deselaers and colleagues had already used similarity between selected windows. Their formulation connected window choices through pairwise relationships in a conditional random field, a structure in which a choice can have a cost that depends on choices elsewhere. The authors wanted to exploit related evidence while accommodating many possible windows and parts. This motivates an indirect comparison through a collection of representatives. A region can receive support from the representative it resembles, even if it looks unlike a region in a different image that is better explained by another representative.

Why the paper looks for several ways an object can appear

Variation within a class makes blanket similarity a poor target. The authors use bicycles as an example. Whole bicycles can look quite different, whereas their wheels can be similar enough to supply recurring evidence. The same difficulty arises when the object’s pose or viewpoint changes. Forcing every favored window toward a class average could make the method prefer a narrow set of appearances or push the representation towards an average that is a poor fit for many individual regions. Letting different windows draw support from different exemplars preserves some of that variation.

Earlier work also used clustering to learn subcategories. The paper distinguishes several roles that such clusters can play. Clusters can initialize locations, provide appearance groups for separate discriminative training, or distinguish foreground from backgrounds that often accompany it. Wang and colleagues, for instance, sought a compact foreground cluster and several clusters for related background, such as sky or trees for aeroplane images. The present paper uses clusters to capture variation among candidate foreground regions. It treats explicit background representation as a complementary possibility.

The clustering formulation comes from Lashkari and Golland. Its appeal to the authors is that candidate exemplars receive soft weights, and optimizing those weights is a convex problem. The procedure does not require the user to provide a separate number of clusters for each target class. The authors use those properties to revisit the exemplars whenever the favored locations change. An initial clustering can shape the start of learning. A clustering updated during learning can also respond when the detector discovers evidence that was weak or absent in its first pass.

The method, step by step

From an image to a set of possible boxes

The method learns a separate detector for a target class using its positive and negative images. The first operation reduces the number of locations it considers. Selective search supplies around 1,500 candidate windows per image. A window is a proposed rectangular region and is treated as one possible location of the object. The proposals make the search manageable and remove many regions from consideration. They also determine the choices available to the learner. During the procedure described in the paper, any object location must come from the candidate set.

The method represents each window with features from a convolutional neural network. These are numerical descriptions of the region, taken from the network’s activations rather than from the image-level class label. The paper uses the 4096 dimensional output of the fc7 ReLU layer supplied by Donahue and colleagues. The authors also describe encoding the window’s geometry. Aspect ratio uses 8 bins, relative size uses 8 bins, and relative center position uses 2 × 8 bins. The geometry describes where the window is and what shape it has relative to the image. The activation features describe what the window contains in a form that can be scored by the detector and compared across regions. DeCAF

Training and prediction with convex clustering

The steps in order.

Training and prediction with convex clusteringStep 1: Propose candidate windows1. Propose candidate windowsStep 2: Extract appearance and geometry features2. Extract appearance and geometry featuresStep 3: Initialize exemplar weights uniformly3. Initialize exemplar weights uniformlyStep 4: Fit the detector with exemplar weights fixed4. Fit the detector with exemplar weights fixedStep 5: Turn positive window scores into probabilities5. Turn positive window scores into probabilitiesStep 6: Update exemplars with the detector fixed6. Update exemplars with the detector fixedStep 7: Repeat while increasing the clustering weight7. Repeat while increasing the clustering weightStep 8: Score proposed windows in unseen images8. Score proposed windows in unseen images

The detector gives each region a score from a weighted combination of its features. A positive score is evidence for labeling the image positive and associating the label with that region. The negative label has a fixed score of zero. When the paper describes prediction for an unseen image, it uses the best-scoring window to find the candidate location and uses its score relative to zero to decide whether the class is present.

(y*, h*) = arg max_{y ∈ Y, h ∈ H} w · Φ(x, y, h)

Here x is the image, y is a possible class label, and Y is the set of binary labels. The symbol h denotes a candidate window and H is the window set for the image. The vector w contains the detector parameters, Φ is the feature vector for the proposed label and window together, and · is the dot product. The notation arg max returns a choice that attains the largest score. The stars distinguish the predicted label y* and selected window h* from the choices being considered.

Φ(x, y, h) = φ(x, h) if y = 1, and 0 if y = −1

The function φ returns the feature vector of window h in image x. The label 1 means the target class is present and −1 means it is absent. The 0 on the negative branch is the zero vector, which makes the score for that label independent of the window. Under the paper’s prediction rule, a best window whose score is zero or below yields a negative image decision. The cluster weights play no role in this rule.

The loss before clustering

Training starts from a regularized margin objective. The margin loss measures whether the scores favor the known class label given the possible locations. The regularizer applies a cost to large parameter values. Together they express a preference for a detector that separates positive and negative images while keeping its parameter vector from growing without a corresponding gain in fit.

L(w, S) = Lᵣ(w) + λ Lₘ(w, S)

In this equation L is the objective to minimize, w is the detector vector, and S is the set of labeled training images. Its entries are pairs of an image xᵢ and its known label yᵢ, where i indexes the examples and N denotes their total number. The term Lᵣ is the regularization cost, Lₘ is the margin loss over the set, and λ controls the weight of that loss relative to the regularization cost.

Lᵣ(w) = (1/2) ‖w‖₂²

Here ‖w‖₂ is the Euclidean norm of the detector vector w. The superscript square applies to the norm, and the factor 1/2 scales the result. In terms of the parameters, this penalty grows with the sum of their squared magnitudes.

The hard-max latent support vector machine, abbreviated LSVM, compares the best scoring configuration consistent with the observed label with the strongest alternative after giving incorrect labels an extra advantage. For a positive image, the first of those scores comes from the currently highest-scoring region. The other search can consider both labels and adds a cost when the label disagrees with the annotation. The loss encourages the correct label to retain the lead even with that extra cost applied to its competitor.

ℓₘₘ(w, xᵢ, yᵢ) = max_{y, h} [w · Φ(xᵢ, y, h) + Δ(yᵢ, y)] − max_h [w · Φ(xᵢ, yᵢ, h)]

The symbol ℓₘₘ is the max-margin loss on training image xᵢ with known label yᵢ. The vector w, dot product ·, and joint features Φ give the score defined above. The first max ranges over candidate labels y and windows h. The second ranges over windows with the label fixed to yᵢ. The function Δ is the zero-one label error. It is 0 when y agrees with yᵢ and 1 when they disagree. The subtraction compares the best loss-adjusted score with the best score available under the correct label.

In this objective, a change to a lower-scoring window can leave the positive image’s contribution unchanged as long as another window stays on top. That is an important restriction in scenes with several instances or several plausible estimates of the object’s extent. The highest-scoring window represents the evidence for the correct label, even when some of its closest competitors contain useful evidence. Also, a small change in w can abruptly switch which window attains the maximum. The paper uses this hard-max procedure as a reference when assessing smoothing and the subsequent clustering step.

Keeping several candidate locations in play

The authors’ starting point for the new detector is the soft-max latent support vector machine, or SLSVM. It replaces each maximum in the loss with a smooth expression formed by exponentiating and summing the scores before taking a logarithm. A very high score can still dominate the sum. Several high scores can also contribute together, and an increase in a competitive window’s score can change the loss before that window reaches first place. In a positive image with several objects or several good boxes, this broadens the evidence available in a training update.

ℓₛₘ(w, xᵢ, yᵢ) = (1/β) log Σ_{y, h} exp[β w · Φ(xᵢ, y, h) + β Δ(yᵢ, y)] − (1/β) log Σ_h exp[β w · Φ(xᵢ, yᵢ, h)]

The symbol ℓₛₘ is the smooth loss on image xᵢ with observed label yᵢ. The first Σ adds terms over possible labels y and windows h, and the second adds terms only over windows, with the true label used throughout. The operations exp and log are the exponential and natural logarithm. The score uses w, · and Φ as before, and Δ adds the label error in the first sum. The temperature parameter β scales the terms inside the exponentials and the factors outside the logarithms. As β tends to infinity, the expression tends to the hard-max loss. The authors use β = 1 in their experiments.

Lₛₘ(w, S) = Σ_{i=1}^{N} ℓₛₘ(w, xᵢ, yᵢ)

Here Lₛₘ is the training-set loss, S is the set of training pairs, and w is shared across those pairs for the target class. The sum runs over training examples from index 1 through N. Each contribution is the smooth loss ℓₛₘ of the corresponding image xᵢ and label yᵢ. This is the smooth version of the margin term denoted Lₘ in the original objective.

Smoothing the loss lets the authors start without manually assigning a latent box to each positive image. It also makes gradient-based optimization easier to apply. It leaves the fundamental ambiguity about which visual evidence corresponds to the target. If several windows with road or sky are useful for separating training images, a smooth discriminative loss can still favor them. The authors add the clustering term because they want the favored windows to have support from recurring appearances within the positive set.

Giving each positive window a probability

The window scores feed the clustering stage through a separate soft assignment. Within a positive image, every window gets a probability that increases with its score relative to the other windows. This gives clustering a way to concentrate on the regions the current detector considers plausible without having to draw a firm distinction between the winning box and its competitors. In a scene with several high-scoring candidates, each can influence which examples become representative.

p(h | x, w) = exp[β w · φ(x, h)] / Σ_{g ∈ H} exp[β w · φ(x, g)]

In this expression p is the probability assigned to window h, conditional on image x and detector vector w. The score is the dot product of w and the window feature vector φ(x, h). The denominator sums exponentiated scores over windows in H, using g as the index to distinguish them from the window being evaluated. The parameter β controls how sharply the probability concentrates on high scores. This normalization distributes the probability within an image. A high value means that the window scores well relative to its competitors in that image.

The distinction between this probability and a ground-truth statement about the box is important. For a positive image, the learner knows the target is present and uses the distribution to express where it presently finds the evidence. A window can receive substantial probability while containing an incomplete object or a patch of context. Unlike an independently calibrated probability that a box is correct, the value responds to the other proposals in the same image. If several overlapping windows all score highly, the probability may be spread among them.

The paper uses u for a window together with the identity of the image it came from. The full collection of candidate windows in positive images is U. Thus p(u, w) is a shorter way of writing the probability assigned to the window of u within its own image. Keeping the image identity attached to the window lets the method normalize within images for scoring and then pool the windows across images for clustering.

Choosing exemplars through soft similarity

Every window in the positive pool is eligible to serve as an exemplar. Unlike a cluster center represented by a newly computed average feature vector, an exemplar corresponds to an actual region from a training image. Some such regions can be good representatives of many candidates. Others may be useful only for a distinct appearance shared by a smaller group. The procedure gives each candidate a non-negative weight and shares a fixed total weight among them.

Σ_{u ∈ U} qᵤ = 1, with qᵤ ≥ 0

Here U is the positive-window pool, u is one of its windows, and qᵤ is the weight that window receives in its role as a potential exemplar. The sum runs over the full pool. The equality and inequality require the weights to have total 1 and prevent negative weights. A window with positive weight is counted as a selected exemplar. The method can therefore change the number of selected representatives as the weights change.

The similarity between a window and a potential exemplar is based on distance between their features. Regions whose descriptions are close provide more support for one another. This is an appearance comparison between region descriptions. The windows can come from different images and can occupy different positions in the respective photographs.

dφ(u, u′) = ‖φ(u) − φ(u′)‖₂

The function dφ gives the Euclidean distance in feature space. The symbols u and u′ identify two windows in the positive pool, and φ(u) and φ(u′) are their feature vectors. The minus sign takes the component-by-component difference and ‖·‖₂ takes its Euclidean norm. The paper uses this distance without a square in the convex-clustering term.

sᵤ,ᵤ′ = exp[−α dφ(u, u′)]

The symbol sᵤ,ᵤ′ denotes the similarity between window u and candidate exemplar u′. The exponential exp converts the negative scaled distance into a positive similarity. The parameter α is positive and controls how sharply support falls with distance. The authors also use it to control the sparsity of the exemplar weights. Within this formulation, the number of selected exemplars is a consequence of the weight optimization at the chosen α.

To measure how well a candidate window is represented, the method adds its similarities to all the exemplars, weighted by their current importance. A candidate can get support from several representatives. An exemplar that is far away contributes little, even if it carries considerable weight. Different windows can therefore receive support from different parts of the same exemplar collection. This is what makes the similarity local in feature space. The method need not make windows from different viewpoints resemble one another as long as each favored region has a nearby representative.

L𝚌 = −Σ_{u ∈ U} p(u, w) log[Σ_{u′ ∈ U} qᵤ′ exp(−α dφ(u, u′))]

Here L𝚌 is the clustering loss. The outer sum visits positive windows u, with p(u, w) giving each window’s probability under detector w within its image. The inner sum visits possible exemplars u′. It combines their weights qᵤ′ with the similarities determined by dφ, α and the exponential. The log is applied to the total support for u, and the minus sign makes weak support costly. Since the cost is multiplied by the window’s probability, poor representation matters most for regions the detector currently favors.

For fixed window probabilities, increasing the support of a favored window reduces the corresponding cost. The weights are shared among all windows, so putting more weight on an exemplar is worthwhile when it provides support where the objective values it. For fixed exemplar weights, the direction of influence changes. The detector can reduce the clustering cost by shifting probability towards better-represented windows. It still has to account for the known image labels through the discriminative loss. These two uses of the clustering term are what couple the procedures.

L(w, S) = Lᵣ(w) + λ Lₛₘ(w, S) + γ L𝚌(w, S)

The symbol L now denotes the full objective, using detector parameters w and training data S. The regularizer Lᵣ penalizes large detector weights, Lₛₘ is the smooth margin loss and L𝚌 is the similarity cost. The factors λ and γ control the influence of the margin and clustering losses, respectively. The paper’s notation shows the dependence of the clustering cost on w and S, while its definition also depends on the exemplar weights q that are updated separately.

Alternating the detector and exemplar updates

The procedure starts with uniform exemplar weights. It holds them fixed and minimizes the full objective with respect to w. The authors use BFGS, a quasi-Newton procedure that uses gradient information to approximate the curvature of a smooth objective. They report finding it faster and more accurate for their objective than stochastic gradient descent. This step updates the detector, which changes the window scores and therefore the probabilities given to the windows in positive images.

The next step holds the detector fixed. For each window, the term inside the logarithm is linear in the exemplar weights. The negative logarithm on its positive argument is convex, and the window probabilities are fixed, non-negative multipliers at this stage. The feasible set for the weights is also convex. This is the part of learning to which the paper’s global-minimum guarantee applies. The clustering update can find an optimum for the current window probabilities without depending on a favorable initialization in the way a non-convex choice of centers would.

zᵤ⁽ᵗ⁾ = Σ_{u′ ∈ U} sᵤ,ᵤ′ qᵤ′⁽ᵗ⁾

Here t is the index of a clustering iteration. The quantity zᵤ⁽ᵗ⁾ is the total support for window u under the current weights. The sum ranges over candidate exemplars u′ in U. The factors are the similarity sᵤ,ᵤ′ and the current weight qᵤ′⁽ᵗ⁾ of the exemplar. This support is the positive quantity whose logarithm appears in the loss.

ηᵤ′⁽ᵗ⁾ = Σ_{u ∈ U} p(u, w) sᵤ,ᵤ′ / zᵤ⁽ᵗ⁾

The symbol ηᵤ′⁽ᵗ⁾ is the multiplier computed for candidate exemplar u′ at clustering iteration t. The sum now runs over the windows u being represented. For each one, the current detector probability p(u, w) weights the similarity sᵤ,ᵤ′ relative to the support zᵤ⁽ᵗ⁾ already available to that window. In this comparison, a candidate can make a valuable contribution when it resembles a favored window that has relatively little support from the current mixture.

qᵤ′⁽ᵗ⁺¹⁾ = ηᵤ′⁽ᵗ⁾ qᵤ′⁽ᵗ⁾

The quantity qᵤ′⁽ᵗ⁺¹⁾ is the weight of exemplar u′ after the update. Its current weight qᵤ′⁽ᵗ⁾ is multiplied by ηᵤ′⁽ᵗ⁾, which reflects its contribution across the positive windows. Repeated clustering steps adjust the mixture toward one that represents the favored windows under the fixed detector. On returning to the detector update, the objective uses this revised support for each window.

The authors observed that early window probabilities can be unreliable enough for clustering to harm learning. They therefore start with a small γ and increase it toward the chosen value. This follows the logic of deterministic annealing as described in the paper. The influence of another part of the objective is made gradual, so the initial detector does less of its learning under similarity preferences derived from poorly localized examples. Once the detector has produced more informative probabilities, the exemplars can play a larger role.

Computing similarities is a separate source of training cost. The paper precomputes the distances between positive windows before alternating the updates. Because the feature vectors stay fixed as the detector changes, those distances need not be recomputed at each update. The authors use approximate nearest-neighbor search and retain the largest 1000 similarity values in the neighborhood calculation. They report a negligible effect on the final results from this approximation. The learned exemplars are used to guide the training scores. For a new image, the detector returns to the linear window rule and does no search among the exemplars.

The weighted k-means alternative

The authors also replace the convex term with a weighted version of k-means to test the value of their particular clustering formulation. In this comparison, each positive window is assigned to the nearest cluster center in feature space. A center can be a weighted average of its assigned windows, so it need not be a region from a training image. Window probabilities from the current detector retain the same general role by making the mistakes on favored windows more costly.

L𝚌 = Σ_{u ∈ U} p(u, w) min_{c ∈ C} ‖φ(u) − c‖₂²

Here L𝚌 denotes the alternative clustering cost, U is the positive-window pool and u indexes its windows. The weight p(u, w) is assigned by detector w. The symbol C denotes the set of centers, and c is a candidate center. The expression ‖φ(u) − c‖₂² is squared Euclidean distance between the window vector and that center. The min chooses the distance to the nearest center, and the outer sum accumulates the weighted costs of the windows.

The update alternates assigning windows to centers and recalculating each center as the mean of its assigned features weighted by window probabilities. The centers themselves are unknown parameters. With the convex formulation, the candidate locations of exemplars are already determined by the pool and the unknowns are their weights. With weighted k-means, the number of centers is fixed for the run and the locations of the centers move. The paper describes restarting k-means with random centers during iterative optimization to guard against poor local solutions. Its experimental setup also describes seeding the centers from discriminative windows after the first detector iteration and updating them with the detector thereafter.

Experiments and results

What the two evaluations measure

The authors evaluate on PASCAL VOC 2007, using its 20 classes and the usual weak-supervision protocol described in the paper. They discard images marked difficult under that protocol and train with image-level labels. The final detectors are trained on the combined train and validation splits, known as trainval. Ground-truth boxes serve to judge localization and detection. Their coordinates are withheld from the procedure that learns the detectors. The authors leave out horizontally flipped copies of the images, an augmentation they identify as a possible source of further gains.

Correct localization, or CorLoc, asks how often a method successfully locates an object in positive trainval images. The overlap criterion uses intersection over union, the area common to a proposed box and a reference box divided by the area covered by either. The paper requires more than 50% intersection over union for a correct localization. CorLoc thus measures whether the learner recovered a plausible location in images whose positive class label it already had during learning. The reported mean summarizes localization across categories.

The other evaluation uses average precision, or AP, under the VOC procedure on the test split. AP measures detection quality across the ranked predictions for a class, accounting for how precision changes as more detections are included. Precision concerns how many of the detections counted at a given point are correct. A high-ranking detector also needs to recover the target objects, so the evaluation accounts for recall, the fraction of target objects it finds. Mean AP summarizes performance across classes. Test AP and trainval CorLoc therefore address different questions about the same learned detector. One measures ranked detection on unseen images, and the other checks recovery of locations on positive images encountered in learning. Evaluation & benchmarks

Settings and comparison conditions

The authors tune the margin weight λ, the clustering weight γ and the temperature parameters β and α using classification accuracy on the validation set. They use one parameter setting across the classes, with α = 100 for convex clustering and β = 1 for the smooth loss and window probabilities. With the chosen settings they describe the selected exemplars as approximately 20% of the windows from positive images. Weighted k-means uses 1000 centers, chosen by cross-validation on classification scores. In that comparison the count is selected in advance. The convex version lets the weights determine which windows participate as representatives.

The authors run their own implementations of hard-max LSVM and soft-max SLSVM, and compare them with SLSVM plus either weighted k-means or convex clustering. These comparisons share the window representation. The authors report that the additional geometry features yield a similar 0.4% mAP improvement on the VOC 2007 test split for LSVM, SLSVM and their proposed detector. The common feature representation matters for interpreting the clustering gains. The new training term changes how the features enter the learning objective, while the prediction rule uses the same kind of region scores for all these systems.

Training time is reported separately from prediction cost. After precomputing CNN features and pairwise distances, the paper gives average training times of roughly 1 hour for LSVM, 1 hour for SLSVM and 2 hours for the convex-clustering detector, on a 16 core i-7 CPU. These are times for the stated setup after preprocessing. The paper makes a computational comparison for detection on new images. Each of the methods computes a dot product for every selective-search window, so including clustering in training adds no exemplar matching or extra feature extraction to prediction.

Localization on positive training images

The convex-clustering detector reaches 43.7 mean CorLoc on VOC 2007 trainval. It scores above the methods of Shi and colleagues and Cinbis and colleagues in the paper’s comparison, while Wang and colleagues achieve 48.5. The chart includes the authors’ detector and a selection of those published comparisons. The other Shi comparison, which uses a Bayesian joint topic approach, reports 36.2 mean CorLoc on the same training split.

Mean correct localization on positive PASCAL VOC 2007 trainval images

Convex clustering exceeds the transfer and multi-fold comparisons, while latent category learning has the highest mean.

Mean correct localization on positive PASCAL VOC 2007 trainval imagesShi et al., transfer by ranking: 32.1Shi et al., transfer by ranking32.1Cinbis et al., multi-fold training: 38.8Cinbis et al., multi-fold training38.8Convex clustering (this paper): 43.7Convex clustering (this paper)43.7Wang et al., latent category learning: 48.5Wang et al., latent category learning48.5
The numbers
System or settingmean CorLoc %
Shi et al., transfer by ranking32.1
Cinbis et al., multi-fold training38.8
Convex clustering (this paper)43.7
Wang et al., latent category learning48.5

The mean leaves room for substantial differences among categories. For the authors’ detector, trainval CorLoc on car is 74.3 and on aeroplane it is 66.4. On person it is 19.8 and on boat it is 20.4. Wang and colleagues outperform the proposed method on some categories where the proposed detector can already localize many instances. Their aeroplane CorLoc is 80.1. The convex-clustering detector gets higher CorLoc on some categories, including bus, where its 63.4 is above Wang and colleagues’ 55.7. The aggregate ranking therefore does not characterize what happened for every class.

The paper attributes part of the difference between the approaches to what the clustering is designed to represent. Wang and colleagues build clusters for the foreground and for related backgrounds and fit distinct appearance descriptions. Their method uses a super-vector encoding of the CNN features that increases their dimensionality. The convex-clustering detector trains a single linear scorer per class and uses the clusters to represent variation among positive windows during training. The reported CorLoc comparison tests the resulting systems as a whole, with those differences in representation and training included.

Detection on the test split

The proposed detector achieves 27.7 mean AP on the VOC 2007 test split. Wang and colleagues report 30.9, the highest mean in the paper’s weakly supervised test comparison. The proposed detector is ahead of the remaining published methods in that comparison. In addition to the results drawn below, the paper reports 22.4 test mean AP for Cinbis and colleagues and 22.7 for Song and colleagues’ work on learning to localize with minimal supervision.

Mean average precision on the PASCAL VOC 2007 test split

Convex clustering exceeds the earlier posterior-regularized detector and the visual-pattern approach, while latent category learning leads.

Mean average precision on the PASCAL VOC 2007 test splitSong et al., visual pattern configurations: 24.6Song et al., visual patternconfigurations24.6Bilen et al., posterior regularization: 26.4Bilen et al., posterior regularization26.4Convex clustering (this paper): 27.7Convex clustering (this paper)27.7Wang et al., latent category learning: 30.9Wang et al., latent category learning30.9
The numbers
System or settingmean AP %
Song et al., visual pattern configurations24.6
Bilen et al., posterior regularization26.4
Convex clustering (this paper)27.7
Wang et al., latent category learning30.9

The test AP results also vary by class. For the convex-clustering detector, car AP is 47.1, bicycle AP is 46.9 and aeroplane AP is 46.2. Chair AP is 7.8 and bottle AP is 12.2. The comparison with trainval localization adds context to such numbers. For example, the same method reports a trainval CorLoc of 59.6 for cat and a test AP of 35.2 for cat. Those values describe different metrics on different splits. Their role is to show what each evaluation says about a class, rather than yield a numerical estimate of how much generalization was lost.

As motivation, the paper cites 58.5% mean AP on VOC 2007 for fully supervised detection with the CNN feature family it discusses, alongside Wang and colleagues’ 30.9% mean AP in the weakly supervised setting. The fully supervised result uses location information available in training, so the authors treat it as a reference for what knowing the locations can make possible. The comparison with the authors’ own SLSVM baseline addresses the more specific question of how much their new term helps with the learning setup held in common. In that controlled comparison, they report 3.3% mAP over SLSVM for convex clustering and describe the full improvement over the hard-max baseline as more than 4 points.

What the ablations show

Smoothing helps before exemplars are introduced

The comparison between LSVM and SLSVM changes how candidate windows enter the discriminative loss. There is no clustering term in either baseline. The authors report an improvement of 1.2 points in test mean AP from replacing the hard maximum with the smoother loss. The improvement is more prominent in classes such as chair, cow, sheep and tv-monitor, which the paper identifies as classes where multiple instances often occur in an image. This pattern is consistent with the smooth loss’s ability to make use of several high-scoring windows within an image.

The comparison does not establish which of those windows supplied the useful evidence on each update. Several windows can cover different instances, or they can cover the same instance with different extents. The experimentally controlled change is the move from a single winning score in the correct-label term to a smooth combination of competing scores. That result establishes a gain for smoothing within this setup, separate from the effect of adding exemplars.

The way similarity enters learning matters

Adding weighted k-means to SLSVM gives a gain of 0.5 points in VOC 2007 test mean AP over SLSVM. Adding convex clustering gives the reported 3.3% mAP improvement over the same baseline, with improvements in most categories. Both versions weight candidate windows by the current detector probabilities. The comparison therefore goes beyond asking whether it helps to use the detector’s current opinions when clustering. It asks whether the choice of clustering objective makes a difference when the representation and the smooth detector provide the common starting point.

Several properties change together. Weighted k-means uses the closest of a fixed number of fitted centers. The convex method uses support from a weighted mixture of candidate exemplars, and the final set of non-zero weights determines how many exemplars are selected. The fixed-detector update also differs in its optimization guarantees. The experiment shows that the authors’ convex formulation worked better as a package. It leaves open how much of the gain came from soft support, using actual windows as exemplars, selecting a sparse collection or finding a global optimum for the fixed-detector update.

The geometric features offer another control. Their reported 0.4% mAP gain is similar across the hard-max baseline, the smooth baseline and the proposed method. This supports the interpretation that the advantage of the new training procedure comes from the treatment of positive windows, rather than from a feature representation that only the new detector sees. The nearest-neighbor approximation receives a briefer check. The authors report negligible changes to the final results, which supports their use of the shortcut in this experiment. They do not report separate class-level values for its effect.

How the favored regions move

The paper follows several examples over the course of training. Its response maps combine the scores of windows that cover parts of an image, letting the reader see where the detector’s scores concentrate. The paper shows final detections from SLSVM and convex clustering alongside maps from different stages of learning. The examples illustrate how a detector can move from evidence that is useful for classification towards a window that better fits the object.

For an aeroplane, the baseline includes some sky in its box. In the car example, it includes a section of road. The successive maps for the proposed detector show the response concentrating more closely on the object as the similarity term helps redirect window scores. The proposed explanation is that windows covering the object have useful counterparts among the learned exemplars. The surrounding background can contribute evidence of the image label but lose support when candidate regions are assessed for how well the exemplars account for them.

Other examples begin with a response concentrated on an object part. By the end, the response and final box include more of the object. This shows a possible benefit of fitting the detector and updating the representatives repeatedly. An initially persuasive part can remain one source of evidence while other windows become better supported as learning proceeds. The cluster illustrations show why a collection of exemplars can provide this kind of guidance. It includes whole objects and parts with relatively little background in the examples shown, while retaining differences in appearance, pose and setting.

The bicycle pictured with its rider shows a different outcome. The resulting detection includes both bike and person. The authors connect the error to the two classes often occurring together in training images. A region containing both can resemble other positive windows and satisfy the classification objective as well. The example gives a concrete case where recurring visual evidence supports the wrong extent. The illustrations are evidence of the behavior on the displayed examples. The paper’s aggregate detection and localization measures are what show how well the approach works across the benchmark.

Where the class comparisons are less favorable

The authors report that classes with relatively low baseline detection, at ∼ 10% AP, can remain difficult for convex clustering. They mention bottle, chair and person, and associate some of these difficulties with cluttered scenes. A detector that gives weak or misleading initial scores supplies the clustering step with less reliable input. Updating the exemplars can then strengthen an association that is already present rather than supply a stronger signal for where the object ends.

The chair result also illustrates why the paper studies smoothing and clustering separately. Chair is among the classes where smoothing can exploit more than one plausible instance, and among those where the authors say they struggle to obtain discriminative clusters. Allowing several windows to influence training addresses the bottleneck created by a hard maximum. Obtaining useful exemplars requires those favored windows to share enough relevant structure across images. The class-level observations show that a system can benefit from the former change while still encountering the latter difficulty.

Limitations

Limits identified by the authors

The authors present convex clustering as a way to guide a difficult localization problem. Their guarantee has a specific domain. When the detector and its window probabilities are fixed, the exemplar weights can be optimized globally for the stated clustering objective. The detector update and the alternating procedure still operate on a problem in which the positive locations are unknown. The authors motivate their algorithm by the possibility of finding better solutions to that problem. The experiments show better detection than the authors’ baselines under their setup, while the objective’s structure leaves the final result dependent on how learning proceeds.

The early difficulty with clustering is a consequence of this dependence, and the paper identifies it explicitly. If the detector’s first window probabilities favor misleading regions, the clusters optimize their representation of those regions. Increasing γ gradually gives the detector some time to learn before the exemplars have their full influence. The reported behavior for low-performing classes and the bicycle-and-rider failure illustrate circumstances in which stronger support among windows is insufficient to resolve the missing box annotations.

The authors also describe parts of the design that were left out of the experiments. They use the same β across categories and suggest that tuning it for individual categories could improve the smooth baseline and their method. They omit flipped training images. They discuss incorporating symmetry and mutual exclusion from their earlier work, and modeling recurring backgrounds as Wang and colleagues did. These are possibilities identified by the authors. The reported evaluations use the simpler setup and supply no measured gains for those combinations.

Their representation of foreground variation is also narrower than a system that explicitly learns categories of related background. The method uses positively labeled images to find exemplars and negative images to help learn a discriminative scorer. The exemplar weights themselves describe similarity among windows from the positive images. A training crop can include sky, road or a rider, and some such features can enter the selected clusters. The paper’s failure example makes clear that the clustering objective alone cannot tell whether stable context belongs inside the desired box.

Limits visible in the evaluation and objective

The evaluation covers one benchmark under one labeling and proposal protocol. It establishes that the authors’ treatment of clustering can improve this combination of a particular proposal mechanism, region features and a smooth detector. It leaves open how the same term would behave with other window pools, other feature distances or positive image collections with different amounts of variation and clutter. The proposal stage is an immediate dependency. When it supplies no window that approximates an object well, reweighting the existing choices cannot construct that missing box.

The distance used to pick exemplars is another dependency. Similarity is meaningful only through the region features. Two windows may receive similar descriptions because they show a recurring object part, because they capture the same background, or because they contain objects that tend to occur together. The detector probabilities reflect what helps with the image-level label. The two signals can therefore share the same bias even though classification and clustering use different objectives. The quantitative improvement shows that their interaction was often beneficial on VOC 2007. The examples show why that benefit need not occur on every image or class.

The softer loss can make use of multiple instances in training, but the evaluation gives only indirect evidence about which instances it uses. CorLoc counts correct localization on positive images. A method can succeed under that measure by locating an instance without finding the remaining ones. Test AP evaluates detections on unseen images, but the paper does not separately score the recovery of whole objects from initially preferred parts or the coverage of every co-occurring instance during training. The response maps describe such behavior for chosen examples.

The training cost also has a measurement boundary. The reported hours begin after CNN feature extraction and pairwise distance computation. They show the cost of fitting each detector under the stated preprocessing condition. They leave the full cost of preparing a new collection unmeasured in those timings. The approximate search reduces the number of similarities that must be retained, but selecting exemplars still adds a training operation over windows from positive images. The test-time argument is more direct because every trained system uses the same type of feature vector and linear score for each proposal.

Finally, the comparison with weighted k-means changes several things at once, and the comparisons with published results change even more. The paper can claim the reported advantage of its convex-clustering variant over its own baseline and weighted k-means implementation. Assigning that advantage to a single property would require a comparison that varied that property alone. Likewise, the higher averages reported by Wang and colleagues establish the ordering of the evaluated systems. They do not quantify the individual effects of background clustering, richer encoding or using separate appearance descriptions.

What came after

There are no later works available to trace how subsequent researchers used or tested the paper’s method. The paper itself leaves open whether its exemplar-based training can be combined effectively with explicit background clusters, symmetry or mutual exclusion. It identifies these as possible extensions and reports no experiments on them.

Cite

Cite as Hakan Bilen, Marco Pedersoli and Tinne Tuytelaars. 2015. Weakly supervised object detection with convex clustering. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1109/cvpr.2015.7298711

@inproceedings{bilen2015weakly,
  title = {{Weakly supervised object detection with convex clustering}},
  author = {Hakan Bilen, Marco Pedersoli and Tinne Tuytelaars},
  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.7298711},
  url = {https://doi.org/10.1109/cvpr.2015.7298711}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bilen-2015-weakly-supervised-object-detection-convex/