Spectral Rectification for Parameter-Efficient Adaptation of Foundation Models in Colonoscopy Depth Estimation
Organizations: Department of Biomedical Engineering, National University of Singapore, Singapore · Department of Radiotherapy, The First Affiliated Hospital of Xi’an Jiaotong University, Xi’an, China
Abstract
Accurate monocular depth estimation is critical in colonoscopy for lesion localization and navigation. Foundation models trained on natural images fail to generalize directly to colonoscopy. We identify the core issue not as a semantic gap, but as a statistical shift in the frequency domain: colonoscopy images lack the strong high-frequency edge and texture gradients that these models rely on for geometric reasoning. To address this, we propose SpecDepth, a parameter-efficient adaptation framework that preserves the robust geometric representations of the pre-trained models while adapting to the colonoscopy domain. Its key innovation is an adaptive spectral rectification module, which uses a learnable wavelet decomposition to explicitly model and amplify the attenuated high-frequency components in feature maps. Different from conventional fine-tuning that risks distorting high-level semantic features, this targeted, low-level adjustment realigns the input signal with the original inductive bias of the foundational model. On the public C3VD and SimCol3D datasets, SpecDepth achieved state-of-the-art performance with an absolute relative error of 0.022 and 0.027, respectively. Our work demonstrates that directly addressing spectral mismatches is a highly effective strategy for adapting vision foundation models to specialized medical imaging tasks. The code will be released publicly after the manuscript is accepted for publication.
Figures & tables
| Metric | Formula |
|---|---|
| AbsRel, SqRel | , |
| RMSE, RMSElog | , |
| log10 | |
| SILog | , where |
| % pixels s.t. |
| Method | Params (M) | AbsRel↓ | SqRel↓ | log10↓ | RMSE↓ | RMSElog↓ | SILog↓ | |||
|---|---|---|---|---|---|---|---|---|---|---|
| NeWCRFs ( Yuan et al., 2022 ) | 270.4 | 0.133 | 0.557 | 0.048 | 3.058 | 0.151 | 11.817 | 0.854 | 0.973 | 0.997 |
| NDDepth ( Shao et al., 2024 ) | 348.4 | 0.316 | 2.651 | 0.111 | 7.043 | 0.322 | 24.255 | 0.498 | 0.873 | 0.956 |
| BTS ( Lee et al., 2019 ) | 50.3 | 0.127 | 0.622 | 0.055 | 3.823 | 0.150 | 11.400 | 0.812 | 0.979 | 0.998 |
| Col3D-MTL+SSL ( Solano et al., 2025 ) | 50.3 | 0.107 | 0.346 | 0.042 | 2.729 | 0.128 | 10.072 | 0.899 | 0.989 | 0.999 |
| EcoDepth ( Patni et al., 2024 ) | 993.48 | 0.103 | 0.367 | 0.042 | 2.721 | 0.116 | 8.539 | 0.901 | 0.994 | 0.998 |
| Marigold ( Ke et al., 2024 ) | 865.92 | 0.075 | 0.228 | 0.032 | 2.353 | 0.115 | 11.424 | 0.933 | 0.988 | 0.995 |
| Method | AbsRel↓ | SqRel↓ | RMSE↓ | RMSElog↓ | |
|---|---|---|---|---|---|
| Monodepth2 ( Godard et al., 2019 ) | 0.076 | 0.061 | 0.402 | 0.106 | 0.950 |
| FeatDepth ( Shu et al., 2020 ) | 0.077 | 0.069 | 0.374 | 0.098 | 0.957 |
| HR-Depth ( Lyu et al., 2021 ) | 0.072 | 0.044 | 0.378 | 0.100 | 0.961 |
| DIFFNet ( Zhou et al., 2021 ) | 0.074 | 0.053 | 0.401 | 0.105 | 0.957 |
| Endo-SfMLearner ( Ozyoruk et al., 2021 ) | 0.072 | 0.042 | 0.407 | 0.103 | 0.950 |
| AF-SfMLearner ( Shao et al., 2022 ) | 0.071 | 0.045 | 0.372 | 0.099 | 0.961 |
| Encoder | GWT | MC | AbsRel ↓ | SqRel ↓ | RMSE ↓ | |
|---|---|---|---|---|---|---|
| Full Fine-Tuning | 0.125 | 0.571 | 5.205 | 0.866 | ||
| Full Fine-Tuning | 0.104 | 0.578 | 4.461 | 0.939 | ||
| Full Fine-Tuning | 0.092 | 0.562 | 5.517 | 0.881 | ||
| Full Fine-Tuning | 0.077 | 0.553 | 3.703 | 0.960 | ||
| LoRA | 0.133 | 0.688 | 5.862 | 0.859 | ||
| LoRA | 0.086 | 0.567 | 3.866 | 0.953 |
| AbsRel | SqRel | RMSE | |||
|---|---|---|---|---|---|
| 0 | 0 | 0.125 | 0.571 | 5.205 | 0.866 |
| 0 | 0.1 | 0.115 | 0.571 | 5.310 | 0.876 |
| 0 | 0.2 | 0.112 | 0.570 | 5.308 | 0.881 |
| 0.1 | 0 | 0.099 | 0.566 | 5.694 | 0.879 |
| 0.1 | 0.1 | 0.092 | 0.562 | 5.517 | 0.881 |
| 0.1 | 0.2 | 0.122 | 0.572 | 5.213 | 0.863 |
Monocular Depth Estimation
Monocular depth estimation infers scene geometry and distance from a single camera image, enabling 3D perception without stereo or depth sensors.
See all 132 papers