• Main Navigation
  • Main Content
  • Sidebar

Russian Digital Libraries Journal

  • Home
  • About
    • About the Journal
    • Aims and Scopes
    • Themes
    • Editor-in-Chief
    • Editorial Team
    • Submissions
    • Open Access Statement
    • Privacy Statement
    • Contact
  • Current
  • Archives
  • Register
  • Login
  • Search
Published since 1998
ISSN 1562-5419
16+
Language
  • Русский
  • English

Search

Advanced filters

Search Results

Fuzzy-Logic Adaptation of the Decoding Selectivity Coefficient in Autoregressive Text Generation by Language Models

Maksim Vladimirovich Bobyr, Natalya Anatolyevna Milostnaya, Svetlana Yurievna Belskaia
1880-1905
Abstract:

In autoregressive text generation using language models (LLM), the next token is selected using a softmax function with a fixed decoding coefficient equal to one, which is the same for all generation steps and all text types. This approach does not take into account the dynamically changing linguistic characteristics of the generated context. For example, a text with high lexical diversity requires high selectivity, meaning the decoding coefficient should be small. A monotone, repetitive context requires a smoother distribution, meaning the decoding coefficient should be large. This article proposes a fuzzy controller for calculating the decoding selectivity coefficient using two linguistic features: the lexical diversity of the generated context and the Shannon entropy of the probability distribution at the previous step. The fuzzy controller is implemented using the Mamdani algorithm with a base of nine fuzzy logic rules and a defuzzifier based on the center-of-gravity method. The effectiveness of the proposed approach lies in the fact that for terminologically rich text, the fuzzy controller reduces the Shannon entropy of the probability distribution by more than 20 times compared to the standard approach.

Keywords: Fuzzy inference, Mamdani algorithm, autoregressive generation, Softmax, LLM, selectivity coefficient, TTR, probability entropy, GPT.

Cognitive Adaptation of Sliding Window Parameters of Large Language Models Based on a High-Speed Area Ratio Method

Ekaterina Olegovna Brezhneva
1906-1923
Abstract:

This paper proposes a method for adaptive control of sliding window parameters in large language models (LLMs) based on Mamdani fuzzy inference with defuzzification using the high-speed area ratio method (MAR-II). The input variables are the type-token ratio (TTR) and the average BPE token length (ATL), interpreted as measurable correlates of the cognitive load of a text fragment. A nine-rule fuzzy controller generates the sliding window stride and context length (max_length). MAR-II is compared with the center of gravity (CoG) method across a 25×25 grid of input space points (RMSE: 99.9 tokens for stride, 147.4 tokens for max_length). It is demonstrated that MAR-II ensures the additivity of the fuzzy model and eliminates the systematic errors of CoG, achieving a single-inference computation time of approximately 35 ns on a Xilinx Spartan 3E FPGA.

Keywords: cognitive modeling, fuzzy logic, area ratio method, sliding window, language model, FPGA, defuzzification, Mamdani fuzzy controller.

Fuzzy-Logic Adaptation of Sliding Window Parameters in Data Preparation for Large Language Models

Maxim Vladimirovich Bobyr, Natalya Anatolyevna Milostnaya, Svetlana Yurievna Belskaia
1318-1337
Abstract:

The article proposes a fuzzy regulator for calculating sliding window parameters to prepare training data for Large Language Models. The traditional approach sets the stride and context length parameters as fixed constants, uniform for the entire text, and does not account for the linguistic characteristics of individual fragments, such as dense scientific text and monotonous, repetitive text. The proposed method utilizes two automatically computed features of a fragment: lexical diversity and the average BPE token length. Based on the Mamdani algorithm with a base of 9 fuzzy logic rules and defuzzification using the center of gravity method, the fuzzy regulator adaptively calculates the stride and context length values for each fragment. The proposed approach has a cognitive interpretation, as it mimics the mechanism of adaptive human attention during reading, for example, complex fragments are processed more attentively with a small stride size.

Keywords: fuzzy inference, Mamdani algorithm, sliding window, LLM (Large Language Model), type-token ratio, BPE tokenization, cognitive modeling, adaptive text processing.
1 - 3 of 3 items
Information
  • For Readers
  • For Authors
  • For Librarians
Make a Submission
Current Issue
  • Atom logo
  • RSS2 logo
  • RSS1 logo

Russian Digital Libraries Journal

ISSN 1562-5419

Information

  • About the Journal
  • Aims and Scopes
  • Themes
  • Author Guidelines
  • Submissions
  • Privacy Statement
  • Contact
  • eLIBRARY.RU
  • dblp computer science bibliography

Send a manuscript

Authors need to register with the journal prior to submitting or, if already registered, can simply log in and begin the five-step process.

Make a Submission
About this Publishing System

© 2015-2026 Kazan Federal University; Institute of the Information Society