RUS  ENG
Full version
JOURNALS // Program Systems: Theory and Applications // Archive

Program Systems: Theory and Applications, 2026 Volume 17, Issue 1, Pages 57–84 (Mi ps496)

Artificial intelligence and machine learning

Comparative analysis of the adversarial methods for non-topical classification of texts

M. N. Lepekhina, S. A. Sharoffb

a Moscow Institute of Physics and Technology, Moscow, Russia
b University of Leeds, Leeds, UK

Abstract: Non-topical text classification is widely used in modern applications. One of the issues related to this problem is the presence of biases and shifts in the distribution in the training text datasets. The most significant type of shift is the topical shift. To handle this issue we apply competitive methods such as Adversarial Domain Adaptation, Energy-based ADA, BERT with contrast loss function, ADA with contrast loss function.
In this paper, we first modify the contrast loss function to reduce the influence of thematic shifts and show that the use of adversarial methods improves the accuracy and reliability of classifiers for the task of determining the gender of the author of a text. We also apply LLaMA-3B and show that the large language models attain lower accuracy in the few-shot mode and require more time for prediction than the pre-trained models based on smaller architectures.

Key words and phrases: adversarial methods, contrastive loss, gender classification, text classification, non-topical classification, bert, domain adaptation.

UDC: 004.89: 004.93
BBK: 32.813.5

MSC: Primary 68T50; Secondary 68T07, 68T20

Received: 11.12.2025
Accepted: 12.02.2026

DOI: 10.25209/2079-3316-2026-17-1-57-84



© Steklov Math. Inst. of RAS, 2026