Generalized Binary Search Network for Highly-Efficient Multi-View Stereo

Zhenxing Mi, Di Chang, Dan Xu · DOI

Abstract

Multi-view Stereo (MVS) with known camera parameters is essentially a 1D search problem within a valid depth range. Recent deep learning-based MVS methods typically densely sample depth hypotheses in the depth range, and then construct prohibitively memory-consuming 3D cost volumes for depth prediction. Although coarse-to-fine sampling strategies alleviate this overhead issue to a certain extent, the efficiency of MVS is still an open challenge. In this work, we propose a novel method for highly efficient MVS that remarkably decreases the memory footprint, meanwhile clearly advancing state-of-the-art depth prediction performance. We investigate what a search strategy can be reasonably optimal for MVS taking into account of both efficiency and effectiveness. We first formulate MVS as a binary search problem, and accordingly propose a generalized binary search network for MVS. Specifically, in each step, the depth range is split into 2 bins with extra 1 error tolerance bin on both sides. A classification is performed to identify which bin contains the true depth. We also design three mechanisms to respectively handle classification errors, deal with out-of-range samples and decrease the training memory. The new formulation makes our method only sample a very small number of depth hypotheses in each step, which is highly memory efficient, and also greatly facilitates quick training convergence. Experiments on competitive benchmarks show that our method achieves state-of-the-art accuracy with much less memory. Particularly, our method obtains an overall score of 0.289 on DTU dataset and tops the first place on challenging Tanks and Temples advanced dataset among all the learning-based methods.

Introduction

Multi-View Stereo (MVS) aims to reconstruct 3D geometry from multiple 2D images. Traditionally, this is a memory-intensive process because it relies on dense 3D "cost volumes" to find depth. For every pixel in a reference image, the system must find its corresponding depth along a ray by comparing it to other views.

Modern deep learning methods solve this by sampling many possible depth hypotheses. However, these volumes are massive, creating a GPU memory bottleneck that often forces a sacrifice in resolution or accuracy. Even "coarse-to-fine" strategies still rely on relatively dense sampling at each level. This paper introduces GBi-Net, which reframes depth estimation as a binary search problem, using a classification-based approach that requires only a handful of depth hypotheses per stage.

GBi-Net treats the search like a classic binary search algorithm adapted for neural networks. Instead of checking dozens of depth values at once, the network performs a simple classification in each stage to decide which of two bins contains the true depth.

The multi-stage architecture of GBi-Net illustrating the warping, fusion, and classification-based depth refinement.

Key Innovations

  1. Binary Search via Classification: The current depth range is split into two bins. This reduces the number of depth hypotheses per stage to a bare minimum, allowing for logarithmic efficiency where precision increases exponentially ($2^k$) while memory remains low.
  2. Error Tolerance Bins (ETB): Pure binary search is brittle; one wrong choice leads to permanent failure. GBi-Net adds extra padding bins on either side of the two main bins, providing a "safety net" to correct previous mistakes.
  3. Gradient-Masked Optimization: During training, if the ground-truth depth falls outside the current search window due to a previous error, the network masks that pixel out to stabilize the training process.
  4. Memory-Efficient Training: The network backpropagates and clears the cache immediately after each stage rather than accumulating gradients across all stages, further reducing VRAM usage.

Key Results and Evaluation

GBi-Net was evaluated on industry-standard benchmarks including the DTU dataset, BlendedMVS, and Tanks and Temples. The results demonstrate a fundamental shift in MVS efficiency: the 3D cost volume is so small (only 4 hypotheses) that it is no longer the primary memory consumer; instead, the 2D image encoder becomes the bottleneck.

Comparison of GBi-Net against other MVS methods in terms of error and memory usage, alongside search strategy visualizations.
  • State-of-the-Art Accuracy: GBi-Net achieved an overall score of 0.289 on the DTU dataset (lower is better), outperforming previous leaders like UCSNet (0.344) and CasMVSNet (0.355).
  • Significant Memory Savings: On the DTU benchmark, GBi-Net used only 2108 MB of GPU memory, compared to 9384 MB for the original MVSNet—a reduction of roughly 77%.
  • Benchmark Leadership: The method ranked 1st among all learning-based methods on the "Advanced" subset of the Tanks and Temples dataset at the time of publication.
  • Efficiency: Despite its iterative nature, the model takes only 0.61 seconds per testing sample.

Conclusion

By reformulating MVS as a generalized binary search problem, GBi-Net achieves a superior balance between reconstruction accuracy and memory efficiency. The introduction of Error Tolerance Bins makes the classification-based search robust enough for complex real-world scenes, while the reduced hypothesis count allows for high-resolution processing on consumer-grade hardware.

Summary updated

BibTeX
@inproceedings{mi2021generalized,
  author = {Zhenxing Mi and Di Chang and Dan Xu},
  title = {{Generalized Binary Search Network for Highly-Efficient Multi-View Stereo}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr52688.2022.01265},
}
Figure