Dynamic Weight Adjustment in Siamese Multi-Head Self-Attention for Text Similarity

Measuring text similarity is a core task in natural language processing (NLP) with applications spanning across information retrieval, question answering, and paraphrase detection. Despite significant advancements in the field, current models, particularly those based on transformer architectures, often treat all attention heads equally in multi-head self-attention, which may limit the model's ability to focus on the most relevant features for text pair comparison. This paper proposes a novel approach that integrates a dynamic weight adjustment mechanism within a Siamese multi-head self-attention architecture for improved text similarity measurement. The proposed model dynamically adjusts the importance of each attention head based on the input text, enabling the model to emphasize the most informative features of the text. The model is evaluated on the STS-B dataset, where it outperforms several strong baselines, including word2vec, BiLSTM, and fine-tuned BERT models, achieving a Spearman's rank correlation coefficient of 0.889, compared to 0.858 for BERT Base and 0.865 for BERT Large. The results show that dynamic weighting significantly improves the performance of text similarity prediction.

Authors

Institutions

Publication Details

Published
2025-02-28
DOI
https://doi.org/10.1109/isbdas64762.2025.11116855
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Dynamic Weight Adjustment in Siamese Multi-Head Self-Attention for Text Similarity

Zhengfang He
Topic Modeling
article

Dynamic Weight Adjustment in Siamese Multi-Head Self-Attention for Text Similarity

Zhengfang He
article en

Abstract

Measuring text similarity is a core task in natural language processing (NLP) with applications spanning across information retrieval, question answering, and paraphrase detection. Despite significant advancements in the field, current models, particularly those based on transformer architectures, often treat all attention heads equally in multi-head self-attention, which may limit the model's ability to focus on the most relevant features for text pair comparison. This paper proposes a novel approach that integrates a dynamic weight adjustment mechanism within a Siamese multi-head self-attention architecture for improved text similarity measurement. The proposed model dynamically adjusts the importance of each attention head based on the input text, enabling the model to emphasize the most informative features of the text. The model is evaluated on the STS-B dataset, where it outperforms several strong baselines, including word2vec, BiLSTM, and fine-tuned BERT models, achieving a Spearman's rank correlation coefficient of 0.889, compared to 0.858 for BERT Base and 0.865 for BERT Large. The results show that dynamic weighting significantly improves the performance of text similarity prediction.

Kunming University of Science and Technology (CN), Yunnan University (CN)
Openalex Percentile: Top 89%
Topic Modeling
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.