Gali0.6 preview · draft

Gali: a small large language model between the halves of a frozen multilingual autoencoder

Draft, Gali 0.6 preview (tied to Mova 0.6). Elamur, November 2026. Open to edits until Mova 0.6 is released.

Abstract

We describe Gali, a small large language model (sLLM) built around Mova, a deterministic parser and small language model (SLM). Gali never reads or writes characters: a multilingual encoder–decoder autoencoder, trained on about 280 languages with Mova's markup and then frozen, turns tokens into states and back, and Gali — a 40-block trunk with long skips and two 8-block branches — works between its halves. One branch writes the answer, the other writes Gali's own work: a thought in English and memory cells. Gali answers in passes, each reading the input together with the previous answer and work. Every training target is known without any AI: Mova's parses, human translations, and tasks built by code. We give examples from our experiments with their controls, including results that disappointed; full comparisons with alternative designs are left for later.

1. Introduction

Large language models learn language, knowledge and reasoning in one set of weights from raw text. Gali splits the problem. Reading and writing text — tokenisation, morphology, markup, many scripts — is learnt once by an autoencoder and frozen; Gali learns only what lies between reading and writing. The markup the autoencoder rebuilds is Mova's: dependency relations, pragmatics, features and WordNet concepts, so Gali's answers can carry it too. Gali thinks in English, whatever the language of the question and of the answer.

The autoencoder follows multilingual sequence-to-sequence pretraining (mBART, Liu et al. 2020; T5, Raffel et al. 2020), where one set of weights serves every language and a shared space appears without translation. Gali's passes over its own earlier output relate to recurrent-depth reasoning (Geiping et al. 2025) and to the deep supervision of hierarchical reasoning models (Wang et al. 2025; Jolicoeur-Martineau 2025). The long skips inside the encoder and the trunk are a sparse form of DenseFormer's depth-weighted averaging (Pagliardini et al. 2024). The idea list is a k-nearest-neighbour memory in the spirit of Memorizing Transformers (Wu et al. 2022) and kNN-LM (Khandelwal et al. 2020), and the pair of fast session memory and slow permanent memory follows complementary learning systems (McClelland et al. 1995). Latent reasoning without tokens (Coconut, Hao et al. 2024) is the alternative we did not take: Gali's thoughts are written in English tokens, so they can be read and supervised.

3. Architecture

Gali is a transformer that never reads or writes characters itself. A multilingual autoencoder, trained first and then frozen, turns tokens into states and states back into tokens; Gali works on those states in between. This draft describes the design of the preview tied to Mova 0.6.

Gali's architecture: text is read by the frozen encoder, Gali's trunk and its two branches work on the states, the frozen decoder writes the answer and the work, and each pass reads the input with the previous answer and workText in any languagea bank turns it into tokens of 16 384 idsEncoder · frozen16 blocks, width 512; skips 4 → 9, 7 → 12Gali's trunk20 blocks, width 512; skips 4 → 12 and 8 → 16Output branch4 blocks: the answerWork branch4 blocks: thought and memory cellsDecoder · frozen16 blocks: writes tokens, each stream seeded with its language and roleAnswer@my_out, in the asked languageWork@my_work, in English or Lojbannext pass: input + answer + work, at least 3 passestrained
Gali works only between the frozen halves of the autoencoder. The trunk and both branches are trained; the encoder, the decoder and the banks are not. Each pass reads the input together with the previous pass's answer and work.

The autoencoder: one reader and one writer for all languages

The autoencoder is a 16 + 16-block encoder–decoder transformer of width 512 (126 million parameters) with one set of weights for every language, working in the 16 384 ids of the vocabulary. It is trained to rebuild a text from its bare words with the markup Mova would write, then frozen: Gali uses its encoder to read and its decoder to write. Its design, tasks and measurements have a page of their own.

Gali: a trunk and two branches

one pass through Gali
  1. the encoder reads the input (and, from the second pass, the previous answer and work)
  2. Gali's trunk: 40 blocks of width 512, with long skips 8 → 24, 12 → 28 and 16 → 32
  3. the output branch (8 blocks) → the decoder writes the answer
  4. the work branch (8 blocks) → the decoder writes the work: a thought in English, memory cells

