DepthART: Monocular Depth Estimation as Autoregressive Refinement Task
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 1017-1025.
https://doi.org/10.24963/ijcai.2025/114
Keywords
- Computer Vision: CV: 3D computer vision
- Computer Vision: CV: Image and video synthesis and generation
Abstract
Monocular depth estimation has seen significant advances through discriminative approaches, yet their performance remains constrained by the limitations of training datasets. While generative approaches have addressed this challenge by leveraging priors from internet-scale datasets, with recent studies showing state-of-the-art results using fine-tuned text-to-image diffusion models, there is still room for improvement. Notably, autoregressive generative approaches, particularly Visual AutoRegressive modeling, have demonstrated superior results compared to diffusion models in conditioned image synthesis, while offering faster inference times.
In this work, we apply Visual Autoregressive Transformer (VAR) to the monocular depth estimation problem. However, the conventional GPT-2-style training procedure (teacher forcing) inherited by VAR yields suboptimal results for depth estimation. To address this limitation, we introduce DepthART - a novel training method formulated as a Depth Autoregressive Refinement Task. Unlike traditional VAR training with static inputs and targets, our method implements a dynamic target formulation based on model outputs, enabling self-refinement. By utilizing the model's own predictions as inputs instead of ground truth token maps during training, we frame the objective as residual minimization, effectively reducing the discrepancy between training and inference procedures.
Our experimental results demonstrate that the proposed training approach significantly enhances the performance of VAR in depth estimation tasks. When trained on Hypersim dataset using our approach, the model achieves superior results across multiple unseen benchmarks compared to existing generative and discriminative baselines.
- [Agarwal and Arora, 2023] Ashutosh Agarwal and Chetan Arora. Attention attention everywhere: Monocular depth prediction with skip attention. In Proceedings of the IEEE/CVF Winter Conference on Applications of Com- puter Vision, pages 5861-5870, 2023.
- [Bhat et al., 2021] Shariq Farooq Bhat, Ibraheem Alhashim, and Peter Wonka. Adabins: Depth estimation using adap- tive bins. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4009- 4018, 2021.
- [Bhat et al., 2023] Shariq Farooq Bhat, Reiner Birkl, Diana Wofk, Peter Wonka, and Matthias Müller. Zoedepth: Zero- shot transfer by combining relative and metric depth. arXiv preprint arXiv:2302.12288, 2023.
- [Blattmann et al., 2023] Andreas Blattmann, Tim Dockhorn, Sumith Kulal, Daniel Mendelevitch, Maciej Kilian, Do- minik Lorenz, Yam Levi, Zion English, Vikram Voleti, Adam Letts, et al. Stable video diffusion: Scaling latent video diffusion models to large datasets. arXiv preprint arXiv:2311.15127, 2023.
- [Chang et al., 2023] Huiwen Chang, Han Zhang, Jarred Bar- ber, AJ Maschinot, Jose Lezama, Lu Jiang, Ming-Hsuan Yang, Kevin Murphy, William T Freeman, Michael Rubinstein, et al. Muse: Text-to-image generation via masked generative transformers. arXiv preprint arXiv:2301.00704, 2023.
- [Chen et al., 2023] Shoufa Chen, Peize Sun, Yibing Song, and Ping Luo. Diffusiondet: Diffusion model for object detection. In Proceedings of the IEEE/CVF international conference on computer vision, pages 19830-19843, 2023.
- [Duan et al., 2023] Yiqun Duan, Xianda Guo, and Zheng Zhu. Diffusiondepth: Diffusion denoising approach for monocular depth estimation. arXiv preprint arXiv:2303.05021, 2023.
- [Eigen et al., 2014] David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single im- age using a multi-scale deep network. In Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K.Q. Wein- berger, editors, Advances in Neural Information Process- ing Systems, volume 27.
- Curran Associates, Inc., 2014.
- [Esser et al., 2021] Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE/CVF con- ference on computer vision and pattern recognition, pages 12873-12883, 2021.
- [Fu et al., 2024] Xiao Fu, Wei Yin, Mu Hu, Kaixuan Wang, Yuexin Ma, Ping Tan, Shaojie Shen, Dahua Lin, and Xi- aoxiao Long. Geowizard: Unleashing the diffusion priors for 3d geometry estimation from a single image. arXiv preprint arXiv:2403.12013, 2024.
- [Ho et al., 2020] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840-6851, 2020.
- [Huang et al., 2023] Mengqi Huang, Zhendong Mao, Quan Wang, and Yongdong Zhang. Not all image regions mat- ter: Masked vector quantization for autoregressive image generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2002- 2011, 2023.
- [Ke et al., 2024] Bingxin Ke, Anton Obukhov, Shengyu Huang, Nando Metzger, Rodrigo Caye Daudt, and Kon- rad Schindler. Repurposing diffusion-based image gener- ators for monocular depth estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pat- tern Recognition, pages 9492-9502, 2024.
- [Koch et al., 2019] Tobias Koch, Lukas Liebel, Friedrich Fraundorfer, and Marco Körner. Evaluation of cnn-based single-image depth estimation methods. In Laura Leal- Taixé and Stefan Roth, editors, Computer Vision -ECCV 2018 Workshops, pages 331-348, Cham, 2019. Springer International Publishing.
- [Kuznetsova et al., 2020] Alina Kuznetsova, Hassan Rom, Neil Alldrin, Jasper Uijlings, Ivan Krasin, Jordi Pont- Tuset, Shahab Kamali, Stefan Popov, Matteo Malloci, Alexander Kolesnikov, et al. The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. International journal of computer vision, 128(7):1956-1981, 2020.
- [Laina et al., 2016] Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual net- works. In 2016 Fourth international conference on 3D vision (3DV), pages 239-248. IEEE, 2016.
- [Li et al., 2019] Zhengqi Li, Tali Dekel, Forrester Cole, Richard Tucker, Noah Snavely, Ce Liu, and William T Freeman. Learning the depths of moving people by watch- ing frozen people. In Proceedings of the IEEE/CVF con- ference on computer vision and pattern recognition, pages 4521-4530, 2019.
- [Loshchilov and Hutter, 2019] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In Inter- national Conference on Learning Representations, 2019.
- [Melas-Kyriazi et al., 2023] Luke Melas-Kyriazi, Iro Laina, Christian Rupprecht, and Andrea Vedaldi. Realfusion: 360deg reconstruction of any object from a single image. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8446-8455, 2023.
- [Ning and Gan, 2023] Chao Ning and Hongping Gan. Trap attention: Monocular depth estimation with manual traps. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5033-5043, 2023.
- [Patakin et al., 2022] Nikolay Patakin, Anna Vorontsova, Mikhail Artemyev, and Anton Konushin. Single-stage 3d geometry-preserving depth estimation model training on dataset mixtures with uncalibrated stereo data. In Proceed- ings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1705-1714, 2022.
- [Peebles and Xie, 2023] William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceed- ings of the IEEE/CVF International Conference on Com- puter Vision, pages 4195-4205, 2023.
- [Radford et al., 2019] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
- [Ranftl et al., 2020] René Ranftl, Katrin Lasinger, David Hafner, Konrad Schindler, and Vladlen Koltun. Towards robust monocular depth estimation: Mixing datasets for zero-shot cross-dataset transfer. IEEE transactions on pat- tern analysis and machine intelligence, 44(3):1623-1637, 2020.
- [Ranftl et al., 2021] René Ranftl, Alexey Bochkovskiy, and Vladlen Koltun. Vision transformers for dense prediction. In Proceedings of the IEEE/CVF international conference on computer vision, pages 12179-12188, 2021.
- [Roberts et al., 2021] Mike Roberts, Jason Ramapuram, Anurag Ranjan, Atulit Kumar, Miguel Angel Bautista, Nathan Paczan, Russ Webb, and Joshua M Susskind. Hypersim: A photorealistic synthetic dataset for holis- tic indoor scene understanding. In Proceedings of the IEEE/CVF international conference on computer vision, pages 10912-10922, 2021.
- [Rombach et al., 2022] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10684-10695, 2022.
- [Schops et al., 2017] Thomas Schops, Johannes L Schon- berger, Silvano Galliani, Torsten Sattler, Konrad Schindler, Marc Pollefeys, and Andreas Geiger. A multi-view stereo benchmark with high-resolution images and multi-camera videos. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3260-3269, 2017.
- [Schuhmann et al., 2022] Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wight- man, Mehdi Cherti, Theo Coombes, Aarush Katta, Clay- ton Mullis, Mitchell Wortsman, et al. Laion-5b: An open large-scale dataset for training next generation image-text models. Advances in Neural Information Processing Sys- tems, 35:25278-25294, 2022.
- [Silberman et al., 2012] Nathan Silberman, Derek Hoiem, Pushmeet Kohli, and Rob Fergus. Indoor segmentation and support inference from rgbd images. In Computer Vision-ECCV 2012: 12th European Conference on Com- puter Vision, Florence, Italy, October 7-13, 2012, Pro- ceedings, Part V 12, pages 746-760. Springer, 2012.
- [Sun et al., 2024] Peize Sun, Yi Jiang, Shoufa Chen, Shilong Zhang, Bingyue Peng, Ping Luo, and Zehuan Yuan. Au- toregressive model beats diffusion: Llama for scalable im- age generation. arXiv preprint arXiv:2406.06525, 2024.
- [Tian et al., 2024] Keyu Tian, Yi Jiang, Zehuan Yuan, Bingyue Peng, and Liwei Wang. Visual autoregressive modeling: Scalable image generation via next-scale pre- diction. arXiv preprint arXiv:2404.02905, 2024.
- [Van Den Oord et al., 2017] Aaron Van Den Oord, Oriol Vinyals, et al. Neural discrete representation learning. Advances in neural information processing systems, 30, 2017.
- [Wang et al., 2019] Yan Wang, Wei-Lun Chao, Divyansh Garg, Bharath Hariharan, Mark Campbell, and Kilian Q Weinberger. Pseudo-lidar from visual depth estimation: Bridging the gap in 3d object detection for autonomous driving. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8445- 8453, 2019.
- [Wang et al., 2023] Hefeng Wang, Jiale Cao, Rao Muham- mad Anwer, Jin Xie, Fahad Shahbaz Khan, and Yanwei Pang. Dformer: Diffusion-guided transformer for univer- sal image segmentation. arXiv preprint arXiv:2306.03437, 2023.
- [Wofk et al., 2019] Diana Wofk, Fangchang Ma, Tien-Ju Yang, Sertac Karaman, and Vivienne Sze. Fastdepth: Fast monocular depth estimation on embedded systems. In 2019 International Conference on Robotics and Automa- tion (ICRA), pages 6101-6108. IEEE, 2019.
- [Yang et al., 2024] Lihe Yang, Bingyi Kang, Zilong Huang, Xiaogang Xu, Jiashi Feng, and Hengshuang Zhao. Depth anything: Unleashing the power of large-scale unlabeled data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10371- 10381, 2024.
- [Yin et al., 2021] Wei Yin, Jianming Zhang, Oliver Wang, Simon Niklaus, Long Mai, Simon Chen, and Chunhua Shen. Learning to recover 3d scene shape from a single image. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 204-213, 2021.
- [Yin et al., 2023] Wei Yin, Chi Zhang, Hao Chen, Zhipeng Cai, Gang Yu, Kaixuan Wang, Xiaozhi Chen, and Chun- hua Shen. Metric3d: Towards zero-shot metric 3d pre- diction from a single image. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9043-9053, 2023.
- [Yu et al., 2021] Jiahui Yu, Xin Li, Jing Yu Koh, Han Zhang, Ruoming Pang, James Qin, Alexander Ku, Yuanzhong Xu, Jason Baldridge, and Yonghui Wu. Vector-quantized image modeling with improved vqgan. arXiv preprint arXiv:2110.04627, 2021.
- [Yu et al., 2023] Lijun Yu, José Lezama, Nitesh B Gun- davarapu, Luca Versari, Kihyuk Sohn, David Minnen, Yong Cheng, Agrim Gupta, Xiuye Gu, Alexander G Hauptmann, et al. Language model beats diffusion- tokenizer is key to visual generation. arXiv preprint arXiv:2310.05737, 2023.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Monocular depth estimation (MDE) is a fundamental problem in computer vision. Depth maps provide a compact intermediate scene representation useful for decision making in physical surroundings. Recovering depth data from a single image promises a high practical value for different applications including spatial vision intelligence [Wang et al., 2019], autonomous driving [Wang et al., 2019] and robotics [Wofk et al., 2019].
Early learning-based approaches [Eigen et al., 2014] tackle the monocular depth estimation problem as a supervised regression task. However, these methods were domain-specific [Silberman et al., 2012] and heavily relied on annotated datasets. As a result, they were subject to a limited generalization ability caused by a low amount of annotated data available. Recent techniques suggested different tricks challenging this limitation. MiDaS [Ranftl et al., 2020] proposed to mitigate this issue by using an affine invariant depth training scheme on a mixture of datasets. While newer approaches proposing annotated data sources still appear [Yang et al., 2024], the acquisition of accurate depth annotations at scale remains challenging.
Recent studies [Ke et al., 2024; Fu et al., 2024] have highlighted the effectiveness of text-to-image diffusion models, originally trained on internet-scale image-caption datasets, as priors for monocular depth estimation. These approaches involve fine-tuning a pretrained diffusion model on a smaller, synthetic dataset with depth annotations, resulting in models that generate accurate and highly detailed depth maps. Concurrently, advancements in autoregressive models, such as the Visual AutoRegressive modeling [Tian et al., 2024] and LLaMA-Gen [Sun et al., 2024], have demonstrated the capability of these models to generate high-quality images in class- or text-guided settings. These findings motivate an exploration of autoregressive generative techniques for depth estimation, offering a promising new direction.
In this work, we introduce 1 a novel approach to monocular depth estimation based on the Visual AutoRegressive modeling [Tian et al., 2024]. Our core contribution is the novel training procedure formulated as Depth Autoregressive Refinement Task. Our approach constructs dynamic targets using the model's own predictions, rather than relying on ground truth token maps during training. By framing the objective as residual minimization and using model predictions as inputs, we bridge the gap between training and inference stages in autoregressive modeling, leading to enhanced depth estimation quality. We validate our model extensively comparing it with popular baselines under similar conditions. To the best of our knowledge, this is the first autoregressive depth estimation model. Moreover, it performs on-par or superior compared with popular depth estimation baselines.
1 https://bulatko.github.io/depthart-pp/
Eventually, we formulate our contributions as follows:
- We introduce a novel application of Visual Autoregressive Transformer for depth estimation.
- We propose a new training paradigm for depth estimation, termed the Depth Autoregressive Refinement Task (DepthART), which facilitates self-refinement and bridges the gap between training and inference procedures.
- We demonstrate, through extensive experiments, that the Visual Autoregressive Transformer trained with DepthART achieves competitive or superior performance compared to existing baselines across several benchmarks not seen during training.
2 RelatedWork
2.1 Monocular Depth Estimation
Learning-based monocular depth estimation approaches can be broadly categorized into two main branches: metric and relative depth estimation methods. Metric depth estimation [Laina et al., 2016; Bhat et al., 2021; Yin et al., 2023] focuses on regressing absolute predictions at a metric scale. These models are typically trained on small, domain-specific datasets, which limits their ability to generalize efficiently across diverse environments. At the same time, relative depth estimation methods aim to estimate depth up to unknown shift and scale (SSI) or just unknown scale (SI). MiDaS [Ranftl et al., 2020] introduced shift and scale invariant depth training on a mixture of several domain-specific datasets, significantly improving model generalization. Despite it, the depth predictions remained geometrically incomplete, i.e. point clouds cannot be built using model predictions. GP2 [Patakin et al., 2022] addressed this limitation by proposing an end-to-end training scheme that estimates a scaleinvariant, geometry-preserving depth maps. Meanwhile, twostage pipelines were developed to reduce shift ambiguity in depth maps at the second stage [Yin et al., 2021] or to upgrade the depth map to metric scale [Bhat et al., 2023]. Further advancements in the field have been driven by the integration of various priors [Yang et al., 2024; Yin et al., 2023], improvements in architectural designs [Ranftl et al., 2021; Agarwal and Arora, 2023; Ning and Gan, 2023] and the expansion of training data [Yang et al., 2024].
2.2 Generative Modeling
Recently, diffusion models have demonstrated their versatility across various computer vision tasks, including image generation [Ho et al., 2020; Rombach et al., 2022], video generation [Blattmann et al., 2023], or 3D objects modeling [Melas-Kyriazi et al., 2023]. Beyond these applications, diffusion models have also been successfully employed in other problems, such as depth estimation [Duan et al., 2023], image segmentation [Wang et al., 2023] and object detection [Chen et al., 2023]. Notably, Marigold [Ke et al., 2024]

