Iterate on an LLM, Serve on an SLM: How Phoebe Compressed a Yes/No Agent Into Qwen3-8B at 1/10 the Cost — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

Iterate on an LLM, Serve on an SLM: How Phoebe Compressed a Yes/No Agent Into Qwen3-8B at 1/10 the Cost

A NeurIPS 2026 workshop paper from Keegan Wang at Phoebe shows a two-phase agent build where the behavior is iterated in prompt space on GPT-5.4-nano against live caregiver-shift decisions, then distilled byte-exactly from 11,621 production traces into a LoRA-tuned Qwen3-8B. The student scores 0.913 agreement against recorded decisions while the teacher agrees with itself only 72.7%; a blinded professional scheduler sides with the student 48-29 on disagreements; latency drops ~2.5x and cost drops ~7x.

There’s a pattern that quietly split the 2026 agent-inference landscape in two, and the paper that named it dropped in October. arXiv:2610.14576 — “Iterate on an LLM, Serve on an SLM,” by Keegan Wang (Carnegie Mellon, working at Phoebe, accepted to the NeurIPS 2026 AABA4ET workshop on Agentic AI Benchmarks and Applications for Enterprise Tasks) — describes a production system that runs in two phases. In phase one, the agent’s behavior is iterated in prompt space on a frontier model with live traffic giving immediate feedback. In phase two, the recorded production behavior is distilled byte-exactly into a small model and the frontier model is retired from the serving path. The headline numbers across 549 production batches and 11,621 recorded yes/no decisions are uncomfortable in the right way: the student hits 0.913 agreement with what the agent actually decided, the teacher only agrees with itself 72.7% of the time, and a blinded human scheduler sides with the student 48 to 29.

The shape of the problem

Phoebe runs a scheduling agent for home-care agencies. For every open caregiver shift, the system has to make a yes/no safety decision per candidate — sometimes up to 1,000 candidates per outreach. The decisions happen at high reasoning effort on gpt-5.4-nano, and the prompt itself is the artifact being designed: the prompt builder, the serializer, the tool-call grammar, the soft profile tags, the conflict resolution rule set. None of it is fixed when the project starts, and all of it is changing every week for the first quarter.

The naive version of “use a small model here” fails on two counts. First, zero-shot small models fail narrow production tasks. Wang reports that five off-the-shelf SLMs did not meet the quality of the larger model, and a base Qwen3-8B produced malformed tool calls on 23% of cases. A small model is not a free drop-in for a frontier model; it has to be taught. Second, retraining an SLM every time the behavior changes is too slow to iterate on. The whole point of prompt iteration is that the loop from “we want to change X” to “we see whether X helped” runs in seconds or minutes. The loop from “we want to change X” to “we recorded a new dataset, LoRA-tuned, evaluated, and shadow-deployed” runs in days or weeks. Those two timescales are not compatible.

What Wang proposes is the lifecycle split: do the iteration in the cheap loop (prompts on a frontier model) and do the serving in the cheap loop (an SLM trained once, deployed broadly). The interesting engineering question is the boundary between the two loops — when do you commit to freezing the prompt and distilling?

Phase one, and why it has to be byte-exact

Wang’s recorded-data pipeline is the part of the paper I think is going to age well. Every production agent decision is durably recorded — the chat context, the tool call, the reasoning, the decision. When it’s time to build training data, the extractor replays each batch through the same production pipeline using the same prompt builder and serializer the live evaluator uses. The training distribution becomes literally the serving distribution. The paper calls this byte-exact replay and it’s a meaningfully different choice from the dominant synthetic-trajectory distillation pattern: instead of asking a teacher to write what it would have done, you record what it did, then train the student to do the same thing on the prompts it will actually see.

For 549 production batches across 17 organizations, the dataset ended at 11,621 train examples and 1,604 validation examples. Three filtering decisions matter:

  1. Reject reasoning without hard-conflict justification. If the recorded decision was a reject but the reasoning does not articulate a hard conflict, the example is dropped. Teaching the violation would be a bad trade.
  2. Dedupe overlapping decisions. Two batches that scored the same prompt end up keeping the most recent.
  3. Hold out by source batch. The validation set is structurally different from the training set because no record appears in both — but more importantly, no organization fully appears in both halves. That means the eval is measuring cross-organization generalization, not memorization.

What survives the filter is 11,621 examples, 87% of which are non-trivial safety decisions of the kind a small model is genuinely going to be asked to make at runtime. None of it is synthetic. None of it is hand-labeled. All of it is what the production system actually did.

What 11,621 bytes taught Qwen3-8B

Two fine-tunes are reported: LoRA on Qwen3-4B and LoRA on Qwen3-8B, at the training provider’s default adapter rank, constant LR 1e-4, 1,023 optimizer steps (approximately 1B tokens, ~3 passes), max_context = 65,536. Final eval loss: 0.534 (4B), 0.254 (8B). I want to flag two specifics here that are easy to miss.

