The Experiments I Didn't Ship

November 2026 · 13 min read

Get the app

Atlas: Private On-Device AI is on the App Store: download for iPhone & iPad or download for Mac.

Most of what I built for Atlas between August and November never reached the App Store. I tried a bigger embedder, a knowledge graph with typed edges written by the model, a PageIndex-style section index, a different way of scaling BM25 scores, a shortcut for the 8B model's diagram drafts and a bigger context window for the small LFM models. Every one of them looked like an obvious improvement on paper, and every one lost on a number I had written down before I started.

I think these are the most useful results of the autumn, because a rejection with a measurement tells you something about the problem itself. This post covers the tooling, the rule I follow when reading the numbers, and the experiments.

Atlas series

  1. Fitting a Second Brain Into 8,192 Tokens (the July original)
  2. Taming Small Models That Don't Speak Your Tool Protocol
  3. Retrieve, Then Generate: Closing the Speed Gap on a Phone
  4. Letting the Network In Without Letting the Data Out
  5. Ears and Eyes on a Phone: Voice and Vision in Atlas
  6. The Experiments I Didn't Ship
  7. Atlas, July to November

A harness that runs on the real index

For the first few months, my retrieval work ran against a synthetic golden set of hand-written notes, events and contacts with known answers. It is still the regression gate in swift test, but it only contains the failures I could imagine. My real index has about 4,400 documents across notes, mail, calendar and contacts, and it fails in ways I would never write into a fixture.

So I built AtlasCLI, a headless command-line tool that opens a snapshot of the live app's index (a GRDB backup, so the running app is never touched) and runs the engine without any UI. The important design choice is that search calls the exact function the chat turn uses for its LLM-free pre-retrieval. If the harness prints a bad list of excerpts, that is the same list the model saw when it gave a bad answer.

On top of that sit a handful of diagnostic commands I use constantly:

Before the harness, I would change a ranking weight, watch the golden set's mean reciprocal rank (MRR) go up and move on. With it, I could watch the same change make my real questions worse.

The bar that MiniLM set

The one experiment from this stretch that did ship set the bar for the rest. In July, Atlas used Apple's built-in NLEmbedding for the semantic half of retrieval because it costs nothing to download. On 1 August I benchmarked four on-device embedders on the golden set, which had 101 documents at the time:

Embedderrecall@5MRRnon-Englishnames found (of 6)query embed, cold
NLEmbedding (July default)0.9900.8460.85752.8 ms
NLContextualEmbedding0.9710.83919.0 ms
all-MiniLM-L6-v21.0000.9341.000610.8 ms
e5-small-v20.9710.885121.7 ms

MiniLM won on every quality column. The name column mattered most to me, because "what did Priya say about the launch" is a typical second-brain question and embedders are bad at names. In that test, MiniLM moved the fixture contact Priya from rank 7 to rank 2. It costs about 8 ms more per query than NLEmbedding, which nobody will notice next to a language model's prefill. The model is 43 MB and ships inside the app, so nothing is downloaded and the index re-embeds itself after the update.

That table turned into the template for everything after it. Each experiment needed a metric, a baseline measured on the same day and a cost column. When I later grew the golden set from 46 to 95 documents and from 71 to 139 queries, recall went up (recall@5 from 0.941 to 0.990) while MRR eased to 0.861, mostly because a person's contact card now competes with the notes that mention them. I lowered the MRR gate from 0.90 to 0.83 on purpose and raised the recall gates at the same time.

Tune on dev, decide on holdout

The rule I settled on is simple to say and annoying to follow. The golden set, the harder set and the synthetic fixtures are the dev sets: I am allowed to look at them, tune weights on them and stare at their failures. The holdout is the set of relevance labels I made on my own past questions with AtlasCLI label. I never tune on it. A change has to win on dev and then hold up on the holdout, and a win that only shows up on dev counts as a rejection.

The second half of the rule is that a rejected arm gets deleted. The experiment's write-up stays in docs/RETRIEVAL_BETS.md with its numbers, and the code goes away.

Here is how the experiments in this post scored against the metric each one was judged on.

Eight experiments, each with the metric it was judged on before and after. One shipped, one is next, six were rejected. #1 MiniLM embedder golden MRR 0.846 0.934 NLEmbedding MiniLM SHIPPED #2 EmbeddingGemma 2 harder-set MRR 0.703 0.571 MiniLM EG2 REJECTED #3 BM25 rescale paraphrase recall@1 0.75 0.375 shipped rescaled REJECTED #4 Oracle typed edges answer facts in prompt 30/49 30/49 mentions +30 edges REJECTED #5 Section chunks paraphrase recall@1 0.88 0.62 shipped sections REJECTED #6 800-token excerpts long-note answers 36/48 40/48 527 tok 800 tok NEXT #7 8B: skip the draft diagrams that render 88% 73% thinking cut REJECTED #8 LFM2.5 at 8K turns with any output 11/11 0/11 4096 8192 REJECTED
Every bar is on the same 0 to 1 scale. Six of eight experiments were rejected on the number shown. The 800-token excerpt budget is the one I still plan to build.

EmbeddingGemma 2: better at Dutch, worse at everything else I measured

In October, Google's EmbeddingGemma 2 looked like the natural successor to MiniLM. It is multilingual, and a fair amount of my own writing is in Dutch. I ran it through the same harness as MiniLM on 24 October.

It did win where I hoped it would. Dutch and multilingual queries gained 0.10 MRR, the slices holdout gained 0.07, and cross-lingual queries (asking in English about a Dutch note) went from 0 to 0.13. Then it lost the sets that matter most. On the harder set, which is full of paraphrases and indirect questions, MRR dropped from 0.703 to somewhere between 0.571 and 0.590 depending on the configuration. Person-topic questions dropped 0.02.

Abstention was the quieter problem. Atlas only attaches excerpts to the prompt when retrieval is confident, and that confidence gate is calibrated on cosine similarity. With EmbeddingGemma, unrelated pairs scored around 0.6, so I had to add a similarityFloor to rescale scores before the gate made any sense. Even with the best gate I could tune, it let 83% of the turns that should abstain through, compared with 75% for MiniLM.

And then there was the phone. EmbeddingGemma 2 needs iOS 18, and Atlas supports iOS 17. The tokenizer alone took about 216 MB of dirty memory and 6.5 seconds to load on every launch. The download would have been about 558 MB (a 271 MB model, a 256 MB token table and a 31 MB tokenizer), and the model ran about three times slower than MiniLM on CPU. On iOS 27 it also hit the Neural Engine compile that never finishes, the same problem I described in the voice and vision post.

I kept the similarityFloor seam, since any future embedder with a high cosine baseline will need it, and deleted the rest.

The graph that answered nothing

The July version of Atlas had a knowledge graph: entities extracted from every document, plus typed edges such as works_at or met_with that a language model wrote during background enrichment. In November I finally measured what it was worth, and the write-up in docs/GRAPH_VALUE.md is the most humbling document in the repo.

I started with demand and supply. Of 297 real chat turns (161 unique questions), about 5% were relational, the kind of question a graph is supposed to answer, such as "who does X work with". On the supply side, only about 0.5% of roughly 17,700 sentences in my index contained a relational cue at all. The live graph showed the result: after 117 completed edge-extraction jobs, with 775 more still pending, it held exactly one LLM-written edge, and that edge was junk. Gemma E2B scored 0.75 precision on my synthetic edge benchmark and about 7% on real documents.

Maybe the extraction model was just too weak, so I ran an oracle arm: I wrote 30 correct typed edges by hand and gave them to the model directly. The answers contained 30 of 49 expected facts with the oracle edges, and 30 of 49 without any edges. Graded per question out of 23, the arms scored 14 (no graph), 16 (production), 15 (oracle), 14 (realistic) and 14 (noisy), a spread that is run-to-run noise. The noisy arm was worse in a way the scores don't show, because the model repeated the wrong edges back to me as "your notes state…".

The reason became clear once I read the failures. The facts people ask about are attached to events: a meeting, an email thread, a date. A static edge saying two people are colleagues carries none of that, and the document that does carry it was already being retrieved. An earlier experiment had shown the same thing from the other side. In September I added 102 met_with and colleague_of edges to a work fixture, which more than doubled the typed-edge share from 0.10 to 0.22, and no question category moved at all, because the answer documents were already within two hops. I deleted that code too. Fusing the graph as a third retrieval leg with reciprocal rank fusion was worse still: golden MRR fell from 0.896 to 0.849 and harder-set MRR from 0.647 to 0.373.

The real-index ablation turned up the actual damage. Turning graph injection off changed the top five excerpts on 26 of 165 questions. On 21 of those the graph had been adding noise, 3 were neutral, and 2 were accidental improvements that only happened because the extra context nudged the confidence gate. The worst case involved ING, the Dutch bank. On eight questions about ING, a contact card for someone called Ingmar took the fifth slot, because entity lookup was a SQL substring match.

Entity lookup for the probe ING. A substring match finds every name containing the letters ing, including the contact Ingmar, whose card then takes slot 5 of the excerpts. A token-exact match finds only the organization ING. ENTITY LOOKUP FOR “ING” WHERE name LIKE '%ing%' WHERE token = 'ing' ING org Ingmar contact Henning Vos contact Lotte Kingma contact Stirling Ross contact onboarding topic 34 entities matched in the real index 1 entity matched TOP 5 EXCERPTS IN THE PROMPT 1ING · app update notice 2ING · yearly overview 3Note · banking to-dos 4ING · new card arrived 5 Contact card · Ingmar ING · terms change A contact card displaces a real answer Slot 5 goes back to retrieval
The ING bug. The bug is real; the names and the excerpt titles are made up. The graph also added 9 ms per query (40 ms against 31 ms).

What shipped in 1.6.1 on 3 November was a much smaller graph. The LLM edge-extraction job is off by default (one environment variable turns it back on for experiments). Entity search matches whole tokens. My own contact card no longer gets injected into every turn about me. A first name that matches exactly one contact expands to that contact, which put the right card in the top five for 10 of 13 test contacts (with full names it was 12 of 13). Count questions about people get exact figures from a deterministic path, and phrases like "last week" or "vorige maand" become a hard time filter. None of that needed a model.

