# Deep Ordinal Regression Network for Monocular Depth Estimation

Ordinal regression over discrete depth bins improves monocular depth estimation accuracy

Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, Dacheng Tao · arXiv · 2018-6-6

- **Problem** Regressing continuous depth with mean squared error converges slowly to weak solutions. Pooling-heavy backbones also lose the resolution that depth maps need.
- **Method** DORN discretizes depth with spacing-increasing discretization, which splits the log of the depth range evenly. It trains with an ordinal loss over the bins and keeps resolution using dilated convolutions instead of extra upsampling paths.
- **Results** DORN reaches δ \<1.25 of 0.932 on KITTI at 0 to 80 m with a ResNet backbone. Kuznietsov et al. reach 0.862 on the same measure.

## Why direct depth regression is hard

Monocular depth estimation is ill-posed, because one photograph is compatible with many different 3D layouts. Networks therefore lean on cues such as perspective, texture, object size, object location and occlusion. Most recent DCNN-based methods treat the task as regression over a continuous depth map and usually minimize a log-space mean squared error.

The authors report that this objective converges slowly and can settle in solutions that are far from satisfactory. A second obstacle sits in the backbone. Standard classification DCNNs reduce spatial resolution through repeated pooling, often to a stride of 32, and recovering resolution through deconvolution, skip connections or multi-scale stacks adds memory cost and complicates training.

The paper answers both problems with two changes: the continuous target is replaced by ordered discrete bins, and the network is redesigned to keep resolution without the extra paths.

## Turning depth into ordered bins

Uniform discretization splits a depth interval into equal-width bins. The authors note that the uncertainty of depth prediction grows with the true depth, so equal-width bins would make large depths dominate the training loss. SID instead splits the logarithm of the interval uniformly, which makes the bins wider at larger depths and lets the network tolerate larger errors there.

Before discretizing, a shift ξ is added to both α and β so that α\* = α + ξ = 1.0, and SID is applied on \[α\*, β\*\].

A softmax classifier over these bins would ignore the order of the labels, while depth labels form an ordered set. The paper therefore treats the problem as ordinal regression and builds its loss on the ordering.

## Keeping resolution without skip connections

The dense feature extractor is a standard classification DCNN, VGG-16 or ResNet-101, with its last few downsampling operations removed. Holes are inserted into the filters of the later convolutions, so the receptive field grows while the spatial resolution and the parameter count stay the same.

The scene understanding module has three parallel parts: an ASPP branch with dilation rates 6, 12 and 18, a pure 1×1 convolutional branch that models cross-channel interactions, and a full-image encoder. The three outputs are concatenated, and two added 1×1 convolutions reduce the dimension and then map the features to the multi-channel dense ordinal labels.

The full-image encoder average-pools the feature map with a small kernel and stride, applies a fully connected layer to get a C-dimensional vector, and uses a 1×1 convolution on that vector. The vector is then copied to every spatial location, so each position receives the same global description of the image before concatenation.

## Ordinal loss and depth decoding

The network outputs 2K channels per pixel, and for each threshold k the pair of channels is turned into a probability through a softmax, \\(P\_k = e^{y\_{2k+1}}/(e^{y\_{2k}} + e^{y\_{2k+1}})\\). The loss \\(L = -\\frac{1}{N}\\sum\_{w,h}\\Psi\\) averages a pixelwise term over the N = W×H pixels, and the term \\(\\Psi\\) sums \\(\\log P\_k\\) for the thresholds below the true label l(w,h) and \\(\\log(1-P\_k)\\) for the thresholds at or above it.

Because each threshold probability is pushed toward the correct side of the label, a prediction far from the true label accrues a larger penalty than one close to it. Taking the derivative with respect to the weight vectors gives a term that raises \\(P\_k\\) for pixels whose label exceeds k and lowers it otherwise, and the network is optimized by backpropagation in an end-to-end fashion.

