Homepage Program Systems: Theory and Applications Русская версия
ISSN 2079-3316 Bilingual online scientific Online scientific journal of the Ailamazyan Program System Institute of the Ailamazyan PSI of PSI of Russian Academy of Science of RAS 12+ 
Volume 17 (2026) . Issue 1 (70) . Paper No. 3 (503)

Artificial intelligence and machine learning

Research Article

Comparative Analysis of the Adversarial Methods For Non-Topical Classification of Texts

Mikhail Nikolaevich Lepekhin1Correspondent author, Sergey Aleksandrovich Sharoff2

1Moscow Institute of Physics and Technology, Moscow, Russia
2University of Leeds, Leeds, UK
1 Mikhail Nikolaevich Lepekhin — Correspondent author lepehin.mn@phystech.edu

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. (In Russian).

Keywords: adversarial methods, contrastive loss, gender classification, text classification, non-topical classification, bert, domain adaptation

MSC-20202020 Mathematics Subject Classification 68T50; 68T07, 68T20MSC-2020 68-XX: Computer science
MSC-2020 68Txx: Artificial intelligence
MSC-2020 68T50: Natural language processing
MSC-2020 68T07: Artificial neural networks and deep learning
MSC-2020 68T20: Problem solving in the context of artificial intelligence (heuristics, search strategies, etc.)

For citation: Mikhail N. Lepekhin, Sergey A. Sharoff. Comparative Analysis of the Adversarial Methods For Non-Topical Classification of Texts. Program Systems: Theory and Applications, 2026, 17:1, pp. 57–84. (In Russ.). https://psta.psiras.ru/2026/1_57-84.

Full text of article (PDF): https://psta.psiras.ru/read/psta2026_1_57-84.pdf.

The article was submitted 11.12.2025; approved after reviewing 26.01.2026; accepted for publication 12.02.2026; published online 04.03.2026.

© Lepekhin M. N., Sharoff S. A.
2026
Editorial address: Ailamazyan Program Systems Institute of the Russian Academy of Sciences, Peter the First Street 4«a», Veskovo village, Pereslavl area, Yaroslavl region, 152021 Russia;   Website:  http://psta.psiras.ru Phone: +7(4852) 695-228;   E-mail: ;   License: CC-BY-4.0License text on the Creative Commons site
© Ailamazyan Program System Institute of Russian Academy of Science (site design) 2010–2026