Repurposing RGB-based Foundation Model for Depth Estimation on Thermal Images Using Hierarchical Supervision

Jie Hong, Tingtian Li, Xuesong Li, Xiao LiarXiv 2026

TL;DR

The authors introduce RGB-HS, a novel framework that improves thermal-image depth estimation by transferring hierarchical structural and semantic knowledge from a powerful, frozen RGB vision foundation model (DINOv3). Crucially, it incorporates an adaptive verification module that down-weights unreliable RGB guidance during adverse conditions like nighttime or rain, ensuring the thermal model only learns from high-quality visual data.

What Problem Does This Paper Address?

Accurate depth estimation is vital for autonomous robots and self-driving cars. While standard RGB cameras excel in daylight, they fail miserably in low-light or stormy conditions. Thermal cameras offer a robust alternative because they capture heat radiation rather than visible light, making them ideal for night or rain deployment.

However, thermal images suffer from a lack of texture, low contrast, and ambiguous object boundaries, making direct depth estimation highly challenging. While researchers have tried to distill knowledge from large RGB-based vision foundation models to guide thermal networks, they face a fundamental paradox: if you blindly force a thermal model to align with RGB features during training, the model will learn corrupted representations when the RGB images themselves are degraded (e.g., pitch black at night). Furthermore, prior methods fail to exploit the rich, multi-level (hierarchical) features embedded within modern vision transformers.

Methods

Evolution of thermal depth estimation frameworks from simple baseline to the proposed verification-guided alignment.

The proposed RGB-HS framework adopts a teacher-student paradigm during training. A frozen RGB foundation model (DINOv3 ViT-B/16) acts as the teacher, while a thermal encoder-decoder network (built on the MSCRF baseline) acts as the student.

The core innovation lies in its Hierarchical Supervision, which operates on two distinct levels:

  1. Map-level Alignment: To capture fine-grained local structures like object edges, spatial patch tokens from both encoders are reshaped into 2D feature maps. A correlation loss is applied to align their spatial dependencies without forcing strict, flawed pixel-to-pixel matching.
  2. Latent-level Alignment: To capture global semantic context, the feature maps are max-pooled into global latent vectors. The framework then minimizes both cosine similarity loss and Kullback-Leibler (KL) divergence loss to ensure the thermal network mimics the teacher's channel-wise semantic distribution.
Detailed overview of the RGB-HS architecture highlighting map-level alignment, latent-level alignment, and the bright-contrast verification module.

To solve the "bad RGB data" problem, the authors introduce a Bright-contrast Verification module. This module calculates a confidence score ($C_{RGB}$) for each RGB image based on its average luminance and contrast standard deviation. If an RGB image is overexposed, underexposed, or low-contrast, its alignment loss weight is dynamically turned down.

Note: The entire RGB branch, alignment modules, and verification modules are discarded during inference; the final model runs purely on thermal images.

Datasets

The framework was evaluated on the Multi-Spectral Stereo ($MS^2$) dataset, a large-scale multimodal outdoor benchmark for autonomous driving. It features synchronized stereo RGB, near-infrared (NIR), thermal images, and stereo LiDAR ground truth data captured across diverse conditions (day, night, and rain). The authors tested their method on both the standard official split and a recently established "cleaned" version of the dataset.

Key Insights and Ideas

  • Adaptive Trust is Mandatory: Blind cross-modal distillation hurts performance. By treating the teacher's guidance as conditional rather than absolute, the verification module preserves the thermal modality's unique strengths when visible sensors fail.
  • Local and Global Features are Complementary: Aligning only local structures (edges) or only global semantics (scene context) yields minor improvements. Combining them hierarchically provides a massive boost, helping the model resolve ambiguous boundaries in textureless thermal scenes.
  • Foundation Models are Highly Transferable: Even though DINOv3 was trained entirely on RGB data, its latent representations possess structural and semantic priors so robust that they can effectively ground a completely different modality (thermal).

Key Results

RGB-HS achieved state-of-the-art (SOTA) performance across both monocular and stereo settings on the $MS^2$ dataset:

  • Stereo Super-Performance: RGB-HS (Stereo) achieved the best average performance with an Absolute Relative error (AbsRel) of 0.105 and a Root Mean Squared Error (RMSE) of 3.548.
  • Monocular Beats Prior Stereo: Remarkably, the monocular version, RGB-HS (Mono), outperformed previous stereo-based models, reducing the baseline MSCRF (Stereo) RMSE from 5.068 down to 3.806.
  • Efficiency Gains: On the cleaned dataset, RGB-HS achieved an RMSE of 2.595, outperforming the previous SOTA method, RGB-MDE (2.677). Crucially, it did so with a significantly smaller model size (249M vs. 666M parameters) and lower computational complexity (0.23 vs. 0.72 TFLOPs).
Qualitative depth estimation maps showing that RGB-HS preserves sharper object boundaries and better structural continuity compared to baselines.

Limitations and Future Work

While highly effective, the Bright-contrast Verification module relies on a relatively simple heuristic (luminance and standard deviation). It may not fully capture complex image degradations like motion blur, lens flare, or localized occlusions (e.g., windshield wipers in rain).

The authors suggest that extending this hierarchical cross-modal supervision framework to other thermal-based perception tasks—such as semantic segmentation, object detection, and tracking—is a highly promising direction for future research.

Summary updated

BibTeX
@misc{hong2026repurposing,
  author = {Jie Hong and Tingtian Li and Xuesong Li and Xiao Li},
  title = {{Repurposing RGB-based Foundation Model for Depth Estimation on Thermal Images Using Hierarchical Supervision}},
  year = {2026},
  eprint = {2608.11564},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.11564},
}
Figure