arXiv:2609.04726cs.CVSep 2026

Manuscript Offprint

arXiv:2609.04726

Bridging Modalities and Tasks: A Unified Hierarchical ViT for SAR-to-Optical Translation and Semantic Segmentation

Siyuan Liu, Xuze Zhang, Yongshun Wang, Licong Pan, Hang Liu, Huihui Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Siyuan Liu, Xuze Zhang, Yongshun Wang, Licong Pan, Hang Liu, and Huihui Li

Abstract—Synthetic Aperture Radar (SAR) images have all-weather, day-and-night observation capabilities. However, compared with optical images, their speckle noise and non-intuitive scattering mechanism limit the interpretability of the images. Generative models for SAR-to-optical (S2O) conversion can improve visual interpretability, but existing methods often ignore the constraints on semantic structure, which are necessary for downstream tasks, for the sake of visual effects. We propose a unified collaborative dual-task learning framework, termed BMT (Bridging Modalities and Tasks), that jointly optimizes S2O image translation and semantic segmentation through a shared hierarchical Vision Transformer. The framework integrates: (1) a LocalViTBlock that fuses global self-attention with spatial depthwise convolution through a learnable gating mechanism; (2) an enhanced output module combining multi-scale refinement processing, color correction and anti-aliasing, which calibrates channel-level color statistics through feature fusion; (3) a ControlNet-style conditional injection mechanism that encodes SAR wavelet features and segmentation labels into a multi-scale feature pyramid and injects them at each encoder layer through zero-initialized convolution; (4) a bounded Kendall uncertainty weighting scheme that prevents either task from dominating the shared representation. We evaluate the framework under both paired and unpaired translation settings, on the public WHU-OPT-SAR paired dataset and a self-constructed unpaired ship dataset built from HRSID and DIOR, respectively. The experimental results show that the proposed method achieves competitive S2O translation quality and semantic segmentation performance. The dataset and source code have been publicly released at https://github.com/Lewisyuaner/BMT-S2O-main.

Index Terms—Multi-task learning, SAR-to-optical translation, image-to-image translation, semantic segmentation, vision transformer, wavelet transform, synthetic aperture radar.

I. INTRODUCTION

Multi-sensor systems have expanded the scope of multi-modal remote sensing, enabling complementary observations across different spectra and platforms for applications such as environmental monitoring, maritime surveillance, and land-use analysis. Synthetic Aperture Radar (SAR), as an active microwave technology, delivers all-weather, day-night high-resolution imagery that is indispensable for continuous geospatial mapping. However, SAR imagery is inherently affected by speckle noise, geometric distortions, and non-intuitive scattering mechanisms that hinder manual interpretation and limit the performance of downstream visual tasks. Optical

images, in contrast, provide intuitive visual information but are constrained by weather and illumination dependencies.

Despite these complementary characteristics, the conversion from synthetic aperture radar (SAR) to optical images (S2O) and SAR semantic segmentation have consistently been studied as separate tasks. On the one hand, significant progress has been made in S2O conversion using generative adversarial networks (GANs) [1-3] and diffusion models [4-6], generating increasingly realistic optical images. On the other hand, segmentation models based on convolutional neural networks (CNNs), Transformers, and hybrid architectures [7-10] have achieved high accuracy in remote sensing benchmarks. However, three key gaps remain: (1) Existing S2O methods lack semantic awareness; while the generated images are visually plausible, they often overlook whether the generated images are useful for downstream high-level visual tasks. This shortcoming is particularly pronounced when the S2O transformation needs to serve semantic-oriented applications; (2) Current segmentation models trained solely on synthetic aperture radar (SAR) data struggle to address issues such as speckle noise and limited labeled data; (3) No existing framework can simultaneously optimize both tasks through a shared architectural backbone featuring multiscale cross-modal conditional injection and dynamic task balancing.

