![]() |
|
How LLM models try to understand Voynichese - Printable Version +- The Voynich Ninja (https://www.voynich.ninja) +-- Forum: Voynich Research (https://www.voynich.ninja/forum-27.html) +--- Forum: Analysis of the text (https://www.voynich.ninja/forum-41.html) +--- Thread: How LLM models try to understand Voynichese (/thread-4803.html) |
How LLM models try to understand Voynichese - quimqu - 16-07-2025 Dear Voynich Ninja community, As you might know, I’ve been working on training LLM Large Language Models (GPT-like models) on Voynich EVA transliterations. This is not about using ChatGPT, but about training language models from scratch using only Voynich EVA text. I’m aware that GPT models are a sort of black box, and it’s often hard to understand the mechanisms they use to “learn” patterns. In this project, I’ve tried to explore how the GPT model makes predictions — to gain some intuition into the decision-making process. Let me first introduce the key concepts I’ve been working with:
What I did: First, I optimized model parameters to maximize the number of real bigrams and trigrams (n-grams) generated by the model. Results are similar to training GPT on a real natural language text. Results after training on Voynich EVA text: % of 2-grams found in Voynich EVA with block_size 4: 22.40% (224/1000) % of 3-grams found in Voynich EVA with block_size 4: 0.80% (8/999) Then, I trained the model on all paragraph-style lines in the Voynich manuscript (i.e., excluding labels or isolated words from cosmological sections). I used a 5-fold cross-validation approach:
I then visualized the predictions using HTML files (saliency_valset_voynich_1.html to saliency_valset_voynich_5.html) You are not allowed to view links. Register or Login to view. You are not allowed to view links. Register or Login to view. You are not allowed to view links. Register or Login to view. You are not allowed to view links. Register or Login to view. You are not allowed to view links. Register or Login to view. ![]() Each word is annotated with three values:
This visualization makes it easy to see at a glance which words the model finds easier or harder to predict. The HTML is interactive — hovering over any word shows the 3 metrics mentioned above. Deeper inspection: I also created a second HTML file: context_saliency_colored_and_target.html that looks like this: You are not allowed to view links. Register or Login to view. [size=1] [/size]This version shows for each word in the Voynich EVA paragraph:
The model tends to predict the most frequent words in the Voynich corpus, as expected. However, the saliency values let us observe which previous words influenced the prediction the most, token by token. I highlighted:
I don't have any conclusions yet, but I think this could be useful for others interested in understanding how contextual information influences predictions in GPT-like models trained on Voynich EVA. Let me know what you think — I’d love to hear your thoughts! RE: How GPT-like models try to read Voynichese - oshfdk - 16-07-2025 RE: How GPT-like models try to read Voynichese - quimqu - 16-07-2025 RE: How GPT-like models try to read Voynichese - Jorge_Stolfi - 16-07-2025 RE: How GPT-like models try to read Voynichese - Jorge_Stolfi - 16-07-2025 RE: How GPT-like models try to read Voynichese - quimqu - 17-07-2025 RE: How LLM models try to understand Voynichese - stopsquark - 28-09-2025 |