Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation

  • Problem Adaptive-bin depth estimators predict bin centers from the highest-resolution decoder feature, so global context and per-pixel detail end up entangled.
  • Method Generates per-image bins with a Transformer decoder, forms per-pixel probabilities from separate bin embeddings, and adds an auxiliary scene query and coarse-to-fine supervision across decoder scales.
  • Results Reached δ1 0.974 with the Swin-Large† variant on the KITTI Eigen split, and δ1 0.890 in the NYU-Depth-v2 ablation with the full model and 64 queries.

Figure 11: Point cloud visualization on the test set of NYUv2 dataset

Fig. 11 . Point cloud visualization on the test set of NYUv2 dataset.

Original paper · CC BY 4.0 · Zhenyu Li, Xuyang Wang, Xianming Liu, Junjun Jiang · BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation · Original paper figure · Extracted the figure area from page 21 of the original PDF.

Where bins help and where they fall short

Per-pixel regression predicts a continuous depth value at each pixel and is trained with a regression loss, the route taken by DAV, DPT and TransDepth. The authors tie the slow convergence and less satisfying results of these regression models to treating monocular depth as a regression task. Casting depth as classification over discretized intervals, as in DORN and the soft-label work, improves accuracy but produces visible sharp discontinuities.

Classification-regression methods keep the classification idea but read out a continuous depth as a linear combination of bin centers, which avoids hard discretized outputs. In earlier methods the bin centers were fixed in advance on a uniform or log-uniform grid, or learned once per dataset; Adabins predicts them from each input image. Adabins predicts its bins from the highest-resolution decoder feature, and the authors argue that the limited receptive field of that feature loses global context.

Its bins and probability distributions also come from the same single-layer feature, so global and fine-grained information interfere with each other, and its chamfer loss adds an inductive bias the authors consider unnecessary.

Splitting bin generation from per-pixel probabilities

BinsFormer has three parts: a pixel-level module, a Transformer module that generates bins, and a depth estimation module that produces the final depth map. The pixel-level module encodes an RGB image into multi-scale feature maps and a per-pixel representation \(f_p \in \mathbb{R}^{H \times W \times C}\), where C is the representation dimension.

Any per-pixel depth backbone can serve as this module, and the Transformer-based variants of earlier methods are listed among the options.

The Transformer module lets bin queries attend to the multi-scale features, and two independent MLPs read out bin lengths \(b\) and bin embeddings \(f_b\) from the query outputs. The depth module takes a dot product between \(f_p\) and \(f_b\), applies a Softmax to obtain a probability map \(P\), and combines the bin centers with \(P\) linearly.

The authors argue that computing bins and per-pixel features in separate branches keeps them from interfering with each other, which they see as the problem with Adabins. The queries also feed a scene classification output and interact with several feature scales, both of which the following sections cover.

Generating bins with a Transformer decoder

A Transformer decoder takes N bins queries as input, and each query first attends to the image features through cross-attention and then to the other queries through self-attention. The queries start from zero and carry learnable positional embeddings. Following the set prediction approach of [4], all N bins are decoded in parallel at each decoder layer.

A linear layer with a Softmax turns the decoder output Q into bin lengths \(b\), and a three-layer perceptron with ReLU turns it into bin embeddings \(f_b \in \mathbb{R}^{C \times N}\). The authors describe each query and its bin as a one-to-one pair, so the image area a query senses is tied to the depths its bin covers.

Turning bins into a depth value

Each bin length is first converted to a bin center with the post-processing used by Adabins. The center of bin i is \[ c(b_i) = d_{min} + (d_{max} - d_{min})\left(\frac{b_i}{2} + \sum_{j=1}^{i-1} b_j\right) \] so it sits at half the length of its own bin plus the lengths of all earlier bins, scaled to the valid depth range. Here \(d_{max}\) and \(d_{min}\) are the maximum and minimum valid depth values of the dataset.

A dot product between \(f_p\) and \(f_b\) at each pixel gives similarity scores, and a Softmax over the N bins converts them into \(P \in \mathbb{R}^{H \times W \times N}\). The final depth at each pixel is \[ \hat{d} = \sum_{i=1}^{N} c(b_i)\, p_i \] a sum of the bin centers weighted by their probabilities at that pixel. Because the probabilities come from a Softmax, the weights are non-negative and sum to one at each pixel, so the output is a weighted average of bin centers.

The output is continuous even though it is built from a finite set of bins, which is the point of the classification-regression formulation.

The scene query as an auxiliary task