The trunk is a stack of 40 bidirectional transformer blocks of width 512 with 8 heads, the autoencoder's own width, so its states come in and leave through projections that start as identities. Three long skips carry the outputs of blocks 8, 12 and 16 into the inputs of blocks 24, 28 and 32, each through a linear map that starts at zero: the first blocks and the last ones work on their own, and the skips overlap in the middle. (The first Gali of this preview, whose results are below, had 20 blocks with skips 4 → 12 and 8 → 16 and branches of 4 blocks, on the earlier 12 + 12 × 384 autoencoder.)

After the trunk the stream splits into two parallel branches of 8 blocks each, with their own projections back to the autoencoder's width. The output branch writes the answer. The work branch writes everything that is the system's own: the thought in English before an answer, and the cells of memory. The same frozen decoder writes from either branch; what tells the two streams apart is the role token seeded into them (@out or @work, see below).

Every residual branch of Gali's blocks, every skip and every re-injection starts at zero, and the projections start as identities. So before training Gali is the identity: the decoder simply rewrites what the encoder read. Every gain is measured from that baseline.

Trunk40 blocks × width 512, 8 heads, skips 8 → 24, 12 → 28 and 16 → 32
Branchesoutput 8 blocks, work 8 blocks
Parametersabout 176 million (the first Gali: 89.5 million)
First stage of trainingone pass, no scenes; passes, memory and scenes come second

Passes: input, then output, then work

Gali answers in passes. On the first pass the encoder reads the input; the output branch writes an answer and the work branch writes a thought. On every later pass the encoder reads the input followed by the previous pass's answer and then its work, in this order, and both branches write again. The preview uses at least three passes.

In training the earlier answer is the right one with about 30 % of its tokens dropped, so the output branch learns to correct an answer rather than to copy it. In use, every pass reads Gali's own earlier output.

