Introduction
In fields like night-time surveillance and biometric security, matching a thermal "heat map" of a face to a standard visible-light photo is a critical capability. However, training AI for this task requires massive, high-quality datasets of paired images—the same person in the same pose and expression across both modalities. Manually collecting such data is resource-intensive and fraught with privacy concerns. Existing synthetic methods often struggle with "identity drift" or fail to render complex thermal features like glasses and beards accurately.
LaPIG (LLM-assisted Paired Image Generation) addresses these challenges by combining the descriptive power of Large Language Models (LLMs) with the generative precision of Diffusion Models. It generates high-quality, identity-consistent pairs of visible and thermal facial images, overcoming the chronic shortage of paired cross-modal datasets.
Methodology
The LaPIG framework employs a two-step pipeline to ensure both identity preservation and cross-modal accuracy.
1. Identity-Preserving Visible Synthesis
To maintain the core facial features of a reference subject, the model extracts a 512-dimensional identity vector using ArcFace. Simultaneously, LLaVA (an LLM) generates detailed textual descriptions of the person, including age, gender, and specific features. Because standard CLIP encoders struggle with long text, LaPIG utilizes LongCLIP to process these detailed descriptions, allowing for finer control. Finally, a fine-tuned Stable Diffusion UNet generates new visible-light images from multiple angles.
2. Visible-to-Thermal (V2T) Translation
The framework then uses a Latent Diffusion Model (LDM) specifically trained for cross-modal translation. During training, the model learns to associate RGB latents with thermal latents. At inference, the synthesized visible image serves as a guide to denoise random noise into a matching thermal image, ensuring structural consistency across modalities.
Datasets
The model was evaluated on two primary benchmarks:
- SpeakingFaces: A multimodal dataset with high-resolution thermal and visible images of 142 identities captured from nine angles.
- ARL-VTF: A dataset focused on Long-Wave Infrared (LWIR) facial images, from which 140 identities were used for experimentation.
Results and Key Insights
LaPIG demonstrates significant improvements over state-of-the-art (SOTA) models in both quantitative and qualitative assessments.
Quantitative Performance
On the SpeakingFaces dataset, LaPIG achieved a Verification Rate (VR) of 34.33% at a strict False Acceptance Rate (0.1%), outperforming previous benchmarks. It also achieved lower FID scores (indicating higher realism) and higher SSIM scores (indicating better structural integrity) compared to image-to-image translation models like pix2pix and DDPM.
Qualitative Superiority
Visual results indicate that LaPIG successfully renders thermal features that typically challenge AI, such as the heat signature of glasses or the thermal masking effect of hair.
A key finding is the "Long Prompt" breakthrough: standard prompts are often too shallow for identity preservation. By using an LLM to describe the face and LongCLIP to interpret that description, the model captures nuances like specific beard shapes or eyeglass frames that standard models miss. Furthermore, by decoupling identity from modality—mastering the visible domain first before translating to thermal—the "two-hop" approach significantly reduces identity drift.
Conclusion and Future Work
While LaPIG sets a new standard for paired image generation, its reliance on Diffusion Models results in an inference time of approximately 70 seconds per pair, making it more suitable for dataset augmentation than real-time applications. Future research could focus on improving inference speed and exploring "in-the-wild" scenarios with varying lighting and environmental conditions to enhance the model's robustness for real-world security deployments.
Summary updated