TASK-SPECIFIC ATTENTION LAYERS FOR THE ENHANCED FINE-TUNING OF BERT IN NLP APPLICATIONS

Leveraging BERT’s pre-trained capabilities, fine-tuning has become a standard approach for optimising model performance across various NLP tasks. However, the potential to further refine task-specific outputs remains underexplored. By incorporating external attention layers designed for individual tasks, this study introduces a method to enhance BERT’s performance on tasks such as sentiment analysis, paraphrase detection, and semantic textual similarity. The proposed approach assigns task-specific weights to different tokens during fine-tuning, allowing the model to focus more effectively on key elements in the input data. Experimental results indicate significant improvements in paraphrase detection accuracy, achieving a 29% increase, with only a slight increase in training time. This research provides a novel extension to BERT’s architecture, demonstrating that targeted attention layers can yield considerable performance gains for specialised NLP applications while maintaining efficient resource utilisation.

Authors

Institutions

Publication Details

Journal
International Journal of Apllied Mathematics
Published
2025-10-08
DOI
https://doi.org/10.12732/ijam.v38i5s.334
Primary Topic
Semiconductor materials and devices
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TASK-SPECIFIC ATTENTION LAYERS FOR THE ENHANCED FINE-TUNING OF BERT IN NLP APPLICATIONS

Ravi Verma
International Journal of Apllied Mathematics
Semiconductor materials and devices
article

TASK-SPECIFIC ATTENTION LAYERS FOR THE ENHANCED FINE-TUNING OF BERT IN NLP APPLICATIONS

Ravi Verma
article en

Abstract

Leveraging BERT’s pre-trained capabilities, fine-tuning has become a standard approach for optimising model performance across various NLP tasks. However, the potential to further refine task-specific outputs remains underexplored. By incorporating external attention layers designed for individual tasks, this study introduces a method to enhance BERT’s performance on tasks such as sentiment analysis, paraphrase detection, and semantic textual similarity. The proposed approach assigns task-specific weights to different tokens during fine-tuning, allowing the model to focus more effectively on key elements in the input data. Experimental results indicate significant improvements in paraphrase detection accuracy, achieving a 29% increase, with only a slight increase in training time. This research provides a novel extension to BERT’s architecture, demonstrating that targeted attention layers can yield considerable performance gains for specialised NLP applications while maintaining efficient resource utilisation.

International Journal of Apllied MathematicsVol. 38(5s)
Rajiv Gandhi Technical University (IN)
Openalex Percentile: Top 72%
Semiconductor materials and devices
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.