MVSFormer: Multi-View Stereo by Learning Robust Image Features and Temperature-based Depth

Chenjie Cao, Xinlin Ren, Yanwei Fu

Abstract

Feature representation learning is the key recipe for learning-based Multi-View Stereo (MVS). As the common feature extractor of learning-based MVS, vanilla Feature Pyramid Networks (FPNs) suffer from discouraged feature representations for reflection and texture-less areas, which limits the generalization of MVS. Even FPNs worked with pre-trained Convolutional Neural Networks (CNNs) fail to tackle these issues. On the other hand, Vision Transformers (ViTs) have achieved prominent success in many 2D vision tasks. Thus we ask whether ViTs can facilitate feature learning in MVS? In this paper, we propose a pre-trained ViT enhanced MVS network called MVSFormer, which can learn more reliable feature representations benefited by informative priors from ViT. The finetuned MVSFormer with hierarchical ViTs of efficient attention mechanisms can achieve prominent improvement based on FPNs. Besides, the alternative MVSFormer with frozen ViT weights is further proposed. This largely alleviates the training cost with competitive performance strengthened by the attention map from the self-distillation pre-training. MVSFormer can be generalized to various input resolutions with efficient multi-scale training strengthened by gradient accumulation. Moreover, we discuss the merits and drawbacks of classification and regression-based MVS methods, and further propose to unify them with a temperature-based strategy. MVSFormer achieves state-of-the-art performance on the DTU dataset. Particularly, MVSFormer ranks as Top-1 on both intermediate and advanced sets of the highly competitive Tanks-and-Temples leaderboard.

Introduction

Multi-View Stereo (MVS) is a fundamental computer vision task aimed at reconstructing dense 3D models from a set of calibrated 2D images. While deep learning has significantly advanced MVS performance, existing methods primarily rely on Convolutional Neural Networks (CNNs) and Feature Pyramid Networks (FPNs) for feature extraction. These architectures often struggle with "hard cases" such as specular reflections and texture-less regions. The limited receptive field of CNNs prevents them from capturing the global context necessary to resolve depth ambiguities in these areas. Furthermore, high-level CNN features often lack the fine-grained detail required for precise geometric matching.

Methodology

MVSFormer addresses these challenges by integrating Vision Transformers (ViTs) into the MVS pipeline. The architecture is designed to leverage the global modeling capabilities of ViTs alongside the local detail preservation of CNNs.

MVSFormer Architecture: Integrating Hierarchical and Plain ViTs with FPN for robust feature extraction.

ViT-Enhanced Feature Extraction

The core of MVSFormer is a hybrid feature extractor. It utilizes pre-trained ViT backbones (such as Twins or DINO) to capture long-range dependencies via self-attention mechanisms. These global features are fused with local features from an FPN. The authors found that these features are complementary: the ViT provides a holistic "where" (global structure), while the FPN provides the "what" (local texture).

Temperature-based Depth Prediction

Depth prediction in MVS typically involves choosing between classification (robust but discrete) and regression (precise but sensitive to outliers). MVSFormer introduces a temperature-based strategy that unifies these approaches. By introducing a temperature parameter ($t$) into the softmax function, the model can adjust the "sharpness" of the probability distribution. This allows the network to behave more like a classifier in early stages to establish a robust depth range and more like a regressor in later stages to achieve sub-millimeter precision.

Efficient Multi-scale Training

To handle the high memory demands of ViTs and ensure scale-invariance, the authors employ a dynamic training strategy with gradient accumulation. This enables training on diverse input resolutions (ranging from 512 to 1280 pixels) on standard hardware, improving the model's robustness across different camera setups.

Experimental Results

MVSFormer was evaluated on several benchmark datasets, including DTU, BlendedMVS, Tanks-and-Temples, and ETH3D.

Qualitative comparison of depth maps. MVSFormer produces cleaner depth estimates in challenging reflective and texture-less regions compared to baselines.

Quantitative Performance

MVSFormer achieved state-of-the-art results on the DTU dataset with an overall error of 0.289 mm, outperforming the ResNet-based baseline (0.312 mm). Most notably, it secured the Top-1 position on both the Intermediate and Advanced sets of the Tanks-and-Temples leaderboard at the time of publication.

Qualitative Analysis

MVSFormer demonstrates superior performance in filtering out noise in challenging regions. While previous methods often produce artifacts in reflective areas or the sky, MVSFormer's global context allows it to maintain geometric consistency and produce cleaner depth maps as shown in the comparative results.

Conclusion

MVSFormer demonstrates that pre-trained Vision Transformers can significantly enhance feature learning for Multi-View Stereo. By combining global attention with local convolutional features and introducing a flexible temperature-based depth prediction strategy, the model achieves industry-leading performance. Future work may explore more sophisticated fusion modules, such as cross-attention, and the impact of diverse pre-training tasks like Masked Autoencoders.

Summary updated

BibTeX
@article{cao2022mvsformer,
  author = {Chenjie Cao and Xinlin Ren and Yanwei Fu},
  title = {{MVSFormer: Multi-View Stereo by Learning Robust Image Features and Temperature-based Depth}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2022},
  url = {https://openreview.net/forum?id=mkTi__K1Lg},
}
Figure