Sthiti teaches a frozen model new facts with two neurons each, and switches a fact off if it might misfire
A continual-learning package adds facts to small Qwen models as ordinary feed-forward neurons. It keeps old knowledge far better than LoRA and learns less per round.
Sthiti, by Nandakishor M of Embedding Space, adds facts to a language model after release, one at a time, without training any of the weights it shipped with. Each new subject costs two neurons in one early layer. The README is careful about where this loses to fine-tuning.
How it works
The usual way to teach a model something new is to nudge many weights, often through a LoRA adapter. Sthiti widens one feed-forward layer instead: layer 5 of 24 in Qwen3.5-0.8B, layer 6 of 32 in Qwen3.5-4B. Each subject gets three things. A key, computed in closed form with no training, detects the subject’s name. A threshold decides when the detector counts as firing, set halfway between the subject’s weakest score on its own wordings and the strongest score from anything else. A value vector is then fitted with 20 to 40 optimizer steps so that the frozen model produces the right answer.
Together the two neurons output roughly nothing below the threshold and the full value above it. Because they are ordinary neurons, the result loads as a plain transformers checkpoint.
When a new name cannot be separated from an older one, the new subject is switched off instead of being allowed to fire on the wrong name. Sthiti can also learn from plain sentences with no answer key: the model writes study questions, answers them with the sentence in view, and discards any where its answers disagree.
The numbers
All figures are the author’s, from one seed and one model family. Teaching Qwen3.5-0.8B 1,000 facts one at a time, Sthiti answered 58.9 percent of earlier facts in new wording and kept 96.1 and 98.2 percent of two pools of facts the model already knew. LoRA at one learning rate managed 5.7 percent and kept 29.7 and 24.1. Forty-one of the 1,000 subjects were switched off.
The table the README does not hide: in a single round of 1,000 facts on the 4B model, LoRA learned more, 88.7 percent against 69.8, and did it in 101 seconds against 978. It also kept only 51.8 percent of one pool of known facts, where Sthiti kept 98.8.
Other costs are listed too. Growth is unbounded at two neurons per subject, and at 1,000 subjects feed-forward work rises 56 percent on the small model. The goal of running on a laptop is marked as not yet met: about five minutes per fact on a MacBook CPU. The author has not compared against other editing methods such as NeuralDB or T-Patcher.
The README also discloses a bug found on December 5. A switched-off subject’s second neuron was still adding about 0.25 percent of its value on every token. It is fixed, but earlier runs contain it.
Try it yourself
pip install sthiti, under Apache 2.0. The repo links a Colab notebook for a free T4.
We have not run it or reproduced any figure. This is based on the README.