Transformer has shown to be a very effective finding to solve numerous learning tasks for various application fields, such as the image captioning task, which this work will focus on. Its widespread success is owed to two main ingredients: 1) an attention mechanism and 2) positional encoding. This article is interested in the first ingredient, showing that the vanilla attention mechanism may be improved by exploiting not only the context conveyed in a data sequence under analysis, but also in all sequences forming the complete training dataset. In particular, we introduce the concept of attention history to better capture and model contextual information. Two different strategies to compute attention history before its injection in the attention mechanism are described. The proposed solution is validated and discussed on four reference remote sensing image captioning datasets.
Transformer: Attention History May Matter / Melgani, F.. - In: IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING. - ISSN 0196-2892. - 64:(2026), pp. 1-14. [10.1109/TGRS.2026.3654866]
Transformer: Attention History May Matter
Melgani, Farid
2026-01-01
Abstract
Transformer has shown to be a very effective finding to solve numerous learning tasks for various application fields, such as the image captioning task, which this work will focus on. Its widespread success is owed to two main ingredients: 1) an attention mechanism and 2) positional encoding. This article is interested in the first ingredient, showing that the vanilla attention mechanism may be improved by exploiting not only the context conveyed in a data sequence under analysis, but also in all sequences forming the complete training dataset. In particular, we introduce the concept of attention history to better capture and model contextual information. Two different strategies to compute attention history before its injection in the attention mechanism are described. The proposed solution is validated and discussed on four reference remote sensing image captioning datasets.| File | Dimensione | Formato | |
|---|---|---|---|
|
2026_TGRS-Transformer_Attention_History.pdf
Solo gestori archivio
Tipologia:
Versione editoriale (Publisher’s layout)
Licenza:
Tutti i diritti riservati (All rights reserved)
Dimensione
9.16 MB
Formato
Adobe PDF
|
9.16 MB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione



