Litcius/Paper detail

A Generalized Attention Mechanism to Enhance the Accuracy Performance of Neural Networks

Pengcheng Jiang, Ferrante Neri, Yu Xue, Ujjwal Maulik

2024International Journal of Neural Systems18 citationsDOI

Abstract

In many modern machine learning (ML) models, attention mechanisms (AMs) play a crucial role in processing data and identifying significant parts of the inputs, whether these are text or images. This selective focus enables subsequent stages of the model to achieve improved classification performance. Traditionally, AMs are applied as a preprocessing substructure before a neural network, such as in encoder/decoder architectures. In this paper, we extend the application of AMs to intermediate stages of data propagation within ML models. Specifically, we propose a generalized attention mechanism (GAM), which can be integrated before each layer of a neural network for classification tasks. The proposed GAM allows for at each layer/step of the ML architecture identification of the most relevant sections of the intermediate results. Our experimental results demonstrate that incorporating the proposed GAM into various ML models consistently enhances the accuracy of these models. This improvement is achieved with only a marginal increase in the number of parameters, which does not significantly affect the training time.

Topics & Concepts

Mechanism (biology)Artificial neural networkComputer scienceArtificial intelligenceMachine learningPhysicsQuantum mechanicsNeural Networks and ApplicationsAnomaly Detection Techniques and ApplicationsIndustrial Vision Systems and Defect Detection