Abstract
While deep learning-based classification is generally tackled using standardized approaches, a wide variety of techniques are employed for regression. In computer vision, one particularly popular such technique is that of confidence-based regression, which entails predicting a confidence value for each input-target pair (x,y). While this approach has demonstrated impressive results, it requires important task-dependent design choices, and the predicted confidences lack a natural probabilistic meaning. We address these issues by proposing a general and conceptually simple regression method with a clear probabilistic interpretation. In our proposed approach, we create an energy-based model of the conditional target density p(y|x), using a deep neural network to predict the un-normalized density from (x,y). This model of p(y|x) is trained by directly minimizing the associated negative log-likelihood, approximated using Monte Carlo sampling. We perform comprehensive experiments on four computer vision regression tasks. Our approach outperforms direct regression, as well as other probabilistic and confidence-based methods. Notably, our model achieves a 2.2% AP improvement over Faster-RCNN for object detection on the COCO dataset, and sets a new state-of-the-art on visual tracking when applied for bounding box estimation. In contrast to confidence-based methods, our approach is also shown to be directly applicable to more general tasks such as age and head-pose estimation.
Introduction
In the field of deep learning, classification tasks are typically addressed using a standard pipeline involving softmax layers and cross-entropy loss. In contrast, regression—the prediction of continuous values—lacks a unified approach. Standard direct regression methods often implicitly assume a simple Gaussian distribution, which frequently fails to capture the complex, multi-modal, or asymmetric uncertainties inherent in real-world data.
To overcome these limitations, confidence-based regression has emerged as a popular alternative in computer vision. This approach involves predicting a "score" for an input-target pair. While successful, it often relies on task-specific "pseudo-labels" (such as IoU scores for bounding boxes) and lacks a rigorous probabilistic interpretation. This paper proposes a method that combines the flexibility of confidence-based approaches with the theoretical grounding of probabilistic modeling.
Methodology: Energy-Based Regression
The proposed method models the conditional target density $p(y|x)$ using an energy-based formulation:
$$p(y|x; \theta) = \frac{e^{f_\theta(x,y)}}{Z(x, \theta)}$$
Here, $f_\theta(x,y)$ is a scalar value predicted by a Deep Neural Network (DNN) for a given input $x$ and a candidate target $y$, and $Z(x, \theta)$ is the normalizing partition function.
Training and Inference
- Negative Log-Likelihood (NLL) Training: Unlike methods requiring manually defined labels, this model is trained by directly minimizing the NLL.
- Monte Carlo Importance Sampling: To handle the intractable integral of the partition function $Z(x, \theta)$, the authors employ Monte Carlo sampling from a proposal distribution $q(y|y_i)$, typically a mixture of Gaussians centered at the ground truth.
- Gradient-Based Prediction: During inference, the model performs gradient ascent starting from an initial estimate to find the target $y$ that maximizes the predicted density $f_\theta(x, y)$.
To maintain computational efficiency, the network extracts deep features from the input $x$ only once. The target $y$ is integrated at a late stage, ensuring that the iterative refinement process remains fast.
Experimental Evaluation
The generality of the energy-based approach was evaluated across four distinct computer vision tasks:
- Object Detection: On the COCO dataset, the method achieved a 2.2% AP improvement over the Faster-RCNN baseline, outperforming specialized methods like IoU-Net.
- Visual Tracking: The model set new state-of-the-art results on the TrackingNet and UAV123 benchmarks when integrated into the ATOM tracker.
- Age and Head-Pose Estimation: The approach consistently improved Mean Absolute Error (MAE) compared to direct regression. For age estimation on the UTKFace dataset, MAE was reduced from 4.81 to 4.65.
One of the key advantages of this approach is its ability to naturally visualize uncertainty. As shown in the tracking examples, the predicted density heatmaps indicate where the model identifies potential target locations, effectively capturing multi-modality and spatial ambiguity.
Discussion and Conclusion
This work introduces a conceptually simple yet powerful framework for regression. By learning conditional target densities directly through an energy-based model, it avoids the need for task-specific engineering of confidence labels.
While the iterative gradient-ascent refinement at test time introduces a slight computational overhead (e.g., reducing age estimation speed from 49 FPS to 36 FPS), the gains in accuracy and the ability to model complex uncertainties provide significant value. Future work may explore more advanced proposal distributions for training and the application of this model to broader aleatoric uncertainty estimation tasks.
Summary updated