Abstract
Traditional image-text models often rely on one-to-one mappings, failing to capture the inherent complexity of visual scenes. We propose a unified Transformer-based framework that models the relationship between an image and multiple diverse captions. By leveraging unlikelihood training and non-autoregressive decoding, our system generates a variety of descriptive perspectives for a single image and synthesizes high-fidelity "rich" images from multiple input descriptions. Experimental results on MSCOCO demonstrate significant improvements in caption diversity and image synthesis quality.
Introduction
Most current AI models treat image-to-text (captioning) and text-to-image (synthesis) as bijective, one-to-one mapping problems. However, a single sentence rarely captures the full complexity of a visual scene. This standard approach suffers from two main issues: ambiguity, where it is impossible to fully explain a complex image with one caption, and alignment, where single pairs struggle to provide the fine-grained semantic alignment necessary for deep representation learning.
Methodology
The proposed framework utilizes a decoder-only Transformer to handle multi-modal sequences.
Unified Representation
The model treats image patches (extracted via Faster R-CNN) and text tokens as a single sequence. To handle multiple captions, they are concatenated using special [SEP] tokens, allowing the model to attend to the relationships between different descriptions of the same scene.
Training and Inference
- Unlikelihood Training: To prevent generic or repetitive captions, an unlikelihood objective penalizes the model for generating words already present in previous captions for that image.
- Non-Autoregressive Decoding: For inference, a "mask-predict" strategy enables parallel token prediction, significantly improving speed over traditional autoregressive methods.
- Image Generation: For synthesis, the model outputs discrete visual tokens fed into a GAN-based generator (following the X-LXMERT architecture) to produce the final image.
Experimental Results
The model was evaluated on the MSCOCO Captions dataset using the Karpathy split, which provides five human-written captions per image.
Caption Diversity vs. Accuracy
The proposed method achieved a substantial increase in diversity. Compared to the baseline, Div-1 scores improved by 16.8% and Div-2 scores by 24.9% in absolute gains. While traditional accuracy metrics like CIDEr-D showed a slight decrease, this reflects the model's intentional move away from "average" descriptions toward unique, long-tail details.
Image Quality
In text-to-image tasks, generating an image from five captions instead of one improved the FID score from 51.5 to 42.1. This indicates that "rich" images, synthesized from aggregated details (e.g., grass, kites, and people mentioned across different captions), more closely match real-world photo distributions.
Discussion and Conclusion
While the framework demonstrates a powerful shift toward "many-to-many" modeling, challenges remain in semantic coherence for paragraph-length descriptions. Future work may involve better metrics for creativity that do not penalize diversity, as well as integrating modern diffusion-based decoders to improve image resolution. By moving beyond one-to-one mappings, this research paves the way for more expressive and detailed multi-modal AI.
Summary updated