English

ZoDIAC: Zoneout Dropout Injection Attention Calculation

Computer Vision and Pattern Recognition 2025-10-02 v4

Abstract

In the past few years the transformer model has been utilized for a variety of tasks such as image captioning, image classification natural language generation, and natural language understanding. As a key component of the transformer model, self-attention calculates the attention values by mapping the relationships among the head elements of the source and target sequence, yet there is no explicit mechanism to refine and intensify the attention values with respect to the context of the input and target sequences. Based on this intuition, we introduce a novel refine and intensify attention mechanism that is called Zoneup Dropout Injection Attention Calculation (ZoDIAC), in which the intensities of attention values in the elements of the input source and target sequences are first refined using GELU and dropout and then intensified using a proposed zoneup process which includes the injection of a learned scalar factor. Our extensive experiments show that ZoDIAC achieves statistically significant higher scores under all image captioning metrics using various feature extractors in comparison to the conventional self-attention module in the transformer model on the MS-COCO dataset. Our proposed ZoDIAC attention modules can be used as a drop-in replacement for the attention components in all transformer models. The code for our experiments is publicly available at: https://github.com/zanyarz/zodiac

Keywords

Cite

@article{arxiv.2206.14263,
  title  = {ZoDIAC: Zoneout Dropout Injection Attention Calculation},
  author = {Zanyar Zohourianshahzadi and Terrance E. Boult and Jugal K. Kalita},
  journal= {arXiv preprint arXiv:2206.14263},
  year   = {2025}
}

Comments

This work was published at IEEE AIxSET 2024 (DOI: 10.1109/AIxSET62544.2024.00008). Arxiv didn't allow a new submission for the journal version (DOI: 10.1142/S1793351X25440039), so both versions with separate DOIs are merged into one Arxiv entry to reflect the latest journal updates

R2 v1 2026-06-24T12:07:31.277Z