Manuscript Offprint
arXiv:2610.40900AquaProbe: Efficient Adaptation of Frozen Vision Models for Underwater Images
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Reliable visual perception is essential for safe autonomous underwater exploration. Yet vision models pretrained on terrestrial images become less reliable underwater, where turbidity, backscatter, and wavelength-dependent attenuation alter scene appearance. Existing adaptation methods either spread adapters equally across the encoder depth or select layers using the divergence between two fixed domains. In this paper, we introduce AquaProbe for measuring how the location of the domain gap changes with water type and imaging range. AquaProbe separates newly introduced divergence from that accumulated through a frozen vision encoder using paired clean and physically rendered images and allocates a fixed LoRA budget according to the measured profile. The segmentation mean Intersection-over-Union (mIoU) for the proportional LoRA rank allocation, based on the measured profile, is 70.1; this is a better result than uniform LoRA rank allocation by 1.9 mIoU points while having the same parameter budget of 0.59 million adapter parameters. The three-way router, conditioned on estimated condition clusters, achieves 70.6 mIoU on the standard SUIM split and 63.4 AUDRC under held-out degradation.
1 Introduction
Safe autonomous underwater exploration requires reliable visual perception, which is often built on vision backbones pretrained on data from terrestrial environments. Underwater images are distributed differently from the pretraining distribution due to physically caused degradation: light is attenuated at wavelength-dependent rates, and part of the observed radiance is backscattered ambient light rather than scene radiance [1]. With increased turbidity and imaging range, contrast and visibility decrease, particular colour channels collapse, and high frequency details are lost, so the domain shift is condition dependent.
Fine-tuning such a pretrained encoder is difficult because underwater annotations are scarce and computation and energy resources for onboard inference are constrained; consequently, full fine-tuning is rarely attractive. Parameter-efficient fine-tuning helps address these problems by freezing the backbone and training only a small set of additional
weights [15, 16, 19]. This reduces adaptation cost, but given a limited budget for allocation, it is essential to determine how this budget should be divided between the layers of the encoder.
Adapter allocation is commonly uniform, based on the assumption that the domain shift affects all depths equally. Adaptive algorithms, including importance-driven budget allocation [45], use the optimisation statistics collected during training as opposed to directly measuring the shift. Layer-wise similarity analysis provides such a measurement [22, 38] and has been used to set rank before training [7]. However, this analysis is performed between a fixed pair of domains and therefore yields a static adapter allocation, whereas underwater conditions vary continuously with water type and imaging range, so one static profile may be insufficient. To measure the variation and allocate LoRA rank accordingly, we introduce AquaProbe.
With AquaProbe’s degradation-conditioned representational divergence analysis, we address three problems with the measurements of the representation gap. First, the representation gap between a pristine set and a corrupted one is characteristic only of this pair of distributions [3] and cannot indicate whether its location reflects the encoder or imaging conditions. Since underwater degradation has a closed-form model, we render clean images with a two-term physical model parametrized by Jerlov water type and imaging range, so that the profile is a function of these parameters and the stability of the gap is an empirical question. Second, layer-wise divergence is reported cumulatively and compounds with depth, so the curve rises regardless of where the damage starts. Instead, the per-block increase in divergence within the frozen encoder is recorded. Third, allocation based on representational measurements assumes that a large gap warrants more capacity, but this assumption is rarely validated against downstream behaviour. A single-block sweep characterizes this relationship. Finally, we derive a rank-based allocation method from these profiles and compare it with uniform, random, reversed, and prior allocation methods, as well as an exploratory router operating over nested prefixes of per-cluster allocations.
Our contributions are as follows:
- We present a degradation-conditioned probe that measures the per-block increase in divergence and show that it behaves differently from the commonly reported cumulative
divergence.
-
The profile drift index is compared to the average from a null distribution obtained through resampling, with peak dispersion greater than one block in two out of the three backbones and falling below that threshold for the third.
-
We investigate the relationship between divergence and adaptation utility through a single-block sweep, converting an assumption made by allocation-by-analysis methods into a measured quantity.
-
A rank allocation policy is developed from the profile, and its performance is compared to uniform, random, reversed, and two prior allocation methods under a matched budget, along with an exploratory router using nested per-cluster prefixes with a matching parameter count (0.03%).
2.1 Parameter-Efficient Adaptation
Adapter layers [15], prompt tuning [19], parallel bottleneck modules [6], and low-rank weight updates [16] enable efficient fine-tuning of a frozen backbone by learning a few auxiliary parameters. Improvements mostly use optimisation signals and include AdaLoRA [45], which prunes low-importance singular directions during training. DyLoRA [41], which jointly trains a range of ranks, and DoRA [30], which separates magnitude from direction. I-LoRA [26] also scores parameter importance with integrated gradients for adaptive rank allocation. Closest to our work is RepSAM [7], which uses centred kernel alignment between the pretraining distribution and a target robotic dataset to divide 32 SAM encoder layers into three fixed-rank bands ahead of fine-tuning. A parallel line of work investigates which layers to adapt rather than how much capacity each should receive [32, 46]. Dense prediction under water is addressed by ViT-UWA [20], which utilises a high-frequency prior and a convolutional detail branch along with a pretrained transformer without measuring capacity needs.
In all cases, capacity is set by design, from optimisation statistics, or from a fixed domain pair, without modelling how allocation needs change with physical underwater conditions. In the proposed method, divergence is computed in relation to the physical attributes of the shift rather than between two fixed datasets, so that a field is created instead of a single scalar quantity and stationarity can be tested rather than assumed. It also differences the profile across depth instead of reading it cumulatively and tests whether larger gaps warrant more capacity through downstream utility.
2.2 Layer-Wise Analysis of Representations
Feature transferability depends on depth [44]. Canonical correlation methods [33, 37], together with centred kernel alignment [22], measure representations across networks and depths. Such methods have been used to compare vision
transformers to convolutional networks [38]. The reliability of centred kernel alignment has been examined because CKA can be sensitive to outliers and high-variance directions [8]. The results are usually presented for a particular pair of conditions and cumulatively at each depth, even for capacity allocation [7]. The cumulative curve, however, cannot cleanly locate new divergence due to the propagation of initial perturbations through later blocks. Instead, we analyse the condition-dependent changes per block using centred kernel alignment as the main statistic, a mutual nearest-neighbour profile for robustness, and the per-block difference to localise divergences.
2.3 Underwater Image Formation and Perception Data
Robustness is commonly evaluated using synthetic corruptions at multiple severity levels [12], while degradation in the underwater setting has physically meaningful parameters: appearance is modelled as a distance-attenuated direct transmission term with an additional additive backscatter term [1]. Restoration methods invert these effects using transmission estimates, haze-line priors, or known scene range [2, 4, 10], whereas learning-based enhancement methods train on paired or unpaired data [18, 24, 25, 35]. Available evaluation data span segmentation [17, 27], detection [11, 29], marine debris [14], raw-reference enhancement pairs [24], and colour-chart-calibrated imagery [5]. UWCNN [23] also applies the same physical model for synthesising ten Jerlov types of underwater images from indoor RGB-D scenes. This allows for a structural approach with controlled axes of measurement: following the same procedure, we manipulate water type and imaging range to analyse representation drift and reuse the rendered conditions for shared training augmentation and router supervision.
3 Method
3.1 Overview
The process comprises two consecutive stages. A probe locates where the measured gap grows in a frozen vision transformer [9] over a grid of physical conditions, and an adaptation stage turns the resulting profile into a per-block LoRA rank budget, optionally with a router when the profile depends on imaging conditions. We write for the token features after block , with patch tokens of width , and for the patch-embedding output.
3.2 Physically Controlled Rendering
Clean and rendered pairs enter the probe in Fig. 1, whose profile drives the adaptation stage in Fig. 2. Rendering uses the simplified two-term formation model adopted for underwater image synthesis [23]. For clean scene radiance and

