TDD: Target-Discrepancy Distillation for Underwater Image Enhancement

Zefan Feng, Zhaocheng Yu, Laibin Chang, Kui Jiang, Junjun Jiang, Xiaopeng FanarXiv 2026

TL;DR

Underwater photos suffer from murky, color-warped physics that can trick even modern vision-language models into misidentifying what they are looking at—like mistaking a vibrant purple sea slug for a grey cuttlefish. To solve this, the authors introduce Target–Discrepancy Distillation (TDD), a framework that teaches a lightweight network to look at a degraded underwater photo and simultaneously predict two things: what the clean scene’s features should look like, and how the murky input deviates from that target. By fixing the distortion first and refining the true colors second, TDD restores crisp, color-accurate underwater imagery without needing reference photos or heavy foundation models at test time.

What Problem Does This Paper Address?

Water is a ruthless filter. As light travels beneath the surface, wavelength-dependent absorption and scattering strip away reds and yellows, leaving behind low-contrast, blue-green scenes.

Recently, researchers started bringing Vision-Language Models (VLMs) like CLIP into Underwater Image Enhancement (UIE) to provide high-level semantic guidance—essentially telling the restoration network, "Hey, that's a coral reef, color it accordingly." But there is a catch-22: the very degradation we want to fix also corrupts the semantic cues VLMs rely on. Show a VLM a green-tinted photo of a purple-and-yellow nudibranch, and it might confidently hallucinate a "white-and-grey cuttlefish." Furthermore, even if you feed the model a correct text prompt ("a photo of a nudibranch"), words alone don't tell the network which exact shade of purple to recover, nor do they map out spatially where the water haze is thickest.

Figure 1. Motivation for target–discrepancy guidance. (a) The same object receives different semantic descriptions in a degraded image and its reference, illustrating the sensitivity of interpreta- tion to appearance changes. (b) A correct object description can still yield an ambiguous spatial response. (c) Appearance varia- tions and the corresponding feature-discrepancy responses moti- vate learning a reference-defined appearance target together with the observation’s discrepancy from it.

The authors ask: instead of relying on brittle text descriptions of degraded images, can we explicitly guide restoration using both the desired target appearance and the input-specific discrepancy (the exact gap between the murky input and the clean target)?

Methods

TDD operates in two stages, combining knowledge distillation with an ordered multi-scale restoration architecture:

Overview of the two-stage TDD framework, showing knowledge distillation from NAUTILUS in Stage 1 and Progressive Knowledge Fusion in Stage 2.
  1. Stage 1: Target–Discrepancy Knowledge Distillation (New). Using paired murky and clean training images, the authors extract visual features from a frozen underwater VLM teacher called NAUTILUS. From this shared feature space, they construct two supervisory signals: Target-appearance knowledge (features of the clean reference) and Discrepancy knowledge (the residual difference between degraded and clean features). To keep computation lean, regional features are grouped via spherical $K$-means into compact representations (1 global descriptor + $K=4$ regional prototypes per branch). A lightweight student network (a ResNet-18 encoder + knowledge generator) is trained to predict both representations purely from the degraded input image.
  2. Stage 2: Progressive Knowledge Fusion / PKF (New + Standard). In Stage 2, the knowledge generator is frozen and plugged into a U-shaped restoration network built with standard Restormer blocks. At each scale, the authors introduce PKF, which enforces a strict correction-before-refinement order using cross-attention-like Spatial Knowledge Fusion (SKF) modules:
  3. First, discrepancy knowledge attends to image features (modulated by estimated local degradation strength) to scrub away input-specific color casts and haze.
  4. Second, target-appearance knowledge refines those newly cleaned features toward the ideal visual appearance, followed by a Restormer block to consolidate channel interactions.

At inference, the massive VLM teacher and reference images are nowhere in sight—only the degraded image goes in.

Datasets

No new datasets were introduced; TDD was trained and evaluated across established underwater benchmarks:

  • Training: 4,302 paired images combined from UIEB and LSUI.
  • Full-Reference Evaluation (paired): Disjoint test splits of UIEB (90 images), LSUI (400 images), and EUVP (481 images, testing out-of-distribution generalization).
  • No-Reference Evaluation (unpaired, real-world): UCCS, Sea-thru, and C60 (plus U45 for qualitative ablation visualizations).

