<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">ntv</journal-id><journal-title-group><journal-title xml:lang="ru">Научно-технический вестник информационных технологий, механики и оптики</journal-title><trans-title-group xml:lang="en"><trans-title>Scientific and Technical Journal of Information Technologies, Mechanics and Optics</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">2226-1494</issn><issn pub-type="epub">2500-0373</issn><publisher><publisher-name>Университет ИТМО</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.17586/2226-1494-2024-24-6-991-998</article-id><article-id custom-type="elpub" pub-id-type="custom">ntv-405</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>КОМПЬЮТЕРНЫЕ СИСТЕМЫ И ИНФОРМАЦИОННЫЕ ТЕХНОЛОГИИ</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>COMPUTER SCIENCE</subject></subj-group></article-categories><title-group><article-title>Параметрический корпус русского языка RuParam</article-title><trans-title-group xml:lang="en"><trans-title>Russian parametric corpus RuParam</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-9754-2452</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Гращенков</surname><given-names>П. В.</given-names></name><name name-style="western" xml:lang="en"><surname>Grashchenkov</surname><given-names>P. V.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Гращенков Павел Валерьевич - доктор филологических наук, доцент, Москва, 119991;</p><p>ведущий научный сотрудник, Москва, 107031</p></bio><bio xml:lang="en"><p>Pavel V. Grashchenkov - D.Sc. (Philology), Associate Professor, Moscow, 119991;</p><p>Leading researcher, Moscow, 107031</p></bio><email xlink:type="simple">pavel.gra@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-0533-809X</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Паско</surname><given-names>Л. И.</given-names></name><name name-style="western" xml:lang="en"><surname>Pasko</surname><given-names>L. I.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Паско Лада Игоревна — студент,</p><p>Москва, 119991</p></bio><bio xml:lang="en"><p>Lada I. Pasko - Student,</p><p>Moscow, 119991</p></bio><email xlink:type="simple">paskolada@yandex.ru</email><xref ref-type="aff" rid="aff-2"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-4098-7167</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Студеникина</surname><given-names>К. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Studenikina</surname><given-names>K. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Студеникина Ксения Андреевна - программист,</p><p>Москва, 119991</p></bio><bio xml:lang="en"><p>Ksenia A. Studenikina - Software Developer,</p><p>Moscow, 119991</p></bio><email xlink:type="simple">xeanst@gmail.com</email><xref ref-type="aff" rid="aff-2"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-7209-9335</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Тихомиров</surname><given-names>М. М.</given-names></name><name name-style="western" xml:lang="en"><surname>Tikhomirov</surname><given-names>M. M.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Тихомиров Михаил Михайлович - кандидат физико-математических наук, научный сотрудник,</p><p>Москва, 119991</p></bio><bio xml:lang="en"><p>Mikhail M. Tikhomirov - PhD (Physics &amp; Mathematics), Scientific Researcher, </p><p>Moscow, 119991</p></bio><email xlink:type="simple">tikhomirov.mm@gmail.com</email><xref ref-type="aff" rid="aff-2"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Московский государственный университет имени М.В. Ломоносова;&#13;
Институт востоковедения Российской академии наук</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Lomonosov Moscow State University;&#13;
Institute of Oriental Studies of the Russian Academy of Sciences</institution><country>Russian Federation</country></aff></aff-alternatives><aff-alternatives id="aff-2"><aff xml:lang="ru"><institution>Московский государственный университет имени М.В. Ломоносова</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Lomonosov Moscow State University</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2024</year></pub-date><pub-date pub-type="epub"><day>29</day><month>12</month><year>2024</year></pub-date><volume>24</volume><issue>6</issue><fpage>991</fpage><lpage>998</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Гращенков П.В., Паско Л.И., Студеникина К.А., Тихомиров М.М., 2024</copyright-statement><copyright-year>2024</copyright-year><copyright-holder xml:lang="ru">Гращенков П.В., Паско Л.И., Студеникина К.А., Тихомиров М.М.</copyright-holder><copyright-holder xml:lang="en">Grashchenkov P.V., Pasko L.I., Studenikina K.A., Tikhomirov M.M.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://ntv.elpub.ru/jour/article/view/405">https://ntv.elpub.ru/jour/article/view/405</self-uri><abstract><sec><title>Введение</title><p>Введение. Основная функция больших языковых моделей заключается в наиболее точной имитации поведения носителей языка. Для того чтобы отслеживать прогресс в решении этой задачи при разработке моделей, а также сравнивать конкурирующие модели между собой, необходимо создание наборов данных для объективной оценки. Распространенный тип таких наборов данных — это корпуса лингвистической приемлемости. Создание таких корпусов основывается на гипотезе о том, что большие языковые модели, как и носители языка, должны быть способны отличать грамматичные предложения от неграмматичных, которые нарушают правила грамматики целевого языка или языков.</p></sec><sec><title>Метод</title><p>Метод. В работе представлен новый параметрический корпус для русского языка RuParam. Корпус содержит 9,5 тыс. минимальных пар предложений, различающихся по грамматичности, где каждому верному предложению соответствует минимально отличающееся от него ошибочное. Источник неграмматичности в каждой паре сопровождается экспертной лингвистической разметкой. RuParam состоит из двух частей. В первой части используется новый для задачи тестирования больших языковых моделей источник данных — лексико-грамматические тесты по русскому языку как иностранному. Вторая часть состоит из модифицированных корпусных примеров, представляющих грамматические феномены, не входящие в программу преподавания русского языка как иностранного в силу своей сложности.</p></sec><sec><title>Основные результаты</title><p>Основные результаты. Проведенные эксперименты над моделями показали, что наиболее высокий результат достигается моделями, при обучении которых русскому языку уделялось максимально пристальное внимание на всех этапах обучения, от подготовки данных и токенизации до написания инструкций и обучения с подкреплением (прежде всего YandexGPT и GigaChat). Мультиязычные модели, для которых не было сделано специального акцента на русском языке, показали существенно более низкие результаты. Тем не менее, даже лучшие результаты моделей далеки от оценки людей, которые справляются с задачей практически со 100 % точностью.</p></sec><sec><title>Обсуждение</title><p>Обсуждение. Ранжирование моделей, полученное в ходе эксперимента, показывает, что разработанный корпус действительно отражает степень владения русским языком. Полученный рейтинг может быть полезен при выборе модели для решения задач обработки естественного языка, где требуется знание грамматики: например, построение морфологических и синтаксических парсеров. В дальнейшем предложенный корпус может быть использован для тестирования собственных моделей.</p></sec></abstract><trans-abstract xml:lang="en"><p>The main function of large language models is to simulate the behavior of native speakers in the most correct way. Hence, it is necessary to have assessment datasets to track progress in solving this problem as well as regularly compare competing models with each other. There are some datasets of this type, the so-called linguistic acceptability corpora. The hypothesis that underlies the creation of these corpora assumes that large language models, like native speakers, should be able to distinguish correct, grammatical sentences from the ungrammatical ones that violate the grammar of the target language. The paper presents the parametric corpus for Russian, RuParam. Our corpus contains 9.5 thousand minimal pairs of sentences that differ in grammaticality — each correct sentence corresponds to a minimally different erroneous one. The source of ungrammaticality in each pair is supplied with the linguistic markup provided by experts. RuParam consists of two parts: the first part uses a totally new data source for the task of testing large language models — lexical and grammatical tests on Russian as a foreign language. The second part consists of (modified and tagged) examples from real texts that represent grammatical phenomena, not included in the RFL teaching program due to their complexity. As have shown our experiments with different Large Language Models, the highest results are achieved by those models that have been trained on Russian most carefully at all stages, from data preparation and tokenization to writing instructions and reinforcement learning (these are first of all YandexGPT and GigaChat). Multilingual models, which usually receive little or no emphasis on Russian, showed significantly lower results. Still, even the best models results are far from the assessors who completed the task with almost 100 % accuracy. The models ranking obtained during the experiment shows that our corpus reflects actual degree of proficiency in Russian. The resulting rating can be helpful when choosing a model for natural language processing task requiring grammar knowledge: for example, building morphological and syntactic parsers. Thereafter, the proposed corpus can be used to test your own models.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>языковые корпуса</kwd><kwd>русский язык</kwd><kwd>большие языковые модели</kwd><kwd>усвоение иностранного языка</kwd><kwd>обработка естественного языка</kwd><kwd>оценка приемлемости</kwd><kwd>универсальная грамматика</kwd></kwd-group><kwd-group xml:lang="en"><kwd>corpora</kwd><kwd>Russian</kwd><kwd>LLM</kwd><kwd>L2</kwd><kwd>natural language processing</kwd><kwd>acceptability judgements</kwd><kwd>universal grammar</kwd></kwd-group><funding-group><funding-statement xml:lang="ru">Работа выполнена при поддержке Программы развития Московского государственного университета имени М.В. Ломоносова, проект № 23-Ш02-10 «Языковая компетенция носителей естественного языка и нейросетевых моделей».</funding-statement></funding-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Warstadt A., Singh A., Bowman S.R. Neural network acceptability judgments // Transactions of the Association for Computational Linguistics. 2019. V. 7. P. 625–641. https://doi.org/10.1162/tacl_a_00290</mixed-citation><mixed-citation xml:lang="en">Warstadt A., Singh A., Bowman S.R. Neural network acceptability judgments. Transactions of the Association for Computational Linguistics, 2019, vol. 7, pp. 625–641. https://doi.org/10.1162/tacl_a_00290</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Warstadt A., Parrish A., Liu H., Mohananey A., Peng W., Wang S.-F., Bowman S.R. BLiMP: The benchmark of linguistic minimal pairs for English // Transactions of the Association for Computational Linguistics. 2020. V. 8. P. 377–392. https://doi.org/10.1162/tacl_a_00321</mixed-citation><mixed-citation xml:lang="en">Warstadt A., Parrish A., Liu H., Mohananey A., Peng W., Wang S.-F., Bowman S.R. BLiMP: The benchmark of linguistic minimal pairs for English. Transactions of the Association for Computational Linguistics, 2020, vol. 8, pp. 377–392. https://doi.org/10.1162/tacl_a_00321</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Mikhailov V., Shamardina T., Ryabinin M., Pestova A., Smurov I., Artemova E. RuCoLA: Russian Corpus of Linguistic Acceptability // Proc. of the 2022 Conference on Empirical Methods in Natural Language Processing. 2022. P. 5207–5227. https://doi.org/10.18653/v1/2022.emnlp-main.348</mixed-citation><mixed-citation xml:lang="en">Mikhailov V., Shamardina T., Ryabinin M., Pestova A., Smurov I., Artemova E. RuCoLA: Russian Corpus of Linguistic Acceptability. Proc. of the 2022 Conference on Empirical Methods in Natural Language Processing, 2022, pp. 5207–5227. https://doi.org/10.18653/v1/2022.emnlp-main.348</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Taktasheva E., Bazhukov M., Koncha K., Fenogenova A., Artemova E., Mikhailov V. RuBLiMP: Russian benchmark of linguistic minimal pairs // Proc. of the 2024 Conference on Empirical Methods in Natural Language Processing. 2024. P. 9268–9299.</mixed-citation><mixed-citation xml:lang="en">Taktasheva E., Bazhukov M., Koncha K., Fenogenova A., Artemova E., Mikhailov V. RuBLiMP: Russian benchmark of linguistic minimal pairs. Proc. of the 2024 Conference on Empirical Methods in Natural Language Processing, 2024, pp. 9268–9299.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Volodina E., Mohammed Y.A., Klezl J. DaLAJ — a dataset for linguistic acceptability judgments for Swedish // Proc. of the 10th Workshop on Natural Language Processing for Computer Assisted Language Learning (NLP4CALL 2021). 2021. P. 28–37.</mixed-citation><mixed-citation xml:lang="en">Volodina E., Mohammed Y.A., Klezl J. DaLAJ — a dataset for linguistic acceptability judgments for Swedish. Proc. of the 10th Workshop on Natural Language Processing for Computer Assisted Language Learning (NLP4CALL 2021), 2021, pp. 28–37.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Jentoft M., Samuel D. NoCoLA: The Norwegian corpus of linguistic acceptability // Proc. of the 24th Nordic Conference on Computational Linguistics (NoDaLiDa). 2023. P. 610–617.</mixed-citation><mixed-citation xml:lang="en">Jentoft M., Samuel D. NoCoLA: The Norwegian corpus of linguistic acceptability. Proc. of the 24th Nordic Conference on Computational Linguistics (NoDaLiDa), 2023, pp. 610–617.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Гращенков П.В. RuConst: Синтаксический корпус русского с разметкой по непосредственным составляющим // Вестник Московского университета. Серия 9. Филология. 2024. № 3. С. 94–112. https://doi.org/10.55959/MSU0130-0075-9-2024-47-03-7</mixed-citation><mixed-citation xml:lang="en">Grashchenkov P.V. RuConst: A Treebank for Russian. Lomonosov Philology Journal. Series 9. Philology, 2024, vol. 3, pp. 94–112. (in Russian). https://doi.org/10.55959/MSU0130-0075-9-2024-47-03-7</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Ross J.R. Constraints on variables in syntax: PhD thesis / Massachusetts Institute of Technology. 1967. 523 p.</mixed-citation><mixed-citation xml:lang="en">Ross J.R. Constraints on variables in syntax: PhD thesis. Massachusetts Institute of Technology. 1967, 523 p.</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Белова Д.Д., Вознесенская А.Ю., Герасимова А.А. и др. Русские острова в свете экспериментальных данных. М.: Буки Веди, 2021. 412 с.</mixed-citation><mixed-citation xml:lang="en">Belova D.D., Voznesenskaia A.Iu., Gerasimova A.A. et al. Russian Islands in the Light of the Experimental Data. Moscow, Buki Vedi Publ., 2021, 412 p. (in Russian)</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Chomsky N. Lectures on Government and Binding: The Pisa Lectures. Dordrecht: Walter de Gruyter GmbH &amp; Company KG, 1981. 371 p.</mixed-citation><mixed-citation xml:lang="en">Chomsky N. Lectures on Government and Binding: The Pisa Lectures. Dordrecht, Walter de Gruyter GmbH &amp; Company KG, 1981, 371 p.</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Schütze C., Sprouse J. Judgment data // Research Methods in Linguistics. Cambridge: Cambridge University Press, 2014. P. 27–50.</mixed-citation><mixed-citation xml:lang="en">Schütze C., Sprouse J. Judgment data. Research Methods in Linguistics. Cambridge, Cambridge University Press, 2014, pp. 27–50.</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Wang G., Cheng S., Zhan X., Li X., Song S., Liu Y. OpenChat: Advancing open-source language models with mixed-quality data // arXiv. 2023. arXiv:2309.11235. https://doi.org/10.48550/arXiv.2309.11235</mixed-citation><mixed-citation xml:lang="en">Wang G., Cheng S., Zhan X., Li X., Song S., Liu Y. OpenChat: Advancing open-source language models with mixed-quality data. arXiv, 2023, arXiv:2309.11235. https://doi.org/10.48550/arXiv.2309.11235</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Grattafiori A., Dubey A., Jauhri A., Pandey A. et al. The Llama 3 Herd of Models // ArXiv. 2024. ArXiv:2407.21783. https://doi.org/10.48550/arXiv.2407.21783</mixed-citation><mixed-citation xml:lang="en">Grattafiori A., Dubey A., Jauhri A., Pandey A. et al. The Llama 3 Herd of Models. arXiv, 2024, arXiv:2407.21783. https://doi.org/10.48550/arXiv.2407.21783</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Devine P. Tagengo: A multilingual chat dataset // Proc. of the Fourth Workshop on Multilingual Representation Learning (MRL 2024). 2024. P. 106–113.</mixed-citation><mixed-citation xml:lang="en">Devine P. Tagengo: A multilingual chat dataset. Proc. of the Fourth Workshop on Multilingual Representation Learning (MRL 2024), 2024, pp. 106–113.</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Nikolich A., Korolev K., Shelmanov A. Vikhr: The family of opensource instruction-tuned large language models for Russian // arXiv. 2024. arXiv:2405.13929v2. https://doi.org/10.48550/arXiv.2405.13929</mixed-citation><mixed-citation xml:lang="en">Nikolich A., Korolev K., Shelmanov A. Vikhr: The family of opensource instruction-tuned large language models for Russian. arXiv, 2024, arXiv:2405.13929v2. https://doi.org/10.48550/arXiv.2405.13929</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