Figure 1. Clean RGB-D scenes are rendered across Jerlov water types and imaging ranges, and clean and rendered pairs pass through the same frozen encoder to give the per-block divergence field and the normalised profile.

Figure 2. The measured profile sets each block's LoRA rank under a fixed budget, the rank-allocated encoder feeds a linear decoder, and a router selects among nested per-cluster prefixes when the profile is condition dependent.
camera-to-scene range at pixel , the observed image is
where denotes the veiling light. The transmission is controlled by the per-metre survival fraction of channel for Jerlov water type , or equivalently by the attenuation coefficient . We use the ten tabulated types [23] of the standard Jerlov classification [42]: five open-ocean types (I, IA, IB, II, III) and five increasingly turbid coastal types (1C, 3C, 5C, 7C, 9C). The table carries a signature that the probe should reproduce: in clear oceanic water blue survives best and red is extinguished first, an ordering reversed in the
most turbid coastal type.
Range is an explicit second axis rather than a nuisance variable. With the min-max normalised source depth map and a range multiplier,
and a condition is the pair . As Eq. (1) is a per-pixel photometric map, labels transfer unchanged from the source data and the measurement needs no additional annotation.
3.3 Degradation-Conditioned Probe
Agreement between clean and rendered features is measured using linear centred kernel alignment [22]. For centred feature matrices X and Y, with samples represented by rows,
Patch tokens are mean-pooled to obtain one image per row, which stabilises the estimate. The cumulative gap at depth under condition c is
evaluated on a fixed image pool while holding scene content constant so that only the degradation varies.
Equation (4) entangles two effects: a perturbation introduced early propagates through later blocks, so tends to increase with depth regardless of where the perturbation originated. The quantity of interest for allocation is instead the increment local to block ,
where rectification handles small negative values caused by estimation noise; it alters 3.4% of block-condition pairs, all in the final four blocks, where the increment is close to zero. Alignment is computed in a different feature space at every depth, so the two terms in Eq. (5) are not strictly commensurable. The difference thus marks where the recorded divergence increases, which we define as newly introduced divergence. It makes no distinction between new and propagated corruption and is analysed as an allocation indicator in Sec. 3.5. Dividing by yields the normalised profile , which captures where the gap concentrates, not its magnitude, which turbid water raises at every depth.
The same construction attributes the gap to individual colour channels: restoring one channel of the rendered image to its clean value, leaving the other two degraded, and recomputing defines the attribution as the resulting reduction in total added divergence. The tabulated survival fractions predict which channel should carry more of the degradation for each water type, so is a falsifiable check rather than a descriptive statistic.
3.4 Stationarity of the Profile
The profile drift index is defined as the mean pairwise Jensen–Shannon divergence [28] over the condition grid,
This index is meaningful only relative to a null distribution of estimation noise, which we construct by resampling the full image pool under a single fixed condition and recomputing Eq. (6). The profile is declared non-stationary when the observed index exceeds the upper 5% of the null and the dispersion of the peak block exceeds one block. We also report the Spearman correlation between and each physical axis, because drift that tracks a physical parameter is more informative than unstructured variation.
3.5 Per-Block Adaptation Utility
Allocation based on the measurement assumes that a block with greater divergence benefits more from additional capacity; we measure this relationship rather than assume it. A LoRA module of small fixed rank is attached to one block at a time, with all other blocks frozen and the same decoder and schedule in every run. The utility is the mIoU improvement over the frozen encoder, and is the Spearman correlation between the condition-averaged increment and . Because adapters may interact, single-block utility is not the marginal contribution of a block within a joint allocation, so this statistic validates the allocation rule without establishing its optimality.
3.6 Gap-Proportional Rank Allocation
Given a budget , a sharpening exponent , and rank bounds , the target allocation assigns ranks in proportion to the condition-averaged divergence raised to the sharpening exponent:
The exponent interpolates between uniform allocation at , which provides a correctness check because it must reproduce the uniform baseline exactly, and a winner-take-all allocation as increases. A water-filling projection maps the continuous target onto the feasible integer set, applying clipping before integerisation because reversing these operations would violate the budget constraint.
LoRA is used as published [16]: it transforms a frozen weight into with normal and zero. Applying an independent pair to each of the four attention projections of every block gives
so equal-budget static LoRA methods have identical counts.
3.7 Conditioned Routing
Where the measured profile varies substantially across imaging conditions (Sec. 3.4), a single allocation may not match the full input distribution. We partition the condition grid into M clusters through agglomerative clustering with average linkage, applied directly to the pairwise Jensen–Shannon distance matrix, the square root of each pairwise divergence
Algorithm 1 Rank allocation by water-filling projection
Require: profile , budget , exponent , bounds with
Ensure: integer ranks with
1:
2: bisect for the level with
3: for all
4: assign to each block
5: distribute the remaining units to the largest fractional remainders
6: return
in Eq. (6); using pairwise distances avoids a Euclidean centroid of the profiles. Applying the procedure of Sec. 3.6 (Algorithm 1) within each cluster yields allocations .
Independent adapters would multiply the parameter count by , making the equal-budget comparison invalid. Allocations instead share nested factors, similar to DyLoRA's jointly trained rank range [41]: block has one pair of factors at rank , and cluster uses the first columns of and rows of with scaling . The stored budget, , is counted by Eq. (8); the per-cluster budget is chosen so that the union meets the static arm's . Each cluster is therefore active at a lower rank than the static allocation.
A two-layer perceptron takes pooled features from an early block , taken from an adapter-free pass, and predicts cluster membership under the cross-entropy loss , supervised on rendered data whose cluster label is known by construction. At inference, the predicted cluster selects the prefix of the stored factors, so ranks are not recomputed. The parameters of are included in the reported budget and is reduced accordingly, preserving the matched comparison.
3.8 Training and Inference
A single convolution followed by bilinear upsampling converts patch tokens to class logits; shared by all arms, this decoder keeps the encoder representation on the critical path. The loss is , where unless the router is on. At inference, the backbone is frozen and the static arm merges the low-rank update into without an additional branch. The routed arm's input-dependent prefix prevents merging, so it maintains the low-rank branch and recomputes the first of blocks after routing.
4 Experimental Setup
4.1 Datasets and Preprocessing
Rendering uses the 1449 densely annotated RGB-D pairs of the labelled NYU Depth V2 subset [40], which supplies the metric depth that Eq. (2) requires and has previously been used for underwater scene synthesis [23]. Each scene is rendered under all ten Jerlov types and four range multipliers , producing conditions with a probe pool of pairs each.
The primary downstream task is semantic segmentation on SUIM [17], with 1525 training/validation images, 110 test images, and eight classes. The test split is held out from probing, allocation, and all hyperparameter selection; the sweep over uses a held-out slice of the training split. TrashCan [14], whose instance masks are collapsed into 16 material classes, is a second benchmark captured in deep water under artificial lighting, and the 890 raw images with paired references in UIEB [24] support probing on genuine photographs.
Images are resized so that the shorter side matches the encoder resolution and normalised with the backbone's statistics; masks use nearest-neighbour interpolation. During adaptation, the renderer augments real SUIM training images identically in every arm. SUIM and TrashCan lack depth, so is an inverted monocular inverse-depth estimate [39] passed through the normalisation of Eq. (2). These images are already attenuated, so the water model is applied a second time and the scene is not calibrated; as this is identical in every arm and for every robustness test image, it shifts the operating point without confounding the ranking.
4.2 Evaluation Metrics
The measurement stage reports , , the drift index and its ratio to the resampling null, and the dispersion of and its Spearman correlation with each physical axis; mutual -nearest-neighbour alignment at is a robustness check.
The adaptation stage reports mean intersection over union (mIoU), boundary F-score, and trainable parameters. Robustness to conditions not used for allocation or training is the area under the degradation robustness curve (AUDRC): the trapezoidal integral of mIoU over SUIM test images re-rendered at held-out range multipliers , normalised by the interval width, because a simple mean would overweight the unevenly spaced short-range end. is disjoint from , whereas the ten water types are shared, so AUDRC holds out imaging range, not water type.
4.3 Backbones and Baselines
We probe DINOv2 ViT-B/14 [34], CLIP ViT-B/16 [36], and the SAM ViT-B image encoder [21]. DINOv2 serves the main adaptation comparison, with equal-budget analyses on SAM and TrashCan using the profile measured for each backbone.
Static LoRA arms share a budget of , or rank eight per block under uniform allocation, which is 0.59M adapter parameters and 0.68% of the backbone; the shared 6.2K linear decoder is trained in every arm but excluded

