Weakly Supervised Object Detection with Posterior Regularization
Paper · 2014 · Hakan Bilen, Marco Pedersoli and Tinne Tuytelaars
Summary
An image label can say that a cow is present without saying which patch of the image contains it. Training an object detector from labels like this would reduce the need to draw bounding boxes by hand. It also leaves the detector with a choice that can shape everything it learns. If it starts treating a distinctive patch of background as evidence for cows, the image labels alone may give it little reason to change. If it commits to the strongest candidate box in each image, it can also pass over other cows in the same scene. Bilen and colleagues change how a detector makes use of these uncertain locations during training.
Their starting point is a latent support vector machine. The location is latent because the training data list the categories present in each image and leave their positions to be inferred. The authors replace the operation that picks the strongest box in the training loss with a smooth aggregation over all candidate boxes. Strong candidates still receive more weight, but several boxes can influence what the detector learns from an image. This also makes the loss amenable to direct gradient-based optimization. The candidates come from selective search, and a convolutional neural network supplies a visual description of each crop.
The paper then uses the probabilities assigned to candidate boxes to express two expectations about where objects should be found. A horizontal flip should move the evidence to the corresponding boxes in the reflected image. When different categories occur together, their detectors should be discouraged from concentrating on the very same box. The authors implement these expectations as penalties during training, an approach they call posterior regularization. The flip penalty compares distributions across the original image and its reflection, while the exclusion penalty compares distributions across categories within an image.
On the Pascal VOC 2007 test split, detection mean average precision rises from 22.7% for the hard-max baseline to 24.0% with smooth pooling. Adding mirrored training images gives 24.8%, adding the symmetry penalty gives 26.0%, and adding the exclusion penalty gives 26.4%. The full detector also achieves 80.9% mean average precision when its window scores are combined for image classification, compared with 74.1% for a classifier trained on whole images. Improvements vary by category and by component. The experiments show that the way a detector distributes its attention over candidate locations can matter both for locating an object and for recognizing that it is present.
Deep dive: Weakly Supervised Object Detection with Posterior Regularization
Weakly supervised object detection learns where objects are from image labels by pooling candidate boxes and regularizing their probabilities. · about 32 minutes to read
The problem and its context
What a presence label leaves unresolved
Detection asks for a category and a location. In a fully annotated training image, a box gives the learner an example of where a particular object begins and ends. The weakly supervised task supplies an image-level presence or absence label for each category. That label provides useful evidence about the image as a whole. The boxes that should provide positive examples of the category have to be discovered inside it.
Consider an image labeled for cows. A proposed rectangle might cover a whole cow, a visually distinctive part of it, or several animals together. Another rectangle might cover scenery typical of the images in which cows appear. A detector can get the category right for that image while assigning its highest score to any of these regions. The difference matters once the task is to return a box. A useful image classifier can draw on evidence anywhere in the frame, while the detector has to place that evidence at the object.
The paper describes the standard approach as a joint learning problem. The detector uses its current understanding of a category to nominate plausible locations, and the appearance of those locations supplies evidence for learning the category. The selected locations can improve as the detector improves. The same dependence can reinforce a poor choice. Regions favored early can continue to receive high scores because earlier selections have already influenced the appearance weights. As the authors emphasize, a good fit to the image labels leaves room for latent locations that fail to correspond to the objects.
Images with several instances add another difficulty. Under hard selection, the learner uses the strongest candidate as the positive image's representative for that category. An image with several plausible objects still contributes through a single winning region on the positive side of the loss. The authors warn that additional instances can be discarded and, in approaches that use other regions as background, can even supply misleading negative examples. A presence label says at least one instance is there. The restriction to a single representative region comes from the learning procedure.
How earlier approaches guided learning
The paper describes earlier work on latent-variable learning as typically involving a non-convex objective, with some methods alternating between estimating the missing annotations and updating a classifier. Each update can improve the current fit while keeping the process in the neighborhood of an early solution. Two strands of earlier work addressed this issue by finding better starting points or by changing the optimization problem.
Starting points could come from a generic objectness score. Deselaers and colleagues used the highest such score to initialize the hidden locations. This puts likely objects in contention before the category detector has been learned. Self-paced learning, as described in the work of Kumar and colleagues, starts with a smaller collection of examples and brings in harder ones as learning proceeds. Earlier work by Bilen and colleagues used background detectors built from exemplars, while Song and colleagues used a submodular search to find windows with discriminative and relevant content. These choices supply different kinds of evidence about which regions deserve attention early on.
The paper also discusses the multi-fold multiple-instance learning procedure of Cinbis and colleagues. In multiple-instance learning, an image provides a set of possible instances along with a label for the set. A box inside the image is a possible instance here. The problem is to use the set label to discover which boxes support it. The multi-fold procedure addresses overfitting to the initial window estimates. It shares the broader concern that the inferred training examples and the detector learned from them can become too closely tied to each other.
Other approaches changed the objective. Joulin and Bach proposed a convex relaxation solved through semidefinite programming. Miller and colleagues used an entropy measure to reduce uncertainty in the distribution over latent choices. Song and colleagues applied a smoothing technique to the latent support vector machine objective as well as addressing initialization. In the account given by this paper, smoothing offers a way to make the search less sensitive to early commitments. The authors retain that motivation and also ask what the smoother loss allows the detector to learn from images with several instances.
Why constrain the inferred locations
The new proposal addresses what happens inside a solution that already explains the labels reasonably well. A horizontally flipped image is still an image of the same categories, and a candidate box has a known counterpart after the flip. Conventional augmentation adds the reflection as a training example. This can encourage both images to receive the same category decision while leaving the detector free to obtain that decision from different regions. Scoring a crop and its reflection jointly would impose a stronger requirement on the representation. The authors look for a way to encourage corresponding locations to receive similar scores through the training objective.
The relationship between different categories poses a separate problem. The paper cites supervised work by Desai and colleagues that learns spatial relationships between labeled object instances. That approach can use known locations to estimate how categories tend to be arranged. In weak supervision, both the object positions and their relations would have to be inferred. The authors instead use a property they can express directly over the candidate boxes. Where two categories are present, the same candidate should receive a penalty if it contributes strongly to both.
For this step the paper draws on posterior regularization as introduced by Ganchev and colleagues. The earlier framework uses constraints on the distributions of hidden variables to express information about the task. The paper describes applications to word alignment and multi-view learning. In detection, the image labels leave the windows uncertain, but a correspondence between flipped windows is known by construction. And the labels identify which categories can compete for a window in a given training image. The authors turn both sources of indirect information into costs on the inferred location probabilities.
The method, step by step
Turning an image into candidate locations
The procedure begins with candidate rectangles. Selective search supplies roughly 1500 windows per image. The detector can learn to favor one region over another within that collection. The rectangle itself comes from the proposal procedure. Once a window has been proposed, the authors crop that region and run a pretrained convolutional neural network on the crop. The resulting visual descriptor is the input to the detector's scoring rule.
The crop-and-describe procedure follows the region-based approach discussed in Rich feature hierarchies. The authors use a network pretrained on ImageNet ILSVRC 2012 and obtain a feature vector for each window using DeCAF. For the experiments, each vector has 4096 components. A category detector learns a weight for each component. The score is the dot product of those weights and the window's descriptor. Thus a picture of a whole object, a partial view, and a background patch can be scored separately, even though they all share the same image-level annotation.
The authors initialize the appearance weights to 0. At that point all candidate windows have the same score for a category and receive equal probability in its window distribution. Different crops can still have different visual descriptors, so changes in the weights can make their scores diverge as training progresses. This gives the reported experiments a uniform starting point for localization.
Learning object locations from image-level labels
The steps in order.
The hard-max starting point
The paper begins its formal development with the binary question of whether a particular category is present. Let the image be x, the proposed label y, and the candidate window h. The label takes the values −1 and 1 for absence and presence. A joint feature map tells the scoring rule which information to use for the proposed label.
Φ(x, y, h) = { 𝟎 if y ≤ 0; φ(x, h) if y > 0 }
Here Φ is the joint feature map, x is an image, y is the candidate binary label, and h is a proposed window from that image. The function φ gives the crop's feature vector. The bold 𝟎 is the zero vector, with the same dimension as φ, and the scalar 0 separates the negative and positive branches of the rule. That dimension is written d in the paper and is 4096 in the experiments.
For a positive hypothesis, the score varies with the window. For a negative hypothesis, the zero feature vector supplies a reference score of 0 across windows. In binary hard-max inference, the classifier chooses the label with the strongest achievable score after examining its possible window assignments.
y* = arg max_{y ∈ 𝒴} [max_{h ∈ H} w · Φ(x, y, h)]
The symbol y* is the predicted label, y ranges over the possible binary labels in 𝒴, and h ranges over the candidate windows in H. The vector w contains the learned feature weights for the category, and the dot denotes its inner product with the joint feature vector Φ for image x, label y, and window h. The inner maximum gives the highest score for a fixed label. The outer arg max returns the label that attains the highest score.
This decision rule helps explain why localization can drive recognition. A crop with a high score can support the positive label even when its appearance is mixed with unrelated material at the scale of the whole image. During training, however, the location behind that score is also an inference. The feature vector of the window that currently wins is the one that defines the score of the correct positive label in the hard-max loss.
The training set consists of N images xᵢ and their observed labels yᵢ, indexed by i. For this binary formulation, each image has a label for the category under consideration. The regularized objective adds the loss over the training examples to a cost on the size of the weights.
L(w; S, λ) = ‖w‖²/(2λ) + ∑_{i=1}^{N} ℓ(w, xᵢ, yᵢ)
Here L is the training objective, S denotes the set of observed image-label pairs, w is the parameter vector, and λ is the regularization constant. The expression ‖w‖² is the squared Euclidean norm of w, with the coefficient written as the reciprocal of 2λ. The sum runs from the first training example to the Nth. Its summand ℓ is the loss on the image xᵢ with its known label yᵢ at the current weights.
The objective expresses a preference for weights that explain the labels while keeping their norm under control. This size penalty is distinct from the posterior penalties introduced later. It acts on the appearance weights directly. The posterior penalties act on the way those weights allocate support among the candidate windows.
w* = arg min_w L(w; S, λ)
The symbol w* denotes a minimizing parameter vector for objective L with training set S and regularization constant λ. The arg min asks for a value of w that minimizes this function. It states the optimization task. In a latent learning problem, the objective and the algorithm used to search it determine what can be achieved in practice.
To define the loss, the authors compare the observed label with possible rival labels. The rival's score is increased by a label error term. A prediction of the correct label incurs zero label error and a different label incurs unit error.
Δ(yᵢ, y) = { 0 if yᵢ = y; 1 if yᵢ ≠ y }
Here Δ denotes the label error, yᵢ is the observed label of image i, and y is the candidate label. The values 0 and 1 indicate agreement and disagreement, respectively. The error depends on the category decision. The input annotation gives no target window with which to measure a location error during training.
ℓₘ(w, xᵢ, yᵢ) = max_{y,h}[w · Φ(xᵢ, y, h) + Δ(yᵢ, y)] − max_h[w · Φ(xᵢ, yᵢ, h)]
The subscript m identifies the max-margin loss. The image is xᵢ, its known label is yᵢ, and w is the category's weight vector. In the first term, the maximum ranges over labels y and windows h. The score uses the joint feature map Φ, and Δ adds the label error to it. In the second term, the label is fixed to yᵢ and only the window can vary. The subtraction compares the best loss-adjusted alternative, including the correct label as a possibility, with the best score available under that correct label.
For a positive training image, the second term gives the measured support for presence. The margin asks for that support to exceed the score assigned to an incorrect decision by enough to account for the label error. The difficulty is that the entire positive term follows whichever box scores highest. As the weights change, the maximizing box can switch abruptly. While a different object instance remains just below the winner, the positive term still follows the winning box. The max therefore creates both an optimization issue and a restriction on how the image participates in learning.
Giving several windows a role
The smooth version replaces each maximum in the loss with a log of a sum of exponentials. This is the operation the authors call soft-max in their description of the loss. Exponentiating the scores gives high-scoring candidates more influence, and summing lets several candidates contribute. Taking the log puts the result back into the form needed for the score comparison. The construction still assigns more importance to a strongly supported crop than to a weak one. The change is that slightly lower-scoring crops can also affect the update.
ℓₛ(w, xᵢ, yᵢ) = log ∑_{y,h} exp[w · Φ(xᵢ, y, h) + Δ(yᵢ, y)] − log ∑_h exp[w · Φ(xᵢ, yᵢ, h)]
The subscript s denotes the soft-max margin loss. The vector w contains the category weights, xᵢ is the training image, yᵢ is its observed label, y is a possible label, and h is a candidate window. The first sum includes all label-window combinations. Its exponential, written exp, takes the dot-product score from Φ plus the label error Δ. The second sum fixes the label to yᵢ and exponentiates the window scores for that label. Each log is applied after summing the exponentials. The loss subtracts the observed-label aggregate from the aggregate over alternatives.
Suppose several boxes contain good views of cows. Their scores can all affect the positive aggregate and the gradient. Under hard selection, only the strongest of those scores determines the positive aggregate at a given point in training. The softer form also admits other arrangements. Several overlapping boxes around one cow can matter together, as can a box that covers a recognizable part. The mathematical change is pooling over windows. The relationship between those windows and distinct physical objects is inferred through the learned scores and the proposed regions.
Because the aggregate changes smoothly with the scores, the authors can apply a gradient-based quasi-Newton method. They use limited-memory BFGS, abbreviated L-BFGS, to optimize the soft-margin objective directly. The paper also discusses alternating approaches, including the concave-convex procedure and block coordinate descent, as compatible with quasi-Newton updates. The authors report that direct optimization converged faster and gave slightly better performance in their experiments. The empirical observation concerns the comparison they made during development. Smoothing gives them a differentiable objective, while the different ways positive and alternative scores enter the loss still matter to the shape of that objective.
From scores to location probabilities
The soft loss produces a natural weighting over windows for a fixed image and label. The authors normalize the exponentiated window scores to obtain a distribution, which they call the posterior over locations. Each probability expresses a window's share of support within the candidate set for that image and category.
p(h | x, y, w) = exp[w · Φ(x, y, h)] / ∑_{g ∈ H} exp[w · Φ(x, y, g)]
The symbol p denotes the conditional probability of candidate h given image x, label y, and the current category weights w. The bar separates the window whose probability is evaluated from those conditioning quantities. The exponential in the numerator uses the score of h. The denominator sums exponentials of scores over the entire candidate set H, with g used as the running window index. The same feature map Φ and dot product determine both the numerator and the terms in the denominator.
This posterior gives the training procedure a way to talk about where the evidence lies. A window can score well in absolute terms and still receive a modest share of the probability when other regions in the same image also score well. Conversely, an image can have a sharply concentrated posterior because one region stands out relative to its alternatives. At initialization all shares are equal. Later they reflect competition within an image, which is the behavior the authors want their prior knowledge to guide.
The label in this conditional distribution is important. In a positive training image, the question is how to distribute the evidence for a category the annotation says is present. The soft loss still addresses the category decision through its comparison of labels. The posterior penalties address a different part of the training problem, namely which candidate locations support known positive categories.
Matching evidence across a horizontal flip
Imagine a box around a car near one side of an image. After a horizontal flip, its corresponding rectangle lies at the reflected coordinates. The symmetry expectation concerns those two boxes. It applies to the distribution over candidate locations even if the car itself is shown from an asymmetric viewpoint or if other parts of the scene differ across the car's sides.
Adding the flipped image to the training set gives the appearance detector more examples. With augmentation alone, each image can satisfy the presence label in its own way. The original might place most of its mass on one box and the reflection might emphasize a different part of the car or another location. The authors add a cost that directly compares the probability of each original window with that of its reflected counterpart. They use Kullback-Leibler divergence, abbreviated KL, to measure the discrepancy.
Dₖₗ(xᵢ, x̄ᵢ, yᵢ, w) = ∑_{h ∈ H} p(h | xᵢ, yᵢ, w)[log p(h | xᵢ, yᵢ, w) − log p(h̄ | x̄ᵢ, yᵢ, w)]
Here Dₖₗ is the directional KL divergence, xᵢ is the original image, and x̄ᵢ is its horizontal reflection. The observed positive label is yᵢ and the shared category weights are w. The set H contains candidate windows h, each paired with the corresponding reflected window h̄. The quantity p is the normalized window probability, and log is the logarithm. For each pair the equation subtracts the reflected log probability from the original log probability, multiplies that difference by the original window's probability, and sums the resulting terms.
The direction matters because the weights in that sum come from the original image. A discrepancy at a box that receives substantial original probability can therefore contribute strongly to the cost. The method also cares about a discrepancy that is prominent on the reflected side, so the authors average both directions.
PRₛᵧₘ(xᵢ, yᵢ, w) = [Dₖₗ(xᵢ, x̄ᵢ, yᵢ, w) + Dₖₗ(x̄ᵢ, xᵢ, yᵢ, w)]/2
The symbol PRₛᵧₘ is the symmetry penalty on image xᵢ with positive label yᵢ for weights w. The first Dₖₗ compares the original to the reflection x̄ᵢ, and the second reverses the roles, using the same window correspondence in the other direction. The denominator 2 averages the two divergences. Agreement between the distributions brings the penalty down. Since the comparison uses normalized scores, it concerns support allocated to corresponding locations across the whole set of windows.
The loss can trade an improvement in agreement against other demands of training. This gives the relationship between the two views a different role from a feature representation constructed by pairing every crop with its reflection. Here the same learned detector can score a crop on its own after training. The reflection supplies a comparison during learning.
Letting present categories compete for a window
The next step handles images with more than one positive category. Each category keeps a separate appearance weight vector and binary label. The image's full annotation is a vector of those labels. The paper first writes the ordinary training losses together as a sum over categories. At this point each category's loss still depends on its own scores.
ℓₛᵐˡ(w, xᵢ, Yᵢ) = ∑_{k=1}^{K} ℓₛ(wₖ, xᵢ, Yᵢₖ)
Here ℓₛᵐˡ is the multilabel soft-margin loss, xᵢ is the image, and Yᵢ is its vector of binary category labels. The component Yᵢₖ says whether category k is present. The image has a label for each of the K categories, so k runs from 1 to K. The vector w collects the category vectors wₖ, and ℓₛ is the binary soft-margin loss just defined. Summing these category losses retains the separate questions of presence and absence for the different categories.
The coupling comes from mutual exclusion. Consider an image labeled for both sofa and television monitor. A window covering furniture and a screen may carry useful evidence for either category. If both detectors rely heavily on the same rectangle, the presence annotations can be well explained while the localizations remain confused. The authors attach a cost to probability mass that the categories place on the same hypotheses.
PRₘₑ(xᵢ, Yᵢ, w) = ∑_{1 ≤ j < k ≤ K, Yᵢⱼ = Yᵢₖ = 1} ∑_{h ∈ H} √[p(h | xᵢ, Yᵢⱼ, wⱼ) p(h | xᵢ, Yᵢₖ, wₖ)]
Here PRₘₑ is the mutual exclusion penalty, xᵢ is the image, Yᵢ is its vector of category labels, and w collects the category weights. The indices j and k run over distinct category pairs among K categories, with the ordering j < k giving each pair one place in the sum. The restriction to labels equal to 1 selects categories known to be present in this image. For each candidate window h in H, the two factors are its posterior probabilities under categories j and k with weights wⱼ and wₖ. The square root applies to their product, and the inner sum collects that contribution over all candidate windows.
The cost is high when the two distributions share substantial support. A candidate that receives little probability under one category contributes little to their overlap even if it matters to the other. The penalty can also respond to overlap spread across many candidates. Its comparison uses an identical window index across the category distributions. Two distinct candidates with geometrically overlapping rectangles remain separate hypotheses in this expression.
The restriction to positive labels reflects the purpose of the term. When both categories are present, each needs visual evidence somewhere in the image, and the competition encourages their evidence to separate. When a category is absent, its binary loss already addresses that absence. For a training image with only one positive category, there is no positive pair to which the mutual exclusion term applies. The soft loss and the positive category's symmetry penalty still have a role.
Putting the training objective together
The full objective combines the weight penalty, the multilabel soft-margin loss, symmetry for the positive categories, and mutual exclusion for their pairs. The authors train the category weights jointly because the same-window competition makes the objective for one category depend on the scores of others.
L(w; S, λ) = ∑_{k=1}^{K} ‖wₖ‖²/(2λ) + ∑_{i=1}^{N} [ℓₛᵐˡ(w, xᵢ, Yᵢ) + ∑_{k:Yᵢₖ=1} PRₛᵧₘ(xᵢ, Yᵢₖ, wₖ) + PRₘₑ(xᵢ, Yᵢ, w)]
Here L is the complete regularized objective, w is the collection of category vectors, S now contains the images xᵢ and their observed label vectors Yᵢ, and λ is the weight regularization constant. The first sum includes the squared norm of wₖ for each of the K categories, using the coefficient with denominator 2λ. The second sum visits the N training images. Its bracket contains the multilabel loss ℓₛᵐˡ, the sum of symmetry penalties PRₛᵧₘ over categories k labeled 1 in that image, and the mutual exclusion penalty PRₘₑ for that image. The latter already contains its own sum over eligible category pairs.
The same window can consequently be affected by several parts of the objective. A crop can support the correct category at image level, increase the symmetry cost if its reflected partner receives very different support, and increase exclusion if another present category depends on the same crop. Training seeks weights that account for all of these effects. The constraints influence the score distributions through the weights. Their soft form allows the other evidence in the objective to matter when the expectations are in tension.
For detection, the learned category scores give evidence at specific proposed windows. Image classification uses the same trained appearance weights, with their positive window scores pooled into an image-level score. The authors describe that pooling as the log-sum used by the soft formulation. For classification, the collection of scores can support a category when several regions provide evidence. For detection, their positions allow the system to say where that evidence occurs.
Experiments and results
What the benchmark measures
The experiments use Pascal VOC 2007. The authors train on the trainval images under their stated annotation policy, add their horizontal reflections in the augmentation setting, and report performance on the test split using the standard VOC procedure. They call attention to the split because some earlier weakly supervised detection reports evaluated only on trainval. They also distinguish their image selection policy from that of Cinbis and colleagues. Their own training excludes instances marked difficult under the stated policy and does not use the extra truncated flag to drop images whose only instances of a category are truncated.
The inputs during training combine the VOC category labels, the candidate windows from selective search, and the descriptors from the pretrained network. Actual VOC boxes are necessary for evaluating localization on the test split. The authors also discuss convolutional features fine-tuned on true VOC boxes and explain that they leave those features out of the classification comparison. The internal classification baselines use the same DeCAF feature source. This makes their contrast primarily a question of how evidence is taken from the image, from a whole-image representation through a latent window to the full smooth and regularized detector.
The evaluation metric is average precision, abbreviated AP, for each category. It summarizes the precision and recall obtained as predictions are considered in score order. For object detection, a prediction has to localize an instance as well as identify the category. For image classification, the prediction is about presence in the image. Mean average precision, or mAP, averages the category AP values. Both tasks use the same name for that aggregate, but their prediction units differ, so the detection and classification numbers have separate interpretations.
Detection on the test split
The first baseline is the authors' implementation of a latent structural support vector machine with a hard maximum and margin rescaling. They call it LSVM. This baseline uses hard negative mining, which concentrates training on negative examples that the current detector finds difficult to reject. The smooth formulation is SLSVM. From that setting onward, each reported column adds a component to those already present. This ordering is central to reading the table. The mutual exclusion result includes the reflections and the symmetry penalty as well as the soft-margin loss.
Detection settings on the Pascal VOC 2007 test split by mean AP
Mean detection precision rises at each step of the cumulative comparison.
The numbers
| System or setting | mAP % |
|---|---|
| Hard-max latent SVM | 22.7 |
| Soft-max latent SVM | 24.0 |
| Soft-max with flipped training images | 24.8 |
| Flipped training with symmetry regularization | 26.0 |
| Full detector with mutual exclusion (this paper) | 26.4 |
Moving from LSVM to SLSVM takes VOC test detection mAP from 22.7% to 24.0%, a change the paper reports as 1.3 points. Flipping the training images then produces 24.8% mAP, with a reported increase of 0.8 point. The result with the symmetry penalty is 26.0% mAP. Adding mutual exclusion brings the detector to 26.4% mAP, with a reported increase of 0.4 point at that stage. The mean progresses in the same direction across the sequence, while individual categories can move in either direction as a component is added.
The authors compare the full setting against recent weakly supervised detection systems from Cinbis and colleagues and Song and colleagues. Both use selective search proposals. The former represents windows with high-dimensional Fisher Vectors, while the latter uses the convolutional features also employed in this paper. These comparisons put the new objective alongside alternatives that likewise choose among proposed windows. The authors report that the full detector outperforms both on the Pascal VOC 2007 test split. Their cross-paper comparison is presented in terms of detection AP, alongside the within-paper measurements of the training changes.
The internal and external comparisons serve different purposes. The comparison with LSVM and the successive additions tracks changes made within the authors' system. The comparison with the previous detectors establishes how the full configuration fares against other published approaches. Shared proposals help place those systems on common ground. Differences in training strategy and, for the Fisher Vector system, in window representation are also part of the comparison.
Classification with the same appearance weights
The classification experiment asks whether learning to locate relevant regions also helps determine whether a category is present. The simplest internal baseline is a linear SVM trained on whole images. It obtains 74.1% mAP on Pascal VOC 2007 test classification. The latent structural SVM can select a region as evidence and obtains 77.1%. The full configuration uses scores pooled over windows and reaches 80.9%.
Image classification on the Pascal VOC 2007 test split by mean AP
The full detector produces the highest image classification score among the configurations in the comparison.
The numbers
| System or setting | mAP % |
|---|---|
| Cinbis and colleagues | 65.6 |
| Whole-image linear SVM | 74.1 |
| Hard-max latent SVM | 77.1 |
| Oquab and colleagues | 77.7 |
| Full detector used for classification (this paper) | 80.9 |
The improvement from whole-image SVM to latent SVM is reported as 3 points. The authors attribute it to locating evidence for the category in a region that can omit confusing background. The comparison is compatible with that explanation, since the internal baselines use DeCAF features and letting a window stand for the image is the relevant difference between these two settings. The full configuration changes both how the window scores contribute and how the weights are learned. Its classification result measures their combined effect.
The two external values in the classification table are 65.6% mAP for Cinbis and colleagues and 77.7% mAP for Oquab and colleagues, on the Pascal VOC 2007 test comparison. The authors note a difference in supervision for Oquab and colleagues. That system builds mid-level image representations and uses ground-truth boxes to select better patches during training. The comparison therefore includes a system that has access to location information for part of its training process.
The paper also mentions a separate study by Chatfield and colleagues that examines convolutional architectures and reports 82.4% mAP for Pascal VOC 2007 image classification. The authors view that line of work as complementary to their own and discuss combining the approaches as future work. The 80.9% result establishes the full configuration's standing against the systems in the classification table. The separate figure from the architecture study gives context for the narrower set of comparisons.
What the ablations show
Smooth pooling helps some categories more than others
The LSVM and SLSVM comparison tests the first proposed change before either form of posterior regularization is added. The detection mean improves when the training loss shifts from selecting a single strongest region to pooling over regions. The class-level changes give some evidence for the authors' explanation. On the Pascal VOC 2007 test split, chair detection AP goes from 0.8 with LSVM to 9.3 with SLSVM. Cow AP goes from 8.1 to 21.3, sheep AP from 15.7 to 19.9, and television monitor AP from 10.8 to 18.2. The authors single out these categories as examples for which images can contain several instances.
Their visual comparison uses representative cow and chair images. The hard-max output identifies a winning window. The soft output spreads evidence across windows in a way that can represent more of the objects in those examples. The visualization gives content to the numerical comparison. A smoother loss can alter which hypotheses contribute to learning, even when the category annotation supplies the same single presence label for the entire image.
The gain is uneven. Cat AP on the same test split goes from 28.2 to 23.4 in the switch to SLSVM, and dog AP from 21.3 to 17.9. The category-level measurements therefore support an overall benefit with different effects across classes. They also show why the multiple-instance explanation and the optimization explanation are hard to separate. The transition changes how the learner uses candidate windows and how the training objective behaves as their scores change. The visual examples help illustrate the first mechanism. The aggregate comparison measures the result of both.
There is also a distinction between the ability to use more windows and an ability to identify distinct instances. In these examples a broader response can represent several objects better. In the general loss, nearby proposals and several true instances all take part through the same sum. The authors' examples demonstrate a possible use of the additional support. They offer no separate benchmark measurement by the number of instances in an image.
Augmentation and symmetry make different demands
The augmentation step tests what happens when the smooth detector sees horizontal reflections during training. The improvement to 24.8% detection mAP on the Pascal VOC 2007 test split comes before the posterior symmetry term is active. The result establishes that mirrored training examples can help even when each view independently supplies its evidence for presence. Adding the symmetry penalty to that setting gives 26.0% detection mAP. The extra comparison is between a detector that sees both views and one whose training also favors matching distributions across their paired windows.
The car examples illustrate the location-specific effect. The authors show output maps for test images and their reflections, using detectors trained with and without the symmetry term. Some detections that had low confidence become more visible with the penalty. This is consistent with the intended behavior when one view provides stronger support at a location than the other. Training can influence both views through the shared weights. The comparison of corresponding windows lets the optimization register discrepancies that image-level labels for the two views would leave unresolved.
Class AP still varies with the change. Car detection AP on the VOC test split is 42.1 in the flipped-data setting and 45.0 after adding the symmetry penalty. Person AP moves from 8.5 to 12.5 at that step. Chair AP moves from 8.0 to 7.0. The mean improvement thus describes the behavior of the combined set of categories. The maps give representative evidence about the mechanism, while the class scores show the range of responses to the same training constraint.
The paper includes a further comparison against a detector that represents a window by concatenating the features of the crop and its horizontal reflection. That representation is used in both training and testing. It obtains 24.9% detection mAP on the Pascal VOC 2007 test split. Its feature dimensionality is double that of the authors' method, and the paper describes a corresponding doubling of inference time. Together, the results for augmentation, concatenation, and posterior symmetry show what each setup buys in this experiment. The reflected examples improve the soft-margin detector, pairing both descriptors gives a result close to augmentation alone, and the penalty on corresponding locations gives the strongest aggregate detection result of those symmetry settings.
The concatenated comparison also clarifies where the extra work occurs. The paired representation changes the descriptor evaluated for every window. Posterior symmetry changes the training objective and allows the ordinarily sized descriptor to be used for window scoring. This matters to the authors' comparison because they assess improved localization alongside the cost of evaluating the detector.
Exclusion changes which category uses a region
Mutual exclusion is added after symmetry and yields the highest mean detection AP among the tested settings. Its effect is most informative in categories whose objects can occur together and supply context for each other. On the Pascal VOC 2007 test split, dining table AP rises from 8.9 in the symmetry setting to 13.9 in the full setting. Sofa rises from 19.6 to 20.6, and television monitor from 24.8 to 29.6. The paper highlights these categories because the appearance of another object nearby can help predict presence and simultaneously make it harder to learn which region belongs to which detector.
The sofa and television monitor maps show how the authors interpret the change. Before exclusion, the two detectors can place substantial probability on shared regions. After training with the penalty, their response distributions are more distinct in the illustrated pair. A region that both classifiers previously relied on is costly under the joint objective. Evidence more specific to each category can satisfy its positive label while reducing that cost.
The same step lowers some class scores. Person detection AP, for instance, changes from 12.5 to 7.6 on the Pascal VOC 2007 test split, while cow AP moves from 24.7 to 24.0. The resulting mean of 26.4% still exceeds the 26.0% of the previous setting. The mixed outcomes matter to the interpretation of the car and furniture examples. A penalty can produce the desired behavior in an image and help the mean while changing the scores for some categories in less favorable ways.
The exclusion result is an incremental comparison in an already augmented and symmetry-regularized detector. It measures what the shared-window penalty contributes in that setting. A result for exclusion added directly to the bare soft-margin detector would address a different question. Similarly, the reported sequence gives no separate measurement of the effect of symmetry when exclusion is added first. The experiments establish the performance of the authors' chosen sequence and offer targeted examples of how the posterior distributions change.
Limitations
Scope identified by the authors
The paper defines weak supervision for the training of the VOC detector. Its localization targets are latent because the category annotations used to learn them give presence or absence. The visual features still come from a convolutional network pretrained on ImageNet ILSVRC 2012. The authors draw an explicit distinction between using those features and using features fine-tuned with the VOC ground-truth boxes. Their reported detectors use the former. The annotation saving under study concerns the location of the target objects for detector training, with a pretrained representation available.
The authors describe the two prior constraints as deliberately simpler than alternatives that would learn full spatial relationships or require exact agreement across views. Their symmetry term encourages the location distributions for a horizontal reflection to match. Their exclusion term discourages a particular kind of shared explanation across categories. Both are soft costs. This lets the detector balance them against classification evidence and the norm penalty, and it means their presence in the objective provides an incentive whose effect depends on how the scores are learned.
The authors also recognize that optimization has been a central difficulty in prior latent detection work. Their report of faster convergence with direct L-BFGS is empirical. The formal objectives specify what the procedure seeks to minimize, and the smooth loss enables the chosen optimizer. The paper leaves the result of that optimization as a property of the experiments. It proposes hierarchical categories as a possible extension and describes better convolutional representations as a future direction. Both lie outside the reported detector evaluation.
Boundaries visible in the experiments
Selective search fixes the locations from which the detector can learn and to which its window scores can be assigned. The experiments show the effect of changing the learning objective with those proposals in place. The range of candidate quality itself is left unmeasured in the comparison. If the proposal set offers a good candidate for an instance, the learned appearance weights can reward it. If it lacks such a candidate, a distribution that better expresses the category can still be concentrated on a poor localization. The same consideration applies to the visual descriptors. Better weighting can exploit distinctions expressed in the features, and those features set the terms on which crops can be distinguished.
The soft-margin loss admits evidence from multiple windows, with no explicit assignment between those windows and a count of instances. Several high scores could come from several objects or from overlapping windows over the same object. The paper's examples make the former case plausible and show where it matters. The performance measurements are category AP and its mean over the VOC test split. They leave open how much of the gain comes specifically from scenes with several instances and how reliably the learned distributions distinguish separate objects in such scenes.
A low symmetry penalty establishes agreement under a reflection. Two reflected distributions can agree on the location of an unhelpful contextual feature as well as on an object. Correct localization still depends on the training labels, proposal set, representation, and the other terms in the objective. Similarly, a low mutual exclusion cost means that categories distribute their evidence over different window indices. Distinct indices can describe substantially overlapping regions, and two objects can genuinely be close. The constraint addresses shared support for identical candidate boxes, with the extent of real spatial separation left to the learned scores and proposals.
The sequence of component tests measures conditional gains. Symmetry is studied after augmentation, and exclusion is studied with both already in use. These are fitting comparisons for the final detector, but the arrangement leaves interactions between the components unresolved. The paper also gives selected maps to explain behavior. The maps are informative about what can happen in an individual case. The category AP values provide broader performance measurements, while the frequency of the pictured changes across the benchmark remains unreported.
The detection and classification experiments answer different questions about the appearance weights. Successful image classification can reflect good use of local evidence without establishing that the strongest window closely encloses an object. The detection evaluation supplies the location-sensitive evidence. Its numerical results are for the Pascal VOC 2007 test split and the stated training and annotation conditions. The paper compares means and reports class scores for the detection settings, with evidence across additional detection benchmarks or repeated runs outside the reported evaluation. Conclusions about stability of the smaller increments or their behavior on different proposal sets therefore remain open.
What came after
The authors point to two possible continuations. One is to combine their weakly supervised detector with the stronger convolutional representations investigated by Chatfield and colleagues. The paper treats feature quality and the treatment of uncertain window assignments as complementary. Its own experiments pair a particular pretrained crop descriptor with a training loss that changes how local evidence is pooled and constrained.
The other continuation is to adapt posterior regularization to categories arranged in a hierarchy. The reported mutual exclusion term is designed for different positive categories that should be discouraged from sharing the same candidate. A hierarchy gives a reason for some labels to support the same window when they describe the same object at different levels. The authors raise consistency across hierarchical categories as a possible change to the formulation. The paper leaves both directions as proposals, with no subsequent implementation or evaluation to trace.
Cite
Cite as Hakan Bilen, Marco Pedersoli and Tinne Tuytelaars. 2014. Weakly Supervised Object Detection with Posterior Regularization. Lirias.
@inproceedings{bilen2014weakly,
title = {{Weakly Supervised Object Detection with Posterior Regularization}},
author = {Hakan Bilen, Marco Pedersoli and Tinne Tuytelaars},
booktitle = {Lirias},
year = {2014},
url = {https://lirias.kuleuven.be/handle/123456789/462328}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bilen-2014-weakly-supervised-object-detection-posterior/