Constrained Structured Regression with Convolutional Neural Networks

Deepak Pathak, Philipp Krähenbühl, Stella X. Yu, Trevor DarrellarXiv 2015

Introduction

In computer vision, regressing continuous values like object depth or surface albedo is a fundamental task. While Convolutional Neural Networks (CNNs) excel at these predictions, they typically treat outputs independently. This independence becomes problematic when tasks are governed by strict physical laws. For instance, in intrinsic image decomposition, an image ($I$) is the product of its albedo ($A$) and shading ($S$): $I = A \times S$. A standard CNN predicting $A$ and $S$ separately cannot guarantee that their product reconstructs the original image. Furthermore, physical models like the Lambertian assumption for matte surfaces often fail in real-world scenarios. The challenge lies in forcing networks to respect physical constraints while allowing flexibility when those constraints are violated.

Proposed Methodology: Probabilistic Structured Regression

The authors propose a framework that moves beyond simple "point estimation" toward probabilistic regression. Instead of predicting a single value, the CNN outputs a probability distribution for each target and for the constraints themselves.

Overview of the proposed framework: (a) Architecture predicting distributions, (b) Independent training of components, and (c) Inference via constrained optimization.

The approach consists of three main components:

  1. Predicting Uncertainty: The network outputs a mean ($\mu$) and a variance ($\sigma^2$) for every pixel. The variance serves as a learned confidence score; high variance indicates the network is less certain about a specific prediction.
  2. Probabilistic Constraints: Physical constraints are treated as distributions rather than rigid rules. The network learns to predict "constraint confidence," allowing it to ignore standard physical laws in regions where they don't apply, such as mirrors or non-Lambertian surfaces.
  3. Optimization at Inference: Final outputs are determined by solving an optimization problem that balances the CNN's predicted means with the physical constraints, weighted by their respective confidences. To ensure computational efficiency, the authors use a log-domain trick, transforming the multiplicative relationship ($I = A \times S$) into an additive one ($\log I = \log A + \log S$). This allows the inference step to be solved rapidly as a Quadratic Program.

Experimental Evaluation

The method was primarily evaluated on the MPI Sintel Dataset, a benchmark derived from a 3D animated film. Sintel is ideal for this task because it provides perfect "ground truth" for albedo and shading, which is difficult to obtain in real-world photography.

Key Results

The framework was compared against direct regression baselines and "hard" constraint models that force physical consistency everywhere.

Qualitative comparison of intrinsic image decomposition methods. Probabilistic constraints recover sharper details and maintain better physical consistency than direct regression or hard constraints.
  • Quantitative Performance: The proposed method achieved a significant performance boost, outperforming previous state-of-the-art techniques (e.g., Narihira et al., 2015) by 10% to 20% across metrics including Mean Squared Error (MSE), Local MSE (LMSE), and DSSIM.
  • Qualitative Improvements: As shown in the visual results, direct regression often produces blurry outputs due to the network averaging its predictions. By enforcing learned constraints during inference, the model recovers fine details and maintains sharp, physically consistent boundaries.

Discussion and Limitations

A key insight of this work is using the network's own uncertainty to drive optimization. If the network is confident in its albedo prediction but uncertain about shading, the optimizer relies on the albedo to "fill in" the shading details. By predicting the "slack" or satisfaction of constraints, the model effectively learns where physical laws are likely to be broken.

However, the current implementation is limited to affine (linear) constraints to maintain convex optimization and computational speed. More complex, non-linear physical laws would require more intensive optimization. Additionally, while Quadratic Programs are efficient, they remain slower than a standard CNN forward pass, which may impact real-time application feasibility.

Conclusion

By integrating probabilistic modeling with constrained optimization, this research provides a robust way to incorporate domain knowledge into deep learning. The approach offers a more efficient alternative to traditional structured output methods like Markov Random Fields (MRFs) for continuous regression tasks, setting a new standard for intrinsic image decomposition.

Summary updated

Abstract

Convolutional Neural Networks (CNNs) have recently emerged as the dominant model in computer vision. If provided with enough training data, they predict almost any visual quantity. In a discrete setting, such as classification, CNNs are not only able to predict a label but often predict a confidence in the form of a probability distribution over the output space. In continuous regression tasks, such a probability estimate is often lacking. We present a regression framework which models the output distribution of neural networks. This output distribution allows us to infer the most likely labeling following a set of physical or modeling constraints. These constraints capture the intricate interplay between different input and output variables, and complement the output of a CNN. However, they may not hold everywhere. Our setup further allows to learn a confidence with which a constraint holds, in the form of a distribution of the constrain satisfaction. We evaluate our approach on the problem of intrinsic image decomposition, and show that constrained structured regression significantly increases the state-of-the-art.
BibTeX
@misc{pathak2015constrained,
  author = {Deepak Pathak and Philipp Krähenbühl and Stella X. Yu and Trevor Darrell},
  title = {{Constrained Structured Regression with Convolutional Neural Networks}},
  year = {2015},
  eprint = {1511.07497},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.07497},
}
Figure