Figure 3. Condition-averaged cumulative divergence saturates with depth while condition-averaged marginal divergence is unimodal and early. Over the condition grid the peak of the marginal field, traced by the dashed line, moves towards earlier blocks as turbidity rises.
from this count. The comparison includes a frozen encoder with a decoder only, uniform LoRA, random allocation over five seeds, the reversed profile, AdaLoRA [45], and a banded allocation following RepSAM [7] that groups cumulative alignment between a terrestrial and a SUIM pool into three depth bands. We also evaluate the proposed static and routed variants and full fine-tuning as an unequal-budget upper reference. The reversed arm is a directional control: if a peaked allocation helped for reasons unrelated to the measured profile, reversing it would not reduce accuracy.
4.4 Implementation Details
Experiments use PyTorch on Google Colab Pro with an NVIDIA A100 40GB accelerator. LoRA adapts every block's query, key, value, and output projections with and, for non-uniform allocations, bounds and , allowing blocks to be skipped; the held-out training slice selects . AdamW [31] uses learning rates for adapters and for the decoder, weight decay 0.01, a cosine schedule with one warm-up epoch, batch size 16, 40 epochs, and . The router uses clusters, pooled features from , and hidden width 64, yielding parameters; its three allocations operate at rank 52 over a stored union of 88. Main adaptation methods use three seeds and the random baseline five. The main comparison reports mIoU as mean and standard deviation; boundary F-score, AUDRC, and ablation mIoUs have no reported standard deviations.
Each similarity estimate uses the complete pool of images, which exceeds the feature width of 768, rather than disjoint subsamples, to maximise estimator stability. Error bars come from 20 bootstrap resamples at full sample size, the null uses 200 bootstrap profiles, and the utility sweep uses with two seeds per block. The stationarity test and utility sweep were frozen before any allocation arm was trained, so the allocation was not tuned to the comparison on which it is evaluated. Probing takes about nine accelerator-minutes and the utility sweep about six accelerator-hours; the latter validates the principle once and is not part of applying the method.
Table 1. Each backbone is summarised over the 40-condition grid, with PDI/null the ratio of the observed index to the mean of the resampling null.
| Backbone | std() | PDI | PDI/null | ||
|---|---|---|---|---|---|
| DINOv2 ViT-B/14 | 2–6 | 1.07 | 0.039 | 5.2 | −0.86 |
| CLIP ViT-B/16 | 2–7 | 1.22 | 0.070 | 10.2 | −0.88 |
| SAM ViT-B | 2–6 | 0.98 | 0.030 | 4.1 | −0.86 |
5 Results and Discussion
5.1 Layer-Wise Localization of the Domain Gap
The rendered conditions show different degrees of agreement with real-image feature statistics. Fréchet Inception Distance (FID) [13] is minimised by coastal type 1C for SUIM (38.6 versus 52.4 for the next closest type) and type 3C for UIEB (44.1 versus 57.9). Section 5.2 examines transfer to real imagery.
Figure 3 contrasts the two measurements. For all three backbones, the cumulative curve saturates near the final blocks, so always places the gap at the network output, whereas the condition-averaged marginal curve is unimodal and peaks between the third and fifth blocks.
5.2 The Gap Moves with the Water
Figure 3 shows the peak shifting from block six in clear, short-range water to block two in the most turbid, long-range condition; Tab. 1 quantifies this drift. The drift index of DINOv2 is 5.2 times the null mean, and its peak dispersion exceeds one block. CLIP drifts more than DINOv2, and SAM, although it narrowly misses the dispersion criterion, has a drift index several times the null mean. These summaries indicate profile drift but do not establish formal rejection under Sec. 3.4 without the upper-tail null thresholds.
Drift is structured: correlation with turbidity is strongly negative for every backbone, versus approximately −0.42 for range. Mutual k-nearest-neighbour and alignment profiles agree with Spearman correlations between 0.86 and 0.91, supporting robustness to the choice of statistic.
Table 2. Equal-budget comparison on SUIM with DINOv2 ViT-B/14. Trainable parameters exclude the shared decoder; the routed count includes the router and matches the static arms within approximately 0.03%. Full fine-tuning is an unequal-budget reference.
| Method | Allocation signal | Trainable params (M) | Trainable / backbone (%) | mIoU (%) | Bound. F (%) | AUDRC (%) | |
|---|---|---|---|---|---|---|---|
| B0 | Frozen encoder with decoder | none | 0.00 | 0.00 | 44.1 | 52.1 | |
| B2 | Uniform LoRA | none | 0.59 | 0.68 | 51.3 | 59.8 | |
| B5a | Random allocation | none | 0.59 | 0.68 | 51.0 | 59.4 | |
| B5b | Reversed profile | reversed | 0.59 | 0.68 | 49.8 | 58.1 | |
| B6a | AdaLoRA [45] | training importance | 0.59 | 0.68 | 52.1 | 60.3 | |
| B6b | RepSAM bands [7] | cross-domain | 0.59 | 0.68 | 52.8 | 60.9 | |
| B7 | AquaProbe, static | 0.59 | 0.68 | 53.6 | 61.9 | ||
| B8 | AquaProbe, routed | per-cluster | 0.59 | 0.68 | 54.2 | 63.4 | |
| B1 | Full fine-tuning | none | 86.60 | 100 | 55.4 | 63.9 |