and GeoWizard [Fu et al., 2024] have demonstrated that the Stable Diffusion model [Rombach et al., 2022], pretrained on the large-scale image-caption dataset LAION-5B [Schuhmann et al., 2022], can produce high-quality depth maps after minor finetuning. This highlights the potential of utilizing pretrained generative models to enhance depth estimation accuracy and robustness across different domains.
2.3 Autoregressive Modeling
While diffusion models remain one of the most widely-used generative approach, recent advancements in autoregressive models have shown significant promise for various generative tasks [Yu et al., 2023; Sun et al., 2024; Tian et al., 2024]. These methods rely on discrete token-based image representations typically generated by VQ-VAE [Van Den Oord et al., 2017] or its derivatives. These derivatives often include architectural enhancements [Yu et al., 2021], additional masking techniques [Huang et al., 2023], or the incorporation of adversarial and perceptual losses [Esser et al., 2021]. Autoregressive image synthesis is generally formulated as the sequential generation of tokens [Esser et al., 2021], followed by decoding them from the VQ space. Many approaches employ the GPT-2 [Radford et al., 2019] decoder-only architecture to predict sequences of VQ-VAE tokens [Esser et al., 2021; Chang et al., 2023]. However recent works [Tian et al., 2024] have introduced the concept of predicting multi-scale token maps rather than token sequences. This approach reduces the risk of structural degradation and decreases the generation time for high-resolution images, enabling high-quality class- and text-conditioned image generation.
3 Preliminary
Next-scale visual autoregressive modeling. Typically autoregressive image generation involves predicting image tokens in a raster scan order. However, recent work [Tian et al., 2024] introduced a novel autoregressive training approach for class-conditional image generation - visual autoregressive modeling. Instead of predicting tokens individually, they proposed generating token maps with varying scale. Each predicted token map progressively increases in resolution compared to the previous one, resulting in a scale-wise decomposition of the image. Specifically, an image I is modelled as a sequence of {x1, x2, . . . , xK}, where xk is a token map of size sk = (hk,wk). The visual autoregressive transformer based on GPT-2 is then trained to maximize a classconditioned likelihood:

