MEMO²
العربية ?

📖 Terminology

62 terms you will see in MEMO², from token to ANOVA, in plain language with an example for each.

How to use MEMO²

Text and tokens

Token #

The smallest piece of text a model reads: a whole word, part of one, or a character.

Example: “factories” may become “factor” + “ies”.

Tokenizer الـTokenizer (المُقطِّع) #

The tool that splits text into tokens and gives each token a number.

Example: “What is the mean efficiency?” → 8 tokens with ids like 950 and 1149.

BPE (byte-pair encoding) BPE (دمج أزواج البايت) #

A way to build a tokenizer: start from characters, then repeatedly merge the most frequent pair.

Example: “t”+“h” is frequent, so it becomes one token “th”.

Vocabulary (vocab size) المفردات (حجم القاموس) #

How many different tokens the tokenizer knows.

Example: MEMO²'s bundled tokenizer has 2,000; GPT-4o has about 200,000.

Byte token <0x..> Token بايت <0x..> #

When the tokenizer meets a character it never saw in training, it writes it as raw bytes.

Example: The symbol “•” shows as <0xE2><0x80><0xA2>.

Normalization التطبيع #

Making spellings uniform before search, such as hamza forms, taa marbuta and diacritics.

Example: “Café” → “cafe”.

Stopwords الكلمات المُهمَلة #

Very common words that do not help search, so they are ignored.

Example: “in”, “what”, “the”.

Glossary mapping مطابقة المعجم #

Linking a word to its equivalent in another language so search finds Arabic and English sources together.

Example: mean → متوسط, factory → مصنع.

Models and training

Large language model (LLM) نموذج لغوي كبير (LLM) #

A huge model trained on very large amounts of text to write text, such as GPT, Claude and Gemini. Optional in MEMO².

Example: Without an OpenAI key the answer stays local: MEMO extractive.

n-gram model نموذج n-gram #

The simplest language model: predicts the next character or word from the last n−1 items.

Example: Trigram: after “th” it expects “e”.

Transformer #

The architecture behind modern models: reads all tokens together and attends to the important ones. MEMO² has a small teaching version.

Example: About 40 thousand parameters vs 175 billion in GPT-3.

Attention الانتباه (Attention) #

How the model decides which earlier words matter most for the next one.

Example: In “Riyadh panel efficiency” it attends to “Riyadh”.

Parameters المعاملات (Parameters) #

The numbers a model learns during training. Their count shows its size.

Example: 40,479 parameters in MEMO²'s Transformer.

Pre-training التدريب المسبق #

The first stage: the model learns to predict the next character from lots of text.

Example: Test loss from 4.98 to 3.41.

Post-training (SFT) التدريب اللاحق (SFT) #

The second stage: teaching the model “question → answer” pairs from your project; loss counts only the answer.

Example: Answer loss from 1.65 to 1.09.

Replay and forgetting إعادة التشغيل والنسيان #

Mixing the first training text into post-training so the model does not forget. Forgetting = change in its loss on that text.

Example: Forgetting −0.04 means it did not forget.

RLHF #

Improving a model with human ratings: a reward model learns what people prefer, then the model is trained to satisfy it.

Example: Used for ChatGPT. In MEMO² your ratings train the evaluator.

Softmax #

A function that turns the model's scores into probabilities that sum to 1.

Example: “2”: 0.60, “t”: 0.08, ...

Loss (cross-entropy) الخسارة (Cross-entropy) #

The average −ln p of the true character. Lower is better.

Example: p = 0.5 → loss 0.69.

Perplexity Perplexity (الحيرة) #

e to the power of the loss: as if the model were choosing among this many options. Lower is better.

Example: Perplexity 2.98 out of 111 possible characters.

Learning rate معدّل التعلّم #

How big each parameter update is. Too large ruins learning; too small slows it.

Example: η = 0.0003 in post-training.

Overfitting فرط التخصيص #

When a model memorizes its training data and does worse on new data.

Example: Training loss falls while test loss rises.