At inference, the number of thresholds where \\(P\_k\\) is at least 0.5 gives the estimated discrete label l̂(w,h). The depth is then the midpoint of the neighbouring thresholds, \\((t\_{\\hat l} + t\_{\\hat l+1})/2 - \\xi\\), which maps the value back to the original depth scale.

## Training and test settings

The model is implemented in Caffe with a polynomial learning rate decay from a base of 0.0001 and power 0.9, momentum 0.9, weight decay 0.0005 and batch size 3. The iteration counts are 300K for KITTI, 50K for Make3D and 3M for NYU Depth v2, and the authors find that more iterations only slightly improve the results.

Backbones are initialized from ILSVRC pre-trained classifiers. In ResNet the first two blocks are fixed after initialization, and the batch normalization parameters are fixed during training. At test time each image is split into overlapping windows and the predictions in overlapped regions are averaged.

## Results on KITTI, ScanNet, NYU Depth v2 and Make3D

On the 0 to 80 m range, DORN (ResNet) reaches δ \<1.25 of 0.932 and DORN (VGG) reaches 0.915, against 0.862 for Kuznietsov et al.

On the online ScanNet server, DORN's Abs Rel is 0.14, against 0.25 for the official baseline, with the model trained on 24353 official training and validation images.

On NYU Depth v2 with ResNet based models, DORN† reaches δ \<1.25 of 0.828, against 0.811 for MS-CRF† and 0.811 for Laina et al.†, on the 694-image test set. On Make3D, DORN (ResNet) reports a C1 relative error of 0.157 and a C2 relative error of 0.162, but the ResNet models for C1 and C2 are trained separately.

## What the ablations isolate

In the KITTI discretization ablation, DORN-SID reaches δ \<1.25 of 0.915 and RMSE of 3.056, against 0.900 and 3.339 for DORN-UD, with both trained for 0.3M iterations. Replacing the ordinal loss with a multi-class classification loss on the same bins gives 0.906 with SID and 0.892 with UD, so the bins and the ordinal loss each contribute.

Regression on continuous depth with MSE reaches 0.864 at 1M iterations, while MSE on SID bins reaches 0.865 at 0.6M iterations. The authors read the small gap as evidence that quantization error is nearly negligible for depth estimation, and point to the much larger benefit of the ordinal loss over regression.

Removing the full-image encoder gives δ \<1.25 of 0.906, the fc-fashion encoder gives 0.910 and the proposed encoder gives 0.915.

Varying the number of SID intervals from 40 to 120 keeps δ \<1.25 in the range 0.908 to 0.915 and RMSE in 3.056 to 3.125. The authors find that too few intervals cause large quantization error, while too many remove the advantage of discretization.

## Limitations

Most ablations are run on KITTI, and the paper says so explicitly. The fc-fashion comparison uses a downsampled feature map, so its score reflects that reduced setting rather than the full-resolution encoder.

The MSE comparison is not matched in iterations, since MSE runs for 1M and MSE-SID for 0.6M, and the table also notes that the 1M run only slightly improves on 0.5M. On Make3D, the VGG model is trained once for the 0 to 80 m range and used for both C1 and C2, while the ResNet results come from two separate models.

## Paper info