The thought is written in English, whatever the languages of the input and the answer. English has the richest parses of Mova and the most parallel text, so it is the language Gali thinks in; the answer is written in the language that was asked for. In this preview the work streams are also trained in Lojban, a logical language whose grammar has no ambiguity of structure, wherever a Lojban translation of the source exists (Mova's Lojban grammar).

Seeds: the language and the role, planted in every stream

Each stream — what the encoder reads, the answer, the work — carries a seed unit: the language's tag and a role token (@in, @out, @work). The unit stands twice at the start, again after 1, 2, 4 and 8 tokens, and then about every 16. The beginning is exact. Later only the density matters: a seed that comes too early or too late is wrong; its exact place is not. These tokens mean little by themselves. They keep the language and the role in view over long sequences.

Memory

Memory is made of cells, each one vector of Gali's own width (512 numbers, 1 KB in 16-bit floats). A prompt has a few write slots in front of Gali's input; after the prompt's answer is known, a short write pass reads the input with the answer, and the slots' states after the work branch become the prompt's cells. So a cell knows both the question and the answer.

Whether 4 cells per prompt are enough, or 8 are needed, is measured in this preview.

What is not here

Gali does not search the web, does not call tools and has no hidden channel: its thoughts and its memory are written in tokens or kept as cells that can be listed. Its weights and code are not published. These pages describe the design; they are drafts and will change.

4. Training

The autoencoder is trained first, on its own; then it is frozen and Gali is trained between its halves. Every task has an answer that is known without any AI: Mova's parse of the text, a human translation, or a chain of numbers built by code.

The autoencoder's tasks

Text rebuilt with its markup, chains of numbers rewritten from one language's tokens into another's, and shared prompts diluted with words: see the autoencoder.

Gali's tasks

Numbersthe same chains, through Gali
Translationhuman sentence pairs from Tatoeba between its languages, in both directions, with Tatoeba's own split into training and held-out translation groups
Workthe English translation of the source, as the thought before the answer
Recalla prompt that holds only @recall must give back the earlier prompt of the session in another language, from the session's cells alone

The thought needs no AI either: Tatoeba groups translations of one sentence, so the English member of the group is the thought for any other pair in it. The open parallel corpora collected for Elamur — Europarl, the UN Parallel Corpus, the EU's translation memories and others, human translations under open licences — come next.

Losses

Data

Gali learns translation from human sentence pairs (Tatoeba: 8.5 million pairs among its languages, with its own split into training and held-out translation groups) and number chains built by code; its autoencoder reads about 830 million ids of text in about 280 languages — the sources, tasks and banks are described in the autoencoder paper. Nothing written by another AI model is in the training data. Every source, with its authors and licence: data and credits.

5. Examples from our experiments

The experiments below ran on the preview's first generation — the 12 + 12 × 384 autoencoder and the 20-block Gali; the 0.6 autoencoder's own runs are in its paper.

This preview does not compare Gali with full alternative designs: there are no resources for such ablations yet. Below are examples from our own experiments, each with its date and the control it was read against.

The autoencoder

The autoencoder's own results, the layer probe and the skip test are on its page and in the study of the skip.

The skip from block 4 into block 8

Two autoencoders were continued from the same parent for 20 000 steps on the same data in the same order, one with a skip that adds block 4's states into block 8, one without (19 November 2026). With the skip, whole lines rebuilt without an error were ahead at every evaluation (35.9 % against 26.6 % at the end), the markup was behind (80.4 % against 83.5 %), and numbers were even (95.3 % and 96.9 %).

A probe of the token itself shows what the skip does: blocks 5 to 7 let the token fade faster (94.9 % against 98.1 % at block 7), block 8 brings it back, and at the top the two are the same (91.6 % and 91.9 %). The skip changes where the identity is held, not how much of it survives. We kept it: the idea is that a few blocks may work without the input's hints in between, as parallel work, while the long connection lowers the loss of what the input said.

Continuing instead of starting over

We do not train the autoencoder from scratch when its tasks or data grow: it continues from its last checkpoint while the vocabulary layout stays. The cost is a dip, often deep, and then recovery:

A model that has to keep old skills while it learns new ones loses them for a while; the evaluation sets change with the data, so numbers across these steps are read as trends, not as a table.

The autoencoder as a checker of Mova

The markup is only a light hint in the loss, so where the autoencoder confidently disagrees with Mova, one of the two is wrong. On 430 held-out English sentences (20 November 2026; the autoencoder reads the bare words and is given Mova's markup so far), 39 775 markup positions, 4 408 disagreements, 379 with the autoencoder's own label at probability 0.9 or more. Case is not judged: the input has none. Of six cases we picked by hand as likely Mova errors, four were — an imperative form on a list fragment, a year read as the root, a compound for an adjective, an infinitive for a finite verb — and two were the autoencoder's mistakes. Mova's maintainers fixed the four with general rules; on the GUM and PUD treebanks 67 more tokens got the right labelled head and 40 the right head, and none of the 379 rows moved the wrong way.

A control plants errors: 5 % of Mova's labels are replaced by another label of the same family before the autoencoder reads them.

familyplantedflagged at p ≥ 0.9restored to Mova's original
part of speech36562 %84 %
dependency relation36363 %83 %
head (distance)34746 %71 %
all152664 %83 %

So an error of this kind is caught about two times in three, and the head is the weakest family. A random confident disagreement is a Mova error in perhaps a third of cases: these are leads for review, not verdicts.

A trap: copying the answer from the streams

The larger Gali reads, in some scenes, the noisy answer of another copy of Gali beside the source. After 24 000 steps its translations scored the same with the right source and with another source (word F1 0.075 and 0.072), while chains of numbers, which need the source, were right 78 % of the time: it had learnt to copy the streams. Making half of the translation items plain did not change that in the next 20 000 steps (0.136 and 0.133). The many translation directions at once (128 in the evaluation) are the next suspect; on English and French alone the small Gali followed its source clearly.

Translation

The control for translation is the same model given another source sentence of the same direction: a model that ignores its input scores the same on both.

So on two languages the answer clearly follows the source; across 30 it barely does yet, and the larger Gali (above) does not yet either. Character F-score (chrF) is reported beside word F1.

6. Limitations

The autoencoder is small for the about 280 languages it now reads, and translation across many languages does not yet follow the source. Concept labels from the most frequent WordNet sense and from Wikipedia links are noisy; they are only a light hint in the loss. Gali thinks in English (and in Lojban where it can): whatever does not pass well into English — an aspect system, an evidential, a pun, a register — can be lost in the thought before the answer is written. This is a deliberate trade: a thought in tokens of a language with rich parses can be read, checked and supervised, which a thought in hidden states cannot. A language of Gali's own, built on a logical language, is reserved for later. The passes and the seeds are new and their effect is not yet measured. Gali's weights and code are not published; these pages describe the design.

References

This page in Markdown https://md.gali.elamur.ai/free/en/0.6/papers/gali/