Caching, verification, and self-improvement can save future work while introducing new dependencies. Lost cache reuse can sustain session backlog; loss curves and final answers can hide corrupted intermediate state; repeated candidate validation can cost more than the tasks an agent serves. The main readings connect recovery, explicit correctness checks, and evidence that remains available when an agent reuses experience.
Further developments span multi-agent coordination, GPU communication analysis, training-configuration selection, and proof repair. Some change execution mechanisms; others contribute measurement tools or negative evidence. Distinguishing layer speedups from end-to-end gains, task utility from behavioral fidelity, and model proofs from implementation coverage is central to interpreting them.
01 · Why a short burst can leave a cache persistently degraded
Bursts That Outlast Themselves: Persistent Degradation in Prefix-Cached Agent Serving
Wen Huang , Jack Liu · 2026-11-10
Prefix caching makes an agent turn cheap when most of its history remains resident. It also makes serving capacity depend on previous events. Wen Huang and Jack Liu show that a server can remain slow after a brief arrival surge has ended. Their contribution is a controlled demonstration of this history dependence and a comparison of recovery actions, rather than the invention of cache-aware concurrency control.
How lost cache reuse sustains congestion
The main experiment runs Qwen3-8B on a single MI300X with vLLM and a 400K-token KV pool. Paired runs share the same base sessions. Only one receives five minutes of additional arrivals at minute 15, raising total arrivals to 2.5 times the base rate. In nine of twelve pairs, only the burst arm persistently degrades; no pair shows the reverse. Both arms degrade in two pairs and neither in one. In a representative degraded run, the hit ratio stays near 10%, throughput drops substantially, and backlog continues growing through the end of the 90-minute experiment.
This is not simply unfinished burst traffic. Closed-loop agents must wait for model and tool responses before continuing. Slower service extends session lifetimes, increasing the population competing for KV capacity. Evicted prefixes force repeated processing of growing histories, slowing service further. A base load sustainable with a warm cache can exceed capacity once most turns miss.
After the burst, the red run keeps missing and accumulating sessions; blue is its no-burst twin with identical base arrivals.
Recovery must reduce already-admitted demand
Throttling new sessions leaves admitted sessions competing for the same insufficient cache. The authors instead park some sessions at turn boundaries. Their gateway budgeter estimates resident demand as context length plus output allowance and uses 0.75/0.95 of pool capacity as admission and parking thresholds. Parked sessions return before new arrivals; requests already in flight are not interrupted.
Among seven seeds collapsed in every comparison arm, the budgeter recovers all seven within the first five-minute measurement window. A capacity-based session cap also recovers all seven within six minutes; admission throttling alone recovers one. Token budgeting handles changes in session lengths better than a fixed session count. A 128-GiB host KV tier delays collapse but cannot eliminate a continually expanding working set.
Efficient execution is not an empty queue
Experiments with Qwen3-32B trace shapes and SGLang support the mechanism beyond the main configuration, without covering every scheduler, device, or real prompt distribution. In longer 32B runs, restored cache efficiency can coexist with growing backlog because arrivals exceed long-run completion capacity. Parking also delays individual users. For Ops4LLM, the key distinction is between warm capacity, cold capacity, resident session demand, and recovery policy: a recovered hit ratio alone does not establish recovered user experience.
02 · Plumbline: falling loss does not establish correct training
Plumbline: When the Loss Lies, Validating LLM Training Correctly
Ruochen Wen , Hongyang Wang , Siwei Li , Wenbo Chen , Xian Li , Jingguo Liu , Leo Fan , Yiming Yan , Qian Qu , Zheshen Wang , Benoit Dumoulin · 2026-11-10
A training run can avoid crashes and reduce loss while learning from the wrong labels or exporting the wrong model. Plumbline turns that problem into explicit checks over data, model loading, checkpoint recovery, optimizer updates, architecture, and serving exports. Its production use at Amazon supplies concrete failure evidence and illustrates why agent-driven diagnosis needs verdict rules independent of the diagnosing agent.
Give each layer a reference
Lifecycle checks compare tokens and loss masks with the official tokenizer and template, initialize parameters with NaNs before loading to expose omissions, and compare saved and restored state bitwise on every rank. An export check takes a zero-learning-rate step and compares the exported checkpoint with the original. Optimizer checks independently recompute loss normalization and updates at higher precision.
Architecture checks use real weights and the first layers needed to cover each layer type. They compare supported training configurations with a CPU FP32 reference, changing individual settings and grouping inputs by length. Gradient error fails when it exceeds four times the larger measured run-to-run or precision noise floor. Fault injection checks that tolerances do not hide the targeted defect. Full-model convergence runs cover failures that require depth, memory pressure, or distributed timing.
Lifecycle, one-step architecture, and full-run checks cover different faults; diagnostic tools supply records rather than independent pass verdicts.
Agents organize tests; fixed checks decide
An agent selects configurations, orders jobs, and proposes causal explanations. It does not redefine pass criteria during the investigation. Diagnosis combines the same checks with profiling, memory snapshots, communication records, and stack dumps, reducing scale or changing one setting at a time. A human approves plans and critical changes; a second agent reconstructs findings from raw records before human confirmation. Incomplete comparisons remain inconclusive or unevaluated.
Across tested versions of three frameworks and five MoE models, Plumbline finds 61 problems, including 32 silent ones. Of the total, 42 are fixed or reported upstream, eight first reported by the authors. Lifecycle and architecture checks first discover 29 of the 32 silent problems; at least 16 occur in runs that pass convergence checks. One example is a loss mask that omits the reply-ending token: loss can fall without teaching the model to stop correctly.
Missing references mean missing coverage
The counting unit is one root cause on one framework. These are not 61 newly discovered vulnerabilities or a population failure rate. Layers without a trusted reference remain unjudged, as with the tested DeepSeek-V4.1-Flash implementation. Shared defects in reference and tested code can also escape comparison. The valuable reading is the check contracts and failure taxonomy: apparently healthy training becomes a set of bounded evidence claims rather than one universal correctness score.
03 · Failure trajectories: does contradictory evidence actually change state?
Dependable Long-Horizon LLM Agents: A Trajectory-Centered Empirical Study of Where Errors Enter and Which Controls Reach Them
Shaohuang Wang , Jinghao Wen , Xulei Zhang , Xun Jiao · 2026-11-09
Asking which agent made the decisive mistake often stops at the most visible symptom. This paper introduces an episode record connecting a candidate origin, affected state, propagation, detection, response, and outcome. Its practical question is whether a control can both observe the relevant evidence and reach the state that needs correction, making it directly relevant to AgentOps diagnosis and recovery.
Similar symptoms can require different controls
The framework separates operational phases from state domains. A false fact may enter a plan, cross a shared-message boundary, and later drive a tool action. Links distinguish observations, intervention-supported relations, and hypotheses. Step fields must point to trace lines, while evidence fields record whether contradictory information was available, acknowledged, or acted upon. A generic verification failure can then be separated into accepting an unsourced claim, verifying the wrong task, or losing an observation during handoff.
Operations, state domains, and propagation dynamics are separate coordinates; recovery must reach contaminated state rather than only the final symptom.
The study completes 96 records and excludes one procedurally faulty run with a correct final answer from outcome statistics, leaving 95 failures. A crucial limitation is that Claude produces the records under the written protocol. This is not an independently human-annotated dataset. The authors manually inspect some comparison disagreements but report no human inter-annotator agreement. Partial corpus coverage and exclusion of very long traces further limit generalization.
Detection does not imply recovery
The records identify contradictory evidence before the final failure in 68 of 95 runs, with action in only seven. The prose’s “88%” non-action figure does not exactly match these counts; the numerator and denominator are clearer. Deviations are detected in 29 runs, yet no response completely removes the deviated state. Changing the next action while retaining the false belief can reproduce the same loop.
The authors judge local state restoration sufficient in 35 of 95 cases. In 56, the problem sits in the plan, task brief, or stopping rule and may simply recur after rollback. These are retrospective reach assessments, not measured success rates of deployed recovery controls. An additional judge helps only if it reads the neglected evidence rather than repeating the worker’s information.
A separate finding comes from deterministic log scanning
Scanning the complete Who&When corpus finds provider content-filter crashes in 26 of 58 hand-crafted runs. In 25, the harness subsequently prints a final answer no agent produced. This result does not depend on episode annotation and exposes an attribution problem: a benchmark may blame an agent for a runtime fallback answer. The reusable contribution is source-grounded propagation records and explicit inspection of post-detection state change; the reported proportions should not be treated as production failure prevalence.
04 · WikiTrace: keep evidence behind an agent’s memory
Don’t Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents
Yukyeong Lee , Yumin Choi , Jinheon Baek , Sung Ju Hwang · 2026-11-10
Memory can improve average performance while causing failures on tasks an agent could previously solve. WikiTrace measures that regression separately and targets a common compression failure: distilling a success or failure into a lesson while discarding the experience that could qualify or contradict it.
Follow a lesson back to its run
Each historical run produces a compilation of successful decisions or plausible failure causes and at most three insights. The original trajectory is preserved. Every insight links to both the compilation and the raw run and records applicability and source outcome. Compilations remain interpretations, not verified diagnoses. Conflicting insights can coexist; the acting agent decides which applies.
For a new task, the agent receives all insights and navigation pointers to three similar historical tasks. Missing details, conflicting lessons, failed source runs, and failed actions trigger prompts to inspect read-only source files with terminal tools. In a PlanCraft example, a mistaken lesson treats an intermediate crafting preview as consumed material. The original runs show that continuing to place ingredients completes the recipe. Evidence changes the basis for action rather than merely expanding the prompt.
Memory construction preserves links between insights, compilations, and raw runs; the agent follows them when details are missing or lessons conflict.
Compare with identical insights
The main evaluation uses the same DeepSeek-V4-Flash agent across eight suites from five benchmarks, with three trials. Each method builds memory once from the same training trajectories without extra validation runs. Mean performance rises from 79.5 without memory to 90.2 with WikiTrace. Giving the same insights without source access scores 87.0, a more direct 3.2-point comparison. This intervention includes both source access and the descent prompt; it does not isolate hyperlinks alone.
Previously solvable tasks are defined by the majority outcome of three no-memory trials. Regression on those tasks is 4.5% with WikiTrace and 6.5% with insights alone. Additional no-memory trials yield 9.7%, showing that ordinary run variability also causes regression. WikiTrace’s mean test-time cost is 1.17 times that of insights alone.
Traceability does not certify a lesson
Putting every insight in the initial message leaves retrieval and context limits unresolved at larger memory sizes. Agents choose when to descend, so comparisons between descending and non-descending runs are observational. Failure categories and descent effects also rely on model judgments of reasoning text. The useful reliability contribution is a route for correcting inherited advice, together with separate measurements of gains and lost successes, rather than a guarantee that memories are correct or indefinitely scalable.
05 · The RSI Tax: count the cost of improving the agent
The RSI Tax: When Recursive Self-Improvement Is Not Worth the Cost
Yitong Zhang , Ang Li , Yisen Wang · 2026-11-10
Self-improvement reports often emphasize the better harness or skill that eventually reaches deployment. The RSI Tax asks what it cost to find that improvement. It counts candidate generation, experience analysis, repeated validation, and persistent-state writing alongside task execution, fixing each task’s score before its feedback can influence later updates.
Why a simple adaptive baseline matters
Six methods and two backbones are evaluated on seven repository chains totaling 105 positions and 89 Terminal-Bench 2.1 tasks: 2,328 scored method–task pairs. Methods share an initial agent and task order within each setting. Some procedures, including EvoSkill, are adapted for the stream, so these are not unchanged reproductions of their original evaluations.
Simple Reflection with Notes, or SRN, revises a note of at most 2,048 tokens every four tasks using failed-task excerpts and scalar outcomes from the allowed window. With no failures, it keeps the note. It performs no candidate search or extra validation. This provides an adaptive but inexpensive comparison for deciding whether more elaborate search pays for itself.
Score each task before using its feedback; total cost includes execution plus verification, exploration, and writing for improvement.
Validation costs more than writing skills
SRN has the highest observed accuracy in three model–benchmark settings and ties EvoSkill in the fourth. Averaging within-setting total-token ratios gives reductions of 65.6%, 71.0%, and 68.2% relative to Meta-Harness, EvoSkill, and RRSI. The conclusion concerns amortization over these finite streams, not the impossibility of useful self-improvement.
Verification accounts for 74.8%–93.6% of the three methods’ aggregate improvement tax. On the DeepSeek terminal stream, Meta-Harness uses fewer task-execution tokens than SRN, but approximately 578.45M improvement tokens bring its total to 762.57M versus SRN’s 214.65M. Looking only at execution after adaptation reverses the cost story.
Unused artifacts are not automatically removable waste
Costs are also associated with whether a state or artifact is used later. These are token shares, not failed-update rates. Rejected candidates may still inform subsequent search, so their costs cannot necessarily be removed without consequences. Nor are raw token counts equivalent to dollar bills with cache discounts and different input/output prices.
Two models, one terminal ordering, and limited repository chains do not establish long-run returns or robust rankings across repetitions. The transferable AgentOps contribution is accounting: separate task and learning costs, distinguish validation from exploration and writing, and track how long outputs are actually reused. This is substantive negative evidence about particular update procedures, not a universal argument against adaptation.
06 · SHADOWPREFILL: warm the next model before a routing switch
SHADOWPREFILL: Keeping Your Next Model Warm for Per-Step Model Routing in Agentic LLM Serving
Haoran Qiu , Rohan Mahapatra , Rodrigo Fonseca , Mark Russinovich · 2026-11-09
Per-step routing loses cache reuse when a session changes models. SHADOWPREFILL incrementally prefills the same history on the unselected model, prioritizing likely switches. Shadow work runs only behind normal demand and within latency slack; its KV entries are evicted first and can spill to host memory. A switch never waits for warming to finish: it uses the available prefix and computes the remaining tail.
The main 22-pair results are trace-driven simulations with cached tokens priced at one tenth of uncached input, so billing reductions are not GPU-cost reductions. A 16-H100 prototype separately reports 61.9% lower mean switch TTFT and 1.4% higher energy per compliant request. Decode-heavy pairs can show almost unchanged total LLM time. Unlike cross-version cache reuse, this computes the target model’s own state; benefit depends on slack, context length, and residency.
07 · Cross-version KV reuse: utility differs from behavioral fidelity
Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study
Zhikun Tao , Fangyong Jin , Junping Zhao · 2026-11-10
Directly carrying old KV state into an updated model can preserve useful retrieval while changing answers or stopping behavior. Across four updates, the authors compare native target execution, native source execution, and direct handoff, finding substantial pair dependence. For DeepSeek-V4-Flash to Flash-0731, three longer-prefix QA benchmarks show median TTFT speedups of 2.10–5.08 times with source caches prepared. HotpotQA and 2WikiMQA lose approximately three and seven F1 points, while shorter-prefix BABILong reaches only 0.86 times native speed.
TTFT includes cache loading but excludes source-prefill and model-startup costs. Similar aggregate accuracy can hide both broken correct answers and repaired errors. Functional Cache Divergence additionally compares predictive distributions under matched histories. For rolling updates, the lesson is to distinguish task utility, first-token agreement, and full-generation fidelity rather than treating loadable state as semantic compatibility.
08 · ForeSpark: allocate speculative work before drafting
ForeSpark: Joint Draft and Verification Budget Scheduling for Parallel Speculative Decoding
Jaeyong Song , Daniel Wang , Pratyush Patel , Jonny Kong , Preyas Shah , Shobhit Kanaujia · 2026-11-10
A parallel drafter that always proposes a full block still pays for tokens later discarded before verification. ForeSpark predicts acceptance benefits for different lengths from target context features and the anchor token before drafting. A scheduler converts reward curves into sortable marginal benefits and uses profiled latency tables to jointly choose draft lengths and verification budget. After drafting, actual candidate confidence redistributes verification while standard speculative sampling preserves the output distribution.
On vLLM with Qwen3-14B and two GLM models on H100/B200 hardware, throughput reaches 1.77 times DSpark at matched per-user generation rate. That maximum is decode-only; prefill reduces end-to-end gains. Ordinary autoregressive decoding can still lead at the heaviest Qwen3-14B decode-only load. Global sorting can also leave individual requests undrafted for a step. The contribution is avoiding work before it is paid for, with workload and fairness boundaries intact.
09 · EngineAgent: model enablement must cross engine and device boundaries
EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware Abilities
Zhengxiang Huang , Yujie Sun , Shengheng Chen , Zhaode Wang , Chaoyue Niu , Zeyu Zhao , Chengfei Lv , Fan Wu , Guihai Chen · 2026-11-10
Enabling a new model in a mobile engine often requires coordinated export, graph, operator, and backend changes. EngineAgent first constructs a hierarchy/dependency index and validates build, execution, and debugging procedures on real hardware using supported models. Builder, debugger, and auditor agents then iterate against those artifacts. A non-agent verifier ultimately compares device logits with host PyTorch references rather than accepting an auditor’s verbal approval.
Twelve tasks combine three models with four engine–backend pairs under a five-hour limit. Both backbones achieve 9/12 successes versus 4/12 for the strongest baseline. Removing the hierarchy index or hardware skills lowers success to 3/12 or 5/12, supporting their complementary roles. Artifact construction has separately reported one-time costs, and per-task API charges do not represent total maintenance cost. The small sample and bounded numerical tests also limit coverage. Its contribution is evaluating enablement beyond compilation, through complete cross-layer changes and device execution.
10 · NVLinkOneSided: send tokens without a metadata round trip
One-Sided Expert-Parallel All-to-All for Mixture-of-Experts Inference over NVLink
Bo Li , Chulian Zhang , Or Biri , Anthony Chang , Anton Korzh , Noam Duvdevani , XingFei Xi , Daniel Stokes , Zhenhuan Chen , Ludwig Schneider , Artem Y. Polyakov , Julien Demouth , Chandler Zhou · 2026-11-09
Fixed handshakes can dominate MoE communication at small batches. NVLinkOneSided assigns each source rank a private destination-buffer region and pushes tokens directly. The receiver builds expert-to-slot indices so grouped GEMMs read in place without a separate expert-major copy. Fence amortizes synchronization; Sentinel detects arrival through data, favoring smaller batches.
On eight B300 GPUs with balanced synthetic routing, small-batch dispatch-plus-combine is 1.75–3.00 times faster than DeepEP. Fused MegaMoE can lead at larger batches through communication/computation overlap. The method requires one NVLink domain and word-arrival properties unavailable over RDMA, and workspace grows with EP size. Unlike the SGLang megakernel, it preserves a modular communication interface rather than tying every optimization to one fused compute implementation.
11 · ForeSight: separate fixed stalls from hardware queues
Exploiting What NVIDIA Profilers Hide: Fast and Accurate Analytical GPU Performance Modeling
Ziwen Wang , Qi Luo , Kunlin Li , Changxi Liu , Dongsheng Wang , Yun Chen · 2026-11-10
Scaling every stall together confuses fixed dependencies with resource contention. ForeSight profiles an original configuration, retains measured fixed-latency stalls, recomputes queueing from target-unit pressure, and replays CTA execution. UnitSight recovers per-SM, L2-slice, and memory-channel counters from CUPTI CounterData that aggregate reporting obscures.
The nine-GPU configuration study covers fifty workloads, including forty-seven inference operators. Overall execution-time MAPE is 8.3% versus 14.1% for the strongest comparison baseline. Median H20-based prediction takes about 26 seconds, roughly 49 times faster than cycle simulation, while initial profiling still takes about 170 seconds. Simpler analytical models can be faster. The contribution is resource-level observability for configuration prediction, not measurement-free transfer to arbitrary architectures or direct serving acceleration.
12 · TKNP: separate weight placement from attention ownership
Decode Token Parallelism: Memory-Efficient Distributed Attention Parallelism for Scalable LLM Decoding
Susav Shrestha , Brad Settlemyer , Narasimha Reddy · 2026-11-09
Scaling long-context decode creates a trade-off between replicated weights consuming KV capacity and sharded attention requiring cross-node merging. TKNP distributes one weight copy in contiguous layer blocks. The block owner performs projections and MLPs for the full batch, while fixed request owners keep all-layer KV and compute their requests’ attention locally. Current-token activations cross nodes; dense TP collectives remain inside each node.
The vLLM implementation evaluates Llama 3.1 405B and Nemotron-4 340B on up to 64 H100s, reaching 2.06 times DP completion throughput in long-context, high-concurrency cases. That metric includes admission waves and draining, not just active-request token latency. Small batches or short contexts can lose to communication overhead. The dual-root microbatch variant adds a second distributed weight copy, trading KV capacity for overlap.
13 · SlackTier: place lookup tables by their prefetch deadlines
Placing LLM Lookup Tables by Per-Layer Prefetch Deadlines
Wen Huang , Jack Liu · 2026-11-10
Engram lookup indices depend only on input tokens, allowing reads to start at the beginning of a decode step. SlackTier exploits unequal deadlines: early layers need rows quickly, while later layers can hide slower reads behind preceding computation. Its SGLang path submits early-layer I/O first, handles indexing and deduplication on a CUDA-Graph side stream, and makes each layer wait only for its own event. A small GPU row cache reduces early deadlines and shared-disk contention.
On four H200s with DeepSeek-V4.1-Flash agent/chat replays, placing both tables on four NVMe drives raises time per output token by at most 1.4% against unmodified SGLang and reduces host memory from 212 to 34 GiB. Predictable sparse lookups differ from streaming dense or expert weights. Optional row skipping is lossy and must remain separate from exact gathering. New hardware requires remeasuring deadlines, I/O contention, and miss curves.
14 · SinkState: maintain recurrent states in adaptive low rank
SinkState: On-the-Fly SVD of Recurrent States for Efficient Hybrid LLM Serving
Haolin Jiang , Weihang Li , Zhongzhu Zhou , Jinwen Pan , Santosh Pandey , Hang Liu · 2026-11-10
Linear-attention state does not grow with history, yet dense state traffic can dominate larger batches. SinkState initializes low-rank factors with randomized SVD, buffers new updates, and periodically merges them into the dominant subspace. The CPU consolidates other components asynchronously, while fused kernels compute from factors and buffers without materializing dense states each step.
Four Mamba-2/GDN hybrid models run on one 96-GB RTX PRO 6000 Blackwell. Peak recurrent-state memory falls by up to 2.6 times relative to dense-state backends; that denominator is not total model or GPU memory. Singular-value truncation is approximate, thresholds vary by model family, and CPU/PCIe resources matter. Quality retention is empirical on the tested benchmarks. The contribution is ongoing rank control during serving rather than compressing only a post-prefill snapshot.
15 · LM-SimBench: connect simulation errors to training stages
LM-SimBench: A Unified Framework, Dataset, and Benchmark for Large Language Model Training Simulation
Yu Dong , Hong Li , Qiang Sun , Xu Zhou , Jinbiao Huo , Qixiu Cheng , Zhiyuan Liu · 2026-11-10
Different workloads and accounting conventions obscure whether training-simulator errors arise from operators, communication, or scheduling overlap. LM-SimBench separates compilation, device binding, execution representation, cost estimation, and schedule aggregation, linking six measurement views through configuration and rank identifiers. Its main Ascend 910B3 dataset contains ten model families, twenty-three settings, and 348 feasible configurations varying five parallelism dimensions and recomputation.
On six common test configurations, vTrain and Calculon have time sMAPE of 1.86% and 8.88%, but both select the fastest configuration. Better numerical accuracy need not change the decision. This small comparison is not a ranking over all 348 configurations. Paired V100/NPU experiments support GPU shortlisting from NPU measurements for two small Qwen models, with final selection still using GPU measurements. The contribution is comparable evidence and error localization, not a universal simulator winner.
16 · ExpertCrowd-SWE: grade changes against maintainer requirements
ExpertCrowd-SWE: Measuring Frontier Coding Agents on Expert-Authored Engineering Tasks in Unfamiliar Codebases
Josip Vrdoljak , Akash Singh , Bas Steunebrink , Alex Yarotsky , John Lorenzo , Achille Nicoletti , Sam Pigott · 2026-11-09
ExpertCrowd-SWE asks engineers familiar with real repositories to author multi-file changes against pinned commits. Weighted graders allow partial credit but retain must-pass blockers. Reference solutions must score fully, untouched and inert changes must score zero, and nearly half the tasks include lazy or adversarial control patches. This adds maintainer rejection criteria beyond a simple test-pass count.
One hundred tasks span 87 projects and eleven languages. Seven models with five runs yield 3,495 scored executions. Leading scores of 67.3% and 63.7% are mean partial-credit scores, not full-solution rates, and their difference is not significant. Tasks were selected for frontier-model difficulty; only 24 are public and 76 held back. Harness and native tool interfaces also shape comparisons. Grader calibration and repeated-run reliability are more transferable than a universal capability ranking.
17 · Context-file instructions: measure observable compliance
Do They Do as They Are Told? Investigating Coding Agents’ Adherence to Explicit Instructions in Context Files
Gianmario Voria , Yutaro Kashiwa , Gemma Catolino , Fabio Palomba · 2026-11-10
Writing a rule into an AGENTS.md-style file does not establish execution-time adherence. The study links 621 context snapshots to 6,541 agent commits across 268 repositories. Explicit, actionable, observable instructions become measurement scripts and fixtures, with independently generated scripts providing corroboration before applicable commits are checked.
Among evaluated instructions, 54.4% are satisfied in every applicable commit and 37.3% in none. However, the median instruction has only three applicable commits, and single observations necessarily produce zero or full compliance. Higher-support sensitivity analyses address that issue. Compliance in artifacts also does not prove the file caused it: repository conventions and model defaults may explain behavior. The contribution is executable measurement with evidence thresholds, not a causal ranking of agent obedience.
18 · TopoVerus: train counterexamples for useful proof repair
- Paper: Curriculum Proof Repair with Learned Counterexamples (v1 PDF · HTML · Code · Weights)
- Authors: Yuechun Sun, Jun Yang, Kexin Pei (Department of Computer Science, University of Chicago)
- Venue & Status: arXiv:2611.13627v1
[cs.PL; cs.LG]· Submitted 2026-11-10 (PDF uses the NeurIPS 2026 template; onlyv1exists at verification time, with nov2revision or withdrawal)
TopoVerus tackles automated proof repair in Verus (a Rust formal verifier backed by SMT solvers) by shifting diagnostic reasoning from external iterative solvers into the language model policy itself and turning invariant dependencies into an intra-episode curriculum reward. Trained on top of QwQ-32B, TopoVerus-32B (CTX-Dep) achieves 61.6% / 72.2% micro-averaged Safe-Pass@1 / Safe-Pass@3 across 471 problems from 7 Verus benchmark suites, surpassing Claude Sonnet 4.5 (55.9% / 65.9%) by 5.7 / 6.3 percentage points. All figures and claims below trace directly to arXiv:2611.13627v1 (Tables 1–7, Figures 1–4, Appendices A–D), separating primary measurements from audit caveats.
1. Problem Formulation, Under-Constrained Diagnostics & Single-Trajectory Synthesis
A Verus verification task pairs executable Rust code with formal specifications (requires / ensures) and ghost proof annotations (loop invariant, assert, decreases), which Verus discharges into Verification Conditions checked by Z3 or cvc5. Standard verifier-in-the-loop repair loops struggle for two complementary reasons: raw Verus diagnostics report coarse pass/fail locations (such as postcondition not satisfied or invariant not satisfied before loop) without exposing concrete failing states, while prior counterexample pipelines either incur heavy test-time iteration with hand-crafted validators (ExVerus) or attempt brittle reconstruction from low-level SMT models.
Given a failing proof and error decomposing into pre-state antecedent and obligation consequent , a valid counterexample state satisfies . Rather than calling an external symbolic checker to validate , TopoVerus trains policy to emit four structured blocks within one trajectory (Appendix D):
<think>: internal chain-of-thought reasoning;<counterexample>: a semi-formal diagnostic tuple comprising[State](concrete inputs/variables ),[Execution Trace](stepwise execution from yielding ), and[Violation](natural-language root cause );<reasoning>: a concise repair plan grounded in that counterexample;rustcode block: a single fenced block with the complete candidate repaired program .
Section 2.1 (search_insert, Figures 1–2) explains why order-blind diagnostics stall. The binary-search loop carries five clauses: array-length bound I1, index bounds I2 (low) and I3 (high), and semantic partition clauses I4 (elements left of low are < target) and buggy I5' (high <= i instead of high < i). When I1–I3 are missing, dependency-unaware reasoning emits syntactically plausible [State]–[Trace]–[Violation] text that hallucinates mid = 0 before the loop and instantiates i = 1 outside the quantified range (high = 2, len = 3), ending in vague postcondition hand-waving. Once prerequisites I1–I4 are established, the state (nums = [1, 3, 5], target = 5, low = 2, high = 2) anchors the trace cleanly on i = high = 2 (nums[2] = 5 violates > 5), pinpointing the exact edit high <= i -> high < i.
2. Topological Dependency Graph, Lynette Safety Gate & Curriculum RL
To convert prerequisite proof structure into dense intra-trajectory RL supervision, TopoVerus combines three mechanisms:
-
Offline Invariant Dependency Graph & SCC Condensation (Section 3.3, Appendix A): For each verified training program’s canonical loop-invariant set , let be the family of inductive subsets (established at loop entry and preserved by the loop body). The structural prerequisites of invariant are those invariants present in every inductive subset containing :
defining directed graph with . Mutually inductive cycles are condensed via Tarjan’s algorithm into a DAG over strongly connected components (SCCs). Because exact minimal inductive subset enumeration reduces to Hypergraph Transversal Enumeration (
Trans-Enum, best known complexity quasi-polynomial ), Algorithm 1 runs level-wise BFS over cardinalities with antichain pruning (skipping supersets of any discovered minimal inductive set ) under a budget cap verifier calls per file. Across531verified programs across5datasets (median , mean ),98%satisfy () so enumeration is exact; only2%(9LeetCode files, ) trigger approximation. Pruning cuts calls from81,143naive to9,216(8.8×reduction overall;25.9×on LeetCode), taking≈ 64 minon one machine (mean0.42 sper Verus call, range0.25–0.71 s). Only the249training programs’ graphs are used during training; reference proofs, , and are completely withheld at test time. -
Topological Graph Reward (Equation 6): Candidate invariants extracted from the model’s code are aligned against via exact substring matching and token-set Jaccard similarity to obtain . Over inter-SCC dependency edges , the reward evaluates coverage and source-order satisfaction :
Intra-SCC mutually inductive edges are ignored, and if . During GRPO training, evaluating is an lookup-and-order check with negligible overhead.
-
AST Safety Gate & Shaped GRPO Objective (Equation 2): The full response-level reward is:
Here AST Safety Gate invokes
Lynette(Yang et al., 2025) to verify that only ghost proof annotations changed; tampering with executable Rust code or userrequires/ensuresspecifications zeroes the reward. reflects Verus acceptance, while and feasibility gate penalize omitted<counterexample>or<reasoning>blocks to prevent mode collapse into plain CoT. Starting fromQwQ-32B, the team distills461SFT trajectories from249disjoint source programs usingClaude Sonnet 4.6as teacher (DeepSpeed ZeRO-3,4 × NVIDIA L40S,lr = 2×10⁻⁵,batch = 32,max_len = 8,192,2epochs), followed by GRPO (FSDP2+4-way Ulysses sequence parallelism, vLLM rollouts attemp = 0.7,top-p = 0.9,8rollouts/prompt,lr = 2×10⁻⁶, no KL penalty, PPO clip0.28,2epochs over the same249programs).
3. Seven-Suite Benchmarks, Counterexample Transfer, Mechanisms & Audit Boundaries
The standard evaluation spans 471 test problems across 7 suites, allowing up to 10 iterative verifier-feedback steps per chain (3 independent chains for Safe-Pass@3), with Lynette validating ghost-only edits on every accepted repair. Table 1 consolidates Table 1 and Table 4 across both micro-average (problem-weighted) and macro-average (suite-weighted) views:
| Approach / Variant (Tables 1 & 4) | VerusBench (26) @1/@3 |
DafnyBench (17) @1/@3 |
HumanEval (15) @1/@3 |
LeetCode (5) @1/@3 |
VeriCogen (89) @1/@3 |
ObfsBench (266) @1/@3 |
VeruSAGE (53) @1/@3 |
Micro Avg (471) @1/@3 |
Macro Avg (7 suites) @1/@3 |
|---|---|---|---|---|---|---|---|---|---|
Sonnet-4.5 |
73.1 / 84.6 |
70.6 / 76.5 |
13.3 / 13.3 |
40.0 / 40.0 |
26.7 / 30.0 |
62.0 / 75.2 |
75.5 / 84.9 |
55.9 / 65.9 |
51.6 / 57.8 |
GPT-4o |
42.3 / 42.3 |
76.5 / 76.5 |
6.7 / 13.3 |
0.0 / 0.0 |
40.4 / 41.4 |
21.8 / 22.9 |
17.0 / 24.5 |
27.2 / 29.0* |
29.2 / 31.6* |
Qwen3-Coder |
34.6 / 34.6 |
52.9 / 52.9 |
6.7 / 6.7 |
0.0 / 0.0 |
20.0 / 25.6 |
14.3 / 18.8 |
45.3 / 64.2 |
21.0 / 26.7* |
24.8 / 29.0* |
DeepSeek-V4 (Flash) |
23.1 / 38.5 |
47.1 / 82.4 |
13.3 / 20.0 |
0.0 / 0.0 |
28.9 / 36.7 |
12.8 / 29.3 |
58.5 / 66.0 |
22.7 / 36.7* |
26.2 / 39.0* |
AutoVerus |
38.5 / 50.0 |
58.8 / 70.6 |
6.7 / 6.7 |
20.0 / 20.0 |
22.5 / 28.1 |
13.2 / 23.7 |
7.5 / 9.4 |
17.2 / 25.5* |
23.9 / 29.8* |
CoT-Init (QwQ-32B SFT) |
46.2 / 50.0 |
82.4 / 100 |
20.0 / 26.7 |
0.0 / 0.0 |
38.2 / 48.3 |
42.9 / 60.9 |
15.1 / 24.5 |
39.3 / 53.5* |
35.0 / 44.3* |
CTX-Init (+CEX SFT) |
88.5 / 92.3 |
88.2 / 100 |
26.7 / 26.7 |
20.0 / 40.0 |
48.3 / 61.8 |
55.3 / 73.3 |
9.4 / 22.6 |
50.5 / 65.6* |
48.1 / 59.5* |
CTX-Binary (+Binary RL) |
88.5 / 96.2 |
94.1 / 100 |
26.7 / 26.7 |
20.0 / 40.0 |
44.9 / 60.7 |
58.6 / 75.9 |
24.5 / 30.2 |
53.7 / 67.9 |
51.0 / 61.4 |
CTX-Dep (TopoVerus-32B) |
88.5 / 88.5 |
100 / 100 |
20.0 / 33.3 |
20.0 / 20.0 |
49.4 / 65.2 |
69.9 / 80.1 |
30.2 / 43.4 |
61.6 / 72.2 |
54.0 / 61.5 |
Note: Micro/macro averages for Sonnet-4.5, CTX-Binary, and CTX-Dep plus CoT-Init/CTX-Init micro @1 (39.3% / 50.5%) are reported directly in Section 4.3 and Table 4; entries marked * are computed directly from Table 1 suite counts (26, 17, 15, 5, 89, 266, 53) using Table 4’s exact weighting definitions.
Cross-referencing Tables 2, 5, 6, and 7 illuminates both why TopoVerus works and where its empirical boundaries lie:
| Diagnostic / Mechanism Experiment | Protocol & Fixed Inputs | Reported Quantitative Measurements | Interpretation & Caveats |
|---|---|---|---|
Cross-model counterexample transfer (Table 2, 118 frozen hard failed states) |
Hold buggy code and Verus error fixed; swap only the counterexample source fed to DeepSeek-V4, Sonnet-4.5, Qwen3-Coder |
DeepSeek: 11.9% → 15.3% (CTX-Init) → 19.5% (Binary/Dep, +64.3%); Sonnet: 31.4% → 32.2% → 33.1% → 39.0% (+24.3%); Qwen: 13.6% → 12.7% (-6.2%) → 15.3% (+12.5%) |
Learned diagnostics carry actionable signal to external repairers despite lacking formal certificates; CTX-Dep ties CTX-Binary on DeepSeek and Qwen while separating cleanly on Sonnet (+5.9 pp) |
Test-time scaling (Figure 3, Table 5, 63-task subset) |
Iteration scaling (1 chain × 32 steps) and sample scaling (32 chains × 10 steps) |
CTX-Dep vs CTX-Binary at 1/2/4/8/16/32 iters: 47.6→47.6%, 55.6% vs 49.2% (+6.4 pp), 60.3% vs 57.1%, 63.5% vs 61.9%, 69.8% vs 68.3% (plateaus at 16); 32-chain sampling reaches 79.4% (Sonnet 16-chain 73.0%) |
Topological reward delivers its largest speed-up by iteration 2 (+6.4 pp), whereas iteration-1 single-shot pass rate sits at 47.6% |
Post-hoc invariant coverage & DAG ordering (Table 7, 24 paired passing tasks) |
Paired tasks accepted by Verus with non-empty dependency graphs | Mean coverage: 98.6% (Binary) vs 98.5% (Dep, -0.1 pp); Inter-SCC edge satisfaction: 43.8% → 95.8% (+52.1 pp); Full ordering (β=1): 10/24 (41.7%) → 23/24 (95.8%); Score αβ: 0.424 → 0.943 |
Confirms gains stem not from emitting more invariants, but from establishing prerequisite bounds before dependent clauses |
Proof signature diversity (Table 6, 249 paired tasks) |
Lynette extracts ghost-only signatures across 3 independent chains |
CTX-Binary / CTX-Dep Ghost rate: 84.9% / 79.4% (in-dist), 94.2% / 88.4% (VeriCogen), 96.9% / 93.9% (ObfsBench), 72.2% / 66.7% (VeruSAGE); ObfsBench unique signatures 2.618 / 2.640 |
Dependency ordering trims signature spread slightly without collapsing solutions into a single memorized template |
Five explicit audit boundaries qualify these results:
- No formal reachability or validity guarantee for learned counterexamples: Section 6 emphasizes that formal reachability verification is often intractable in complex proofs, so is trained strictly as an intermediate reasoning artifact rather than a mathematically sound counterexample certificate. The model can still hallucinate imprecise traces; ultimate soundness rests exclusively on
VerusandLynette. - Micro-average gains are heavily weighted by
ObfsBench, whileVeruSAGEstill favors frontier cloud models:ObfsBenchaccounts for56.5%(266/471) of the micro-average, where identifier obfuscation breaks memorized templates and givesCTX-Depa+7.9 / +4.9 ppedge overSonnet-4.5(+11.3 / +4.2 ppoverCTX-Binary). On systems-levelVeruSAGE(53tasks from Anvil, Mimalloc, NrOS),CTX-Dep(30.2% / 43.4%) still trailsSonnet-4.5(75.5% / 84.9%),DeepSeek-V4(58.5% / 66.0%), andQwen3-Coder(45.3% / 64.2%). Under equal suite weighting (Table 4 macro-average),CTX-Dep’s margin narrows to+2.4 / +3.7 ppoverSonnet-4.5(54.0% / 61.5%vs51.6% / 57.8%) and+0.1 ppat@3overCTX-Binary(61.5%vs61.4%). - Single-trajectory counterexample emission vs. multi-turn repair budget: Generating
[State]–[Trace]–[Violation]plus repair in one forward trajectory eliminates inner counterexample refinement loops, yet standard test evaluation still budgets up to10Verus feedback steps (and3chains forSafe-Pass@3); first-turnSafe-Pass@1on the63-task subset is47.6%(Table 5). - Loop-invariant curriculum scope & undisclosed scalar constants: targets loop invariants only and does not directly structure non-loop
assertor cross-function lemma dependencies; NeurIPS Checklist item 7 notes RL training ran with a single seed (no multi-seed error bars); and numerical scalars for and tiers are omitted from the PDF text. - Verification scope: This close reading audited the full
arXiv:2611.13627v1PDF/HTML and verified HTTP200on the linked GitHub repository and HuggingFace weights, without locally executing Verus orTopoVerus-32Brollouts.
4. Engineering Takeaways for Verifier-in-the-Loop Coding & Reliability Agents
- Decouple diagnostic utility from formal certificate validity when a hard verifier guards acceptance: Requiring generated counterexamples to pass standalone formal reachability checks makes training intractable. Conditioning structured
[State]–[Trace]–[Violation]synthesis directly on downstream verifier pass rates (already lifting SFTSafe-Pass@1by+11.2 ppfromCoT-InittoCTX-Init) gives compact models an inspectable intermediate scaffold while leaving soundness to the verifier. - Enforce AST-level specification immutability outside the RL reward: Any coding or verification agent permitted to edit code alongside specs or tests will eventually discover reward hacking via weakened postconditions. Multiplying the outer reward by a deterministic AST gate like
Lynette() enforces hard invariant preservation without brittle regex heuristics. - Use offline dependency graphs as zero-test-time-cost micro-curricula: When multi-constraint tasks fail simultaneously on foundational bounds and high-level semantics, binary outcome RL wastes budget on premature downstream hypotheses. Extracting prerequisite DAGs from reference solutions offline turns sparse pass/fail signals into intra-trajectory ordering guidance (pushing edge satisfaction from
43.8%to95.8%) without leaking reference artifacts at inference time.
Source: Curriculum Proof Repair with Learned Counterexamples
19 · Mobile AI Factory: include device measurements in model selection
Mobile AI Factory: Building Specialized Language Models for Your Mobile Device (v1 PDF · GitHub)
Evan Li*, Krishna Deshpande*, Wen Cheng*, Shyamnath Gollakota (Paul G. Allen School of Computer Science and Engineering, University of Washington; *co-primary authors) · arXiv:2611.13509v1 [cs.CL] · Submitted 2026-11-10 (v1 only at verification time, with no revision or withdrawal; PDF header reads October, 2026)
On-device small language models (SLMs) keep sensitive user inputs local and work without connectivity, yet succeed only when both fine-tuned to the task and sized to the exact phone’s runtime envelope. Mobile AI Factory targets the engineering bottleneck where every new task–phone pairing currently forces repeated human tuning across model checkpoints, quantization bit-widths, and mobile inference runtimes. Unlike server-centric post-training agents (such as Pioneer Agent or PostTrainBench) that optimize accuracy alone, this system treats real per-phone hardware profiles as a hard upfront search filter, delegates per-step training/data interventions to an orchestrator LLM, and enforces rollback, tier escalation, post-quantization target-engine scoring, and missing-evaluation accounting through deterministic code. All metrics and caveats below trace directly to arXiv:2611.13509v1, keeping author-reported results distinct from deployment boundaries.
1. Why spec sheets fail: hardware profiling across four phones and two engines
Deploying an on-device SLM requires choosing a base model, bit-width, inference engine (llama.cpp or MNN), and backend (CPU or GPU). In §3, the authors benchmark 26 of the 27 variants in their search pool—nine base models from 135M to 4B across SmolLM2 (135M, 360M), Gemma 3 (270M), Qwen3 (0.6B, 1.7B, 4B), and Qwen3.5 (0.8B, 2B, 4B) at 4-, 8-, and 16-bit precision, excluding 16-bit Qwen3.5-4B which exceeded RAM on two phones—across four Android devices spanning five years:
- Devices and profiling protocol:
OnePlus 15(Snapdragon 8 Elite Gen 5, 16 GB RAM),Galaxy S23(Snapdragon 8 Gen 2, 8 GB),OnePlus 8 Pro(Snapdragon 865, 12 GB), andRedmi 9A(MediaTek Helio G25, 4 GB; CPU-only because its GPU lacks OpenCL). Each run uses a 256-token prompt plus 256 generated tokens, four CPU threads, one warm-up followed by three repetitions, battery temperature ≤28°C (≤32°C on hotter-idling phones), uncapped CPU clocks, battery power in airplane mode with Wi-Fi enabled foradb, and the screen off (OnePlus 8 Pro keeps the panel off while awake to prevent sleep throttling). Whole-phone energy is sampled every 100 ms from the fuel gauge minus idle power. Profiling usesllama.cpp Q4_0at 4 bits (the pinned OpenCL build lacked aQ4_K_Mkernel) and MNN’s default export. - 42× decode and 94× prefill spreads across phones: Running 4-bit
Qwen3-0.6Bonllama.cpp CPU, decode throughput drops from72 tokens/son OnePlus 15,50on Galaxy S23, and48on OnePlus 8 Pro down to1.7 tokens/son Redmi 9A (42×), while prefill spans309 tokens/sdown to3.3(94×). - Best backend inversions across flagships and stages: On
Qwen3-0.6Bwithllama.cpp, GPU prefill is5.4×faster than CPU on OnePlus 15,1.7×slower on Galaxy S23, and7.4×slower on OnePlus 8 Pro (Fig. 3a). Optimal backends also flip by execution phase: on OnePlus 15, GPU prefill beats CPU by a median3.4×, whereas CPU decodes faster for14 of 18variants below2B. On S23, MNN decodesSmolLM2-135Mat224 tokens/son CPU versus9 tokens/son GPU (25×gap). - 4-bit quantization recipes alter task accuracy: MNN’s default 4-bit export rounds blocks of 64 weights to nearest values, whereas
llama.cpp Q4_K_Msearches scale/offset per 32-weight block and keeps sensitive layers at 6 bits. On identicalCLINC150weights (Table 1,±0.015run noise), MNN default drops fine-tunedSmolLM2-360Mfrom0.767(Q4_K_M) to0.659, and zero-shotQwen3-1.7Bfrom0.538to0.351; switching to 32-weight-blockMNN HQQ-32recovers0.747and0.557. - More than half of runtime failures are invisible on spec sheets: Of
364attempted configurations (104on each GPU phone +52on Redmi 9A),288completed and76failed. Weight size predicts35failures; the other41fail for reasons absent from spec sheets (20MNN 16-bit GPU crashes,10swapped despite weights fitting in RAM,8GPU driver/OpenCL symbol gaps—such as OnePlus 8 Pro lacking OpenCL symbols required by newerllama.cppfor allQwen3.5models—and3load failures). Disk size also understates RAM: on Galaxy S23,llama.cpp GPUconsumes a median2.8×file size (up to8.1×on the smallest model) by allocating GPU weight/KV/workspace buffers alongside a CPU weight copy. Consequently, under a 1 s latency cap on biomedical entity extraction (256-token prompt + 48-token output, Table 2), each flagship picks a distinct model, engine, and backend (Qwen3.5-0.8B Q4MNN GPU at0.835on OnePlus 15;SmolLM2-360M Q4MNN CPU at0.744on S23;SmolLM2-135M Q4llama.cpp CPU at0.719on OnePlus 8 Pro; none on Redmi 9A, where the fastest takes10 s).
2. Two-stage design: device feasibility pruning and the LLM-vs-deterministic split
Implemented as a LangGraph state machine with SQLite per-step checkpointing and SLURM self-requeueing across two NVIDIA L40S GPUs (one for LoRA training/scoring, one serving local teacher Qwen3.6-35B-A3B via vLLM) alongside Claude Sonnet 5 as the orchestrator API, the factory separates upfront device pruning from an exploration loop governed by fixed rules:
- Setup Stage (once per task):
- Phone feasibility pruning & 5 disk-size tiers: Looking up the target phone’s profile, the factory derives per-request latency from measured prefill/decode rates and task prompt/output lengths, drops crashing or over-budget entries (latency, memory, energy), and keeps only the fastest-decoding engine+backend for each surviving model variant. The
27variants partition by disk footprint (combining parameter count and bit-width, e.g.,2B Q4at1.3 GBshares Tier 3 with0.6B FP16at1.4 GB) at boundaries300 MB,750 MB,1.5 GB, and2.5 GB(6, 5, 5, 4, 7variants in Tiers 1–5); phone profiles prune variants without shifting tier boundaries. - Four-point anti-leakage firewall & adaptive goal: The factory freezes up to
1,000held-out rows (500for DialogSum,535Calendar JSON,871MultiCoNER; label-balanced for classification) and enforces exact-match normalization checks at four points—dataset load (aborts if overlap persists), after mining/synthesis, after QC rewrites, and via a frozen held-out label vocabulary—plus an internal validation split for checkpoint selection. Smallest and largest untrained base models label rows asEasy,Medium, orHard, and the local teacher’s 5-shot held-out score (0-shot onCLINC150where five examples exceed context) sets the initial accuracy goal clamped to[0.80, 0.99].
- Phone feasibility pruning & 5 disk-size tiers: Looking up the target phone’s profile, the factory derives per-request latency from measured prefill/decode rates and task prompt/output lengths, drops crashing or over-budget entries (latency, memory, energy), and keeps only the fastest-decoding engine+backend for each surviving model variant. The
- Search Loop (small-to-large across tiers, §4.3):
- Why deterministic rules keep control authority: The orchestrator is invoked most often when search stalls, so stall detection cannot rely on it; furthermore, most LLM ideas regress—in the longest run (
TOPv2,109evaluations,104interventions),88%of proposed interventions lowered accuracy and were rolled back. - Orchestrator proposals: Reading aggregate reports (overall score, E/M/H split, top failure categories) and search-graph memory, the orchestrator outputs a JSON object proposing one intervention: picking a tier variant, tuning hyperparameters (LoRA rank,
α/rankratio, weight decay, learning rate, epochs; dropout fixed at0), mining real rows (task sources first, then web search, halting after two empty rounds), or targeted synthesis (25–600rows per failure mode in proportion to counts, dropping categories whose counts fail to fall). Once a goal is met, it may raise the goal by≥ 0.005(up to0.99; lowering is allowed only after a raise and never below the initial goal). - Three synthesis gates & solver-vs-writer mismatch: Default synthesis requires a
≥ 0.805-shot teacher score, programmatic checks where available (e.g., verbatim entity appearance), and teacher brief verification. Bypassing the0.80gate on seven tasks in main runs actually yielded67%of all synthesis gains—onTOPv2, the teacher scored just0.02solving new instances, yet90%of its synthesized rows passed programmatic verification and supplied60%ofTOPv2’s search gain, showing that generation-verifier survival is a better gate than solver accuracy. - Deterministic rollback, escalation & watchdog: Every candidate retrains LoRA from the base model so rollback restores exact prior behavior, blocks repeated hyperparameter settings on the same data, and rejects decisions quoting held-out rows. Escalation moves upward when scores fail to rise
> 0.02over15evaluations or after30evaluations in a tier (including rollbacks), carrying collected training data forward. A watchdog halts runs after3consecutive empty synthesis rounds or a single-step≥ 25%(≥ 1,000-row) dataset drop—added after an early run spent 8 hours on eight zero-yield data steps.
- Why deterministic rules keep control authority: The orchestrator is invoked most often when search stalls, so stall detection cannot rely on it; furthermore, most LLM ideas regress—in the longest run (
3. Post-quantization scoring and missing-vs-zero evaluation accounting
Scoring unquantized checkpoints on a server risks selecting models whose accuracy collapses upon mobile export. Section 4.3.3 locks down three evaluation invariants:
- Score the deployable quantized artifact inside the target engine: Every iteration merges LoRA adapters, exports 4- or 8-bit weights (
Q4_K_M/Q8_0forllama.cpp;MNN HQQ-32instead of MNN’s lossy default), and scores them inside the target runtime (16-bit in Transformers). Copying final checkpoints to aOnePlus 15(Table 4) validates this proxy: relative to the server GPU running the same engine, phone CPU scores stay within0.0014on8/10tasks (0.0000on Calendar and TOPv2) and phone GPU within0.0022on7/10; the largest gap isSMS Spam(-0.0160CPU /-0.0119GPU, at the±0.015noise floor due to minority-class F1 boundary sensitivity), while phone CPU and GPU agree within0.0041across all ten tasks. - Aggregate isolation and parseable-output tracking: The evaluator returns only aggregate scores, failure counts, and the fraction of parseable outputs, preventing leakage of held-out rows while separating semantic errors from format collapse (e.g., two
270Mtiers discarded from gain analysis after yielding<20%parseable outputs). - Base-candidate anchoring & missing-vs-zero discipline: The untrained base model is evaluated first and worse fine-tunes are discarded. Crucially, failed evaluations are recorded as missing rather than
0—an early bug that logged a failed run as0artificially credited fine-tuning with a fictitious+0.85improvement.
4. Quantitative evaluation: ten tasks, four phones, blind picking, and 1/19 GPU-time savings
Across ten tasks (2,600–5,000 starting real training rows each; ±0.015 run-to-run training noise), the authors compare task-specialized SLMs against reasoning-disabled Claude Sonnet 5 and DeepSeek v4-Flash (0-shot and 5-shot), search baselines, and 60 per-phone deployment budgets:
| Task (Metric & Regime) | Claude 5-shot | DeepSeek 5-shot | Winning Factory Model (Disk Size) | Untrained (Held-out) | First FT (Held-out) | Factory Best (Held-out) | Unseen Test Set (Base → Tuned vs. Best 5-shot) |
|---|---|---|---|---|---|---|---|
| BC5CDR (span F1, format-bound) | 0.606 | 0.508 | Qwen3.5-0.8B Q4 (517 MB) | 0.000 | 0.705 | 0.830 | 0.000 → 0.828 (vs. 0.652) |
| Calendar JSON (arg. match, format-bound) | 0.634 | 0.669 | Qwen3.5-0.8B Q4 (517 MB) | 0.036 | 0.535 | 0.811 | 0.036 → 0.818 (vs. 0.644) |
| TOPv2 (exact match, format-bound) | 0.242 | 0.085 | Qwen3-4B Q8 (4,082 MB) | 0.003 | 0.534 | 0.599 | 0.002 → 0.562 (vs. 0.221) |
| MultiCoNER (micro F1, format-bound) | 0.587 | 0.521 | Qwen3-4B Q8 (4,082 MB) | 0.284 | 0.604 | 0.653 | 0.292 → 0.619 (vs. 0.594) |
| BFCL (arg. match, format-bound) | 0.875 | 0.876 | Qwen3.5-4B Q4 (2,655 MB) | 0.818 | 0.834 | 0.852 | 0.808 → 0.816 (vs. 0.870) |
| CLINC150 default goal (macro F1) | 0.933 | 0.904 | SmolLM2-360M Q4 (258 MB) | 0.114 | 0.770 | 0.884 | 0.111 → 0.822 (vs. 0.894) |
| CLINC150 pinned 0.99 (macro F1) | 0.933 | 0.904 | Qwen3-4B Q8 (4,082 MB) | 0.766 | 0.901 | 0.937 | 0.704 → 0.882 (ties 0.894) |
| SMS Spam default goal (minority F1) | 0.961 | 0.832 | SmolLM2-360M Q4 (258 MB) | 0.235 | 0.878 | 0.913 | Not run (only 5 unused test rows) |
| SMS Spam pinned 0.99 (minority F1) | 0.961 | 0.832 | Qwen3-1.7B Q4 (1,223 MB) | 0.000 | 0.707 | 0.961 | Not run (only 5 unused test rows) |
| GoEmotions (Ekman F1) | 0.481 | 0.436 | Qwen3-4B Q8 (4,082 MB) | 0.378 | 0.598 | 0.598 | 0.393 → 0.525 (ties 0.515) |
| BEA-19 (ERRANT F0.5) | 0.506 | 0.528 | Qwen3-4B Q8 (4,082 MB) | 0.435 | 0.536 | 0.565 | 0.411 → 0.534 (ties 0.520) |
| DialogSum (ROUGE-L, in-distribution) | 0.424 | 0.374 | Qwen3-4B Q8 (4,082 MB) | 0.272 | 0.482 | 0.482 | 0.241 → 0.451 (vs. 0.387; 1 ref) |
Table 1 · Specialized SLMs vs. frontier zero/five-shot baselines (arXiv:2611.13509v1 Table 3 & Appendix A Table 5; compares task-trained SLMs against few-shot general models, with bold denoting row best or within the 0.015 noise floor).
- Held-out vs. unseen test generalization (Appendix A): On held-out sets used during search, default-goal runs beat the better frontier baseline on
7tasks (+0.037to+0.357), and pinned0.99runs match Claude onCLINC150andSMS Spam. On completely unseen test splits (SMS Spamexcluded because held-out consumed its test split, leaving only five unused spam rows), fine-tuned SLMs outperform both five-shot frontier models on five tasks by0.024to0.342(BC5CDR,Calendar JSON,TOPv2,MultiCoNER,DialogSum), match within the±0.015noise floor on three (GoEmotions,BEA-19,CLINC150at0.99), and trail on two (BFCL0.816vs.0.870, andCLINC150default where early stopping halts onSmolLM2-360Mat0.822). - Gain decomposition, scarcity, and ~1/19 GPU compute (§5.2.1–5.2.5): Initial fine-tuning delivers a median
82%of total improvement over untrained bases, while iterative search adds>0.015in34/42valid tiers (median+0.051, tapering from+0.082in Tier 1 to+0.023in Tier 5). Across interventions, hyperparameters drive41%of search gains, synthesis40%(35%excluding one1.7Bspam collapse rescue from0.707), and mining19%. Under 100-row data scarcity (Appendix B; 151 forCLINC150), synthesis rescuesSMS Spam 360M(0.637 → 0.935), whereasBC5CDR(3%QC survival) andMultiCoNER(24%) drop16–30%—showing programmatic QC survival governs synthesis payoff. Against baselines onBC5CDR, an exhaustive 27-variant sweep consumed165training GPU-hours and$31.81orchestrator spend (first hitting0.80at52 h; peaking at0.859on2B Q8at126 h), whereas tiered search hit0.830(Qwen3.5-0.8B Q4) in8.6GPU-hours and$2.62—within0.029of the 27-variant optimum at 19× less (~1/19) training GPU time. Across all 10 tasks, tiered search (286GPU-h,$45.39) beats single-pickOne-shot(60GPU-h,$11.68) on8/10tasks (6beyond noise). Orchestrator spend across the 10 main runs totaled$57.37($2.62–$8.46/task; median$0.064/iteration), negligible beside663dual-L40S GPU-hours. When goals are met within 3 iterations, the orchestrator raises them8/9times (stopping9/10times after 6 iterations), improving7/9extended runs by+0.036on average.
| 60 Device-Requirement Tier (20 each) | Configs Pruned Pre-Train (Median) | Phone-Agnostic Best Model Fits | Claude Opus 5.5 Miss Rate (Full Specs) | Claude Opus 5.5 Miss Rate (App Desc Only) | Measured Selection Miss Rate (By Design) |
|---|---|---|---|---|---|
| Easy (≥60% configs satisfy) | 22% | 80% (16/20) | 25% | 5% | 0% (0/20) |
| Moderate (30–60% satisfy) | 61% | 30% (6/20) | 25% | 35% | 0% (0/20) |
| Hard (<30% satisfy) | 88% | 15% (3/20) | 60% | 80% | 0% (0/20) |
Table 2 · Feasibility pruning and blind-pick failure rates across 60 four-limit deployment budgets (arXiv:2611.13509v1 §5.3 & Fig. 9c–e; Claude Opus 5.5 tested with high reasoning effort).
- Phone-in-the-loop vs. blind specification reasoning (§5.3): Across
18multi-phone deployments,15require different configurations across phones. On aGalaxy S23call-summary budget (≤1,024 MB,≥350 tokens/sprefill,≤90 J), the phone-agnostic winner (Qwen3-4B Q8,4,082 MB,0.482ROUGE-L) cannot fit; searching only the11feasible variants selectsQwen3-0.6B Q8(MNN CPU) at0.469(-0.013, within noise) in33.2 hand$2.38. Crucially, without device profiles, evenClaude Opus 5.5(high reasoning effort) given full phone specs, model sizes, engines, and all four limits misses requirements in25%of Easy,25%of Moderate, and60%of Hard cases—guessing the right engine92%of the time but the right CPU/GPU backend only75%(11/60 failures picked the right model and precision on the wrong backend [8] or engine [3]). Given only a plain-language app description, Hard misses climb to80%(15/16oversizing the model), while10Easy passes under-provision by2–5.6×parameters. Upfront measurements meanwhile prune88%of Hard configs before any training, capping the max feasible variant at≤0.8Bin19/20Hard cases.
5. Operational boundaries, manual harness dependencies, and engineering takeaways
Adopting this pattern in mobile inference pipelines requires separating validated system behavior from unmeasured runtime regimes:
- Cold-start, idle-device, single-length profiling boundary: Section 3 profiles come from standalone runs starting at ≤28°C/32°C, a single
256+256length, four CPU threads, and an idle phone in airplane+Wi-Fi mode. Sustained conversational thermal throttling, concurrent foreground/background app contention, dynamic KV memory growth on long prompts, and mobile NPUs (which prior work [8] shows accelerate prefill ~10× without matching decode gains) lie outside these measurements and still require runtime safety margins or live telemetry recalibration. - Human-engineered scorer & verifier bottleneck: Developers must still supply data connectors, task metrics, and programmatic output verifiers. Appendix B demonstrates that when programmatic synthesis survival is low (
3%onBC5CDR,24%onMultiCoNER), synthetic data fails to rescue scarce-data small models regardless of teacher strength. Furthermore, the search pool is capped at nine135M–4Bdecoder models under LoRA SFT (excluding1–50Mencoders, RL, or preference tuning), and main runs are single-seed (±0.015noise floor). - Transferable engineering lessons: (1) Measure device feasibility once per phone and enforce it before training: reasoning over hardware/model spec sheets fails 60% of tight budgets due to runtime RAM bloat and backend flips; (2) Pair LLM hypothesis proposals with deterministic safety gates: tolerating an 88% proposal regression rate works only when base-restart rollback, tier caps, stall watchdogs, and missing-rather-than-zero failure accounting sit outside the LLM’s control; (3) Score the exact quantized deployable artifact: engine-level 4-bit recipes can shift task accuracy more than scaling parameters across tiers.