- **Authors**: Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, Dacheng Tao
- **Venue**: arXiv · Preprint
- **First published**: 2018-6-6
- **Added**: 2026-11-12
- **Updated**: 2018-6-6
- **Version**: v1
- **arXiv**: 1806.02446
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1806.02446v1) · [PDF ↗](https://arxiv.org/pdf/1806.02446v1)

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.

## Quote from the paper

Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, Dacheng Tao (2018). Deep Ordinal Regression Network for Monocular Depth Estimation. arXiv:1806.02446v1. https://arxiv.org/abs/1806.02446v1

**BibTeX**

```
@misc{fu2018deep,
  title = {{Deep Ordinal Regression Network for Monocular Depth Estimation}},
  author = {Huan Fu and Mingming Gong and Chaohui Wang and Kayhan Batmanghelich and Dacheng Tao},
  year = {2018},
  eprint = {1806.02446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.02446v1}
}
```

## Other paper commentary

- [Stacked Attention Networks for Image Question Answering](https://refivu.com/en/papers/aa94a5f2-b4fb-441a-af4b-22eda9ad2985-stacked-attention-networks-for-image-question-answering.md)
- [A guide to convolution arithmetic for deep learning](https://refivu.com/en/papers/7690e8f8-368e-4a59-a827-7093c4415777-a-guide-to-convolution-arithmetic-for-deep-learning.md)
- [Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Models](https://refivu.com/en/papers/6bd22a78-4fb3-465f-b297-2113b18ee3f2-explainable-artificial-intelligence-understanding.md)
- [SCA-CNN: Spatial and Channel-wise Attention in Convolutional Networks for Image Captioning](https://refivu.com/en/papers/51e17bf0-d47d-4aca-8ce3-e07e4204a821-sca-cnn-spatial-and-channel-wise-attention-in.md)
- [Attention Gated Networks: Learning to Leverage Salient Regions in Medical Images](https://refivu.com/en/papers/63b212b7-3fc0-42f4-b6d8-1724e918c784-attention-gated-networks-learning-to-leverage-salient.md)
- [Deeper Depth Prediction with Fully Convolutional Residual Networks](https://refivu.com/en/papers/4ef3d92a-82ea-4f76-8b77-ec72d726dd77-deeper-depth-prediction-with-fully-convolutional-residual.md)
- [MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer](https://refivu.com/en/papers/c76255ba-9c87-4edc-80cc-28d59c4ccfc5-mobilevit-light-weight-general-purpose-and-mobile-friendly.md)
- [FairMOT: On the Fairness of Detection and Re-Identification in Multiple Object Tracking](https://refivu.com/en/papers/081a3a22-90c6-4c70-a7df-d2e70b35ad22-fairmot-on-the-fairness-of-detection-and-re.md)
- [Is Space-Time Attention All You Need for Video Understanding?](https://refivu.com/en/papers/b6bd7278-3728-4d96-9fe0-5f483de3f3bd-is-space-time-attention-all-you-need-for.md)
- [PointConv: Deep Convolutional Networks on 3D Point Clouds](https://refivu.com/en/papers/c9a5b52f-78bd-452f-b508-b85a37101523-pointconv-deep-convolutional-networks-on-3d-point-clouds.md)
- [Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddings](https://refivu.com/en/papers/54f76c5c-e7e0-4849-8c34-62d4d7e29119-man-is-to-computer-programmer-as-woman-is.md)
- [Return of Frustratingly Easy Domain Adaptation](https://refivu.com/en/papers/0a776e2c-6337-4850-9be1-86de976005d2-return-of-frustratingly-easy-domain-adaptation.md)

## Terms in this paper

- [VGG-16](https://refivu.com/en/terms/50d02785f4b9-vgg-16)
- [Resnet-101](https://refivu.com/en/terms/e1917778abec-resnet-101)
- [dilated convolution](https://refivu.com/en/terms/7c0300102517-dilated-convolution)
- [RMSE](https://refivu.com/en/terms/ad2579cf164a-rmse)
- [mean squared error (MSE)](https://refivu.com/en/terms/285676885a86-mean-squared-error-mse)
- [Monocular depth estimation](https://refivu.com/en/terms/8a2cee5cd76c-monocular-depth-estimation)
- [Abs Rel](https://refivu.com/en/terms/b60500d491d4-abs-rel)
- [Scannet](https://refivu.com/en/terms/bef8b5634a3a-scannet)
- [Atrous Spatial Pyramid Pooling](https://refivu.com/en/terms/e5fc5f1ff6c4-atrous-spatial-pyramid-pooling)
- [Make3D](https://refivu.com/en/terms/ad3be1c06be2-make3d)
- [NYU Depth v2](https://refivu.com/en/terms/905fbbcab609-nyu-depth-v2)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/e525192f-9651-4698-8525-b6cda281195b-deep-ordinal-regression-network-for-monocular-depth)
