SC-Diff: Semantically Calibrated Diffusion for Visible-to-Infrared Image Translation

Junyin Zhang, Siyu Huang, Jianxiong Ye, Haowei Gong, Ruicheng Zhang, Deyu Meng, Chenqiang GaoarXiv 2026

TL;DR

SC-Diff is a novel visible-to-infrared image translation framework that uses semantic priors not just as external conditions, but to internally calibrate a diffusion model's self-attention layers. By introducing Semantic-Guided Self-Attention Calibration (SGSC), it significantly reduces cross-category feature interference during denoising. This preserves precise object shapes and local details, making the generated infrared images highly effective for augmenting downstream object detection datasets.

What Problem Does This Paper Address?

Infrared (IR) imaging is crucial for safety-critical perception tasks like autonomous driving because it operates reliably in low-light, smoke, and harsh weather. However, collecting and manually annotating large-scale infrared datasets is incredibly expensive. While translating abundant, readily available visible images into infrared images seems like a practical solution, existing generative models struggle with a major flaw: structural distortion.

When current diffusion models translate images, they typically inject semantic or spatial layout information only as an external condition. Inside the denoising network's self-attention layers, tokens interact freely without explicit semantic boundaries. This leads to "cross-category interference"—for example, feature blending between a pedestrian and the background pavement. As a result, fine structures disappear, boundaries blur, and the original bounding box annotations inherited from the visible images become misaligned, rendering the synthetic data useless for training downstream object detectors.

Methods

To tackle internal feature bleeding, the authors introduce SC-Diff, which enforces semantic consistency through a dual-pathway approach: external conditional guidance and internal self-attention calibration.

Fig. 2. Overall architecture of the proposed SC-Diff. The visible image and semantic map are encoded as clean conditions to provide spatially aligned guidance for the denoising U-Net. The semantic map is obtained from category-specific semantic masks generated by a pretrained SAM3 model with text prompts. During denoising, SGSC uses token-level semantic labels inside the U-Net self-attention layers and adaptively calibrates same-category token interactions. This allows semantic priors to guide both external condition encoding and internal denoising interactions.
  1. Semantic Map Generation: A pretrained Segment Anything Model (SAM3) uses predefined text prompts (e.g., car, person, road) to automatically extract category-specific masks from the input visible image, removing the need for manual mask annotations.
  2. Clean Condition Encoding (CCE): Instead of mixing the condition with a noisy latent state, SC-Diff projects and fuses the clean visible image latent and the semantic map latent together. This fused representation provides stable, multi-scale structural guidance to the denoising U-Net.
  3. Semantic-Guided Self-Attention Calibration (SGSC): This is the core innovation. Inside the U-Net's self-attention layers, the semantic map is flattened into token-level labels. SGSC then applies a two-stage soft calibration:
  4. Adaptive Positive Bias: It calculates an attention entropy score for each query token. If a query's attention is scattered across multiple semantic categories rather than focused on its own, SGSC injects a positive bias to boost same-category interactions.
  5. Original-Attention Modulation: To ensure that the model doesn't just blindly uniform-bias all tokens of the same category, the bias is scaled by the original attention weights. This ensures that contextually relevant keys receive a stronger calibration boost while preserving global contextual relationships.

Datasets

The authors evaluated SC-Diff on three widely used paired visible-to-infrared benchmarks:

  • M3FD: 4,200 aligned image pairs captured in diverse daytime and nighttime urban scenes.
  • FLIR: A traffic-oriented dataset providing paired visible and infrared images.
  • KAIST: 10,845 aligned pairs from urban driving scenarios.
  • Cityscapes: Used as an external, unannotated visible-image pool (3,475 images) to rigorously test out-of-distribution generalization and downstream data augmentation utility.

Key Insights and Ideas

  • External Conditioning is Not Enough: Providing a semantic map as an input prompt doesn't stop a neural network from mixing features internally. True structural preservation requires active regulation inside the self-attention mechanism.
  • Soft vs. Hard Masking: Instead of completely blocking cross-category attention (which would destroy global context and scene coherence), SC-Diff uses a soft bias. It suppresses cross-category leakage while allowing the network to retain essential global environmental context.
  • Fidelity $\neq$ Downstream Utility: A translated image can look visually pleasing or achieve a high peak signal-to-noise ratio (PSNR) while still blurring out the fine details of a distant cyclist. For object detection, preserving sharp local contrast and object boundaries matters far more than achieving pixel-perfect global color matching.

Key Results

Perceptual and Structural Generation

SC-Diff consistently outperformed state-of-the-art GAN and diffusion baselines (like PID and F-ViTA) in perceptual quality. It achieved the lowest Fréchet Inception Distance (FID) and Learned Perceptual Image Patch Similarity (LPIPS) scores across all three datasets. Notably, on the KAIST dataset, SC-Diff achieved an FID of 27.98, drastically outperforming the recent PID baseline (45.13).

Out-of-Distribution Generalization

When translating unseen images from the Cityscapes dataset into target infrared styles without any fine-tuning, SC-Diff maintained the lowest FID scores across the board, proving its robustness to distribution shifts.

Downstream Object Detection Performance

The ultimate test for SC-Diff was using its generated images to augment training sets for four distinct object detectors (RT-DETR, YOLOv8, FCOS, and Faster R-CNN).

  • On the M3FD dataset, augmenting with SC-Diff images raised the overall baseline mean Average Precision (mAP) from 22.1 to 26.0 (+3.9 points).
  • On the FLIR dataset, it raised the overall mAP from 36.0 to 37.6.

Qualitative results show that detectors trained with SC-Diff data suffer from far fewer missed detections and generate much tighter bounding boxes compared to those trained on data from competing translation methods.

Qualitative comparison showing sharper details and fewer missed detections

Limitations and Future Work

While the paper does not include a dedicated limitations section, a few constraints are apparent from the methodology:

  • Prompt Dependency: The semantic map generation relies entirely on a fixed set of predefined text prompts for SAM3. If an input scene contains unexpected or rare object classes not covered by the prompts, the calibration mechanism might lose effectiveness.
  • Computational Cost: Because it is built on a latent diffusion framework, generating images is inherently slower and more computationally intensive than using GAN-based alternatives, even when accelerated using a 30-step DDIM sampler. Future work could explore distilling SC-Diff into single-step consistency models to speed up generation.

Summary updated

BibTeX
@misc{zhang2026sc,
  author = {Junyin Zhang and Siyu Huang and Jianxiong Ye and Haowei Gong and Ruicheng Zhang and Deyu Meng and Chenqiang Gao},
  title = {{SC-Diff: Semantically Calibrated Diffusion for Visible-to-Infrared Image Translation}},
  year = {2026},
  eprint = {2608.08555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.08555},
}
Figure