Zero Labs
Industry News / AI

I Fine-Tuned a Local Model to Match a Hosted Model.

Source · Towards AI By Cameron Jagoe

From the publisher’s feed, collected in the ZeroLabs newsroom.

I Fine-Tuned a Local Model to Match a Hosted Model. Then My Experiment Stopped Replicating. (Laya Experiment Part 2)Fine-tuned on the same 11,010 human-reviewed pairs my production auditors learned from, a self-hosted Laya model reached the hosted model’s precision band on a second client’s real pipeline output. What it still missed was a family of rule-shaped matches, so I pre-registered a retrain to teach it six rules aimed at them. At one training seed, the rule text cost 21.9 points of recall on the frozen out-of-sample pool. A second seed of the same recipe gained 4.9 on the same pool. The experiment stopped replicating. Fine-tuning is real on this client’s data. The rules did not land.Part 1The result that didn’t survive the next training runThe best checkpoint on the second client’s data was sft_enhanced: Laya fine-tuned on the 11,010 reviewed pairs with the 980-token rubric. It reached the precision band of Jev, the hosted model Part 1 compared against. What it could not close was a family of misses shaped like named rules: color, brand, pack count, unit equivalence. The pre-registered next step was to retrain from the base checkpoint with six rules in the training question, and score on a frozen out-of-sample pool, labeled blind after the rules were frozen.At one training seed, the retrained checkpoint lost 21.9 points of recall on that pool, with the label-bootstrap 95% interval entirely below zero (−0.219 [−0.268, −0.167]). The retrain report’s own caveats recommended a seed replicate before making any general claim, so I separately pre-registered and ran one. Same recipe, same data, seed 20261017 instead of 20261012, and the sign flipped: +4.9 points, with the interval entirely above zero (+0.049 [+0.010, +0.087]).A different seed is not a shuffle of the same model. In Laya, the training seed sets the RL exploration noise, the option-order shuffle, and the batch order; two runs of the same recipe are two different exploration trajectories. And the intervals above are the wrong kind of uncertainty for that question. They resample the labeled evaluation pairs, conditional on the particular checkpoints I trained. They describe how a score would change across a different sample of labels, not by retraining the recipe. Two seeds are enough to overturn a claim. It is not enough to characterize the recipe’s variability. Every interval in this report is of the first kind: label resampling at fixed checkpoints, and I treat it that way throughout.Why a local standalone decision model matteredPart 1 established the ensemble’s observed trade-off on the evaluated pipeline output: three local models voting, with splits sent to an analyst, made about as many wrong automatic calls as the hosted model at a similar review load, and far fewer missed matches at the stage where my workflow can’t recover them. The two error types are not symmetric here. A wrong merge can surface downstream during anomaly checks on the merged record. A missed match upstream has no second discovery path; the two descriptions are never seen together again. That is why recall is the side I plan around.What Part 1 left open was a smaller question: can the local model itself, not the ensemble around it, be pushed to the bar? This is a report about one model, Laya, fine-tuned on my own reviewed pairs. The auditors and Jev stay in the tables as the reference points they were in Part 1. Everything below is from my data and my runs, and where the evidence doesn’t close a question, I say so.Fine-tuning Laya on the same reviewed pairsLaya is the open-source, self-hosted implementation of the typed decision format used in Part 1: one multiple-choice question per pair (MATCH, NONMATCH, INSUFFICIENT_EVIDENCE), with a probability distribution back. The target is task-defined product equivalence, not exact orderable-SKU identity: the rubric determines which attributes are identity-critical and which can be normalized away. The base rubric asks for a MATCH only for the same item and specification, allowing for naming, formatting, and equivalent unit representations, and says missing information is not evidence of a non-match. The six expanding rules (below) extend that with named incidental differences: color, brand, pack quantity, unit-equivalent size, value-in-range, and calendar edition. So a MATCH means the same item and specification after those normalizations; a NONMATCH means different items or incompatible specifications; INSUFFICIENT_EVIDENCE means the pair doesn’t carry enough to say. The versioned rubric decides which differences count as incidental, and every rule carries an exception.Three real pairs make that concrete. `TRASH CAN 45–60 GAL` and ` 45 TO 60 GALLON GREY TRASH CAN` differ only in color, which the color rule calls incidental, so under the rules, this is a match while the rule-free checkpoint treats it as a nonmatch; it is one of the 13 pairs the operator relabeled. `275B 32.2500 X 36.0000 122.65 MSF` and `275B 32.2500 X 36.0000 122.18 MSF` differ only in the last number, which is the purchased quantity in thousand square feet, not the specification, so they match. `4X6 1 MIL CLEAR` and `4X6 4 MIL CLEAR` (poly bag) differ by one number, but that number is the thickness, which is the specification, so this is a nonmatch: a seemingly incidental difference that is the identity-critical one.I ran four fine-tuned checkpoints from the same base checkpoint at the same 2,048/2,048 operating point, in two arms:Arm A: the same 11,010 human-reviewed pairs that the SFT auditor LLMs (Qwen2.5, SmolLM3, phi4) were trained on. This is the “train Laya on the same reviewed pairs” the Part 1 teaser promised.Arm B: the pipeline’s own training pool, 348,106 rows, with gold pairs and gold descriptions excluded.Each arm got two rubric variants: vanilla (the 149-token base rubric, `match_rubric_v1`) and enhanced (the full 980-token rule ladder, `match_rubric_v007`). Four checkpoints, two knobs.The recipeAll four checkpoints share one training config, verified byte-identical across the arms by diffing the run specs: the `rlcd` loss (which fits the full probability distribution, not just the argmax), choice-order shuffling, 4 epochs, seed 20261012, and the 2,048/2,048 operating point written into each checkpoint so eval refuses a mismatch. All four start from the same reviewed base checkpoint on the RTX 5090 (the full hyperparameters are in Appendix A0). Wall time is about 12 to 27 minutes for an Arm A run and 6 to 15 hours for a pool run. The seed will come back.What the data actually wasArm A. 16,033 candidate rows went in. Normalization, duplicate dropping, conflict-key dropping, and a gold-exclusion step left 11,010 rows, one per distinct pair key, 26.24% MATCH, every row human-reviewed, and none of them gold. The stage arithmetic closes both ways, on rows and on keys (appendix A0).Arm B. The pipeline’s own labeled pool: 613,509 rows, 41.27% positive, close to gold’s 41.3%. Excluding gold pairs and descriptions that leak into gold, then carving an entity-disjoint 20,000-row validation set, left 348,106 training rows. The exclusions did not preserve the prevalence: the leaked-description rows were mostly negative, so the final training split is 55.25% MATCH (192,328 of 348,106). The pool’s labels also come from the same 2026–10–07 fit run that produced gold, whose 20,000 pairs were drawn from exactly this pool, so gold is in-sample for Arm B by construction. The arms differ in prevalence, source, scale, and label provenance at once, and nothing here can isolate which of those matters.The evaluation set is the second client’s output from Part 1: 37,392 candidate pairs and 1,000 labeled (398 matches), using the same holdouts as Part 1’s second-client audit. None contains MSF, so gold comparisons use gold’s non-MSF slice.https://medium.com/media/c471f37109b0db2a9785faab6173d997/hrefThe remaining reference points (the other base and Jev rubric rows, the three auditors, the unanimous ensemble, and the pipeline’s accept stratum) are in Appendix A1, on the same set.Fine-tuning makes Laya competitive. Both Arm A checkpoints gain 25 to 27 points of precision over the base Laya (0.79 to 0.82 against 0.54) with the same or slightly higher recall, and their decisive accuracy rises from 0.65 to 0.77. They are now in Jev’s band: sft_enhanced scores 0.791 / 0.554 against Jev rv007’s 0.788 / 0.549. sft_vanilla carries the highest point-estimate precision here (0.816), though its interval overlaps Jev’s. Precision and decisive accuracy count decisive calls only, while recall counts an undecided true match as a miss. Jev leaves about 750 pairs (2% of the set) undecided, mostly INSUFFICIENT_EVIDENCE; every fine-tuned Laya decides every pair.On the same data, Laya and the LLM auditors make different trade-offs. Arm A shares its training data with the qwen25 / smollm3 auditors. Laya is 8 to 17 points more precise than those two (0.79 to 0.82 against 0.65 to 0.71) but has 19 to 31 points less recall (0.53 to 0.55 against 0.74 to 0.83). Laya sits where Jev and the unanimous ensemble sit, with high precision and low recall, not where the majority votes. That’s the gap the ensemble was closing, and a single fine-tuned Laya doesn’t close it. Reaching Jev’s precision band at a fixed operating point is also not a routing win: the majority vote still recovers far more true matches (0.827 recall against 0.554), and review-normalized outcomes for the fine-tuned Laya are not yet measured.On the gold slices, the rubric axis came out a computed fail: vanilla (149 tokens) beat enhanced (980 tokens) per subset on 5 of 6 comparisons, so the richer rubric added no value on this arm. On the second client’s data, vanilla is again more precise, while enhanced trades about 2.5 points of precision for about 3 points of recall. Both are one seed per checkpoint, and the seed study below is the yardstick for how far a gap like that is from being established.The pool arm doesn’t transferOn my in-pool gold (the non-MSF slice), the pool checkpoints scored about 0.95 / 0.95, far above Arm A’s 0.81 to 0.86 / 0.69. On this client’s real output, their precision falls to about 0.76, and their recall collapses to 0.34 to 0.37, 16 to 21 points below Arm A, with both recall intervals clear of Arm A’s. They also call MATCH on about a third fewer pairs (6 to 7K against 9.5 to 10.5K).Training-data leakage is an unlikely explanation for the gap between the arms: less than 1% of this client’s pairs or descriptions appear in either arm’s training split. The gold score is in-sample for Arm B by design, so it measures fit to that distribution rather than transfer. On genuinely new data, the pool checkpoints fall back to NONMATCH. Because the arms differ in several ways at once, the result is descriptive rather than causal.The takeaway for the campaign: the Arm B report had chosen pool_vanilla as the best operating point on gold, and this result doesn’t support carrying that choice forward. When in-pool and out-of-sample disagree, the out-of-sample number is the one a production decision should lean on.Replication on fresh labelsOne labeled partition is one draw of labels, so I repeated the whole comparison on two more partitions of the same March 2026 link run, set1 and set2, whose 1,000-pair holdouts were labeled fresh and blind after every checkpoint was frozen. set1 holds 17,099 pairs (estimated 49.5% matches), set2 17,686 (42.4%); the pooled intervals are about ±0.04 to 0.05. One scope note: these labels were a frozen holdout for the initial pre-registered rule test. The seed and epoch studies, the paired Laya-Jev comparison, and the choice of which checkpoint to retrain all reused them afterward, so for those later analyses, set1/set2 is not an independent confirmation; they become confirmatory only after a new holdout or an independent replication.The main conclusions replicate:The majority ensemble again has the best balance of precision and recall (0.764 / 0.791, highest decisive accuracy at 0.792);The Arm A fine-tuned Laya checkpoints sit in Jev’s precision band;Arm B and base Laya trail;The pipeline’s own automatic-accept stratum is again far less precise than any decision model (0.561) while recalling only 4% of matches; it is the narrow slice of pairs the pipeline accepted on its own, and the estimate rests on 41 to 44 labeled rows per set.https://medium.com/media/00c2652ae5fa63d2f67b0522cefbc028/hrefsft_enhanced is the best of the evaluated Laya checkpoints on this partition, and it edges past Jev. It scores 0.827 / 0.567 against Jev rv007’s 0.788 / 0.507. Overlapping marginal intervals don’t test the difference, so I paired the two on the shared 1,000 labels. That computation ran after the reports and was not pre-registered. Because Part 1’s intervals are resampled by query item, I ran two designs with the analyzer’s stratified method and seed: pair-level resampling, as in the marginal tables, and query-clustered resampling of whole query clusters within each stratum (method detail in Appendix A7). Both give the same point estimates: sft_enhanced leads by +0.039 on precision and +0.060 on recall. The paired bootstrap places the fixed-checkpoint recall difference above zero under both resampling designs ([+0.006, +0.113] pair-level, [+0.033, +0.140] clustered). The precision difference is not robust to the resampling unit: the [−0.006, +0.088] pair-level straddles zero, and the [+0.013, +0.095] clustered sits just above it. These are statements about two frozen checkpoints on this holdout, not about retraining the recipe or another client’s data. Pooled across all four sets (2,000 labels), the two Arm A checkpoints level out on precision (sft_vanilla 0.819 [0.780, 0.851] against sft_enhanced 0.810 [0.779, 0.841]), sft_enhanced carries more recall (0.561 [0.526, 0.594] against 0.500 [0.467, 0.535]), and Jev rv007 sits at 0.788 / 0.527.The auditors are more precise here, and that’s the sets, not the models. Auditor precision is 3.6 to 6.3 points higher than on set0/set3, with recall 1 to 7 points lower. Set 1 is simply the easier set for every decision model: precision runs 9.7 to 16.7 points higher there than on set 2, and its estimated match base rate is 7 points higher.The error mix shifted, too, and it separates two problems that are easy to conflate. On set1/set2, “one side missing an attribute” is the largest false-positive reason for the majority vote (48%), the unanimous vote (46%), phi4 (46%), and Jev rv007 (55%); on set0/set3, different modifiers or dimensions led. Those are overconfident false merges: one side omits an identity-critical attribute, and the model merges anyway. That calls for an abstention rule (INSUFFICIENT_EVIDENCE when an identity-critical attribute is missing, and no stronger identifier establishes the match), which I have yet to test with the LLM auditors, who can actually abstain. The six rules I describe next are aimed at the opposite failure: true matches the checkpoints miss because an incidental difference looked decisive. I’m keeping those two interventions separate.Six rules, added at inferenceThe missed matches I wanted to recover were not random-looking: several belonged to recurring, rule-shaped families, such as color differences that don’t matter, vendor or brand labels that don’t matter, and pack counts that don’t matter. So I wrote six “expanding” rules, each naming a difference that does not make two items different, and tested whether appending them to the rubric at inference time recovers matches the checkpoints miss, and what precision it costs.https://medium.com/media/2cde0ac6abe876cfbff755739998679e/hrefEvery rule carries a guard: the product type and the other stated specs must agree. Before freezing, the rules were scanned against every labeled non-match on set0/set3, and four were narrowed down to those that would have flipped one.The discipline is what makes the verdict mean anything. The rule files and rubrics were committed and git-tagged before any set1/set2 label existed, and I pre-registered the decision criteria per checkpoint:Helps: recall gain with its 95% interval above zero, and the precision drop’s lower bound ≥ −3 points.Hurts: a precision loss beyond −3 points with the interval below zero, or a gold non-MSF precision drop beyond 2 points.No effect: anything else.The verdict, from the two out-of-sample sets labeled after the tag:https://medium.com/media/3cb5dc8d22f571811264ee9d48658043/hrefVerdict: all four checkpoints receive the formal NO EFFECT label, under pre-registered criteria that failed to anticipate a recall loss.Both Arm A checkpoints move in the intended direction (about +2 to +3 points of recall for about 2 points of precision), and neither recall gain clears its 95% interval.For the two Arm A checkpoints, the observed precision cost was small (at most −1.2 points on gold non-MSF, inside the 2-point limit), but the recall gain was not established.pool_vanilla goes the wrong way: it loses 5.8 points of recall with the interval well below zero and cuts its MATCH calls by about 27%. The pre-registered “hurts” rule only tests a precision loss, so pool_vanilla is graded “no effect”. I’m stating that gap rather than re-grading after the fact. The likeliest explanation, untested, is that pool_vanilla trained on a 149-token rule-free question, so the 978-token expanding rubric is far outside anything it saw. pool_enhanced is already trained on a rules block and barely moves (+0.6 points).And the finding that sets up the next leg: the rules didn’t reliably land. Appending them changed decisions, but neither Arm A checkpoint met the pre-specified improvement criterion. The matches they miss carry p_MATCH around 0.02 to 0.05, and the MATCH-volume lift (+7 to +10%) appears only partially as recovered matches on the labeled holdout. One caveat the design can’t settle: the change also made the question much longer (149 to 978 tokens on vanilla, 980 to 1,793 on enhanced), so I can’t tell whether the checkpoints ignored the rule semantics or reacted to a longer, unfamiliar question; a length-matched placebo rubric would separate those. What the data do show is that an inference-time rubric change didn’t reliably teach these checkpoints a rule. It nudged them.Retraining sft_enhanced with the expanding rubricIf a rule can’t be taught at inference time, can it be taught in training? The cleanest test uses the checkpoint already doing the best work and already trained on a rules-bearing rubric, sft_enhanced, and retrains its recipe from the base checkpoint: the same 11,010 Arm A rows, the same config, but with the expanding rubric `match_rubric_v008` (the v007 ladder plus the six rules, a 1,793-token head). The rendered question differed by exactly the six rules, and nothing else moved. A second arm, `sft_expanding_aug`, added 1,193 generated rule-consistent rows and 13 relabels of existing training rows, to test whether rule-consistent data does what rule text didn’t. Both runs were pre-registered by a git tag before scoring, with the verdict criteria pinned.The single-seed headlineOn the frozen set1/set2 test pool (1,000 labels, 471 matches), at a single seed:https://medium.com/media/2abad17b4988d07fc8caa5c7f1ef520a/hrefAt seed 1, the checkpoint trained with the rule text found fewer matches, not more. sft_expanding’s recall fell from 0.567 to 0.348 (−25.4 on set1, −17.9 on set2), and it called MATCH about 35% less often. All three pre-registered comparisons graded “hurts” at this seed: the rule text lost 21.9 points of recall; the rule-consistent data recovered 13.7 of those, but still graded “hurts” because gold non-MSF precision fell 8.0 points; and the two together finished 8.2 points of recall below sft_enhanced. Of these runs, the inference-only rules had the highest observed recall (0.589), without retraining. Truncation is ruled out: at a 1,793-token head, 254 tokens remain for the pair state, and no pair was clipped.The second seed flips the signhttps://medium.com/media/1bc2a62cacc4a17b7285e2146366d13a/hrefChanging only the seed moved out-of-sample recall by 9 points for the v007 recipe and 18 points for the v008 recipe, and the retrain report’s correction note withdraws the 22-point loss as a single-seed result. The two-seed means still lean about 8.5 points negative (sft_expanding 0.438 against sft_enhanced 0.523), but each recipe’s two seeds overlap the other’s (0.348 to 0.527 against 0.478 to 0.567). The decision changes: the rule-text effect is unresolved, consistent with no effect, a moderate negative effect, or an effect that depends on the seed.What the seed actually movesThis finding changes how the whole campaign should be read. On held-out data from the training distribution, the seeded checkpoints look nearly identical: 95 to 96% precision and 93 to 95% recall on the SFT test split, which moves at most 2 points with the seed. Gold non-MSF recall moves up to 5. The second client’s test pool moves 9 to 18. That pattern suggests a transfer-stability problem, but two seeds do not establish its general size or cause.So every other single-seed training comparison in this report is untested by replication: the rubric axis, Arm A against Arm B, and the augmentation arm. Their gaps (8 to 24 points of recall) sit inside or near the seed difference. The closest to holding is the pool arm, whose recall (0.32 to 0.34) sits below both sft_enhanced seeds (0.478 and 0.567), but the pool runs’ own seed variation is unobserved. The inference-time rubric comparisons are the exception: they compare the same checkpoint under two questions, so the training seed doesn’t enter the comparison, though the size of that effect still depends on which checkpoint it is applied to.Epochs: keep 4A small sweep on the v007 recipe, graded against the same seed yardstick (0.089). The epoch count sets the length of the cosine learning-rate schedule and the σ anneal, so 2, 4, and 6 epochs are three different schedules, not one run stopped at different points.https://medium.com/media/457e5be327a48ddf21766e671b05975e/hrefDev decisive accuracy picks 4. Six epochs cost 13.1 points of test recall, which passes the yardstick in this single-seed sweep, but the reference is the higher of the two 4-epoch seeds, so that gap is one seed against a high reference. Two epochs stay inside seed variation, and its gold non-MSF precision is actually higher, so the data doesn’t show underfitting. Four epochs stand as a provisional selection for the next campaign.The readNone of the pre-committed readings fired as written: the loss was recall, not precision, and it didn’t replicate across the seed. The recommendation the criteria actually support is the conservative one: keep the original 4-epoch sft_enhanced checkpoint as a provisional Arm A baseline. The expanding rules at inference are cheap to reverse and showed no clear harm for that checkpoint, but they did not meet the pre-registered benefit criterion, and the same change cost pool_vanilla 5.8 points of recall. I would not promote them as an improvement yet.The augmented arm isn’t a clean test of rule-consistent data either. On the development sets, it is on par with sft_enhanced (recall 0.553 vs. 0.554); on the test sets, it isn’t. It differs from sft_expanding in three ways at once with no ablation, and the generated rows carry defects: about 5% are malformed outright (the inch regex reads `1 1/2"` as `2"`), and many of the rest are stereotyped or labeled the wrong way. The 13 relabels were applied only to training rows, while four of those pairs retained their original labels in the validation and test splits. It's fitted temperature also hit Laya’s 5.0 cap. The full accounting is in Appendix A7.And the deeper read: in the tested runs, changing the training question coincided with an out-of-sample recall shift comparable to the shift observed across seeds, and the recipe effect itself did not replicate. Until recipes are compared with a seed budget and judged on the out-of-sample mean with the spread reported, the training side of this campaign is telling me about the noise, not the rules.Ways this work could have misled meA single labeler, no adjudication. Every holdout here (1,000 pairs on set0/set3 and 1,000 on set1/set2) was labeled blind by a single person (the operator), with no second review. A systematic labeling bias would show up in every model at once, and I can’t separate it from a real model difference. The labels are blind (descriptions only, no model verdicts), and the rules were frozen before the test labels existed, but the human-in-the-loop is one.500 labels per set. Pooled intervals are about ±0.04 to 0.05. An effect of about 2 points, exactly the size of the Arm A recall gains from the expanding rules, sits right at what this sample can detect. “No effect” can mean “not enough labels to see a 2-point effect.”Set difficulty as a confound. sft_enhanced’s edge over Jev was measured on the partition that contains the easier set. The pooled four-set number (2,000 labels) is the more defensible one, and there the two Arm A checkpoints are level in precision.No abstention, no calibrated uncertainty. INSUFFICIENT_EVIDENCE was never a training label in any arm, so no checkpoint learned to abstain. Deciding every pair says nothing about whether the class probabilities the checkpoints emit are calibrated, so routing on them is not yet justified.Reproducibility rests on a preserved working tree, not on the tags alone. The git tags pin the pre-registrations and the rule files, and each run’s `run_info.json` records the rendered rubric’s content hash. But the scoring path imports modules still untracked in the repo: the metric definitions, the v006/v007 rule and rubric files, and the renderer. A fresh checkout of the tagged commits cannot reproduce these numbers on its own; they depend on the untracked working-tree files they ran from, which are preserved intact.A leading-zero ID bug was caught and fixed. The set2 reference IDs were read as integers, and 1,677 lost a leading zero, breaking a join and surfacing as a summarize refusal. It’s fixed (IDs read as text, with a test), and the affected Jev run was re-run from scratch. It affected a side statistic, not any number in this report.Retained candidates only. The fine-tuned Laya was scored on the candidates the pipeline retained. This says nothing about matches lost earlier, in blocking or below the review line.What it cost, and what’s nextJev’s API charges for the set1/set2 replication runs are billed to the account and not itemized here. Everything else ran locally on the RTX 5090: Arm A fine-tuning about 12 to 27 minutes per run, the pool arm 6 to 15 hours per run, the two retrain runs 78 to about 106 minutes, the seed and epoch study about 2.6 hours across four runs, and inference about 45 seconds (vanilla) to about 195 seconds (enhanced) per set. The human cost is the labeling: 1,000 blind-labeled pairs for Part 1 and 1,000 fresh ones here.The next legs, in order:A seed budget before any other claim. Re-run the single-seed comparisons (the rubric axis, Arm A against Arm B, the rule text) with at least two to three seeds per arm and judge on the out-of-sample mean with the spread reported. That includes a clean augmentation retest: fix the identified defects, use real brand-vs-brand swaps, and apply the 13 relabels to the validation and test copies as well.Calibrate, then route. Check the fine-tuned Laya’s class probabilities for calibration on the labeled holdouts, and only then build the routing comparison Part 1 promised: wrong merges and missed matches per unit of analyst review, for a single fine-tuned Laya against the ensemble and Jev. A routing policy tuned to one checkpoint is tuned to a score whose out-of-sample ranking may not survive retraining, which is why the seed budget comes first.The missing-attribute rule for the auditors. Test INSUFFICIENT_EVIDENCE when an identity-critical attribute is missing, and no stronger identifier establishes the match, on the LLM auditors, where it can actually abstain.The caveats are the differences between a field report and a benchmark: one-second client, one labeler, single runs per checkpoint except for the two-seed study, and scoring on retained candidates only.Context reading: TypeSafe spent two years building Jev in secret; open-source cloned it in 4 days · Laya on GitHubAppendix: full results and methodsThis appendix is the technical ledger: the data-preparation ledger, full per-set tables, the pre-registration and grading rules, and the method notes behind every number above. It is optional; the main text is self-contained.A0. Data preparation ledgerArm A (from the dataset manifests for sft_expanding and sft_expanding_aug; identical sources): 16,033 candidate rows; k4 normalization (upper, whitespace-collapsed, all four fields) to 11,069 distinct pair keys; 8 keys carried more than one label and were dropped whole (27 rows); 4,945 duplicate rows dropped; 11,061 rows, one per key; gold exclusion 51 rows (18 unique ordered pairs); final split 11,010 rows. Closes both ways: on rows, 16,033 − 4,945 − 27 − 51 = 11,010; on keys, 11,069 − 8 − 51 = 11,010. Final mix 2,889 MATCH of 11,010 (26.24%). The 5,862 active-learning rows are one reviewer’s second-pass verdicts; that is, the same reviewer whose 470 gold rows carry the direct-review flag, which is why the 470-row gold slice is reported in-sample and never passed or failed.Arm B (from the pool_vanilla dataset manifest; identical splits for pool_enhanced, different rubric): pool 613,509 rows, 253,179 positives (41.27%); stage 1, gold pairs by id in both orientations: 20,000 dropped; stage 2, entity leak by normalized CleanDesc: 225,403 dropped (43,945 positive); 368,106 rows remain (200,981 positives, 54.60%); validation carve (seed 20261012, whole description-connectivity components over normalized CleanDesc, stratified toward the pool rate): 20,000 rows, 8,653 positives (43.27% measured against a 41.27% target; entity-disjoint verified); final train split 348,106 rows, 192,328 positives (55.25%).Training config (all four checkpoints, byte-identical run specs): `rlcd` loss, choice-order shuffling on, 4 epochs, micro-batch 8 with gradient accumulation 8, encoder learning rate 2.5e-5, head learning rate 1e-4, seed 20261012, 2,048/2,048 operating point written into each checkpoint. Base checkpoint commit `55cf4c4e` (the reviewed pin), RTX 5090, laya 0.3.27. The epoch count sets the cosine schedule length (T_max = total updates) and the σ anneal (0.4 to 0.1 across epochs).A1. Pooled set0 + set3 (the Part 1 auditor holdouts)37,392 pairs, 1,000 labeled (398 matches). P = MATCH precision, R = recall on true matches, DA = (TP+TN)/decisive calls. Precision and decisive accuracy are computed only on decisive calls: the pairs Jev left undecided (mostly INSUFFICIENT_EVIDENCE, about 750 here) enter neither the denominator nor the numerator, while recall, TP over all labeled true matches, still counts an undecided true match as a miss. Every fine-tuned Laya decides every pair. Labeled pairs weighted by stratum. Intervals: stratified bootstrap, 1,000 draws, seed 20261013. No MSF pairs; compared with gold non-MSF.The main text includes the four fine-tuned checkpoints, the base rv007, the Jev rv007, and the majority vote. Full pooled set0 + set3 roster:https://medium.com/media/f8b19a20837f07adb0ed90ca824b04ad/hrefPer-set P / R (set0 / set3):https://medium.com/media/0e5d8757ecf0e40b77eaa1359a4bc5ff/hrefGold non-MSF vs afflink (pooled) P / R:https://medium.com/media/0e5d8757ecf0e40b77eaa1359a4bc5ff/hrefTraining-data overlap with afflink is less than 1% of pairs or descriptions, population, or holdout, for all four checkpoints. Afflink is effectively out-of-sample for all of them; gold is not an independent distribution or label-source benchmark for Arm B (drawn from the pool, labels from the same fit run, in-sample by design intent), and Arm A’s training split excluded the gold rows that overlapped it (51 rows, 18 ordered pairs).A2. Pooled set1 + set2 (the fresh replication)set1: 17,099 pairs, 500 labels (250 matches), est. 49.5% matches. set2: 17,686 pairs, 500 labels (221 matches), est. 42.4%. Pooled 34,785 pairs, 1,000 labels, 471 matches. Seeds 20261015 / 20261016; bootstrap seed 20261013, 1,000 draws. 6 set1 holdout pairs and 0 set2 holdout pairs overlap set0/set3.See the replication section above (pooled P/R/DA with 95% CIs, all models).Per-set P / R:https://medium.com/media/d6d10ae153d91776d22dbad0be6cc79f/hrefPooled across all four sets (2,000 labels): sft_vanilla P 0.819 [0.780, 0.851], R 0.500 [0.467, 0.535]; sft_enhanced P 0.810 [0.779, 0.841], R 0.561 [0.526, 0.594]; Jev rv007 P 0.788, R 0.527.A3. False positives by labeler reason (weighted share)Pooled set0+set3:https://medium.com/media/bee8c92adfc8c31f9d290fb6064b9e75/hrefPooled set1+set2:https://medium.com/media/29ae4319072ca1a9c125702e3ab5899c/hrefThese shares rest on a few dozen weighted false positives per model; read them as direction, not size.A4. The expanding-rules test (inference only)Pre-registered by git tag `prereg-expanding-rules-20261015` (commit `6f5dfd8`) before any set1/set2 label existed. Rubrics: vanilla v1 (149) to v009 (978); enhanced v007 (980) to v008 (1,793). Paired stratified bootstrap per checkpoint: 1,000 draws, seed 20261013.Test pool (set1+set2): see the expanding-rules section above. Per-set ΔP / ΔR:https://medium.com/media/1fbe1f9fe98b3de6584487c003bd37e8/hrefGold non-MSF (precision-cost check):https://medium.com/media/029e138127659e56487c9ae55ef0a7d6/hrefOn the MSF slice, the change is 0 to +0.007 recall, precision flat at 1.000.Development (in-sample) and all four sets (not the verdict):https://medium.com/media/1362dec4f12f860ca484f1c7a35dde3e/hrefsft_enhanced’s development recall gain (+2.9, interval just above zero) did not hold on the pooled test sets (+2.1, interval including zero); the two test sets disagree (set1 +3.9 [+0.3, +7.8]; set2 +0.2 [−3.4, +3.6]). One significant set out of two is not a replication.A5. Pre-registered criteria and the six rulesPer checkpoint, test pool (set1+set2):Helps: ΔR > 0 with the 95% interval above 0, and the ΔP interval’s lower bound ≥ −0.03.Hurts: ΔP or a gold non-MSF precision drop > 0.02.No effect: anything else.The six expanding rules, with exceptions, are in the expanding-rules section above. Every rule carries the guard that the product type and the other stated specs must agree. Four rules were narrowed before the tag where they would have flipped a labeled non-match (the formulation, precision, and span clauses, and imaging drums); each change is recorded in that rule’s hypothesis field.A6. Method notes and problems foundStrata and weighting. The five strata are the pipeline’s own: the accept set plus four calibrated-probability review bands. Labeled pairs are weighted by stratum (N_h / n_h); intervals from a stratified bootstrap, 1,000 draws.Inference. Fine-tuned Laya ran in-process on the workstation RTX 5090. Each run checked its checkpoint’s rendered rubric sha256 and 2,048/2,048 budget against `run_spec.json` and stopped on a mismatch. Batch size 32. No pair errored, and none came back undecided in the fine-tuned runs.Pair-state room. The v008 head (1,793 tokens) leaves 254 tokens for the pair state at the 2,048 limit. Measured with the pinned tokenizer: no afflink pair exceeds it (largest 220, on set2); 3 of 20,000 gold pairs did and were clipped in the enhanced expanding gold runs (negligible).Leading-zero ids. `audit_shadow_experiment.audit_row_dicts` let pandas infer the export’s column types; set2’s all-numeric reference ids were read as integers, and 1,677 lost a leading zero. Fixed (ids read as text, with a test); the affected Jev run was re-run from scratch. A second, related bug in the March-agreement join was fixed separately.phi4-audit. About 1,071 weighted pairs undecided on set1/set2 are UNCERTAIN votes (444 on set1, 508 on set2), not run failures; unlike set0/set3, there are no Ollama repeat-limit errors here.The accept stratum is thin. The pipeline’s accept row rests on 41 to 44 labels per set.Side check on the fresh votes. The fresh qwen25 / smollm3 votes agree with the March 2026 shadow audit for the same pairs at 86.6% / 92.0% of set1; corrected for comparison, set0 was 86.1% / 91.7%, and set3 was 94.4% / 95.5%. set2 can’t be compared from its March CSV (ids stored as rounded floats), so it’s excluded from that side statistic.Single runs. Auditors at temperature 0.1; Laya deterministic. One run per checkpoint except the seed study (two seeds per recipe for sft_enhanced and sft_expanding; the pool arm remains a single seed).Seed and epoch study. Tag `prereg-laya-seed-epoch-20261017` (plus its verdict tag). Seeded runs: sft_enhanced_s2 and sft_expanding_s2 (seed 20261017), sft_enhanced_e2 and sft_enhanced_e6 (epoch sweep on v007; the epoch count was chosen on dev only). Seed yardstick: max(|S1.dR|, |S1.dP|) = 0.089. Two seeds show the variation; they don’t measure it (the yardstick comes from one pair of seeds, and S2 is twice as large).A7. The retrain, the seed study, and the epoch sweepPre-registered by git tags `prereg-laya-expanding-retrain-20261016` and `prereg-laya-seed-epoch-20261017` (each with its verdict tag) before any scoring. The 2026–10–18 correction note at the top of the retrain report withdraws the single-seed headline. Paired stratified bootstrap, 1,000 draws, seed 20261013, on the frozen set1/set2 pool.Retrain runs (Arm A, seed 20261012, v008 head):https://medium.com/media/2f50b8047778bf4345c596f749838a77/hrefTest pool (set1+set2), absolute:https://medium.com/media/76a32d10b199c1a60d860fa004ee5ee4/hrefTest pool, paired comparisons:https://medium.com/media/3929f21c70ccebd580734e2300cbf6b7/hrefAll three retrain comparisons graded “hurts” at the single seed (the verdict script tests “hurts” before “helps”). The rule-consistent data comparison recovered 13.7 points of recall, with its interval above zero, but incurred an 8.0-point gold non-MSF precision drop; the total (sft_expanding_aug − sft_enhanced) also cost 2.5 points of gold non-MSF precision. The retrain’s pre-registered criteria include gold MSF recall, which the test pool can’t show: the rule-text run’s MSF recall fell from 0.965 to 0.907 (−5.8 points). Seed yardstick: max(|S1.dR|, |S1.dP|) = 0.089; E1 is within seed variation, and E2’s recall loss is over the yardstick (real by the pre-registered rule, against a reference that is the higher of the two 4-epoch seeds). Two-seed means on test recall: sft_enhanced 0.523, sft_expanding 0.438 (about −8.5 points, unresolved; the recipes’ seed ranges overlap, 0.478 to 0.567 against 0.348 to 0.527).Epoch-sweep detail (single seed, v007 recipe): the 6-epoch run’s final loss is 0.216, tighter than the 4-epoch reference, and it calls MATCH about 24% less often, the same direction as the pool arm’s tighter-fit-finds-fewer-matches observation; the 2-epoch run’s gold non-MSF precision is 0.836 against the 4-epoch 0.814.Augmentation defects (independent review of the 1,193 generated rows): about 58 of 1,193 (4.9%) malformed (the inch and range regexes read `1 1/2"` as `2"` and matched inside decimals); 34 of 69 vendor contrasts carry the same real cartridge part number on both sides but are labeled NONMATCH (the opposite of the operator’s direction); 145 of 161 color positives end in `, ` and 214 of 229 pack positives end in a pack token; 267 of the 1,193 rows come from the pipeline’s cleaned text (no pool-only ablation was run).One cross-model comparison is a new computation, run after the reports and not in the run reports: sft_enhanced against Jev rv007, paired on the shared 1,000 set1/set2 labels, 1,000 draws, seed 20261013, stratified by the pooled setN|stratum with the analyzer’s pair weights (N_h / labels returned per stratum). Two resampling units, both reported: pair-level (the analyzer’s bootstrap_picks, verbatim) gives ΔP +0.039 [−0.006, +0.088] and ΔR +0.060 [+0.006, +0.113]; query-clustered (whole query clusters resampled within each stratum, the Part 1 clustered design; 910 clusters among the 1,000 labeled pairs; 74 are multi-pair, together holding 164 rows, and the largest has 4) gives ΔP +0.039 [+0.013, +0.095] and ΔR +0.060 [+0.033, +0.140]. Its marginal inputs reproduce the 2026–10–16 replication table (sft_enhanced 0.827 / 0.567 / 0.747; Jev rv007 0.788 / 0.507 / 0.716).I Fine-Tuned a Local Model to Match a Hosted Model. was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.