First, the LoRA configuration. “Default adapter rank” is doing a lot of work in this paper — it’s the rank the training provider defaults to, not a hand-tuned hyperparameter. This is the operational reality of using a hosted LoRA service: you don’t get to crank the rank to 64 and tune it. You get the provider’s default and you live with it. The paper says it works; it does not say it can’t be improved by a manual sweep. For someone replicating this on a self-hosted training stack, the next obvious experiment is doubling the rank and seeing if the 0.913 number moves.

Second, the eval infrastructure. Every validation example is replayed at temperature 0 with the decision tool forced. The replay goes through the same byte-exact pipeline that produced the training data. This is a small detail and a critical one: the eval prompts are guaranteed to be the same shape as the serving prompts because they were produced by the same code path. No “the eval was cleaner than production” gap.

The noise floor that nobody else seems to measure

Most distillation papers compare the student to the teacher by training one and evaluating the other against a held-out gold set — usually human-labeled. Wang adds a third arm that’s easy to overlook and is, I think, the most operationally useful idea in the paper:

Re-run the teacher on its own recorded prompts and use its self-agreement as the noise floor.

The teacher (the production GPT-5.4-nano agent) was re-run on a seed-fixed random 150-case subsample of its own recorded prompts. It agreed with itself only 72.7% of the time (95% CI 0.65–0.79). That’s not a flaky model critique — that’s LLM non-determinism at temperature 0, sampled at real production prompt lengths, on real production reasoning chains. The instructor reads the conversation, decides, and the next time it reads the conversation it decides again, and 12 times out of 50 it lands on a different answer.

Two consequences fall out of this:

  • The teacher’s recorded decisions are not ground truth. They’re noisy annotations, roughly 27% noisy at the 95% CI lower bound, 21% at the upper. That’s the floor the student has to clear to be useful, and “useful” means “no worse than the noise.”
  • The student can legitimately beat the teacher. A student at 0.913 agreement with the noisy recorded answers is matching the central tendency better than the teacher itself. This is the Born-Again / Noisy Student / weak-to-strong generalization pattern translated into a production deployment. The paper cites all three. The new thing is doing it on production traffic rather than a benchmark.

The numbers

Reading from Table 1 of the paper, with the agreement metric scored against the 880 validation cases whose prompts fit the serving context (and the teacher’s noise floor scored on a seed-fixed random 150 of those):

ArmAgreement w/ recordedMalformed outputsFalse-approve (rec. rejects)False-reject (rec. approves)Latency p50 / p95
Teacher (gpt-5.4-nano, cached)0.7270 / 0%0.2180.3057.1 / 13.1 s
Base Qwen3-8B (zero-shot)0.774*203 / 23%0.2080.23614.9 / 36.6 s
Tuned Qwen3-4B (LoRA, SFT)0.863106 / 12%0.2310.0912.6 / 3.7 s
Tuned Qwen3-8B (LoRA, SFT)0.9130 / 0%0.2320.0112.9 / 4.3 s

* Base-model agreement is computed only on its 676 scored cases (the 23% that produced a usable tool call). Excluding the unanswerable cases makes the number read selection-biased high; on the full set it would be lower.

The interesting cells are the malformed-output rate (tuned 8B reaches zero; tuned 4B still has 12%) and the false-reject rate (0.305 → 0.011 — the tuned 8B is 8.5x more conservative about wrongly excluding a caregiver that the recorded decision had approved). The latter is the direction you want: in a safety-decision context, false-rejects (refusing a good candidate) are recoverable at the human-scheduler fallback; false-approves (offering a shift to someone who shouldn’t be there) are not. The teacher was overweighting false rejects because it was overweighting false rejects on its own previous answers — the self-noise was pushing it toward “no” more often than the actual policy.

The malformed-output gap between 4B and 8B is the capability floor the paper draws: 4B has the decision-making, but 4B cannot reliably produce a JSON tool call under the production prompt format. The paper says it explicitly: “the capability floor likely sits between 4B and 8B parameters.” I’ve been waiting for someone to draw that line with measured numbers in production rather than on a benchmark, and this is the cleanest version of the draw I’ve read.

Where the student wins, where it doesn’t

Cost and latency are reported in Figure 2(a) of the paper. At list prices, the teacher runs at roughly $1.9–$7.7 per 1,000 decisions depending on prompt-cache state. A dedicated single-GPU deployment of the tuned 8B lands at $0.19–$0.38 per 1k at full utilization, against A100/H100-class GPU-hour pricing. The tuned 8B is both the cheapest arm that answers every case and the most consistent (0.913 against the noisy recorded decisions) and within a third of a second of the fastest arm (the tuned 4B, which loses on the malformed-output axis). Median latency for the tuned 8B is 2.9 s vs 7.1 s for the teacher — a ~2.5x reduction. Cost reduction is ~10x at the cached prompt price, ~20x at the uncached price.

The cost number is the operationally important one for anyone building the agent version of the system. A 1,000-decision outreach becomes a $1.90 to $7.70 problem if you’re calling the frontier model at uncached rates, and $0.19 to $0.38 if you’re calling the distilled 8B on a dedicated GPU. For a home-care agency doing 50,000 outreach decisions a day, that’s a difference between $95/day and $385/day on the cheap end — the kind of cost that determines whether the agent ships or stays a prototype.

