Skip to content
Proyek

Tentang

A training method beyond fine-tuning: models that keep learning in use, with every change checked. An open project on safe superintelligence from Embedding Space.

AI dan pembelajaran mesin

Cara angka ini diukur

134 bintang17 Fork +12 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+12
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Sthiti

A training method beyond fine-tuning: models that keep learning in use, with every change checked.
An open project on safe superintelligence from Embedding Space.

CI Security License: Apache 2.0

How it works · Results · Reproduce · Future work · Site

In short. Sthiti is a training method beyond fine-tuning: it trains a frozen model without changing a single weight. The model is given a world of questions with known answers, and the world doubles every round: 384 new questions, then 768, then 1,536, up to 12,288. Each round, a small learner watches how the model works through every question so far and finds what it gets wrong. That lesson is written into the model's own computation, with no weight changed, but only the part the model is missing, only for the subject it was learned on, and only if a test on unseen questions shows it fixes clearly more answers than it breaks. The next round then learns on top of the improved model. Nothing is retrained.

On 2 December 2026 a frozen 27 billion parameter language model, Qwen3.8-27B, answered 85.0% of 12,288 physics and biology questions it had never seen, against 74.2% for the same model as released, after absorbing five lessons from checked results without a single gradient step. Its scores on GPQA Diamond, MMLU-Pro and HLE did not move. This repository holds the method, the code, every result and log behind that number, and the record of what did not work on the way to it.

A model that is to become more capable than its makers cannot stop learning when its training run ends, and a model that keeps learning cannot be trusted unless every change it makes to itself is checked before it is kept, confined to where it was learned, and removable afterwards. Today's models do neither: their weights are fixed at release, and the only way to teach them is to train them again. This work answers the narrower question underneath: can a model keep learning in use, inside its own computation, with each change verified?

Beyond fine-tuning

Fine-tuning changes weights that every behaviour of the model passes through, so what it learned can only be checked as a whole. Sthiti trains without touching a weight:

Fine-tuning (full, or adapters) Sthiti
What changes The weights No weight; lessons act inside the forward pass
How it is fitted Gradient descent, many steps Closed form, plus one averaged gradient per round that only measures a direction
Unit of change The whole run One lesson: a handful of vectors
When it is checked After training, as a whole Each lesson, before it is kept, on unseen questions
Where it acts Everywhere On the subject it was learned on
How to undo it Retrain, or restore the old weights Remove the lesson
New knowledge Can add it Cannot: moves what the model already encodes into its answers
Kinds of output Any Multiple choice, for now

"Beyond" means the rows above, not more accuracy: Sthiti has not yet been compared with fine-tuning on the same data.

How it works

One lesson inside the model: the question passes through the frozen model; the state after each option at layer 46 is read by three closed-form probes (is it right, will the model pick it, is it this subject); the lesson pushes the right option along the lever and the picked wrong option back, the model's own answer flips from B to C, and the lesson is kept only because 174 check questions were fixed against 68 broken.

The model answers a multiple-choice question in one forward pass: its probability for each option's letter. From the same pass I read its hidden state at layer 46 at the last token of each option, the state just after it read that option, and fit three linear probes on those states in closed form (a regularised linear discriminant in a whitened principal subspace: a few sums and one matrix inverse, no gradient descent):

Probe Says
right, lo_r this option is the right answer
pick, lo_p the model, as it now stands, will pick this option
subject, lo_f this option belongs to the subject being learned

A lesson moves each option's state along the lever, the direction in which the model's answer actually moves, measured as the gradient of the model's answer with respect to that state and averaged over questions:

h  ←  h + g · tanh((lo_r(h) − lo_p(h)) / 2) · σ(lo_f(h)) · d

The difference lo_r − lo_p is the part the model is missing: zero where it already agrees with what is right, positive for a right option it would pass over, negative for a wrong option it would pick. σ(lo_f) fades the lesson out on other subjects. Every probe is linear in h, so a lesson is a few dot products per option, and each lesson is stored separately so it can be listed, tested on its own, or removed.

The loop: new questions arrive and are scored before learning, every question is read again through the changed model, the three probes are fitted, the lever is measured, and a lesson is kept or refused; over six rounds the model alone climbs from 78.6% to 85.0% and stops when it reaches its learner.

Training is a loop. Each round the world of questions doubles; the new questions are scored before anything is learned from them; every question so far is read again through the model with its lessons; the probes are refitted and the lever measured; and one more lesson is offered.

