Inbox triage benchmark cover showing JEV at 94.6% and local d1-2B moving from 89.3% to 93.1% after tuning

Over the past week, I’ve spent more time experimenting with System 1 models (JEV and Liquid AI’s open-weight models) and Weight-Space Programming. Specifically, I used GPT-6.2 Astra to modify the weights of Liquid AI’s d1-2B model (a System 1 model similar to JEV, but with open weights) to improve its performance at triaging my personal inbox.

Sharing this for anyone who wants to learn more about:

  • System 1 models (JEV and Liquid AI’s decision models)
  • Weight-Space Programming
  • DSPy

The structure of this article is a little back the front - I share the results first, and then the experiment, and then explain the components and provide some references towards the end. If you read through to the end and run the experiment for yourself, the reason for doing it this way will make sense.

(imo) building your own email triage agent is probably the best and most universally accessible way to grok the value of System 1 models, Weight-Space Programming and DSPy. If you’re like me, building the thing first, then using that as the foundation to learn the components is the better approach.

This experiment does two separate things:

  1. Build a read-only email triage app that syncs your mail and uses a System 1 model to label it Action or No Action in Omni Mail
  2. Take two of those System 1 models (the open-weight Liquid AI models) and modify their weights with Weight-Space Programming to see if you can improve them at triaging your emails

If you want to try it out, I’ve provided the following in the Omni Mail repo.

  • An app with a UI and connector that will sync your emails from Gmail
  • A connector for both Liquid AI models and instructions to download their weights from Hugging Face
  • A separate connector for JEV via a TypeSafe or OpenRouter API key
  • Instructions to collect and label your emails for training data
  • Two notebooks with the code and steps to modify the weights of both Liquid models

Omni Mail local preview using fictional email

Omni Mail preview from a local development build, with 100 fictional threads. Try the sample inbox in the public repo.

I ran the local models on an M4 Mac with 24 GB of unified memory. A 16 GB Mac may work, but I haven’t tested the full run on one.

Results

If your goal is to build a cheap and efficient email triage agent and you don’t mind using a provider API, JEV did well out of the box. It sends the sender, subject and body text of the emails you process to your chosen provider. If you want to run inference on-device or tune a model to your own preferences, that’s where the open-weight models come in.

After running Weight-Space, the open-weight d1-2B model from Liquid AI came close to JEV on the weighted score. All five runs used the same 400 emails, the same final prompt and a 0.50 cutoff. Each missed action cost two points and each false alert cost one.

Weighted scores for the five model runs

Weighted scores on 400 emails. Striped bars show the Weight-Space runs.

The 400-email run with JEV 1.14 via OpenRouter cost about 2.4 US cents.

Stock JEV scored highest at 94.6%. It caught 45 of 47 actions and raised 20 false alerts.

The Weight-Space’d d1-2B scored 93.1%. It caught 40 of 47 actions and raised 17 false alerts, the fewest of any run. That’s five more missed actions than JEV, even though the weighted scores were close.

WeightSpace improved both local models. I was hoping to get more out of Omni 600M, but even after tuning it missed 22 of the 47 emails that needed action. That’s more than I’d be comfortable with in my own inbox.

The same 400 emails informed the final prompt. I picked the patches on the 300 validation emails. I’d use a fresh batch to test how well the final setup carries over.

Full results

Missed actions and false alerts in each run

Missed actions and false alerts in each of the five runs.

My personal interest in this (Weight-Space + System 1 Models) is to learn if it was actually possible to run a weight-space change on a model, on my device, on a real task that I’d want AI to do for me.

If you stretch the implications a little further into the future, you can imagine always-on, efficient SYS1 intelligence running on device and adapting on the fly. Continual Learning?

The Weight-Space Experiment

The Weight-Space stuff is experimental. I adapted the process from Drew Breunig (@dbreunig). I started with the original Liquid AI checkpoints and limited Astra’s edits to the same parts of each model that his writer had found in his experiments. I didn’t test a wider search. The Omni 600M run got through 24 of 25 planned edits before timeouts exhausted the request budget. The d1-2B run scored all 25.

I’d recommend you start here first:

Weight-Space Programming with DSPy

dspy-wsp on GitHub

The core idea:

WeightSpace gives a writer model (in my case Astra) tools to inspect and edit the weights of a student model (Omni 600M and d1-2B). The writer makes a change, tests it on examples, and uses the results to decide what to try next. Once the test budget runs out, the best edit is saved as a patch.

I ran Astra through my Codex subscription. The main Omni 600M search took about 5½ hours, and the successful d1-2B continuation took about 6½ hours. The full d1-2B run took about 17½ hours including restarts and an overnight gap. Based on the recorded token usage, I estimate the Astra calls for the two main searches would have cost about US$36 at standard API rates.

The repo has two teaching notebooks you can use to try the same workflow on your own data. Here’s the process I followed in my experiment.

  • I labelled a CSV with 1,000 real inbox emails as ‘Action’ or ‘No Action’ (I used GPT-6.2 Sol to help), so it only took a few hours. I split them into 300 for training, 300 for validation to choose patches, and 400 reserved for comparison. I kept related threads and repeated templates in the same split. Dataset and experiment setup
  • I ran Omni 600M and d1-2B with their original weights to see what they got wrong.
  • I showed Astra examples of those mistakes and the scoring system: a missed action cost two points. A false alert cost one.
  • I only let Astra edit the scoring head on Omni 600M and one matrix in the final layer of d1-2B.
  • Astra wrote Python that ran in a sandbox on my Mac. The code read the original weights, used the 300 training emails to calculate new values, and saved the changes as a patch.
  • I tested each patch on the 300 validation emails. Astra got the scores back and used them to choose what to try next. I scored 24 patches for Omni 600M and 25 for d1-2B.
  • I picked one patch per model using the validation scores. Then I compared the stock models, the patched models, and JEV on the same 400 emails with the same final prompt.

