Named parameters, operand shapes, finite values and tensor slices are checked. Instructions execute in source order.
02
Own the temporary state
Request scopes retain snapshots and preserve parameter identity. A shared model lock coordinates participating requests.
03
Restore, rather than invert
Zeroing and projection lose information. Restoration copies the saved parameter values back; it does not try to reverse the algebra.
Six instructions.ADDSCALERANK1PROJECT_OUTWRITE_KEYPRUNE
02 / Neural Control Plane
Temporary edits. Persistent decisions.
NCP observes behavior, proposes interventions and evaluates the resulting policy. Accepted rules stay in a versioned table. Their weight effects stay inside the request.
01Observe
Task results, repetition and activation profiles
02Propose
Deterministic intervention candidates
03Verify
Routed tasks and forced-action perplexity
04Admit or archive
Evidence tied to the rule and policy version
A measured decision. In the nine-question SmolLM microbenchmark, the projection reduced validation repetition from 0.4133 to 0.2191. With zero newly correct answers, the gate archived all three candidates and retained the original policy.
Real local runs on SmolLM-135M and Qwen2.5-1.5B. Saved programs, operands, logits and timing records make the experiments inspectable.
Qwen2.5-1.5B · FP32 · MPS
45timed requests
Original inference, a materialized rank-one update, and an equivalent PyTorch forward hook.
0.000184Maximum prompt-logit difference between W-ISA and the hook
All three modes produced identical greedy sequences at the measured lengths. Every timed request restored the target weights exactly.
Median request time seconds · setup and restoration included
Output tokens
Original
W-ISA
Hook
32
1.1858
1.2312
1.1868
128
4.7445
4.8527
4.7873
512
18.7117
19.3735
19.4961
51 input tokens. Five repetitions per mode and length, after one warm-up each. Fixed-length greedy decoding, fresh cache, per-token synchronization; mode order rotates.
Qwen rank-one target: 52.5 MiB for one FP32 snapshot; 105 MiB for one full FP64 work buffer. The maximum sampled request RSS increase for W-ISA was 498.94 MiB, sampled every 10 ms. Process RSS and MPS allocation counters overlap in unified memory and are reported separately.
SmolLM, full WikiText-2 test split: the combined head ablation and MLP projection changed perplexity from 22.2353 to 22.3188 (+0.3754%), over 304,985 scored targets. Read the evaluation report.
04 / Try it locally
Start with a matrix. Then bring a model.
The self-contained CLI demo needs no model download. It changes the output from [5, 11] to approximately [3, −1], then restores [5, 11] exactly.