TWO-STAGE PARAPHRASE IDENTIFICATION ARCHITECTURE FOR AUTOMATIC PLAGIARISM DETECTION
Abstract
The subject of the research is methods for detecting similarity between sentence pairs in Ukrainian and English as the foundation for a plagiarism detection system in textual data. The objective of the work is the empirical justification of an automated paraphrase detection architecture for Ukrainian and English texts, suitable for practical plagiarism detection tasks, ensuring a balance between speed and quality on large sentence corpora. Research objectives: forming a Ukrainian paraphrase dataset of sufficient size for testing methods and fine-tuning transformer models; experimentally comparing the effectiveness of lexical methods and transformer models in zero-shot and fine-tuned modes on the compiled Ukrainian dataset and two English datasets (QQP and PAWS-Wiki); proposing an optimal combination for a two-stage plagiarism detection system architecture based on the obtained results. Methods: TF-IDF with cosine similarity, Jaccard similarity coefficient for n-grams, the paraphrasemultilingual-MiniLM-L12-v2 bi-encoder in zero-shot and fine-tuned modes, the bge-reranker-v2-m3 cross-encoder in zero-shot mode, and the Multilingual-MiniLM-L12-H384 cross-encoder in fine-tuned mode. Precision, Recall, and F1 metrics were used for accuracy evaluation. To verify statistical significance, a bootstrap method with 2000 iterations was applied. Results: on the Ukrainian-language test set, the fine-tuned cross-encoder model achieved the highest F1 -score (0.959). Fine-tuning the bi-encoder on the combined training set (Ukrainian and QQP) demonstrated a statistically significant improvement in the F1 -score by 0.09 points (from 0.707 to 0.797). It was revealed that fine-tuning the cross-encoder on the same dataset using the selected approach does not improve the detection quality of complex paraphrases from the PAWS-Wiki dataset (an F1 -score of 0.613, remaining at the level of lexical methods or an un-fine-tuned bi-encoder). Conclusions. A two-stage plagiarism detection architecture based on a fine-tuned bi-encoder (paraphrase-multilingual-MiniLM-L12-v2) and reranker (bge-reranker-v2-m3) is empirically substantiated. It was established that the fine-tuning strategy dictates the model’s behavior on complex paraphrases: vector space adaptation enhances quality, whereas training the classification head from scratch causes the model to focus on surface-level lexical features and lose sensitivity to structural changes. Adding the reranking stage increases processing time by approximately 2%.