Unlike the traditional token-by-token prediction approach, which can cause structural degradation due to raster scan ordering, visual autoregressive modeling predicts images scaleby-scale. Given that depth maps, like images, exhibit high spatial correlations, we explore the applicability of visual autoregressive modeling for solving depth estimation problem.
Discrete image representations. Effective autoregressive image modeling relies on discretizing images into a finite set of tokens, a task closely related to image compression. Image compression methods have evolved from linear projections to advanced neural approaches, such as vector quantized variational autoencoders (VQ-VAE) [Van Den Oord et al., 2017]. VQ-VAE approach combines an encoder-decoder neural network with a learnable token codebook of finite size. The encoder compresses the input image into a latent space, which is then quantized by mapping the latent vectors to the closest entries in the codebook. This quantized representation is then decoded back into the image space, with the entire process trained end-to-end using a log-likelihood objective over the image distribution.
Visual autoregressive model training requires multi-scale image decomposition represented as a sequence of token maps. Differently from original VQ-VAE [Van Den Oord et al., 2017] an input image I is quantized by encoder E into K token maps {x1, x2, . . . , xK} with resolutions {(hk,wk)}k=1,K. Quantization operation Q[·] is performed using the same codebook Z regardless of scale. Combined using upsample-convolution operators ηi token maps are assumed to sum up into continuous features E(I). Accordingly, the k-th scale map is calculated as a scaled and quantized residual of the extracted features:
S - scaling operation.
Eventually, decoder D recovers reconstructed image ˆI from given token maps:
In our approach, we adapt a pretrained modification of VQVAE tailored specifically for the visual autoregressive modeling transformer (VAR) [Tian et al., 2024]. While originally designed for colored images, we observe that VQ-VAE [Tian et al., 2024] can be applied to encode depth maps as well.