The fundamental reason is that these two tasks are modeled independently, thus ignoring their potential complementarity: the category-level structural prior information provided by semantic segmentation can guide photorealistic generation, while the conversion process enriches the segmentation representation through cross-domain feature learning. Although some studies [11] have explored this complementarity, this research adopts a serial pipeline approach to set a fixed priority between segmentation and conversion (e.g., conversion first and then segmentation), the information exchange is unidirectional, and subsequent tasks depend on the performance of preceding tasks, which limits the collaboration between task branches.

To unlock the potential between S2O and downstream tasks, we propose a unified multi-task learning framework that aligns better with the intuition of collaborative tasks. This framework is centered on a shared hierarchical vision Transformer encoder, which is simultaneously connected to the dual-task decoding branches of image generation and semantic segmentation. The framework includes the following key design elements: First, we have designed the LocalViT-Block module with a learnable gating mechanism, which combines the spatial depthwise convolution branch with global self-attention, enabling the encoder to simultaneously capture long-range dependencies and fine-grained local features that are critical to both of the aforementioned tasks. Second, we

Siyuan Liu, Licong Pan and Huihui Li are with the School of Automation, Northwestern Polytechnical University, Xi'an 710129, China (e-mail: lsy648@mail.nwpu.edu.cn, panlicong@mail.nwpu.edu.cn, lihui@nwpu.edu.cn).

Xuze Zhang, Yongshun Wang and Hang Liu are with the School of Cybersecurity, Northwestern Polytechnical University, Xi'an 710129, China (e-mail: zhangxuze@mail.nwpu.edu.cn, ys.wang@mail.nwpu.edu.cn, liuhang@nwpu.edu.cn).

have introduced a ControlNet-style multi-scale conditional injection mechanism and designed a wavelet feature extractor sub-module. This sub-module leverages the multi-level Daubechies-2 discrete wavelet transform (DWT) to decompose the input synthetic aperture radar images and generate multi-scale, multi-frequency texture features. These features, combined with the one-hot encoded segmentation labels, are uniformly encoded into a multi-scale feature pyramid. The uniformly encoded conditional features are injected into each layer of the encoder through zero-initialized convolutions, ensuring that the conditional path is in a no-operation state at the initial stage of training and is gradually absorbed by each layer. Third, we have designed an enhanced output module for multi-scale refinement processing. This module calibrates channel-level color statistics through feature fusion, complemented by anti-aliasing convolutions, to extract channel-level color statistics from global, regional, and local scales. Fourth, inspired by training strategies for multi-task learning, we adopt a bounded Kendall's tau uncertainty weighting scheme to prevent any single task from dominating the shared representations. Through the above framework design, we have achieved the collaborative training of S2O and semantic segmentation tasks under various scenarios and conditions. Our method has achieved excellent performance on the public WHU-OPT-SAR paired dataset for land cover classification, as well as the unpaired ship dataset constructed based on the high-resolution SAR image ship detection dataset and the optical remote sensing image object detection dataset, and can serve as one of the feasible paradigms for collaborative tasks between S2O and downstream tasks. The main contributions of this paper include:

  1. We propose a collaborative learning framework based on a shared hierarchical ViT and LocalViTBlock modules, in which the LocalViTBlock module utilizes a learnable gating mechanism to fuse global self-attention with spatially deep convolutions, and simultaneously optimizes S2O translation and semantic segmentation through a unified backbone architecture.

  2. We introduce a ControlNet-style multi-scale conditional injection mechanism that encodes SAR wavelet features and segmentation labels into a multi-scale feature pyramid and injects them into each encoder layer via zero-initialized convolutions, thereby achieving fine-grained spatial conditioning in the early training stages while preserving the original feature hierarchy.

  3. We design an enhanced output module that combines scale refinement, color correction, and anti-aliasing. This module extracts color statistical information from global, regional, and local scales via learned color conditioning vectors and employs full-bias modulation to enhance color fidelity.

References (42)