PageIndex, and the leak it pointed at

PageIndex is a retrieval approach for long documents: build a table of contents with a language model, then let the model navigate that tree instead of searching chunks. Long notes were a real weak spot for Atlas, so in November I tried it as Bet 6.

The original couldn't run in Atlas at all. It calls a language model while indexing and while searching, which breaks two of my invariants (interactive search is LLM-free, and there are exactly three places that call the model), and it's a Python service aimed at long PDFs. My index has zero PDFs, and only 59 of its 4,403 documents are long and structured. So I tested the idea in an LLM-free form: split long notes at their headings into section chunks, or expand a hit with its neighbouring text.

To avoid grading my own homework, I wrote a blind fixture first: six long notes and 48 questions whose answers sit deep inside them, written before I looked at how any arm behaved. Counting answered questions out of 48, the shipped retrieval got 36. Section chunks got 37, which looks like a win until you check the other sets. They cut harder-set paraphrase recall@1 from 0.88 to 0.62 and Dutch recall@1 by 0.40, because a short section has much less text for an embedding to match against. Expanding hits to 1,500 characters scored 35, and adding sibling sections scored 29.

The interesting number was elsewhere. For 42 of the 48 questions, the excerpt containing the answer was already in the top five. Only 36 reached the model, because the prompt's excerpt budget of about 527 tokens fits three excerpts. Retrieval was fine and the prompt was cutting it off. Raising the budget to 800 tokens fits five excerpts and answered 40 of 48 (on the holdout, 18 went to 21), at a cost of about 280 extra tokens per turn. On a 4,096-token window that's too much, since the system prompt and tool declarations already take most of it. The plan is a budget that follows the window: five excerpts at 6,144 tokens and up, three on the tightest phones. That one is in the queue and isn't built yet.

Smaller no's

Rescaling BM25. SQLite's FTS5 returns BM25 as a negative rank, and Atlas maps it into 0 to 1 with |r| / (1 + |r|). That saturates: ranks from −9 to −18 all land between 0.88 and 0.95, so keyword strength barely separates good hits from great ones. A better-spread rescale lifted golden MRR from 0.917 to 0.937 and fixed four rank-1 failures on my real index. It also cut harder-set paraphrase recall@1 from 0.75 to 0.375 and broke the recency gate. A title-coverage boost broke the calendar questions. Both went.

Cutting the 8B model's diagram draft. When LFM's 8B model draws a mermaid diagram, it drafts the whole thing inside its thinking block and then writes it out again. That looks wasteful, so I tried closing the thinking at the first code fence, and skipping thinking entirely. With full thinking it spent 645 tokens and 11.3 seconds, and 43 of 49 diagrams rendered (88%). Closing at the fence saved 3 seconds and dropped rendering to 38 of 52 (73%). Skipping thinking saved 5 seconds and rendered 15 of 20 (75%). The draft is where the model gets the syntax right. The only lossless speed-up I can see is prompt-lookup decoding, which copies the draft instead of regenerating it.

Fact-check noise. The meeting agent's fact checker (covered in the meeting agent post) got a round of tweaks. Only the LLM-free gate rules helped, lifting precision and recall from 86/67 to 94/76 at a 1,536-token budget. Along the way I learned that the 24B checker, sampling at temperature 0.3, gave 0 identical replies out of 77 across two dev runs, with 11 outcomes flipping. A change smaller than that noise can't be measured, so the checker now decodes greedily (baseline 89/69). Using the d1 decision model alone as the verdict scored 79/52, which was not enough.

TurboQuant. I wanted compressed KV caches for long MLX contexts. TurboQuant only exists on the upstream main branch and needs Swift 6.3, while my toolchain is on 6.1.2. I shipped an 8-bit and 4-bit KV-cache option on the released API instead, off by default, because LFM2 is a hybrid architecture where only 8 of 30 layers keep a KV cache (about 48 MiB at 8,192 tokens).

LFM2.5 at 8K. My Mac has plenty of memory, so I raised LFM2.5's window from 4,096 to 8,192 tokens. All 11 test turns produced zero characters of output. The model was never trained past 4,096, and the small models post tells that story in full.

What I keep relearning

First, a synthetic set agrees with my assumptions. Almost every rejected arm in this post won on the golden set, which I wrote, and lost on the harder set or the holdout, which were built to disagree with me. If I only had the golden set, I would have shipped the BM25 rescale, the length and title fusion terms and the section index, and each of them would have made real questions worse.

Second, the cheap version of a measurement is usually enough to kill an idea. The graph audit started with a count of how many questions were relational and how many sentences contained a relation. They predicted the oracle result before I ran it.

Third, the most useful finding is often next to the experiment. The PageIndex bet found the excerpt budget. The graph audit found a substring match. The fact-check round found sampling noise big enough to hide every change I was testing.

Atlas is a smaller app than the one I would have shipped in August, and each part that remains has a number behind it.

Try Atlas

Atlas: Private On-Device AI runs everything in this post on your own device: download for iPhone & iPad or download for Mac.

References