(35) Teaching a Small Model When to Leave My Writing Alone
Download technical paper (PDF)
A shorter sentence can say the wrong thing
One of the test passages described a faded arrow pointing towards a courtyard. The model returned a cleaner-looking version and kept the warning that nobody had checked the doors. It also deleted the heading. That was where the word “faded” lived. The revision had lost a fact while appearing to tidy the document. [1]
This is the difficulty I wanted Redraft to address. I have writing rules that ask an editor to preserve facts, uncertainty, conditions and useful quirks while removing unnecessary rhetoric. They also ask it to leave good prose alone. Repeatedly supplying those instructions works as a workflow, but I wanted to test whether a small local model could learn the behaviour without receiving the full rulebook with every draft.
The latest experiment produced 904 acceptable revisions out of 1,000 synthetic cases, compared with 857 from the previous adapter on those same cases. Both versions made 48 meaning errors. Most of the improvement came from handling punctuation. That is useful progress with a specific boundary, rather than evidence that I have trained a dependable general editor. The companion technical paper documents the mathematics, comparisons and failures behind the result. [1]
My earlier work on the operating model of a personal AI assistant concerned who owns a task and verifies delivery. Redraft narrows the question to one repeated operation. Can I teach a model my editing preferences well enough that reviewing its work becomes worthwhile?
Turning the rulebook into examples
Redraft edits text that already exists. It can rephrase, restructure and shorten that text, but an invitation must not become an appointment and a possibility must not become a promise. A question inside a draft remains part of the draft. The model should edit it, rather than answer it. Literal quotations and code have stricter preservation rules than ordinary prose. [1]
I chose synthetic teaching material instead of supplying my correspondence. Codex authored and curated draft-and-revision pairs from the writing skill. Some demonstrated a useful change; others deliberately left the source untouched. The latter matter because a model that treats every request as a demand for visible rewriting will eventually damage sentences that were already doing their job.
During development
Define preservation, useful edits and when to leave text alone.
Codex prepares synthetic drafts and faithful revisions.
Learn adjustments from those pairs; keep the base frozen.
When editing a new draft
A minimal editing instruction, draft and optional audience or purpose.
Use the learned adjustments without the full writing skill.
Return the edit for review. No learning from this submission.
The skill also guides evaluation. It is not embedded as a hidden prompt, and the adapter is not a memory of previous requests.
The original stimulus was research on weight-space programming, in which a larger model can inspect or modify another network's weights. The route we implemented was supervised training of a small adapter, followed by a search over its strengths and further training. We did not directly write arbitrary editing rules into the original model's weights. Keeping that distinction prevents an interesting inspiration from becoming an inaccurate account of the experiment. [2]
This also differs from the maintained knowledge in Secondbrain. Redraft has no personal archive to retrieve. Its learned adjustments influence how it processes a fresh draft; they do not supply reliable knowledge about my life or remember what I wrote yesterday.
What the small addition changes
The substantive work used a four-bit version of Qwen3.5-4B on my M3 MacBook Air with 16 GB of unified memory. An external SSD held the artifacts. Storage space helped retain experiments, but did not increase the memory available for computation. The approximately 2.39 GB base-model file also understates the memory needed to train or run it. [1, 3]
LoRA, short for low-rank adaptation, keeps the original model fixed and adds smaller trainable calculations at selected points. In this implementation, the same internal input passes through the original calculation and through two small matrices, A and B. Their scaled contribution is added to the original result. Training changes A and B. The original calculation stays intact. [4, 5]
The same internal input reaches both branches
The base model's weights stay unchanged during training.
Two smaller matrices learn a correction. A scale sets its influence.
Add the two contributions, then continue through the model
Conceptual view of one adapted projection, not two separate models. Redraft adapts 24 projections with rank 8: 2,260,992 learned parameters in total. Both branches run when editing; only the adapter learns during training.
There are 2,260,992 trainable parameters across 24 selected projections in the model's final eight layers. That is small enough for this experiment to fit on the laptop under the measured limits. It does not mean that the adapter can run without the base, or that training costs nothing. The full model still performs the language computation. [1]
During teaching, the model sees a draft and the earlier words of its reference revision, then predicts the next word fragments, or tokens. Training adjusts the adapter to make the reference continuation more likely. This supplies a numerical learning signal. Whether a freely generated revision preserves a qualification remains a separate editorial question. The technical paper makes that distinction explicit in the loss function and checkpoint-selection procedure. [1, 6]
More editing was not always better
The first small-model screen was weak enough to stop the original plan. I changed the prerequisite: the starting model needed to be capable of learning, rather than already performing the whole task well. Otherwise the test would have excluded the improvement it was meant to investigate.
The first substantive adapter trained on 300 synthetic pairs. On 50 new short cases, acceptable edits rose from 19 for the base to 37 with the adapter, while meaning errors rose from two to four. It had learned to intervene, including in ways I did not want. A later comparison found that reducing the adapter's influence improved restraint but left more useful editing undone. [1]
We then searched eight strength settings, one for each adapted layer. Each setting changed the influence of an already-learned group of adjustments. CMA-ES, the search method, tested populations of settings and used their rankings to shape the next proposals. This was a bounded search over eight numbers, not random replacement of millions of weights or a guarantee that the right combination existed. [7, 8]
The search missed the practical target I had chosen: at least 75% acceptable edits, with meaning errors in no more than 5% of cases. Further teaching was more productive. Experiment 006 reached 800 acceptable edits against 703 from the searched adapter on the same 1,000 new cases, although meaning errors increased from 33 to 43. That was the first observed pass of the target, with a fidelity cost. [1]
Experiment 007 used a gentler continuation, mixing 200 new teaching pairs with 200 earlier ones. We saved four checkpoints. The first, after 100 updates, tied the next checkpoint on the separate selection test and won the fixed tie-break. Later checkpoints had lower training-related validation loss but worse generated edits. The numerical objective was improving while the behaviour I cared about was deteriorating. [1]
These experiments used different final datasets. Drawing a rising line through their headline percentages would confuse changes in the model with changes in the test. The useful comparison always puts two versions against the same fresh drafts.
Reading the result beneath the headline
In the latest paired comparison, the new adapter gained 78 acceptable cases and lost 31. That produces the net gain of 47, or 4.7 percentage points. A family-level resampling estimate put the 95% interval for the gain between 2.6 and 6.9 points. The total number of meaning errors stayed at 48, but their identity changed: 18 disappeared and 18 new ones arrived. [1]
Acceptable edits · higher is better
Meaning-error cases · lower is better
Incomplete outputs · lower is better
Protected-literal failures · lower is better
All bars use the same 0–1,000 scale. Failure categories overlap. Of the 47 net acceptable gains, 43 came from the 200 editable-dash variants; the other 800 cases gained only four. Experiment 007, 10 November 2026.
My preference against em dashes outside protected text is easy to count and easy to overvalue. The 200 cases designed to exercise editable dashes account for 43 of the 47 additional acceptable revisions. Across the other 800 cases, the improvement was four, with an uncertainty interval spanning zero. Families tagged for puffery showed no acceptance improvement. The result supports better handling of a particular preference much more strongly than a broad advance in editing quality. [1]
Nor did preservation improve uniformly. Material meaning errors rose from nine to 12, and protected-literal failures from five to 13. Headed documents became less reliable. In the 100 longer cases, acceptable edits rose from 71 to 80, but both adapters made 17 meaning errors. These outcomes remain visible even though the new candidate passed the frozen promotion rule, which constrained overall counts rather than every severity or subgroup.
Accepted · punctuation changes, uncertainty survives
A borrowed metronome — The metronome may be available after the lesson, but I have not asked its owner or confirmed availability.
A borrowed metronome. The metronome may be available after the lesson, but I have not asked its owner or confirmed availability.
Failed · removing the heading removes a fact
The faded arrow The arrow points towards the courtyard. It does not say which door to use. I have not checked whether both doors open.
The arrow points towards the courtyard. It does not say which door to use. I have not checked whether both doors open.
These are recorded experiment-007 outputs, not invented illustrations or reference answers. Both cases had no optional context. The paper records their provenance and a separate protected-quotation failure.
What would make it worth using
The strongest objection is that the test rewards the examples we chose. Codex authored and curated the material, then judged the outputs in the same session. The review display hid candidate names, but the execution order and recognisable outputs could reveal them. There was no independent human panel. Many short passages already needed little work; leaving them unchanged could be acceptable. [1]
The 1,000 final cases also came from 200 scenario families, with five related variants each. Resampling whole families acknowledges some of that dependence, but cannot remove shared writing patterns or author-and-judge bias. The observed 4.8% meaning-error rate passes my ceiling. Its estimated interval, 2.9% to 7.0%, does not establish that the rate on future writing is below 5%.
The hardware result is narrower but tangible. The latest training loop took about 25 minutes and peaked at 7.018 GiB of measured MLX allocation without adding swap. A longer-sequence probe exceeded the memory cap and was rejected. Actual teaching drafts remained only seven to 52 words long. Testing longer notes afterwards did not make this a long-document training run. [1]
A demanding hosted model with the full instructions remains a sensible alternative. This experiment did not compare total cost, review time or output quality against that alternative. It established that a small local model could acquire useful parts of the behaviour. Turning that into a preferable daily tool requires evidence about the work left for its owner.
I have retained the new checkpoint as an experimental candidate, with the earlier one preserved. It has not been installed as my daily editor. The next useful test would put fresh, representative writing in front of an independent reviewer and measure corrections, lost qualifications and time spent checking. A punctuation rule is valuable when it saves me an edit. It is a poor bargain if I must recover a missing fact afterwards.
Sources
This experiment
- Francesco Di Costanzo, “Redraft: Learning to Edit with a Small Local Model,” technical companion, 10 November 2026. Original experimental evidence and limitations; not independent validation. https://fdicostanzo.com/downloads/redraft/redraft-learning-to-edit.pdf
Methods and model provenance
-
Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab, “Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights,” 2 November 2026. https://rikiyat.github.io/blog/weight-space-programming/
-
Qwen, “Qwen3.5-4B,” official model card. https://huggingface.co/Qwen/Qwen3.5-4B
-
Edward J. Hu et al., “LoRA: Low-Rank Adaptation of Large Language Models,” 2021. https://arxiv.org/abs/2106.09685
-
MLX-LM contributors, “lora.py,” official implementation; the paper checks the installed version separately. https://github.com/ml-explore/mlx-lm/blob/main/mlx_lm/tuner/lora.py
-
Diederik P. Kingma and Jimmy Ba, “Adam: A Method for Stochastic Optimization,” 2014, revised 2017. https://arxiv.org/abs/1412.6980
-
Nikolaus Hansen, “The CMA Evolution Strategy: A Tutorial,” 2016, revised 2023. https://arxiv.org/abs/1604.00772
-
pycma contributors, “BoundTransform,” implementation documentation. https://cma-es.github.io/apidocs-pycma/cma.boundary_handler.BoundTransform.html