4 Method
In this work, we formulate the monocular depth estimation task as an image-conditioned autoregressive generation problem. We leverage the Visual Autoregressive Transformer (VAR) for monocular depth estimation, adapting it to generate depth token maps from input images. As our primary contribution, we introduce the novel training procedure formulated as Depth Autoregressive Refinement Task - DepthART.
Depth Autoregressive Refinement Task
The original Visual AutoRegressive modeling [Tian et al., 2024] relies on scale-wise decomposition of image provided by pre-trained VQ-VAE encoder. During training the model predicts next-scale token map from the previous sequence of ground truth token maps. Ground truth token maps are computed using VQ-VAE (Eq. 3, 2). The guidance objective is a cross-entropy loss between VAR prediction and the same scale token map provided by VQ-VAE. Inputting groundtruth token maps during training creates a discrepancy with inference, as the model never learns to account for its own prediction errors from previous steps. However, since the final feature map is constructed as a sum of all scale contributions, and this sum can be achieved through different combinations of addends, we can reformulate the problem: at each step, we can compute the difference between the current accumulated sum and the target feature map, allowing us to define the target for each scale as a residual that needs to be predicted to reach the final feature value.
We address this issue and reformulate training objective as a Depth Autoregressive Refinement Task (DepthART). Our main goal is to enable model self-refinement during training. Hence, we construct inputs and targets dynamically from model predictions. Let's consider an input image I with corresponding ground truth-depth map D. We firstly encode an image into a series of token maps {x1, x2, . . . xK} Eq. 3 provided by VQ-VAE [Tian et al., 2024]. Resulting image token maps are fed to the model input as a starting sequence and serve as a conditioning for depth map estimation. Constructing dynamic supervision targets in our approach starts with performing model inference for given image token maps. We denote predicted depth token maps as {z1, z2, . . . , zK}:
Next, we encode ground-truth depth D with the same VQVAE encoder into continuous features fD, discarding quantization process. Residual prediction targets {t1, t2, . . . , tK} can be constructed based on encoded depth features fD and a series of models predictions up to current scale. This process is done similarly to VQ-VAE decomposition method (Eq. 2, 3):
Eventually, the training objective takes the form of crossentropy loss between predicted and target token maps:
As the result we form a new set of training samples, where zk and tk are model inputs and targets respectively. In contrast to original VAR training, these token maps are dynamically constructed at every training step rather than relying on a single predefined VQ-VAE decomposition (see Figure 2).
The training process benefits from such formulation in a few ways. Firstly, our procedure enables model selfrefinement by making model aware of own predictions and framing the task as residual refinement. Since VQ-VAE [Tian et al., 2024] decomposition comes from approximating continuous features with summation of discrete token maps, multiple plausible decompositions can exist. Secondly, we argue that exploring various ways of decomposing input into token maps is beneficial for model training. Thirdly, this training procedure better aligns with the inference process, where the model receives its own outputs at each step, thus reducing the training-inference discrepancy.
5 Experiments
In this section, we empirically validate the effectiveness of our proposed approach on several depth estimation benchmarks that were not used during training. Specifically, we demonstrate that: (1) the usage of DepthART training method significantly enhances the performance of the Visual Autoregressive Transformer applied to depth estimation task compared to the usage of teacher forcing, (2) the Visual Autoregressive Transformer trained with DepthART achieves comparable or superior accuracy relative to other baselines.
| Models | FLOPS | Train./Infer., ms | #Params | ETH | TUM | NYU | IBIMS | Rank↓ | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| δ1↓ | AbsRel↓ | δ1↓ | AbsRel↓ | δ1↓ | AbsRel↓ | δ1↓ | AbsRel↓ | pe-fla↓ | pe-ori↓ | |||||
| GP-2 (EffNet-B5) | 13.4G | 41.4 / 21.4 | 30M | 0.23 | 0.175 | 0.427 | 0.247 | 0.162 | 0.125 | 0.162 | 0.121 | 4.70 | 12.8 | 5.2 |
| Midas (ResNeXt-101) | 92G | 28.1 / 10.9 | 104.5M | 0.203 | 0.160 | 0.325 | 0.207 | 0.143 | 0.116 | 0.140 | 0.112 | 2.71 | 10.8 | 3.5 |
| AdaBins (EffNet-B5) | 317G | 26.8 / 13.4 | 78.2M | 0.235 | 0.184 | 0.323 | 0.206 | 0.141 | 0.115 | 0.161 | 0.125 | 4.65 | 12.6 | 4 |
| DiT-depth (DiT) | 3.2T | 514.5 / 217.5 | 675M | 0.309 | 0.220 | 0.252 | 0.169 | 0.149 | 0.120 | 0.169 | 0.127 | 2.86 | 8.71 | 4.3 |
| DPT (ViT-L) | 963G | 128.7 / 47.6 | 344M | 0.198 | 0.150 | 0.435 | 0.251 | 0.121 | 0.107 | 0.134 | 0.108 | 2.97 | 8.14 | 2.9 |
| VAR (GPT-2) | 1.17T | 187.9 / 74.8 | 310M | 0.245 | 0.285 | 0.396 | 0.294 | 0.185 | 0.141 | 0.177 | 0.133 | 1.98 | 9.44 | 6.1 |
| VAR+DepthART (Ours, GPT-2) | 1.17T | 192.2 / 74.8 | 310M | 0.196 | 0.177 | 0.275 | 0.178 | 0.141 | 0.115 | 0.129 | 0.106 | 1.91 | 7.27 | 2.1 |
Implementation Details
For our experimental evaluation, we chose to predict depth maps up to an unknown scale (SI). Unlike the commonly used scale-and-shift invariant training approach [Ranftl et al., 2020], scale-invariant training preserves the ability to reconstruct geometry from the predicted depth maps, which is essential for practical applications like single-view reconstruction. Therefore, prior to inputting the depth maps into VQVAE, we apply the following transformation:
where D98 - 98% percentile of individual depth map.
Visual Autoregressive Transformer is trained with DepthART using AdamW [Loshchilov and Hutter, 2019] optimizer with a learning rate of 10-4 and weight decay of 10-2 and batch size equals to 4. Additionally we decrease learning rate during training with StepLR scheduler with a step size of 10, 000 and a gamma of 0.8. Training of our model takes 17 hours using 4 NVIDIA H100 GPUs.
Training protocol. To ensure consistent training conditions across all models, we train both the Visual Autoregressive Transformer and baseline models on the same dataset. Due to the requirement of dense ground-truth depth maps for variational autoencoders, we utilize the highly realistic synthetic HyperSim dataset [Roberts et al., 2021], which includes 461 diverse indoor scenes. The pretrained VQ-VAE [Tian et al., 2024] used in our experiments generates multi-scale token maps only up to a maximum resolution of 256×256, so we train all models at this resolution.
Evaluation protocol. Evaluation is performed on four datasets unseen during training: NYUv2 [Silberman et al., 2012] and IBIMS [Koch et al., 2019] capturing indoor environments, TUM [Li et al., 2019] capturing dynamic humans in indoor environment, ETH3D [Schops et al., 2017] providing high-quality depth maps for outdoor environments. Since all models trained to predict depth maps up to unknown scale, we first align predictions with ground-truth depth maps in terms of L1. Firstly, we evaluate accuracy of estimated depth maps using two commonly used metrics: Absolute Mean Relative Error (AbsRel) (↓) and δ1(↓). Additionally, we assess the predicted depth maps using depth planar region deviations (pe-fla ↓) and plane orientation error (pe-ori, in ◦ , ↓) on IBIMS dataset [Koch et al., 2019]. Recent state-of-the-art generative depth estimation methods have shown that largescale pretraining plays a crucial role in reducing the syntheticto-real domain gap. For instance, popular generative models like Marigold [Ke et al., 2024] leverage internet-scale pretraining on images before being fine-tuned on small synthetic datasets for depth estimation. This strong image prior significantly decreases the synthetic-to-real domain gap, enabling these generative models to achieve high zero-shot performance on real-world depth estimation benchmarks. Therefore, we do not perform additional steps to address the domain gap.
Baselines. We evaluate our approach against a diverse set of baseline models, organized into three categories. First, we consider several widely used depth estimation architectures trained discriminatively with an L2 regression loss, including MiDaS [Ranftl et al., 2020], GP2 [Patakin et al., 2022], and DPT [Ranftl et al., 2021]. We also include AdaBins [Bhat et al., 2021], which represents a classificationbased approach to depth estimation. Additionally, we evaluate DiT [Peebles and Xie, 2023], a transformer-based diffusion model pretrained on ImageNet. Finally, to assess the impact of our training procedure, we compare VAR trained with DepthART (VAR+DepthART) against the VAR trained with original procedure - teacher forcing. More baseline training details are provided in the supplementary materials.
5.1 Experimental Results
Teacher Forcing vs DepthART Training
To demonstrate the advantages of our approach, we trained VAR on the HyperSim dataset using both the original teacher forcing training procedure and our DepthART method. Figure 3 presents a detailed comparison of these training methods, evaluated on the ETH3D dataset. We assess the reconstruction quality by calculating the AbsRel metric (Figure 3) between the intermediate depth maps decoded at each autoregression step, based on cumulative predictions from both teacher forcing and DepthART. Since we used a pretrained VQ-VAE without fine-tuning it for depth estimation, we also present its end-to-end depth map reconstruction error as a soft limit achievable by VAR. While the model trained using the teacher forcing approach struggles to improve reconstruction quality at early scales, the DepthART-trained model consistently refines its predictions, achieving an overall reduction in relative error of approximately 70% compared to the baseline.