Key Insights and Ideas

  • Order matters—clean the canvas before painting: Reversing the fusion order (applying target appearance before discrepancy correction, $T \rightarrow D$) drops PSNR by 0.84 dB on UIEB using the exact same parameter and FLOP budget. Conditioning on the discrepancy first gives the target-refinement step a cleaner feature basis to work with.
  • Visual feature distillation beats text prompts: Replacing TDD's distilled visual prototypes with CLIP text prompts, dual object+degradation prompts, or even a fine-tuned CLIP guided by an underwater MLLM falls short by 0.90 dB on UIEB. Visual prototypes capture spatial color and structural nuances that words flatten out.
  • Natural division of spatial labor: Visualizing the attention maps reveals that the two branches spontaneously specialize on the same image—target prototypes lock onto foreground objects (like tracing a fish's body), while discrepancy prototypes highlight the murky background water and rock faces where color distortion is worst.
  • Sharing a brain helps: Predicting both target and discrepancy knowledge from a single shared generator slightly outperforms two separate generators while slashing generator parameters by ~35% and FLOPs by ~49%.

Key Results

TDD achieves state-of-the-art or highly competitive performance against 11 recent baselines across all six benchmarks, running in 0.093 seconds per $256 \times 256$ image (41.86M parameters, 185.74G FLOPs).

  • Full-Reference: TDD takes 1st place in PSNR across the board, hitting 26.16 dB on UIEB (+1.05 dB over the runner-up MaIR), 29.81 dB on LSUI, and 30.46 dB on unseen EUVP (+0.56 dB). It also leads or ties for 1st in SSIM across all three sets.
  • No-Reference: Ranks 1st in 6 out of 12 dataset–metric combinations across UCCS, Sea-thru, and C60, sweeping all four metrics (UCIQE, UIQM, NIMA, CLIP-IQA) on the challenging Sea-thru dataset.
  • Semantic Recovery & Visuals: Qualitatively, TDD strips away heavy green and cyan veils while recovering warm reef tones and fine jellyfish tentacles without graying out the water. When a frozen VLM captions the restored images, TDD achieves the highest semantic similarity to ground-truth captions on UIEB (0.879) and EUVP (0.834).
Visual comparisons on full-reference datasets showing warmer rock and fish tones alongside RGB histograms that closely match the Ground Truth.
Figure 4. Visual comparisons on the C60 dataset with local enlargements.

Limitations and Future Work

While TDD requires no reference images at test time, its Stage 1 distillation still depends on paired degraded–reference images during training. Because true "ground-truth" air-like images are notoriously difficult to capture underwater (often relying on synthetic pairs or curated selections), extending target–discrepancy distillation to unpaired training regimes is highlighted as the key next step.

Summary updated

Abstract

Underwater degradation changes image appearance and can compromise the semantic cues used to guide enhancement. Identifying scene content alone does not explicitly specify the appearance to recover or the input-dependent changes associated with that target. We propose target-discrepancy knowledge distillation (TDD) for underwater image enhancement, which organizes guidance around these two aspects of the same restoration problem. For each degraded-reference training pair, reference features from an underwater vision-language teacher provide target-appearance supervision, while paired feature residuals describe the observation's discrepancy relative to the same target. Both representations are jointly distilled into a lightweight guidance network that predicts them from the degraded image alone; neither the teacher nor reference images are required at inference. To align their use with their supervisory roles, we introduce progressive knowledge fusion within a multi-scale enhancement network. The estimated discrepancy first conditions spatial feature updates, after which target-appearance guidance refines the updated features and channel interactions consolidate their responses. This correction-before-refinement design lets target-guided refinement build on discrepancy-conditioned features. Experiments on six underwater benchmarks demonstrate competitive performance across full-reference and no-reference metrics. Ablations and feature visualizations analyze the contributions of the knowledge source, joint distillation, and progressive fusion.
BibTeX
@misc{feng2026tdd,
  author = {Zefan Feng and Zhaocheng Yu and Laibin Chang and Kui Jiang and Junjun Jiang and Xiaopeng Fan},
  title = {{TDD: Target-Discrepancy Distillation for Underwater Image Enhancement}},
  year = {2026},
  eprint = {2611.32467},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32467},
}
Figure