Sharif-STR at SemEval-2024 Task 1: Transformer as a Regression Model for Fine-Grained Scoring of Textual Semantic Relations

Seyedeh Fatemeh Ebrahimi, Karim Akhavan Azari, Amirmasoud Iravani, Hadi Alizadeh, Zeinab Sadat Taghavi, Hossein Sameti · DOI

Abstract

Semantic Textual Relatedness (STR) holds significant relevance in Natural Language Processing, finding applications across various domains. Traditionally, approaches to STR have relied on knowledge-based and statistical methods. However, with the emergence of Large Language Models, there has been a paradigm shift, ushering in new methodologies. In this paper, we delve into the investigation of sentence-level STR within Track A (Supervised) by leveraging fine-tuning techniques on the RoBERTa transformer. Our study focuses on assessing the efficacy of this approach across different languages. Notably, our findings indicate promising advancements in STR performance, particularly in Latin languages. Specifically, our results demonstrate notable improvements in English, achieving a correlation of 0.82 and securing a commendable 19th rank. Similarly, in Spanish, we achieved a correlation of 0.67, securing the 15th position. However, our approach encounters challenges in languages like Arabic, where we observed a correlation of only 0.38, resulting in a 20th rank.

Introduction

In Natural Language Processing, a critical distinction exists between semantic similarity and semantic relatedness. While similarity refers to words sharing the same meaning (e.g., "car" and "automobile"), relatedness encompasses broader conceptual associations (e.g., "cup" and "coffee"). Capturing these fine-grained degrees of relatedness is essential for advanced tasks such as plagiarism detection and information retrieval. The Sharif-STR team addressed the SemEval-2024 Task 1 challenge by developing a system to predict relatedness scores on a continuous scale from 0 to 1 across multiple languages.

Methodology

The proposed approach utilizes the RoBERTa (Robustly Optimized BERT Approach) architecture, adapted for a regression task rather than its standard classification use case.

Regression Architecture

The model was modified by adding a custom "Classifier Head" to the transformer base. This head consists of a linear layer with 768 inputs, followed by a dropout layer to mitigate overfitting, and a final linear layer with a single output neuron. This configuration enables the model to output continuous floating-point values representing the predicted relatedness score.

Training and Augmentation

The model underwent fine-tuning on language-specific datasets provided by the competition organizers. To address data scarcity, the team experimented with data augmentation using the T5 transformer to generate paraphrases. While this technique improved performance for the English dataset, its impact was inconsistent across other languages, likely due to the lack of human validation for the synthetic pairs.

Cross-Lingual Strategy

For languages lacking direct supervised training data (Track C), a "translate-then-test" strategy was implemented. Input sentences were translated into English via the Google Translate API and subsequently processed by the high-performing English STR model.

Results and Analysis

The system's performance was evaluated using the Spearman Correlation coefficient. The results highlighted a significant performance gap between Latin and non-Latin languages.

Scatter plots of machine scores vs. true scores for English, Arabic, and Spanish.

As shown in Figure 1, the model achieved its highest correlation in English (0.82), followed by Spanish (0.67). However, performance dropped significantly for Arabic (0.38). This disparity suggests a "Latin bias" in the pre-trained RoBERTa model, likely stemming from its training corpus and tokenizer.

Confusion matrices for the regression task across the three target languages.

The confusion matrices in Figure 2 further illustrate these findings by binning the continuous regression outputs. Notably, the translation-based approach for Arabic (Track C) achieved a correlation of 0.51, significantly outperforming the direct supervised model. This indicates that for low-resource or non-Latin languages, pivoting through a high-resource language like English can be a more effective strategy than training on limited native data.

Conclusion and Future Work

The Sharif-STR system demonstrates the potential of transformer-based regression for semantic relatedness, particularly for Latin languages. However, the results underscore the limitations of current models in handling diverse linguistic families. Future research will focus on benchmarking other architectures such as ALBERT, XLNet, and T5-11B, and developing models specifically pre-trained on non-Latin language families to ensure more equitable performance across global languages.

Summary updated

BibTeX
@inproceedings{ebrahimi2024sharif,
  author = {Seyedeh Fatemeh Ebrahimi and Karim Akhavan Azari and Amirmasoud Iravani and Hadi Alizadeh and Zeinab Sadat Taghavi and Hossein Sameti},
  title = {{Sharif-STR at SemEval-2024 Task 1: Transformer as a Regression Model for Fine-Grained Scoring of Textual Semantic Relations}},
  booktitle = {SemEval @ NAACL},
  year = {2024},
  url = {https://openreview.net/forum?id=udjxrvA32w},
}
Figure