An extra scene query is added to the Transformer decoder next to the bins queries, and an MLP reads its output as the environment classification. Through self-attention, the scene query passes global semantic information to the bins queries, which the authors describe as implicit supervision. The classification is trained with a cross-entropy loss \(L_{cls}\), which enters the total loss with weight \(\mu = 1e-3\).

The authors say this avoids the chamfer loss used by Adabins and adds only a negligible training overhead. For NYU-Depth-v2 the scene labels are the official 25 classes, divided by folder names.

Coarse-to-fine refinement and the training loss

Multi-scale refinement feeds one scale of the image features to one group of Transformer layers at a time. Each group has L Transformer layers, each with cross-attention to the image feature, self-attention among the queries, and a feed-forward network. The depth estimation module is applied after every Transformer layer, so each layer receives an auxiliary depth supervision signal.

The authors pair this with the aim of a coarse-to-fine refinement, in which low-resolution maps keep the structure and high-resolution maps add fine detail.

The depth loss is a scaled Scale-Invariant loss over \(g_i = \log \tilde{d}_i - \log d_i\), where \(\tilde{d}_i\) is predicted depth and \(d_i\) is ground truth, computed on the T pixels with valid ground truth. The Scale-Invariant term uses λ = 0.85 and α = 10 in every experiment. The total loss sums over scales and layers, with each scale weighted by \(w_s\): \[ L_{total} = \sum_{s=1}^{S} w_s \sum_{l=1}^{L} \left( L^{s,l}_{reg} + \mu L^{s,l}_{cls} \right) \]

Datasets, metrics and training setup

For KITTI, the Eigen split uses around 26K left-view images for training and 697 frames for testing, with the Garg crop and upsampling to ground-truth resolution. NYU-Depth-v2 training uses a 50K RGB-D pair subset, evaluated with the Eigen center crop. SUN RGB-D is used only for evaluation, on its official test set of 5050 images, with NYU-trained models and a depth upper bound of 10 meters.

The NYU, KITTI Eigen and SUN RGB-D results use accuracy under the thresholds \(\delta_i < 1.25^i\) for i = 1, 2, 3, AbsRel, SqRel, RMSE, RMSE log and log10. The online KITTI benchmark uses SILog, absErrorRel, sqErrorRel and iRMSE. Backbones are ResNet-18, ResNet-50 and Swin-Transformer variants, with a light-weight FPN-based pixel decoder.

The default is 64 queries and L = 3 layers per scale, nine layers in total, and the authors note that a single decoder layer is also competitive.

KITTI results

Table 1 places BinsFormer rows beside published scores of earlier methods, which the caption says come from the original papers. Swin-Large† reaches δ1 0.974, REL 0.052 and RMS 2.098 on the Eigen split, and Swin-Base† reaches δ1 0.974 with REL 0.053 and RMS 2.141. The dagger marks models pre-trained on ImageNet-22K, and the double dagger marks models pre-trained on an auxiliary depth dataset.

On the online benchmark test set, BinsFormer reports SILog 10.14, sqErrorRel 1.69, absErrorRel 8.23 and iRMSE 10.90. Among the listed methods, ViP-DeepLab reports SILog 10.80 and DORN reports 11.77, so the SILog value is the lowest in that table. The authors note that SILog shows a saturation phenomenon, and still report a 6.1% improvement on this metric.

NYU-Depth-v2 results

Table 3 lists earlier methods with numbers from their original papers, alongside BinsFormer with ResNet-18, ResNet-50 and several Swin variants. With Swin-Large†, BinsFormer reaches δ1 0.925, REL 0.094 and RMS 0.330, against 0.903, 0.103 and 0.364 for AdaBins. Swin-Base without pre-training reaches δ1 0.902 and REL 0.104, close to AdaBins at 0.903 and 0.103, while its RMS of 0.362 is below AdaBins' 0.364.

The authors state that BinsFormer outperforms all competitors with prominent margins in all metrics. In Table 3, DPT reports δ3 0.998 against 0.997 for Swin-Large†, and δ2 0.988 against 0.989, so the all-metric statement needs the metric-by-metric reading. The authors also say that state-of-the-art NYU results are approaching saturation.

Transfer from NYU-Depth-v2 to SUN RGB-D

Following Adabins, models trained on NYU-Depth-v2 are tested on the SUN RGB-D test set without fine-tuning.

What each component adds on NYU-Depth-v2

The per-pixel regression baseline reaches δ1 0.852, REL 0.130 and RMS 0.422, and the variant with the Transformer module but regression output reaches δ1 0.870, REL 0.123 and RMS 0.403. This comparison isolates the output formulation, since that variant differs from BinsFormer only in regression versus classification-regression.

Among classification-regression variants, fixed UD bins reach δ1 0.851, fixed SID bins reach 0.825 and Adabins reaches 0.850. The full model reaches δ1 0.890, REL 0.113 and RMS 0.379, so REL falls from 0.130 for the regression baseline to 0.113. The configurations with more check marks in Table 5 reach δ1 0.878, 0.882 and 0.890.

Varying the number of queries from 8 to 512 keeps δ1 between 0.883 and 0.890, and 64 queries give 0.890, REL 0.113 and RMS 0.379. The table marks the single-query setting as not converged. The authors report that the gain from more queries diminishes above 64, so they use 64 for the final model.

Feeding the decoder with f4 alone over 3 layers gives δ1 0.882, and f3 with f4 over 6 layers gives 0.888. Feeding f2, f3 and f4 over 9 layers gives δ1 0.890 and RMS 0.379, while adding f1 over 12 layers drops δ1 to 0.881 and RMS to 0.392. Performance does not always improve with more scales; the authors report it rises until three scales are used.

The authors attribute the gain from the scene query to implicit supervision, and attention maps of the classification query at several scales show it gathers spatial information for the bin embeddings.

Uncertainty from the probability distributions

Because each pixel has a probability distribution over bins, the authors compute measurement uncertainty for each ray through maximum likelihood estimates, following [29]. The uncertainty maps show uncertainty rising with distance, a trend the authors also note for unsupervised models that estimate uncertainty [21]. Fringe areas show very high uncertainty, which the authors attribute to drastic changes in depth and to few depth cues in those regions.

Limitations

The scene classification loss is omitted for KITTI because the authors judge outdoor scenes hard to classify, so KITTI results use only ground-truth depth supervision. All ablation tables are on NYU-Depth-v2, and the single-query setting did not converge. Some gains are near saturation: the authors describe SILog and NYU results as saturating, and query gains diminish above 64.

The 12-layer setting with four scales falls below the 9-layer setting, so adding scales is not monotone. SUN RGB-D covers only NYU-trained models tested without fine-tuning, and the ResNet-18 and Swin-Tiny variants do not clear AdaBins on every metric. Comparison tables mix numbers from original papers with different encoders and pre-training, such as the ImageNet-22K pre-trained Swin models, so cross-method gaps are not controlled comparisons.

The uncertainty result appears as a visualization, and the text contains no quantitative uncertainty evaluation.

Paper info

Authors
Zhenyu Li, Xuyang Wang, Xianming Liu, Junjun Jiang
Venue
arXiv · Preprint
First published
2022-4-3
Added
2026-11-6
Updated
2022-4-3
Version
v1
arXiv
2204.00987
Category
cs.CV
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Monocular depth estimation is a fundamental task in computer vision and has drawn increasing attention. Recently, some methods reformulate it as a classification-regression task to boost the model performance, where continuous depth is estimated via a linear combination of predicted probability distributions and discrete bins. In this paper, we present a novel framework called BinsFormer, tailored for the classification-regression-based depth estimation. It mainly focuses on two crucial components in the specific task: 1) proper generation of adaptive bins and 2) sufficient interaction between probability distribution and bins predictions. To specify, we employ the Transformer decoder to generate bins, novelly viewing it as a direct set-to-set prediction problem. We further integrate a multi-scale decoder structure to achieve a comprehensive understanding of spatial geometry information and estimate depth maps in a coarse-to-fine manner. Moreover, an extra scene understanding query is proposed to improve the estimation accuracy, which turns out that models can implicitly learn useful information from an auxiliary environment classification task. Extensive experiments on the KITTI, NYU, and SUN RGB-D datasets demonstrate that BinsFormer surpasses state-of-the-art monocular depth estimation methods with prominent margins. Code and pretrained models will be made publicly available at \url{https://github.com/zhyever/Monocular-Depth-Estimation-Toolbox}.

Quote from the paper

Zhenyu Li, Xuyang Wang, Xianming Liu, Junjun Jiang (2022). BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation. arXiv:2204.00987v1. https://arxiv.org/abs/2204.00987v1

BibTeX
@misc{li2022binsformer,
  title = {{BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation}},
  author = {Zhenyu Li and Xuyang Wang and Xianming Liu and Junjun Jiang},
  year = {2022},
  eprint = {2204.00987},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.00987v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up