The Fast Bilateral Solver
Abstract
Edge-aware smoothing is a fundamental component in computer vision, traditionally forcing a choice between fast local filters and slow global optimizations. We present the Fast Bilateral Solver, a novel approach that reformulates global optimization as a sparse linear system in a high-dimensional "bilateral space." This method achieves the accuracy of global optimization frameworks while operating at speeds comparable to simple local filters, often 10–1000× faster than existing baselines. The solver is fully differentiable, enabling seamless integration into deep learning pipelines.
Introduction
Many computer vision tasks, such as stereo depth estimation, colorization, and semantic segmentation, initially produce noisy or spatially inconsistent results. Edge-aware smoothing is employed to refine these outputs by smoothing noise within regions while preserving sharp boundaries between objects. Historically, researchers have relied on either local filtering (e.g., the Bilateral Filter), which is fast but lacks global consistency, or global optimization (e.g., Conditional Random Fields), which is accurate but computationally prohibitive for real-time applications. The Fast Bilateral Solver addresses this trade-off by providing a global optimization framework with near-real-time performance.
Methods
The core innovation of the Fast Bilateral Solver lies in its use of a high-dimensional bilateral space to solve the optimization problem.
Bilateral-Space Transformation
Instead of performing optimization over millions of individual pixels, the algorithm "splats" pixel data onto a sparse 5D grid defined by spatial coordinates ($x, y$) and color components ($L, U, V$). By solving the optimization problem on this reduced set of vertices—typically only a few thousand—the algorithm achieves a massive reduction in complexity. The final result is "sliced" back to the original pixel space.
Optimization and PCG Solver
The solver minimizes a quadratic cost function consisting of a smoothness term and a data-fidelity term. This reduces the problem to solving a sparse linear system $Ay = b$. To ensure rapid convergence, the authors employ a Preconditioned Conjugate Gradient (PCG) solver.
As shown in the convergence analysis, the choice of preconditioning significantly impacts the convergence rate. The "Pyr precond + Pyr init" strategy demonstrates the fastest reduction in normalized cost, enabling the solver to reach high-quality solutions in very few iterations.
Key Insights
Sparsity and Global Consistency
The "aha moment" of this research is the realization that bilateral content is much lower-dimensional than the raw pixel space. By operating in this compressed space, the algorithm achieves global consistency through local operations on the high-dimensional grid.
Confidence-Weighted Smoothing
The inclusion of a per-pixel confidence map allows the solver to prioritize reliable data points while allowing the smoothness prior to fill in gaps in unreliable regions, such as occlusions in stereo matching.
Results and Performance
The Fast Bilateral Solver was evaluated across several benchmarks with impressive results:
- Stereo Refinement: On the Middlebury benchmark, the Robust Bilateral Solver (RBS) variant halved absolute and RMS errors for state-of-the-art stereo methods.
- Colorization: The solver achieved a 95× speedup over classic optimization methods with nearly identical visual quality.
- Semantic Segmentation: It performed comparably to DenseCRF while being 8–10× faster, making it suitable for high-speed applications like autonomous driving.
- Depth Super-Resolution: The solver was 600–3000× faster than top-performing methods while maintaining competitive accuracy.
Conclusion
The Fast Bilateral Solver provides a powerful, efficient, and differentiable tool for edge-aware smoothing. By bridging the gap between speed and accuracy, it opens new possibilities for real-time high-quality image processing and the integration of global optimization layers within deep learning architectures.
Summary updated