Saved in:
Bibliographic Details
Main Authors: Li, Bo, Liang, Di, Zhang, Zixin
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.07220
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929621737406464
author Li, Bo
Liang, Di
Zhang, Zixin
author_facet Li, Bo
Liang, Di
Zhang, Zixin
contents The Transformer-based model have made significant strides in semantic matching tasks by capturing connections between phrase pairs. However, to assess the relevance of sentence pairs, it is insufficient to just examine the general similarity between the sentences. It is crucial to also consider the tiny subtleties that differentiate them from each other. Regrettably, attention softmax operations in transformers tend to miss these subtle differences. To this end, in this work, we propose a novel semantic sentence matching model named Combined Attention Network based on Transformer model (Comateformer). In Comateformer model, we design a novel transformer-based quasi-attention mechanism with compositional properties. Unlike traditional attention mechanisms that merely adjust the weights of input tokens, our proposed method learns how to combine, subtract, or resize specific vectors when building a representation. Moreover, our proposed approach builds on the intuition of similarity and dissimilarity (negative affinity) when calculating dual affinity scores. This allows for a more meaningful representation of relationships between sentences. To evaluate the performance of our proposed model, we conducted extensive experiments on ten public real-world datasets and robustness testing. Experimental results show that our method achieves consistent improvements.
format Preprint
id arxiv_https___arxiv_org_abs_2412_07220
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Comateformer: Combined Attention Transformer for Semantic Sentence Matching
Li, Bo
Liang, Di
Zhang, Zixin
Computation and Language
The Transformer-based model have made significant strides in semantic matching tasks by capturing connections between phrase pairs. However, to assess the relevance of sentence pairs, it is insufficient to just examine the general similarity between the sentences. It is crucial to also consider the tiny subtleties that differentiate them from each other. Regrettably, attention softmax operations in transformers tend to miss these subtle differences. To this end, in this work, we propose a novel semantic sentence matching model named Combined Attention Network based on Transformer model (Comateformer). In Comateformer model, we design a novel transformer-based quasi-attention mechanism with compositional properties. Unlike traditional attention mechanisms that merely adjust the weights of input tokens, our proposed method learns how to combine, subtract, or resize specific vectors when building a representation. Moreover, our proposed approach builds on the intuition of similarity and dissimilarity (negative affinity) when calculating dual affinity scores. This allows for a more meaningful representation of relationships between sentences. To evaluate the performance of our proposed model, we conducted extensive experiments on ten public real-world datasets and robustness testing. Experimental results show that our method achieves consistent improvements.
title Comateformer: Combined Attention Transformer for Semantic Sentence Matching
topic Computation and Language
url https://arxiv.org/abs/2412.07220