The check: in round 1 a candidate lesson fixed 174 of 2,400 held-out questions and broke 68, more than the +31 needed, so it was kept; in round 6 it fixed 76 and broke 78, so no lesson was added.

A lesson is kept only if, on 2,400 questions it was never fitted on, it fixes clearly more answers than it breaks (fixed − broken ≥ 2·√(fixed + broken)), and only if it does not clearly hurt 300 questions from other subjects. A round that finds no such lesson adds nothing. The full method, step by step, is in docs/METHOD.md.

The measured record

The record: on each round's new questions the model with lessons, answering alone, went 78.6%, 77.2%, 80.9%, 81.5%, 84.6% and 85.0% while the model as released stayed between 72.5% and 78.6%; GPQA, MMLU-Pro and HLE unchanged.

Round New questions Model as released Model with lessons, alone Lessons inside
1 384 78.6% 78.6% 0
2 768 72.5% 77.2% (+4.7) 1
3 1,536 73.0% 80.9% (+7.9) 2
4 3,072 73.3% 81.5% (+8.1) 3
5 6,144 75.5% 84.6% (+9.1) 4
6 12,288 74.2% 85.0% (+10.7) 5
Benchmark, never learned from Before After five lessons
GPQA Diamond (198) 48.0% 47.5%
MMLU-Pro (560) 60.2% 60.0%
HLE, multiple choice (142) 14.1% 14.8%

The benchmark changes are within the few questions that separate two identical runs on this hardware. In round six the model had reached its learner (85.0% against 86.1%), the best candidate fixed 76 answers and broke 78, and the loop stopped rather than force a change.

The record keeps the unfavourable results, because they explain the design. Writing the learner's corrections into the weights as closed-form key-value edits stored every answer and never helped a new question. Steering along the direction that separates right options from wrong ones broke more answers than it fixed, in every round and at every strength: that direction has a cosine of 0.1 to 0.2 with the lever, and given the true answers the lever moves the model to 99 to 100%. Pushing the learner's whole judgement instead of the missing part stalled after two lessons and, without the subject gate, cost seven points on GPQA. Every run is in docs/RESULTS.md.

Limitations

Lessons act where each answer option ends, so this works on multiple-choice questions only; applied at every token, as a plain change of weights would be, the earlier, simpler push was weaker. The model cannot pass its learner, and because the learner reads only what is already in the model's state, the lessons move knowledge the model half had into its answers and add none it never had. Each lesson added less than the one before (4.4, 3.7, 1.5, 1.3 and 1.2 points on the check set), so the learning is steady, not accelerating. All of it is one model, two generated subjects and one run. None of it is evidence of superintelligence; it is evidence that a model can keep learning in use, inside itself, under a check. docs/FUTURE.md lists the next experiments.

Using it

pip install -e .                 # numpy, torch, transformers, datasets
python -m pytest -q tests        # the probe, the judge, the check and the lesson rule, no GPU needed
python -m sthiti.run             # the run behind the table above: one B200, about 45 minutes
python -m sthiti.lever_test      # the lever test
Path Contents
sthiti/probe.py the closed-form linear probe
sthiti/judge.py options judged right or wrong, correcting the model's answer; the sign test
sthiti/lessons.py lessons inside the forward pass, and the lever
sthiti/model.py the frozen model: prompt, option positions, reading states and answers
sthiti/worlds.py generated physics and biology questions; benchmark and out-of-subject loaders
sthiti/run.py the round-by-round loop with its check
sthiti/lever_test.py the test that found the lever
results/ results.json, logs and saved lessons of the four runs in the record
docs/ the method, the results, reproduction, future work, figures and logo
scripts/ setting up a GPU machine and running

The figures are animated SVGs drawn by docs/figures/make_figures.py from results/growlever4.

Contributing

Issues and pull requests are welcome: a second model, other subjects, the every-token version, and head-to-head comparisons most of all. See CONTRIBUTING.md; security reports go through SECURITY.md.

License

Apache 2.0. If you use this work, please cite it:

@misc{sthiti2026,
  title  = {Sthiti: training beyond fine-tuning, with checked lessons inside a frozen language model},
  author = {Nandakishor M},
  year   = {2026},
  url    = {https://github.com/NandhaKishorM/sthiti}
}

Jelajahi proyek terkait

Memuat…