Figure 4. Single-block adaptation utility rises with the measured increment, with points labelled by block index, and the four strategies compared at the shared budget differ in where they place capacity.
Channel attribution reproduces the rendering signature. In clear type I water, red restoration dominates, [0.146, 0.198] versus [0.019, 0.044]; in turbid type 9C, the order reverses, [0.276, 0.349] versus [0.170, 0.228]: the probe captures the sign reversal implied by Jerlov attenuation, not generic contrast loss.
On 890 unrendered UIEB raw-reference pairs, the profile correlates with the synthetic profiles at ; both it and FID select type 3C at unit range. Grouping pairs by UCIQUE [43], a quality proxy for turbidity, reproduces the drift, with peak blocks four, three, and two. Each group has about 297 samples of 768-wide features, near the reduced-pool regime below where profile correlation drops to 0.71, so the ordering is qualitative. As UIEB references are enhancement outputs, not measured radiance, this corroborates real-image transfer without providing ground truth.
5.3 Divergence Predicts Adaptation Utility
Figure 4 relates the measured increment to the utility of adapting one block at a time. The rank correlation is , with a bootstrap interval of [0.47, 0.95], so blocks with larger increments benefit most from a small amount of adaptation capacity. Twelve blocks form a small sample, so the interval is wide: utility peaks at the third block and the largest increment at the fourth. The cumulative gap gives -0.71, ranking the late blocks highest while the utility sweep ranks them lowest, so Eq. (5) changes which blocks are selected,
not merely the magnitude of the signal.
This does not conflict with RepSAM [7], which measures the same statistic cumulatively between two fixed datasets, finds it lowest in shallow layers, and concentrates rank there. Measurements across datasets confound degradation with content mismatch, which is largest where features are least abstract. Holding content fixed removes this term, leaving a monotonic cumulative curve whose location is uninformative, so differencing is required in our setting.
5.4 Equal-Budget Comparison
Table 2 presents the main comparison, and the right panel of Fig. 4 shows each allocation. The measured profile concentrates rank on blocks two to six and leaves the two deepest blocks unadapted, outperforming uniform allocation by 1.9 mIoU at an identical parameter count. Random allocation matches uniform allocation within noise, whereas the reversed control is worse than both, which isolates the directional signal in the profile from a generic benefit of peaked allocation. The prior allocation baselines lie in between: AdaLoRA improves by 0.7 mIoU and the banded RepSAM allocation by 1.1 mIoU, because its cross-domain measurement also places rank early. The remaining 0.8 gap reflects per-block resolution and a degradation-matched measurement.
Routing adds 0.5 on the standard split, with overlapping mean standard deviation intervals for the static and routed arms. Its larger gain appears under shift, but AUDRC has no seed variance and no shuffled-route control isolates condition-aware selection, so routing remains exploratory. Its classifier achieves 91.3% accuracy on held-out rendered conditions. Full fine-tuning remains ahead but trains about 147 times as many parameters, excluding the shared decoder.
In our sweep, uniform allocation reaches 70.2 only at (Tab. 3), which requires four times the adapter parameters. Under held-out AUDRC ranges all arms degrade, but routed and static allocation remain 3.6 and 2.1 points above uniform; the static allocation becomes mismatched as conditions depart from its condition-averaged profile.
Table 3 isolates the individual design choices. The sharpening exponent performs best at , and reproduces uniform allocation exactly, confirming that Algorithm 1 is consistent with the uniform baseline. Driving allocation with the content-matched cumulative gap costs 1.7 points, leaving only 0.2 above uniform, because the cumulative curve saturates late.
Measurement choices leave the rank ordering of the profile intact: the class token instead of mean pooling, a halved condition grid, and a range interval widened to 0.5–8 m give correlations of 0.94, 0.97, and 0.91 with the default profile. Reducing the image pool to 256 lowers this to 0.71, the sample-size effect anticipated in Sec. 4 and the one measurement choice with a substantial effect.
5.5 Generalisation, Robustness and Ablations
The lower block of Tab. 3 repeats the equal-budget comparison outside the primary setting. On SAM ViT-B, allocation from that backbone's own profile improves by 1.5 mIoU over uniform, compared with 1.9 on DINOv2. SAM falls below the peak-dispersion criterion of Sec. 3.4, so it is not routed by default; forcing routing raises mIoU from 67.9 to 68.0, and without seed standard deviations we cannot conclude whether routing helps. TrashCan improves by 1.5 under the same rule, although its deep-sea footage under artificial lighting is not described by Eq. (1), so the profile is transferred to conditions under which it was not measured.
5.6 Limitations
The probe uses indoor RGB-D scenes because metric depth is scarce underwater. Unlike the revised model [1], Eq. (1) has a common coefficient for direct and backscattered light, so the rendered images approximate rather than calibrate water conditions. The utility sweep cannot capture adapter interactions, and adaptation covers two backbones, two datasets, and only semantic segmentation. The router's labels, its 91.3% accuracy, and the robustness test share one renderer, with only range held out (Sec. 4.2); its margin supports conditioning under controlled range shift, not deployment shift, and water outside the Jerlov table is uncharacterised.
Table 3. All values are mIoU. Static LoRA settings use , except the uniform-budget sweep ("ours" uses 96). Routed counts include the router and match within approximately 0.03%; full fine-tuning uses an unequal budget. Bold marks selected settings; the SAM row is unmarked because seed standard deviations are not reported.
| Sharpening mIoU (%) | 068.2 | 0.569.4 | 170.1 | 269.7 | 468.9 |
|---|---|---|---|---|---|
| Allocation signalSimilarity metric | marginal linear CKA | 70.1 | cumulative 68.4 | ||
| Lower rank bound | 70.1 | mutual k-NN 69.9 | |||
| : 69.8 | |||||
| Uniform mIoU (%) | 9668.2 | 19269.4 | 28869.9 | 38470.2 | ours70.1 |
| Transfer | Unif. | AdaLoRA | Static | Routed | Full |
| SUIM, SAM | 66.4 | 67.0 | 67.9 | 68.0 | 69.6 |
| TrashCan | 44.1 | 44.6 | 45.6 | 45.9 | 47.0 |
6 Conclusion
We detect the blocks at which the underwater domain gap becomes wider within a frozen vision encoder and distribute a fixed adaptation budget accordingly. Cumulative divergence pinpoints the gap at the network output, whereas per-block divergence reaches early peaks that track adaptation utility. Under rendered degradation, peak locations vary with turbidity for all three backbones, with dispersion greater than one block for DINOv2 and CLIP. At an equal budget, profile-based allocation gains 1.9 mIoU on SUIM with DINOv2, 1.5 on SUIM with SAM, and 1.5 on TrashCan with DINOv2; uniform allocation needs four times the adapter parameters to match it in our SUIM/DINOv2 sweep. Data are public; code will accompany the paper.
References
[1] Derya Akkaynak and Tali Treibitz. A revised underwater image formation model. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1, 2, 8
[2] Derya Akkaynak and Tali Treibitz. Sea-Thru: A method for removing water from underwater images. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
[3] Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. A theory of learning from different domains. Machine Learning, 79 (1-2):151–175, 2010. 1
[4] Dana Berman, Tali Treibitz, and Shai Avidan. Diving into haze-lines: Color restoration of underwater images. In British Machine Vision Conference (BMVC), 2017. 2
[5] Dana Berman, Deborah Levy, Shai Avidan, and Tali Treibitz. Underwater single image color restoration using haze-lines and a new quantitative dataset. IEEE Transactions on Pattern Analysis and Machine Intelligence, 43(8):2822–2837, 2021. 2
[6] Shoufa Chen, Chongjian Ge, Zhan Tong, Jiangliu Wang, Yibing Song, Jue Wang, and Ping Luo. AdaptFormer: Adapting vision transformers for scalable visual recognition. In Advances in Neural Information Processing Systems (NeurIPS), pages 16664–16678, 2022. 2
[7] Wenhui Chu. RepSAM: Bridging foundation models to robotic vision via representation-guided adaptation. arXiv preprint arXiv:2605.25495, 2026. 1, 2, 6, 7
[8] MohammadReza Davari, Stefan Horoi, Amine Natik, Guillaume Lajoie, Guy Wolf, and Eugene Belilovsky. Reliability of CKA as a similarity measure in deep learning. In International Conference on Learning Representations (ICLR), 2023. 2
[9] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021. 2
[10] Paulo Drews, Jr., Erickson do Nascimento, Filipe Moraes, Silvia Botelho, and Mario Campos. Transmission estimation in underwater single images. In IEEE International Conference on Computer Vision Workshops (ICCVW), 2013. 2
[11] Chenping Fu, Risheng Liu, Xin Fan, Puyang Chen, Hao Fu, Wanqi Yuan, Ming Zhu, and Zhongxuan Luo. Rethinking general underwater object detection: Datasets, challenges, and solutions. Neurocomputing, 517:243–256, 2023. 2
[12] Dan Hendrycks and Thomas G. Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations (ICLR), 2019. 2
[13] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local Nash equilibrium. In Advances in Neural Information Processing Systems (NeurIPS), 2017. 6
[14] Jungseok Hong, Michael S. Fulton, and Junaed Sattar. Trash-Can 1.0 An Instance-Segmentation Labeled Dataset of Trash Observations. Data Repository for the University of Minnesota (DRUM), 2020. doi: 10.13020/g1gx-y834. 2, 5
[15] Neil Houlby, Andrei Giurgiu, Stanislaw Jastrzebski, Brunna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. Parameter-efficient transfer learning for NLP. In International Conference on Machine Learning (ICML), pages 2790–2799, 2019. 1, 2
[16] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR), 2022. 1, 2, 4
[17] Md Jahidul Islam, Chelsea Edge, Yuyang Xiao, Peigen Luo, Muntaqim Mehtaz, Christopher Morse, Sadman Sakib Enan, and Junaed Sattar. Semantic segmentation of underwater imagery: Dataset and benchmark. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 1769–1776, 2020. 2, 5
[18] Md Jahidul Islam, Youya Xia, and Junaed Sattar. Fast underwater image enhancement for improved visual perception. IEEE Robotics and Automation Letters, 5(2):3227–3234, 2020. 2
[19] Menglin Jia, Luming Tang, Bor-Chun Chen, Claire Cardie, Serge Belongie, Bharath Hariharan, and Ser-Nam Lim. Visual
prompt tuning. In European Conference on Computer Vision (ECCV), pages 709–727, 2022. 1, 2
[20] Yuheng Jia, Qirui Lin, Hua Li, Yutong Li, Sam Kwong, and Runmin Cong. ViT-UWA: Vision transformer underwater-adapter for dense predictions beneath the water surface. IEEE Transactions on Image Processing, 35:4012–4026, 2026. 2
[21] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C. Berg, Wan-Yen Lo, Piotr Dollár, and Ross Girshick. Segment anything. In IEEE/CVF International Conference on Computer Vision (ICCV), pages 4015–4026, 2023. 5
[22] Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton. Similarity of neural network representations revisited. In International Conference on Machine Learning (ICML), pages 3519–3529, 2019. 1, 2, 4
[23] Chongyi Li, Saeed Anwar, and Fatih Porikli. Underwater scene prior inspired deep underwater image and video enhancement. Pattern Recognition, 98:107038, 2020. 2, 3, 5
[24] Chongyi Li, Chunle Guo, Wenqi Ren, Runmin Cong, Junhui Hou, Sam Kwong, and Dacheng Tao. An underwater image enhancement benchmark dataset and beyond. IEEE Transactions on Image Processing, 29:4376–4389, 2020. 2, 5
[25] Chongyi Li, Saeed Anwar, Junhui Hou, Runmin Cong, Chunle Guo, and Wenqi Ren. Underwater image enhancement via medium transmission-guided multi-color space embedding. IEEE Transactions on Image Processing, 30:4985–5000, 2021. 2
[26] Yunfei Li, Wenjin Yu, and Ning Wen. I-LoRA: An adaptive rank allocation approach using integrated gradients. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 16392–16396, 2026. 2
[27] Shijie Lian, Hua Li, Runmin Cong, Suqi Li, Wei Zhang, and Sam Kwong. WaterMask: Instance segmentation for underwater imagery. In IEEE/CVF International Conference on Computer Vision (ICCV), pages 1305–1315, 2023. 2
[28] Jianhua Lin. Divergence measures based on the Shannon entropy. IEEE Transactions on Information Theory, 37(1): 145–151, 1991. 4
[29] Chongwei Liu, Haojie Li, Shuchang Wang, Ming Zhu, Dong Wang, Xin Fan, and Zhihui Wang. A dataset and benchmark of underwater object detection for robot picking. In IEEE International Conference on Multimedia & Expo Workshops (ICMEW), pages 1–6, 2021. 2
[30] Shih-Yang Liu, Chien-Yi Wang, Hongxu Yin, Pavlo Molchanov, Yu-Chiang Frank Wang, Kwang-Ting Cheng, and Min-Hung Chen. DoRA: Weight-decomposed low-rank adaptation. In International Conference on Machine Learning (ICML), pages 32100–32121, 2024. 2
[31] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019. 6
[32] Junyuan Ma, Xunzhi Xiang, Wenbin Li, Qi Fan, and Yang Gao. Selective, regularized, and calibrated: Harnessing vision foundation models for cross-domain few-shot semantic segmentation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12385–12395, 2026. 2
[33] Ari Morcos, Maithra Raghu, and Samy Bengio. Insights on representational similarity in neural networks with canonical correlation. In Advances in Neural Information Processing Systems (NeurIPS), 2018. 2
[34] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research (TMLR), 2024. 5
[35] Lintao Peng, Chunli Zhu, and Liheng Bian. U-Shape transformer for underwater image enhancement. IEEE Transactions on Image Processing, 32:3066–3079, 2023. 2
[36] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning (ICML), pages 8748–8763, 2021. 5
[37] Maithra Raghu, Justin Gilmer, Jason Yosinski, and Jascha Sohl-Dickstein. SVCCA: Singular vector canonical correlation analysis for deep learning dynamics and interpretability. In Advances in Neural Information Processing Systems (NeurIPS), 2017. 2
[38] Maithra Raghu, Thomas Unterthiner, Simon Kornblith, Chiyuan Zhang, and Alexey Dosovitskiy. Do vision transformers see like convolutional neural networks? In Advances in Neural Information Processing Systems (NeurIPS), pages 12116–12128, 2021. 1, 2
[39] 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 Pattern Analysis and Machine Intelligence, 44(3):1623–1637, 2022. 5
[40] Nathan Silberman, Derek Hoiem, Pushmeet Kohli, and Rob Fergus. Indoor segmentation and support inference from RGBD images. In European Conference on Computer Vision (ECCV), 2012. 5
[41] Mojtaba Valipour, Mehdi Rezagholizadeh, Ivan Kobyvez, and Ali Ghodsi. DyLoRA: Parameter-efficient tuning of pretrained models using dynamic search-free low-rank adaptation. In Conference of the European Chapter of the Association for Computational Linguistics (EACL), pages 3274–3287, 2023. 2, 5
[42] Craig A. Williamson and Richard C. Hollins. Measured IOPs of Jerlov water types. Applied Optics, 61(33):9951–9961, 2022. 3
[43] Miao Yang and Arcot Sowmya. An underwater color image quality evaluation metric. IEEE Transactions on Image Processing, 24(12):6062–6071, 2015. 7
[44] Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In Advances in Neural Information Processing Systems (NeurIPS), 2014. 2
[45] Qingru Zhang, Minshuo Chen, Alexander Bukharin, Pengcheng He, Yu Cheng, Weizhu Chen, and Tuo Zhao. Adaptive budget allocation for parameter-efficient fine-tuning. In International Conference on Learning Representations (ICLR), 2023. 1, 2, 6, 7
[46] Haoran Zhao, Caren Han, and Eduard Hovy. When is rank-1 enough? Geometry-guided initialization for parameter-efficient fine-tuning. In International Conference on Machine Learning (ICML), pages 161458–161475, 2026. 2