Lyudmila Rvanova
Author directory2026
Extending LLM Context via Associative Recurrent Memory
Gleb Kuzmin | Ivan Rodkin | Aydar Bulatov | Yuri Kuratov | Lyudmila Rvanova | Mikhail Katkov | Ilia Sochenkov | Misha Tsodyks | Timothy Baldwin | Mikhail Burtsev | Artem Shelmanov
Findings of the Association for Computational Linguistics: EMNLP 2026
Gleb Kuzmin | Ivan Rodkin | Aydar Bulatov | Yuri Kuratov | Lyudmila Rvanova | Mikhail Katkov | Ilia Sochenkov | Misha Tsodyks | Timothy Baldwin | Mikhail Burtsev | Artem Shelmanov
Findings of the Association for Computational Linguistics: EMNLP 2026
Extending the context length of large language models (LLMs) is critical for many real-world applications, yet standard transformers remain constrained by quadratic compute and linear memory scaling. In this work, we investigate the Associative Recurrent Memory Transformer (ARMT) as a practical approach for enabling long-context processing in LLMs, constant memory scaling, and better efficiency. We make three main contributions. First, we construct two domain-specific long-context datasets designed to evaluate realistic workloads, focusing on narrow-domain fine-tuning scenarios. Second, we propose a comprehensive training recipe for ARMT-based context extension, combining continued pre-training, synthetic long-context data generation, curriculum learning, and selective integration of associative memory into chosen model layers. Third, we present an extensive experimental study demonstrating that ARMT-augmented models: (i) process inputs well beyond their original context limits without degrading performance relative to in-limit baselines; (ii) generalize more effectively to out-of-distribution context lengths; and (iii) need 30% fewer FLOPs while preserving baseline performance within the original context window.
Efficient Hallucination Detection in Automatic Code Generation
Georgii Andriushchenko | Roman Garaev | Lyudmila Rvanova | Artem Shelmanov | Vladimir V. Ivanov
Findings of the Association for Computational Linguistics: ACL 2026
Georgii Andriushchenko | Roman Garaev | Lyudmila Rvanova | Artem Shelmanov | Vladimir V. Ivanov
Findings of the Association for Computational Linguistics: ACL 2026
Large language models (LLMs) frequently produce source code that seems correct and well-formed, yet includes hallucinated elements that cause downstream test failures. In this study, we benchmark state-of-the-art uncertainty quantification methods and existing baselines for the task of hallucination detection in source code and introduce a diff-based pipeline to construct a code dataset annotated with line-level hallucinations. Building on this, we train a lightweight Transformer-based detector that uses LLM internal representations to identify hallucinations, substantially outperforming existing methods across several code generation domains. The detector also shows particular promise for enabling self-correction in LLM-based coding agents. We release the first publicly available dataset of line-level code hallucinations, along with the corresponding source code and trained hallucination detectors https://github.com/datapaf/CodeHallucinationDetection
Uncertainty Guardrails for LLM-Based Medical Diagnostic Systems
Gleb Kuzmin | Lyudmila Rvanova | Ilia Kopanichuk | Vladimir Makharev | Ivan Bakulin | Vladimir Shaposhnikov | Artem Oskin | Petr Anokhin | Aleksandr Nesterov | Artem Vazhentsev | Alexander Panchenko | Elena Tutubalina | Iaroslav Radionovich Bespalov | Dmitry V. Dylov | Artem Shelmanov | Ivan Oseledets
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: Industry Track
Gleb Kuzmin | Lyudmila Rvanova | Ilia Kopanichuk | Vladimir Makharev | Ivan Bakulin | Vladimir Shaposhnikov | Artem Oskin | Petr Anokhin | Aleksandr Nesterov | Artem Vazhentsev | Alexander Panchenko | Elena Tutubalina | Iaroslav Radionovich Bespalov | Dmitry V. Dylov | Artem Shelmanov | Ivan Oseledets
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: Industry Track
Large language models (LLMs) are increasingly being adopted in clinical practice, e.g., in medical diagnostic systems. However, their reliability is still a concern, as LLMs are prone to hallucinations and could lead to misdiagnosis, inappropriate treatment decisions, and potential harm to patients. To mitigate these risks, LLM-based medical diagnostic systems should incorporate safety guardrails capable of detecting suspicious predictions and flagging them for human review or further clinical assessment. In this work, we employ uncertainty quantification (UQ) as a safety mechanism within an enterprise diagnostic system. We evaluate 16 UQ methods and propose two task-specific modifications tailored to the medical diagnostic workflow. First, we show that methods based on semantic similarity between generated samples substantially benefit from replacing a general-purpose NLI model with a domain-specific model. Second, we adapt a supervised UQ method that relies on LLM internal states for the detection of erroneous generation from a black-box enterprise LLM accessible only through a text-generation API. Our approach leverages the internal states of an open-source, lightweight proxy white-box model. We demonstrate that this approach outperforms all other UQ methods in the considered setting.
2025
Benchmarking Uncertainty Quantification Methods for Large Language Models with LM-Polygraph
Roman Vashurin | Ekaterina Fadeeva | Artem Vazhentsev | Lyudmila Rvanova | Daniil Vasilev | Akim Tsvigun | Sergey Petrakov | Rui Xing | Abdelrahman Sadallah | Kirill Grishchenkov | Alexander Panchenko | Timothy Baldwin | Preslav Nakov | Maxim Panov | Artem Shelmanov
Transactions of the Association for Computational Linguistics, Volume 13
Roman Vashurin | Ekaterina Fadeeva | Artem Vazhentsev | Lyudmila Rvanova | Daniil Vasilev | Akim Tsvigun | Sergey Petrakov | Rui Xing | Abdelrahman Sadallah | Kirill Grishchenkov | Alexander Panchenko | Timothy Baldwin | Preslav Nakov | Maxim Panov | Artem Shelmanov
Transactions of the Association for Computational Linguistics, Volume 13
The rapid proliferation of large language models (LLMs) has stimulated researchers to seek effective and efficient approaches to deal with LLM hallucinations and low-quality outputs. Uncertainty quantification (UQ) is a key element of machine learning applications in dealing with such challenges. However, research to date on UQ for LLMs has been fragmented in terms of techniques and evaluation methodologies. In this work, we address this issue by introducing a novel benchmark that implements a collection of state-of-the-art UQ baselines and offers an environment for controllable and consistent evaluation of novel UQ techniques over various text generation tasks. Our benchmark also supports the assessment of confidence normalization methods in terms of their ability to provide interpretable scores. Using our benchmark, we conduct a large-scale empirical investigation of UQ and normalization techniques across eleven tasks, identifying the most effective approaches.
Token-Level Density-Based Uncertainty Quantification Methods for Eliciting Truthfulness of Large Language Models
Artem Vazhentsev | Lyudmila Rvanova | Ivan Lazichny | Alexander Panchenko | Maxim Panov | Timothy Baldwin | Artem Shelmanov
Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)
Artem Vazhentsev | Lyudmila Rvanova | Ivan Lazichny | Alexander Panchenko | Maxim Panov | Timothy Baldwin | Artem Shelmanov
Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)
Uncertainty quantification (UQ) is a prominent approach for eliciting truthful answers from large language models (LLMs). To date, information-based and consistency-based UQ have been the dominant UQ methods for text generation via LLMs. Density-based methods, despite being very effective for UQ in text classification with encoder-based models, have not been very successful with generative LLMs. In this work, we adapt Mahalanobis Distance (MD) – a well-established UQ technique in classification tasks – for text generation and introduce a new supervised UQ method. Our method extracts token embeddings from multiple layers of LLMs, computes MD scores for each token, and uses linear regression trained on these features to provide robust uncertainty scores. Through extensive experiments on eleven datasets, we demonstrate that our approach substantially improves over existing UQ methods, providing accurate and computationally efficient uncertainty scores for both sequence-level selective generation and claim-level fact-checking tasks. Our method also exhibits strong generalization to out-of-domain data, making it suitable for a wide range of LLM-based applications.
Search
Fix author
Co-authors
- Artem Shelmanov 5
- Timothy Baldwin 3
- Alexander Panchenko 3
- Artem Vazhentsev 3
- Gleb Kuzmin 2
- Maxim Panov 2
- Georgy Andryushchenko 1
- Petr Anokhin 1
- Ivan Bakulin 1
- Iaroslav Radionovich Bespalov 1
- Aydar Bulatov 1
- Mikhail Burtsev 1
- Dmitry V. Dylov 1
- Ekaterina Fadeeva 1
- Roman Garaev 1
- Kirill Grishchenkov 1
- Vladimir V. Ivanov 1
- Mikhail Katkov 1
- Ilia Kopanichuk 1
- Yurii Kuratov 1
- Ivan Lazichny 1
- Vladimir Makharev 1
- Preslav Nakov 1
- Alexandr Nesterov 1
- Ivan Oseledets 1
- Artem Oskin 1
- Sergey Petrakov 1
- Ivan Rodkin 1
- Abdelrahman Sadallah 1
- Vladimir Shaposhnikov 1
- Ilia Sochenkov 1
- Misha Tsodyks 1
- Akim Tsvigun 1
- Elena Tutubalina 1
- Roman Vashurin 1
- Daniil Vasilev 1
- Rui Xing 1