Notably, the DepthART-trained model discovers a slightly better decomposition at the second scale than the reference provided by VQ-VAE, highlighting the non-uniqueness and potential suboptimality of the VQ-VAE decomposition.
Comparison Against Baselines
To prove the efficiency of autoregressive approach in depth estimation, we train a set of popular baselines in similar conditions. Table 1 presents the evaluation results of all models on benchmarks that were not seen during training. To assess overall performance, we calculated each model's rank on every dataset, and then averaged these ranks across all datasets. As can be seen from the Table 1, the VAR trained with DepthART achieves the best overall performance. Notably, both VAR models trained with the teacher forcing and DepthART methods showed significantly better planar depth accuracy on the IBIMS dataset. We provide qualitative comparison of predicted depth maps in Figure 4. Besides, point clouds reconstructed from predicted depth maps (Figure 5)
| ETH | TUM | IBIMS | ||||
|---|---|---|---|---|---|---|
| δ1 ↓ | AbsRel↓ | δ1 ↓ | AbsRel↓ | δ1 ↓ | AbsRel↓ | |
| w/o ImageNet pretrain | 0.392 | 0.46 | 0.561 | 0.522 | 0.338 | 0.301 |
| with ImageNet pretrain | 0.196 | 0.177 | 0.275 | 0.178 | 0.129 | 0.106 |
further support this observation. These results highlight the potential of autoregressive models for depth estimation.
6 Ablation Studies
In this section, we analyze the impact of generative pretraining. Since we employ Visual Autoregressive Transformer, a generative model, for depth estimation, the generative pretraining stage plays a crucial role in the model's performance. Understanding and effectively operating in the VQ-VAE latent space is a challenging task, and the Visual Autoregressive Transformer learns to navigate this space during the pretraining phase. To evaluate the importance of pretraining, we conducted an experiment without the class-conditioned generation pretraining on ImageNet.
As shown in Table 2, the absence of pretraining leads to significantly degraded metrics across all evaluation criteria. These results demonstrate that the knowledge acquired during generative pretraining is essential for effective depth estimation. Furthermore, we hypothesize that utilizing more powerful pretraining schemes, particularly text-to-image generation on large-scale datasets like LAION-5B [Schuhmann et al., 2022], could yield even better performance.
7 Discussion
This work demonstrates the potential of generative autoregressive modeling for monocular depth estimation. Currently, our visual autoregressive transformer builds on pretraining, which is constrained by the the ImageNet dataset. We believe that pretraining on more extensive and diverse datasets, such as those used for text-to-image generation, could significantly enhance our model's performance. A primary limitation of our approach is the reliance on components from the original VAR: both the VQ-VAE network and the generative pretraining of the transformer. The VQ-VAE was trained at low resolution on the relatively smaller OpenImages dataset [Kuznetsova et al., 2020], in contrast to larger, more recent datasets like LAION-5B [Schuhmann et al., 2022]. Another potential limitation stems from the VQ-VAE training specifics: there is no guarantee that the quantization operation can accurately represent any scale that serves as a target during training. This limitation may lead to scenarios where the model converges to a local minimum due to the inherent constraints of the VQ-VAE's learned codebook. We anticipate that upgrading to a higher-quality VQ-VAE and employing stronger pretraining could greatly benefit our method, and we identify these limitations as key directions for future research.
8 Conclusion
In this paper, we tackle the depth estimation problem through an autoregressive lens, specifically adapting the visual autoregressive modeling approach [Tian et al., 2024] for this task. Originally designed for class-conditioned image generation, we repurposed the Visual Autoregressive Transformer for image-conditioned depth map estimation. Our analysis highlights limitations in the standard VAR training process - teacher forcing, which leads to suboptimal accuracy on public depth benchmarks. To address these challenges, we proposed a novel training formulation, the Depth Autoregressive Refinement Task (DepthART). The Visual Autoregressive Transformer trained with DepthART showed substantial performance improvements over the teacher forcing procedure and achieved competitive or superior results on public benchmarks compared to recent methods. Our approach enhances the model's self-refinement ability and resolves the the training-inference discrepancy issues of visual autoregressive modeling, as demonstrated through empirical evaluation.
Contribution Statement
Dmitry Senushkin - project leader
@inproceedings{ijcai2025p114,
title = {DepthART: Monocular Depth Estimation as Autoregressive Refinement Task},
author = {Gabdullin, Bulat and Konovalova, Nina and Patakin, Nikolay and Senushkin, Dmitry and Konushin, Anton},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {1017--1025},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/114},
url = {https://doi.org/10.24963/ijcai.2025/114},
}
TY - CPAPER TI - DepthART: Monocular Depth Estimation as Autoregressive Refinement Task AU - Gabdullin, Bulat AU - Konovalova, Nina AU - Patakin, Nikolay AU - Senushkin, Dmitry AU - Konushin, Anton T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 1017 EP - 1025 DO - 10.24963/ijcai.2025/114 UR - https://doi.org/10.24963/ijcai.2025/114 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: