TL;DR
This paper introduces Cost Unrolling, a novel training strategy that replaces non-differentiable cost functions (like the $L^1$ norm in Total Variation) with a differentiable, iterative proxy derived from the ADMM optimization algorithm. By unrolling the optimization steps into the loss function rather than the network architecture, the authors achieve sharper motion boundaries and better handling of occlusions in unsupervised optical flow without increasing model complexity or inference time.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) are typically trained using gradient descent, which requires differentiable cost functions. However, many classic computer vision priors—most notably Total Variation (TV) smoothness—rely on the $L^1$ norm, which is non-differentiable at zero.
Standard workarounds include using sub-gradients or smooth relaxations like the Huber or Charbonnier losses. While functional, these often lead to unstable gradients, slow convergence, or "staircasing" artifacts. Previous attempts to solve this via "algorithm unrolling" usually involve mapping optimization iterations to specific network layers, which increases model size and computational cost. The authors seek a way to get the benefits of robust optimization during training without changing the underlying model architecture.
Methods
The core innovation is Cost Unrolling. Instead of unrolling an algorithm into a network's layers, the authors unroll it into the loss function itself.
- ADMM Derivation: They start with the Alternating Direction Method of Multipliers (ADMM), a classic optimization framework. They decompose the non-differentiable TV minimization problem into a series of iterative sub-problems.
- Differentiable Sub-problems: Each iteration produces a differentiable quadratic sub-cost function.
- Accumulated Loss: The final training loss is defined as the weighted accumulation of these iterative sub-costs.
- Training-Only Modification: Crucially, this iterative process only happens during the loss calculation in the training phase. The DNN architecture remains exactly the same, meaning there is zero overhead during inference.
The authors found that truncating the process to just $T=2$ steps (Equation 14 in the paper) provides an optimal balance between promoting sparse gradients and maintaining low training complexity.
Datasets
The method was evaluated across three distinct domains:
- Synthetic 1D Signals: Piece-wise Constant (PC) signals were used to study gradient behavior and convergence.
- Image Denoising: Evaluated on a standard set of 14 grayscale and color images, building upon the Deep Image Prior (DIP) baseline.
- Unsupervised Optical Flow:
- Flying Chairs: Used for initial pre-training.
- MPI Sintel (Clean and Final): A challenging synthetic benchmark for optical flow.
- KITTI 2015: A real-world autonomous driving dataset.
Key Insights and Ideas
- The "Occlusion" Advantage: In unsupervised optical flow, occluded pixels (those visible in one frame but not the next) have no corresponding data to match. In these regions, the "data term" of the loss is masked out, leaving the "smoothness term" to do all the work. Cost Unrolling provides much more stable and accurate gradients in these regions, leading to significantly sharper motion boundaries.
- Stable Convergence: Unlike standard TV or Huber relaxations, the unrolled cost produces gradients that decay rapidly to zero as the model reaches the optimum. This prevents the "oscillations" often seen when training with non-differentiable costs.
- Architecture Agnostic: Because the method modifies the loss function and not the model, it can be "plugged in" to improve existing state-of-the-art architectures like PWC-Net or RAFT without retraining the entire pipeline from scratch or adding parameters.
Key Results
- Optical Flow Performance: On the Sintel and KITTI benchmarks, the method outperformed standard TV, Huber, and Charbonnier baselines. Specifically, it reduced the End-Point Error (EPE) by up to 15.82% in occluded regions.
- Qualitative Sharpness: As seen in the qualitative results, the unrolled cost produces much cleaner motion edges compared to the blurred or artifact-heavy results of traditional relaxations.
- Denoising Gains: In image denoising tasks, the method improved the Structural Similarity (SSIM) on specific patches by up to 10% compared to standard TV regularization.
- Efficiency: Training with Cost Unrolling was found to be slightly more memory-efficient than standard TV while preserving the same runtime.
Limitations and Future Work
- Hyperparameter Sensitivity: While the paper demonstrates that $T=2$ is generally optimal, the weights ($\alpha_t$) and penalty parameters ($\rho$) still require tuning for different tasks.
- Scope of Priors: The current work focuses heavily on the TV ($L^1$) smoothness prior. The authors suggest that the framework could be applied to other non-differentiable optimum solutions, but these were not explored in this paper.
- Multi-frame Context: The experiments were conducted in a two-frame setting; exploring how Cost Unrolling interacts with multi-frame temporal consistency is a potential next step.
Summary updated