VLM-Guided Underwater Image Fix Boosts Detection by 5.41 mIoU Points
A new plug-in strategy uses vision-language models to tell underwater enhancement networks which pixels actually matter for detection and segmentation.
ProTakeaways
- New training strategy uses VLM-generated captions to build spatial semantic guidance maps for underwater image enhancement.
- BLIP aligns text with image patches; a power-law sharpen filter turns similarity into a focused mask.
- Dual guidance: cross-attention in the decoder plus an explicit foreground/background alignment loss on features.
- Applied to five UIE baselines (PUIE, SMDR, UIR, PFormer, FDCE), it improves PSNR, SSIM, and LPIPS on UIEB.
- Segmentation mIoU on SUIM gains up to +5.41 points; detection mAP on Trash-ICRA19 rises across all backbones.
- No code released; extra VLM and BLIP passes add inference cost, and quality depends on caption correctness.
Underwater image enhancement has a dirty secret: making a photo look better to a human often makes it worse for a downstream detector. A new paper called Empowering Semantic-Sensitive Underwater Image Enhancement with VLM tries to fix that mismatch by borrowing the open-world knowledge of vision-language models and using it to tell the enhancement network which pixels are worth restoring carefully.
The core idea is a pluggable training strategy, tagged with a -SS suffix, that can be dropped onto existing encoder-decoder underwater image enhancement (UIE) backbones. When bolted onto five recent baselines, it consistently improves both perceptual quality and downstream detection and segmentation scores.
The enhancement paradox
Water absorbs and scatters light, so raw underwater images arrive with color casts, low contrast, and haze. Learning-based UIE models have gotten very good at cleaning these up for the human eye. The problem is that state-of-the-art enhancement does not consistently translate to improved performance on tasks like object detection or segmentation, and sometimes it actively hurts them.
The authors attribute this to the task-agnostic or semantic-blind nature of current UIE methods: chasing global, uniform enhancement introduces imperceptible artifacts or causes a distribution shift misaligned with what downstream models expect. Previous attempts to fix this fall into two camps, both flawed:
- Semantic-segmentation-guided enhancement, which needs pixel-level annotations that barely exist for underwater scenes.
- VLM-based methods that use global style prompts like a clear underwater photo, which are still one-size-fits-all and ignore what objects are actually in the frame.

Turning captions into attention maps
The pipeline builds an object-aware spatial prior in three steps before enhancement even begins:
- Describe the scene. A VLM (LLaVA) generates a textual description of the key objects in the degraded input image.
- Align text back to pixels. The image and its caption are encoded by BLIP, and cosine similarity between each patch feature and the global text feature yields per-patch relevance scores.
- Sharpen the map. A power-law transform plus a threshold squashes low-relevance background responses and expands the gap between salient and non-salient patches. The resulting single-channel map is upsampled to image resolution.
An ablation compares this BLIP-based map against ViT class attention and CLIP. The ViT map is diffuse, CLIP fires on spurious background regions, and BLIP produces cleaner, more spatially accurate highlights. That fidelity matters because everything downstream keys off this map.

Dual-guidance injection
The semantic map is injected into the UIE network's decoder (not the encoder, which ablations show is counterproductive) through two complementary mechanisms:
- Cross-attention. At each decoder stage, the decoder feature is the query, and the encoder skip-connection feature is element-wise weighted by the downsampled semantic map before being projected into keys and values. The decoder preferentially pulls from semantically illuminated regions.
- Explicit alignment loss. A loss operates directly on intermediate feature maps with two terms: a Frobenius-norm penalty that suppresses activations in background regions (weighted by
1 - M), and an inner-product reward that maximizes correlation between features and the mask inside foreground regions.
Total loss combines L1 pixel loss, a VGG-19 perceptual loss, and this alignment loss weighted by lambda_align = 0.1.
Numbers that hold up across five baselines
The strategy is tested on UIEB, U45, and Challenge60 for enhancement quality, and on Trash-ICRA19 for detection and SUIM for segmentation. Baselines are PUIE, SMDR, UIR, PFormer, and FDCE. A few highlights:
- PSNR gains on UIEB range from +0.84 dB (SMDR) to +2.15 dB (PUIE), with SSIM improvements on every backbone.
- Mean average precision on Trash-ICRA19 improves for all five detectors, with PFormer-SS reaching 96.87 mAP.
- Segmentation gains are the standout: mIoU jumps by up to +5.41 points (PFormer-SS) and the Robots category alone gains +15.29 IoU points on PFormer-SS and +15.17 on SMDR-SS.
The paper also notes something worth flagging: some plain baselines actually score worse on downstream tasks than the original, unenhanced images, while the -SS variants consistently beat both. That is the enhancement paradox showing up in the data, and the strongest argument for the approach.
When it helps, when it might not
This is a training-time strategy, not a new architecture, which makes it attractive if you already have a UIE model in production for tasks like marine debris detection, coral or fish monitoring, ROV navigation, or diver-scene segmentation. The gains are largest exactly where UIE tends to fail: small, low-contrast objects against complex seabeds, and scenes with mixed dark and bright regions where global enhancement over-corrects.
Caveats worth noting:
- Inference-time cost grows because you need a VLM caption pass and a BLIP alignment pass per image before enhancement. For real-time ROV pipelines this is not free.
- Quality depends on the VLM correctly naming the objects in a degraded input. If LLaVA misses the fish, the guidance map misses too.
- The paper does not appear to release code or pretrained weights alongside the preprint, so reproduction currently means reimplementing the sharpening and dual-guidance modules on top of the five baselines.
The broader takeaway is a template that likely generalizes beyond underwater: low-light, dehazing, and medical enhancement all suffer the same mismatch between human-pretty outputs and machine-useful features, and a VLM-derived spatial prior is a cheap way to force the network to spend its capacity where downstream tasks actually look.