Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Text-to-Image Generation Method Based on Object Enhancement and Attention Maps

Author 1: Yongsen Huang Author 2: Xiaodong Cai Author 3: Yuefan An
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 1 · Published 2025

DOI: https://doi.org/10.14569/IJACSA.2025.0160193

Abstract

In the task of text-to-image generation, common issues such as missing objects in the generated images often arise due to the model's insufficient learning of multi-object category information and the lack of consistency between the text prompts and the generated image contents. To address these challenges, this paper proposes a novel text-to-image generation approach based on object enhancement and attention maps. First, a new object enhancement strategy is introduced to improve the model’s capacity to capture object-level features. The core idea is to generate difficult samples by processing the object mask maps of tokens, followed by dynamic weighting of the attention map using latent image embeddings. Second, to enhance the consistency between the text prompts and the generated image contents, we enforce similarity constraints between the cross-attention maps and the attention-weighted mask feature maps, penalizing inconsistencies through a loss function. Experimental results demonstrate that the Stable Diffusion v1.4 model, optimized using the proposed method, achieves significant improvements on the COCO instance dataset and the ADE20K instance dataset. Specifically, the MG metrics are improved by an average of 12.36% and 6.55%, respectively, compared to state-of-the-art models. Furthermore, the FID metrics show a 0.84% improvement over the state-of-the-art model on the COCO instance validation set.

Keywords

How to Cite this Article

Huang, Y., Cai, X., & An, Y. (2025). Text-to-Image Generation Method Based on Object Enhancement and Attention Maps. International Journal of Advanced Computer Science and Applications, 16(1). https://doi.org/10.14569/IJACSA.2025.0160193

Huang, Yongsen, et al.. "Text-to-Image Generation Method Based on Object Enhancement and Attention Maps." International Journal of Advanced Computer Science and Applications, vol. 16, no. 1, 2025, https://doi.org/10.14569/IJACSA.2025.0160193.

@article{Huang2025,
  title     = {Text-to-Image Generation Method Based on Object Enhancement and Attention Maps},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {1},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {Yongsen Huang and Xiaodong Cai and Yuefan An},
  doi       = {10.14569/IJACSA.2025.0160193},
  url       = {https://doi.org/10.14569/IJACSA.2025.0160193}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.