Optimal architecture for a sentiment analysis transformer with multihead attention and genetic crossover

具有多头注意力机制和遗传交叉的情感分析Transformer的最优架构

阅读:1

Abstract

Sentiment analysis, a key component of natural language processing, is of paramount importance in various fields such as strategic surveillance, online image management, and customer satisfaction assessment. However, despite recent advances, improving the accuracy and adaptability of models remains a crucial challenge. This paper presents a cutting-edge method that combines the Transformer with evolutionary optimization techniques to improve sentiment analysis results. We rely on the use of pre-trained models to obtain embeddings and language features, thus guaranteeing a rich and relevant textual representation. Our method, called OAST-MAGC (Optimal Architecture for a Sentiment Analysis Transformer with Multihead Attention and Genetic Crossover), is distinguished by incorporating a multihead attention mechanism optimized using a genetic crossover technique. The originality of our approach lies in the integration of dynamic pruning, which selects the most relevant attention heads before starting genetic optimization. This step reduces the search space, improves convergence speed, and produces a lighter and more efficient final model. Additionally, the weights of the final layers are combined through genetic crossover, which promotes more efficient generalization and reduces the risk of overfitting. This architecture, which merges the effectiveness of pre-trained models with a dynamic optimization approach, offers a significant improvement in the accuracy and efficiency of sentiment analysis tasks. Experiments have proven that our method outperforms current techniques in terms of performance and robustness, achieving an accuracy of 95.96% and an F1-score of 96%, opening the way to new possibilities in processing complex textual data.

特别声明

1、本页面内容包含部分的内容是基于公开信息的合理引用;引用内容仅为补充信息,不代表本站立场。

2、若认为本页面引用内容涉及侵权,请及时与本站联系,我们将第一时间处理。

3、其他媒体/个人如需使用本页面原创内容,需注明“来源:[生知库]”并获得授权;使用引用内容的,需自行联系原作者获得许可。

4、投稿及合作请联系:info@biocloudy.com。