What the human thought

Wang’s most interesting contribution is also the most pedagogically valuable: a blinded 192-case evaluation by a professional home-care scheduler, with the 77 student-teacher disagreements deliberately oversampled. Post-stratified to the full validation distribution, the human sided with the tuned 8B 48 times vs. 29 for the recorded production decision — 62% to 38% (95% CI 0.51–0.72, exact binomial two-sided p=0.040).

The asymmetric story is the part that matters operationally. Against the teacher’s own labels, the student’s false-approve rate looked flat (0.232 vs 0.218). But against human labels, the student approves more caregivers the human would reject (0.273 vs 0.199) while cutting false rejects from 0.098 to 0.024. Net: more accurate, far less over-filtering, slightly more permissive toward borderline candidates. In a real home-care setting, the conservative direction (“we passed on a candidate who would have been fine”) is recoverable; the permissive direction (“we offered a shift to someone the human wouldn’t have”) is not. The student is making a different trade-off than the teacher, and the human ground truth says the student’s trade-off is closer to the operational optimum.

The paper is candid that humans add fewer caregivers than LLMs, even when all caregivers are good fits. That observation alone is worth a separate post — it implies the policy the teacher learned is systematically different from the policy a human scheduler would choose, and the student has corrected toward the human policy as a side effect of training on the noise-reduced decision stream.

What this doesn’t fix

Three honest limits, each in its own paragraph.

The student is not yet serving production. Every number in the paper is offline replay. The author is explicit: the true quality test is an online A/B in production, where prompt-cache dynamics, traffic mix, and downstream scheduler behavior all shift cost, correctness, and latency numbers. The 0.913 agreement held on a held-out 880-case validation set is necessary evidence, but the distribution shift between offline replay and live serving is exactly the kind of thing that surprises you at p95. The author commits to the A/B test as future work; until then this is a deployed-workload case study with a reasoned deploy plan rather than a deployed workload.

The ground truth is one professional scheduler. The statistics do not model correlation between cases from the same organization or batch, and there’s exactly one human labeler. Inter-rater reliability between schedulers is a thing. A second human labeling the same 192 cases would let us know whether the 48-29 split is a property of the LLM disagreement or a property of one scheduler’s preferences. The paper notes this in the limitations section and does not make it a foundational claim.

The method is untested on multiple teachers, multiple domains, or multiple subtasks. This is a single-domain (home-care scheduling), single-teacher (gpt-5.4-nano at high reasoning effort), single-subtask (yes/no caregiver safety decision) deployment. The lifecycle pattern — prompt-space iteration → freeze → byte-exact distill — is a generic claim that needs replication across subtasks. The capability floor between 4B and 8B is a parameterization claim that almost certainly shifts between tasks (the floor for JSON tool calling is not the floor for open-ended generation, and the floor for grounded question-answering is not the floor for command following). Until at least two other domains reproduce this, treat the lifecycle pattern as a credible hypothesis, not a settled engineering rule.

Where this fits in the rest of October’s serving-economic story

The paper is one entry in a fast-filling lane. LinkedIn’s behdin-2025-slm-serving (Behdin et al., arXiv:2510.22101, late October 2025) reported a 10× throughput increase on a deployed semantic-search SLM using three mechanisms in combination: up to 40% weight pruning, up to 10× input-context compression with minimal accuracy loss, and SGLang prefill-only optimization for serving on GPUs at millions of RPS. Connect’s October 14, 2026 enterprise benchmark report measured a 4B orchestrated SLM stack at 72.67% baseline, 81.20% after domain tuning, and 85.42% after orchestration — beating frontier LLMs on 19 enterprise models across 52 domains while frontier models “corrupted ~25% of content over 20-turn chats.” Three independent teams, three independent methods, all converging on: the agent serving path runs on a small model with a tailored compression recipe, and the iteration loop runs somewhere else.

I think the architectural split that Wang is pointing at — fast loop and slow loop, with a byte-exact seam between them — is going to be a default pattern in agent infrastructure in 2027. The seam is the interesting part: it’s the place where the recorded production decision stream lives, and the place where the cost asymmetry between frontier-model iteration and small-model serving has to be visible to the engineering team that’s running the build. The Phoebe paper makes the seam concrete in a way most agent papers don’t — they describe the model, the data, the recipe, and the numbers, and they label every place the seam leaks (noise floor, human-label bias, capability floor, single-domain experiment). That’s what a real engineering case study reads like.

If you’ve shipped an agent and you’ve watched the cost line on the bill go up as the prompt grows, this paper is for you. The numbers are not magic — they’re a discipline problem. The discipline is: record every decision, distill byte-exactly, and check the student’s agreement against the teacher’s self-agreement rather than the teacher’s answers. Three things, all operationally tractable, that together take a 1,000-decision outreach from $7.70 to $0.38. The frontier model is the right tool for the iteration loop. It’s the wrong tool for the serving loop.

Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.