                             GMAIL: Generative Modality Alignment for generated Image Learning


Table 9. Comparison with models trained on real images. We perform experiments on image captioning from pre-trained CLIP on
generated and real images. The best results are indicated in bold.
                       Dual Projection    Alignment     Fine-tuning Data      B@4 (↑)    CIDEr (↑)      SPICE (↑)
                              ✗               ✗               ✗                32.15       108.35           20.12
                              ✗               ✗            Synthetic           36.15       115.35           22.95
                              ✓               ✓            Synthetic           38.12       119.53           23.75
                              ✗               ✗              Real              38.24       119.78           23.86
                              ✓               ✓              Real              38.37       119.95           23.98

Table 10. Visual question answering on ScienceQA. We report             Table 11. Ablation study on LoRA rank and full fine-tuning.
the average accuracy on questions with the image context from the       We perform experiments on image captioning from pre-trained
ScienceQA benchmark. The best results are bold.                         CLIP on generated images. The best results are indicated in bold.
          Method                         Accuracy (%)                        Method             B@4 (↑)       CIDEr (↑)   SPICE (↑)
          LLaVA                              85.2                            LoRA (rank = 2)        36.85       117.62      23.10
          LLaVA + GMAIL (ours)               87.6                            LoRA (rank = 4)        38.12       119.53      23.75
          LLaMA-3                            88.5                            LoRA (rank = 6)        37.96       119.12      23.60
          LLaMA-3 + GMAIL (ours)             91.2                            Full fine-tuning       37.50       118.95      23.50

bridges this gap, as evidenced by the alignment of seman-               These results highlight GMAIL’s ability to enhance VLM’s
tic features between the generated and real images in the               generalization across multimodal tasks.
learned latent space. The visualizations not only illustrate            Ablation on LoRA. LoRA (Hu et al., 2022) allows efficient
the potential of generated data as a cost-effective supple-             adaptation to synthetic data while preserving the knowledge
ment to real-world data but also highlight the importance               from pre-training on large-scale real data. This avoids the
of explicit alignment strategies to mitigate discrepancies              need for full fine-tuning, which can overwrite important pre-
between generated and real data distributions.                          trained weights, especially when synthetic data is noisy or
Comparison with SigLIP. To strengthen the effectiveness                 biased. The ablation results are reported in Table 11. As can
of our work, we compare GMAIL with SigLIP (Zhai et al.,                 be seen, LoRA with rank 4 achieves the best performance,
2023) on COCO captioning. The results are shown in Ta-                  balancing computational efficiency and alignment quality.
ble 8. SigLIP (Zhai et al., 2023) adopts a sigmoid loss for             Meanwhile, LoRA updates 35% fewer parameters compared
better image-text pre-training, focusing solely on real im-             to full fine-tuning while achieving better performance.
ages. In contrast, our GMAIL aligns real and generated
images as distinct modalities, addressing the challenges of             5. Conclusion
integrating synthetic data into further training. GMAIL is              In this work, we present GMAIL, a novel framework for
particularly relevant in scenarios requiring synthetic data,            generative-to-real alignment that addresses the modality gap
such as handling expensive attribute annotations or gener-              between generated and real images, a key challenge that
ating diverse samples. These results demonstrate that our               often leads to mode collapse when integrating generated
GMAIL complements SigLIP by effectively addressing the                  data into training pipelines. Our approach explicitly treats
synthetic-real discrepancy, allowing for enhanced general-              generated images as a separate modality and employs a
ization and performance improvements.                                   training scheme that aligns these images within the same
                                                                        latent space as real images. By fine-tuning models on gen-
Training on Real Images. To illustrate the impact of real
                                                                        erated images, while maintaining a pre-trained model for
images on GMAIL, we compare performances on COCO
                                                                        real images, our framework facilitates explicit alignment be-
captioning using real-only (first and fourth rows), mixed
                                                                        tween the two modalities, leading to significant performance
real-generated data (second row), and GMAIL alignment
                                                                        improvements across various vision-language tasks. Exten-
strategies (third and fifth rows). The results are shown in
                                                                        sive experiments demonstrate the efficacy of our method on
Table 9. These results indicate that GMAIL’s alignment
                                                                        a wide range of benchmarks, including image captioning,
strategy not only bridges the synthetic-real gap but also
                                                                        zero-shot image retrieval, and zero-shot image classifica-
could improve models trained exclusively on real data.
                                                                        tion. Our results consistently show that GMAIL enhances
ScienceQA Results. We also evaluated GMAIL’s perfor-                    the model’s ability to generalize and perform across tasks,
mance on ScienceQA (Lu et al., 2022) when integrated with               particularly when trained on large-scale datasets. The scal-
LLaVA (Liu et al., 2023) and LLaMA-3 (Meta, 2024). We                   ing trend observed with larger generated datasets such as
calculated the average accuracy of questions with the image             CC12M further highlights the robustness and adaptability
context. The comparison results are reported in Table 10.               of our approach.

                                                                    9