Machine-learning evaluation

Evaluator (ML) المُقيِّم (ML evaluator) #

A machine-learning model that predicts the probability an answer is right, learning from your ratings.

Example: Confidence 43%.

Features الخصائص (Features) #

The numbers the evaluator sees about an answer: coverage, support, number of citations...

Example: n_citations = 2.

Logistic regression الانحدار اللوجستي #

A simple model that weights the features, then turns the sum into a probability between 0 and 1.

Example: p = 1 ÷ (1 + e^−z).

Random forest الغابة العشوائية #

Many decision trees vote, and the result is the majority view.

Example: Best model: Random Forest.

Train/test split تقسيم التدريب والاختبار #

Some data is kept away from training so the model can be tested fairly.

Example: 76 for training and 17 for testing.

Accuracy الدقة (Accuracy) #

The share of all predictions that were right.

Example: 12 right out of 17 = 0.706.

Precision and recall الضبط والاستدعاء #

Precision: of those it called right, how many were? Recall: of those truly right, how many did it find?

Example: Precision 1.0, recall 0.15.

F1 #

One number combining precision and recall (their harmonic mean).

Example: F1 = 0.783.

AUC #

The chance the model scores a right answer above a wrong one. 0.5 = random, 1 = perfect.

Example: AUC = 0.654.

Brier score and calibration Brier والمعايرة #

Brier = mean of (probability − truth)². Calibration means “70%” is right 70% of the time.

Example: Brier 0.252; lower is better.

Statistics and ANOVA

Mean and standard deviation المتوسط والانحراف المعياري #

The mean x̄ is the central value; the deviation s measures how spread out the values are.

Example: x̄ = 0.869, s = 0.263.

ANOVA (analysis of variance) ANOVA (تحليل التباين) #

A test that compares the means of several methods and gives evidence of a difference among them overall; which pairs differ comes from follow-up comparisons.

Example: BM25, TF-IDF and Hybrid on 14 questions.

Repeated measures القياسات المتكررة #

Every method is measured on the same questions, so we compare methods, not question difficulty.

Example: Question 3 is hard for all, so it does not penalize one method.

F statistic إحصاءة F #

F = variation between methods ÷ random variation. The bigger it is, the clearer the difference.

Example: F(2, 26) = 2.69.

p-value قيمة p #

The probability of seeing a difference this large or larger if the methods were truly equal. It is not the probability that the difference is chance. Below 0.05 counts as evidence of a difference.

Example: p = 0.087 → no proven difference.

Effect size η² حجم الأثر η² #

How much of the variation the methods explain. It says how big the difference is, not whether it exists.

Example: η²p = 0.17 is a fairly large effect.

Greenhouse–Geisser correction تصحيح Greenhouse–Geisser #

A correction to p when the methods' differences are unequal, keeping the test fair.

Example: pGG = 0.115.

Holm comparisons and Friedman test مقارنات Holm و Friedman #

Holm compares each pair of methods, correcting for many comparisons. Friedman is an alternative that does not assume a normal distribution.

Example: BM25 vs TF-IDF: adjusted p = 0.21.

Data and the project

Project المشروع #

A separate space for one topic: its sources, chats, experiments and brain.

Example: “Energy in factories”.

Dataset types أنواع مجموعات البيانات #

Training: to teach models. Evaluation: questions and answers used only to test them. Text, Q&A or JSONL.

Example: A JSONL file with {"question": ..., "answer": ...}.

Connector (ERP and databases) الموصّل (ERP وقواعد البيانات) #

A direct link to your company system such as Odoo, Oracle or SAP; it pulls tables read-only and refreshes them on a schedule.

Example: Pull sales orders from Odoo, then ask “what is the total sales?”.

Brain الدماغ #

The project's memory: answered questions, your ratings, corrections and Lab results.

Example: A similar earlier question with 👍.

Share link رابط المشاركة #

A read-only link to your project; it can expire and does not allow edits.

Example: A team-review link for 30 days.