Below, I’ve provided some more information and references covering the three components as they relate to the email triage built above.

  • System1 models
  • Weight-Space programming
  • DSPy

Understanding System 1 models

JEV processes language, but it isn’t a generative language model like GPT. You give it text, a question and an answer format. It can return probabilities for yes and no directly, without writing a response one token at a time.

Excerpt from TypeSafe’s Don’t Call It a Decision Model

From TypeSafe’s Don’t Call It a Decision Model.

Take a spam classifier. It answers one question it was built to answer.

With a System 1 model, you can change the question. Give it the same email and ask, Does the sender expect a reply? Or ask, Is the sender saying a payment failed? You provide the question and the options, and the model scores the answers. The app decides what to do with the score.

TypeSafe explains a clear distinction between judgement and decision. JEV can judge whether a customer is asking for their money back, while the code can check the deterministic stuff - whether they’re eligible, how much they paid and whether the refund has already gone through.

I expect there will be many more System 1 models, and hopefully many more Open Weight versions.

Weight-Space Programming

A model’s weights are the numbers it uses to turn an input into an answer. Weight-Space Programming means getting a more powerful model, in my case Astra, to modify some of those numbers directly. I give it examples of where the smaller model gets my email wrong. It proposes an edit, I score the edited model, and we see whether it’s worth keeping. The result is a patch I can load alongside the original weights.

One important nuance from Simon Willison (@simonw). What can a model tell from the raw weights alone? And how good is it at improving another model when it has access to code and feedback?

In my experiment, Astra used Python and feedback from the test runs to work out which changes to keep.

DSPy

“Many DSPy Signatures already define decisions. Today, they can run on System One models.”

DSPy lets you write down what goes into a model call and what should come back. In Omni Mail, the inputs are the sender, subject and body. The output is a yes/no judgement about whether the email needs action. That’s the signature. The app uses it every time it processes an email with one of the local models, and the notebooks use the same classifier to measure and tune it. Omni Mail classifier

Drew Breunig (@dbreunig) on why DSPy fits decision models

This fits System 1 models well because I already know the shape of the answer I want. I can keep the scoring rule fixed while I try a different model, change the prompt, adjust the cutoff or edit the weights. Mike Taylor’s (@hammer_mt) Context Engineering with DSPy was my starting point, especially the sentiment classifier in Chapter 9. Start with a plain classifier, look at where it gets things wrong, and work out what you want to improve from there.

Some additional notes and recommendations if you’re planning to run this yourself with different optimization methods

In a previous experiment, I tested several methods on the seven-folder version of the task. I tried few-shot examples, LoRA adapters, ReAnchor to recalibrate the label scores, GEPA to improve the prompt, and WeightSpace to edit the weights.

The best d1-2B result on those 25 development emails came from GEPA plus WeightSpace. It got 20 of 25 right with six penalty points. GEPA alone got 18 of 25 with eight points. The best LoRA run also got 18 of 25, with nine points. Standalone WeightSpace got 15 of 25 with 12 points. You can combine these methods, and in that experiment the prompt and weight edits worked best together. Earlier experiment

Also important to note, I’d already run GEPA to optimise the prompt in the earlier experiment, so coming into this one I had far better intuition for how to structure the request. One example is the difference between an optional deadline and a real one. “Register by Friday” can sound urgent even when the event is optional. “Your account access expires on Friday” can need attention even when nobody explicitly asks you to do something.

Earlier short prompt and final shared prompt

Earlier short prompt and final shared prompt. The two added rules are highlighted.

That prompt change alone brought JEV’s false alerts down from 108 to 20 on the same 400 emails. It missed two actions instead of one. That was a bigger change than either of the weight edits, and it came from spelling out what I actually meant by Action. Prompt comparison

Here are the rough steps I’d follow:

  1. Try stock d1-2B on a few emails you know. Look at what it misses and what it flags that you’d ignore. If you’re comfortable sending those emails to a provider, try the same ones with JEV.
  2. Label a small batch. I used GPT-6.2 Sol to suggest labels for 50–100 emails. I went through them myself, explained anything it got wrong and why, then did another batch. Once it was getting close to my judgement, I scaled up and had it bring the edge cases back to me.
  3. Split the data and score the original model. Keep related emails together. Use training examples to work on the model, validation to decide what to keep, and set aside a fresh batch for the final comparison.
  4. Try ReAnchor. It changes the cutoff while keeping the weights fixed. If the cutoff doesn’t help on validation, keep the original. On the larger 600M experiment, I kept 0.50.
  5. Try a weight edit. The optional WeightSpace step uses Codex to propose an edit. Preview which training emails and labels the writer can receive before running it. Score the result on validation and keep the patch if it makes the decisions better.
  6. Load the profile into Omni Mail. Freeze the profile, compare it with stock on the reserved batch, then load it into the inbox and see how it does on your mail.

If anyone tries this or runs a similar experiment, I’d love to hear.

References

Omni Mail repository, experiment setup and results

JEV and System 1 · Don’t Call It a Decision Model and The Jev Revolution

Weight-Space · Sparks of Weight-Space Programming, Weight-Space Programming with DSPy and dspy-wsp

Weights and tools · Qwen 3.8 27B on my laptop can interpret model weights, too

DSPy · Context Engineering with DSPy, Chapter 9 notebook and Building & Optimizing Jev Programs with DSPy

Earlier seven-folder experiment on X