Few-Shot LoRA Adaptation of a Flow-Matching Foundation Model for Cross-Spectral Object Detection
Maxim Clouser, Kia Khezeli, John Kalantari
TL;DR
This work investigates adapting a single flow-matching foundation model to cross-spectral translation (RGB→IR, RGB→SAR) using only 100 co-measured pairs via LoRA adapters, enabling pixel-aligned synthetic data for downstream detection. The methodology leverages FLUX.1 Kontext as a base and inserts small LoRA modules into the transformer to imprint cross-spectral mappings with minimal training. A key finding is that LPIPS computed on a tiny validation set strongly predicts downstream detector performance, enabling efficient LoRA selection, and that synthetic data—when combined with limited real data—consistently boosts IR and SAR detection. The results demonstrate practical gains in KAIST IR pedestrian detection and M4-SAR infrastructure detection, highlighting the potential of few-shot, foundation-model-based cross-spectral augmentation for safety-critical vision tasks. Overall, this approach offers a data-efficient pathway to extend vision foundation models to non-visible modalities with tangible improvements in real-world detection tasks.
Abstract
Foundation models for vision are predominantly trained on RGB data, while many safety-critical applications rely on non-visible modalities such as infrared (IR) and synthetic aperture radar (SAR). We study whether a single flow-matching foundation model pre-trained primarily on RGB images can be repurposed as a cross-spectral translator using only a few co-measured examples, and whether the resulting synthetic data can enhance downstream detection. Starting from FLUX.1 Kontext, we insert low-rank adaptation (LoRA) modules and fine-tune them on just 100 paired images per domain for two settings: RGB to IR on the KAIST dataset and RGB to SAR on the M4-SAR dataset. The adapted model translates RGB images into pixel-aligned IR/SAR, enabling us to reuse existing bounding boxes and train object detection models purely in the target modality. Across a grid of LoRA hyperparameters, we find that LPIPS computed on only 50 held-out pairs is a strong proxy for downstream performance: lower LPIPS consistently predicts higher mAP for YOLOv11n on both IR and SAR, and for DETR on KAIST IR test data. Using the best LPIPS-selected LoRA adapter, synthetic IR from external RGB datasets (LLVIP, FLIR ADAS) improves KAIST IR pedestrian detection, and synthetic SAR significantly boosts infrastructure detection on M4-SAR when combined with limited real SAR. Our results suggest that few-shot LoRA adaptation of flow-matching foundation models is a promising path toward foundation-style support for non-visible modalities.
