1Formal Problem Formulation & The Structural Data Trap
In two-stage writing architectures, an upstream generator converts a structured brief into a rough draft x, and a downstream editor model fθ maps x → y to improve cadence, clarity, and rhetorical flow. Unattended deployment imposes two coupled hard constraints that are rarely evaluated jointly in stylistic rewriting benchmarks:
These constraints fail simultaneously under standard supervised fine-tuning (SFT) on natural human-versus-draft pairs. When a compact model (Qwen3.5-4B) synthesizes a rough draft x from an outline of a published human article y*, the human original routinely contains contextual statistics, dates, citations, or technical qualifications that never appeared in x. Across our raw 6,186-pair seed pool (spanning 3,260 distinct documents), deterministic numeric regex extraction alone flagged 51.1% of human targets as introducing numerals absent from their paired drafts. Fine-tuning directly on y* therefore teaches the editor to hallucinate plausible background numbers.
Conversely, aggressively pruning or filtering y* to eliminate unsupported clauses creates a systematic distributional skew: surviving targets skew substantially shorter than their input drafts. Under cross-entropy SFT, the editor absorbs deletion as a cheap faithfulness heuristic — turning a prose editor into an extractive summarizer that silently discards one-third of every document.
S… or H…), its sample size, exact scoring script, and binary pass threshold were committed to git prior to GPU or API execution. Methodological scope: Part 1 reports the October 2026 study and pre-registered outcomes exactly as logged; Part 2 subsequently audits the evaluation instruments on raw JSONL outputs, exposing a sliding-window NLI aggregation defect that overturns the reranking headline while confirming length collapse and v4lp repair.
2Corpus Provenance, Model Family & Statistical Protocol
All thirty numbered phases (0–29, 4–9 October 2026), the H31 27B scale-up (23–24 October), and H32a–c ran on a single local dual-GPU workstation (2 × NVIDIA RTX 3090 24 GB, AMD Ryzen 9 5900X, 60 GB RAM) under strict GPU-UUID isolation. To prevent source memorization, we constructed a locked held-out evaluation benchmark of 120 items drawn from 74 unique source documents, programmatically verified for zero document-ID overlap against all 6,186 training pairs. Pooling six independently seeded DPO preference lanes (seeds 3–8) yielded n = 720 paired evaluations for primary reranking and prompt/temperature ablations; two-seed checks (e.g., H17, H31) evaluated n = 240.
Statistical inference: Because six-lane pooled items share the same 120 underlying source drafts, standard independent binomial confidence intervals understate variance. Every pooled contrast therefore uses item-cluster bootstrap 95% confidence intervals (10,000 resamples over the 120 document clusters, fixed RNG seed 18) paired with exact two-sided McNemar tests on discordant item pairs. Throughout Part 1, directional deltas (Δ) are signed positive when an intervention reduces NLI-flagged contradictions.
Exact corpus construction, QLoRA/DPO hyperparameters, and NLI verifier definitions
- Fixed editor instruction: “You are an editor. Rewrite the draft so it reads like a careful human writer: keep every fact from the draft, match its length within 20%, use natural varied prose. Output only the rewritten text.”
- Raw seed distribution (6,186 pairs, 3,260 docs):
wikipedia-2020(2,522), Congressional Research Servicecrs(1,655), Europe PMCepmc(1,511), UK Parliamentarypostnotes(474), andnasatechnical briefs (24). - Fact-filtered corpora (
v2&v3): Phase 1 executed 7 registered filtering/rewrite stages using numeric regex gates, NLI filters, and 4,682glm-5.3rewrites (temp 0.2), yieldingv2(2,956 pairs; regex invention share 78.4% → 0%) and atomic claim-checkedv3(2,020 pairs). - Length-preserving repair (
v4lp) & matched control (ctlv4): All 2,020v3targets were regenerated viaglm-5.3(temp 0.6) under an explicit 90%–110% word-count contract; exactly 807 pairs survived joint regex, DeBERTa contradiction < 0.5, entailment, and 0.90–1.15 length-ratio filters. To isolate target rewriting from dataset size or ID selection,ctlv4trained on the unchangedv3targets over the exact same 807 IDs and batch ordering. - Model architectures & optimization: Qwen3.5-4B, Qwen3.5-9B, and Qwen3.5-27B (H31) loaded in 4-bit NF4 double quantization with
bfloat16compute. LoRA adapters (r = 32,α = 64,dropout = 0.05) targeted all 7 linear projections (q/k/v/o_proj,gate/up/down_proj). SFT used AdamW, cosine decay,lr = 1e-4(124 steps onv3; 50 steps onv4lp/ctlv4). DPO usedβ = 0.1,lr = 1e-5, 50 steps × 8 pairs/step. Default decoding:temp = 0.7,top_p = 0.95,max_new_tokens = 1100. - Tri-family NLI stack: Picker encoders
D=DeBERTa-v3-large-mnli-fever-anli-ling-wanliandR=RoBERTa-large-mnli; strictly held-out evaluation encoderB=facebook/bart-large-mnli(excluded from all data filtering, DPO pair mining, and candidate selection).
3Diagnosis of Filter-Induced Length Collapse & Matched-Control Target Repair
Our Phase 5 checkpoint dose–response curve ruled out base-model truncation bias immediately. Evaluated under identical decoding parameters, un-fine-tuned Qwen3.5-9B tracked input length almost 1:1 at a median ratio of 0.981. Once SFT began on fact-filtered v3 targets, median output/draft ratio dropped monotonically across training: 0.780 at step 31, 0.639 at step 62, 0.643 at step 93, and 0.645 at step 124. Over the same trajectory, external style win rate (GLM vs-draft) rose from 0.555 to ~0.81 by step 62, while NLI contradiction rates fluctuated non-monotonically (26.7% / 35.8% / 23.3% / 30.0% / 32.5%).
Before incurring the cost of regenerating training targets, we systematically tested nine indirect mitigations spanning data filtering, loss reweighting, optimization, decoding constraints, and prompt/inference structure. Every single indirect lever failed its pre-registered gate:
- Data & loss reweighting (S8, S9, Phase 5, H12–H14): Filtering training targets by minimum length ratio (0.60, 0.70, 0.75, 0.80) either shifted median output length negligibly (0.638 / 0.681 vs 0.636 unfiltered) or purged too much of the corpus (471/840 pairs ineligible). Content-preserving delete repair (S9, 647 pairs) stalled at 0.647, and 3× upweighting long drafts slightly worsened long-quartile ratio (Δ −0.041).
- Optimization & prompt levers (Phases 6–7, H8–H9): Early stopping found no eligible checkpoint k* simultaneously clearing length and style bars; cutting learning rate to 0.1×/0.3× under-fit style; adding explicit word-count prompts (H9) worsened length collapse (0.592 / 0.652) while increasing repetition loops.
- Decoding & chunking hacks (Phase 4, H10): Masking the EOS token until generation reached 0.85× draft length exposed why length collapse is distributional rather than a simple stop-token bias: forced to continue after exhausting its planned summary, the model entered degenerate n-gram repetition loops in 48 of 51 outputs (94.1%). Splitting drafts into independent paragraph chunks (H10) recovered only 0.725 / 0.708 while introducing 12%–13% cross-boundary coreference and factual contradictions.
Collapse (Phase 5). Base Qwen3.5-9B preserves length at 0.981×, then drops monotonically across SFT steps 31 (0.780), 62 (0.639), 93 (0.643), and 124 (0.645) on fact-filtered targets.
Matched control (H15). Restricting unchanged v3 targets to the exact 807 IDs and 50-step schedule (ctlv4) still stalls at 0.7025–0.7250× with 15.8% sub-half-length outputs and 7–10 repetition loops.
v4lp target repair. Rewriting those same 807 targets under a 90%–110% length contract restores median ratios to 0.9378 / 0.9453 (+0.202 / +0.231 vs control), eliminates sub-half-length outputs and loops completely, and replicates at 4B (0.949 / 0.944).
v4lp) against ID-matched ctlv4 (H15–H16).Only intervening directly on the target length distribution solved the failure cleanly. In H15, comparing v4lp against the ID- and step-matched control ctlv4 across two independent seeds (Table 1) isolated a paired median length lift of +0.202 (seed 1) and +0.231 (seed 2), eliminating both sub-half-length collapses (15.8% → 0.0%) and repetition loops (10 / 7 → 0 / 0) while cutting micro regex numeric inventions by two orders of magnitude (0.115 / 0.122 → 0.001) and boosting GLM vs-draft win rate (+0.115 / +0.109).
| Metric (Qwen3.5-9B, n = 120) | v3 ref s1 | ctlv4 s1 | v4lp s1 | v3 ref s2 | ctlv4 s2 | v4lp s2 |
|---|---|---|---|---|---|---|
| Median output/draft ratio | 0.6451 | 0.7250 | 0.9378 | 0.6421 | 0.7025 | 0.9453 |
Paired median Δ vs ctlv4 | — | — | +0.202 | — | — | +0.231 |
| NLI contradicted (share of 120) | 32.5% | 24.2% | 29.2% | 22.5% | 25.0% | 32.5% |
| Sub-half-length (< 0.5×) | — | 15.8% | 0.0% | — | 15.8% | 0.0% |
| Repetition loops (/120) | 2 | 10 | 0 | 3 | 7 | 0 |
| Regex invented facts (micro) | 0.105 | 0.115 | 0.001 | 0.097 | 0.122 | 0.001 |
| GLM vs-draft style win rate | 0.811 | 0.742 | 0.857 | 0.775 | 0.731 | 0.840 |
Cross-scale & fresh-seed replication (H16–H17): Re-running the identical v4lp recipe on Qwen3.5-4B replicated length repair cleanly across both seeds (0.949 and 0.944, even though 4B had failed the finer Phase 7 dose–response monotonicity check). On fresh seeds 3–4 (H17, n = 240), v4lp cleared its pre-registered faithfulness non-degradation bound (≤ +5.0 pts contradiction rise vs ctlv4): 78 vs 71 flagged items (Δ +2.92 pts, 95% CI [−3.25, 9.08], exact McNemar p = 0.427).
4Decode-Time Ensemble Reranking (E-pick) — And Every Attempt to Push Beyond It
With length stabilized, we tested inference-time best-of-N reranking (E-pick) across six DPO lanes (seeds 3–8, n = 720). For each draft x, we sampled N independent rewrites {y1, …, yN} at temp = 0.7 and selected the candidate minimizing mean contradiction probability across two picker NLI encoders, then scored the selected output under the strictly held-out third encoder B:
Relative to single-pass greedy decoding (497/720 = 69.0% flagged under B), E-pick scaled smoothly through best-of-8 before saturating: best-of-4 dropped flags to 473/720 (Δ +3.3 pts, 95% CI [0.6, 6.1], p = 0.024), best-of-8 to 446/720 (Δ +7.1 pts, CI [4.0, 10.1], p ≈ 0), and best-of-16 to 441/720 (Δ +7.8 pts, CI [4.6, 11.1], marginal +0.7 pts over bo8). All six seeds moved in the same direction (83→73, 85→71, 79→76, 83→78, 81→69, 86→79) without sacrificing length preservation (median ratios 0.918–0.943 greedy vs 0.921–0.939 bo8). Notably, same-family scores overstated the effect by more than 2× (bo8 Δ16.5 under picker D and Δ14.4 under picker R versus Δ7.1 under held-out B; an earlier circular D-on-D precursor on 240 items had shown 32.5% → 9.6%).
We then executed four targeted follow-on experiments designed to break past the best-of-8 plateau. Every single one failed its pre-registered gate, revealing distinct structural bottlenecks:
- 3× Model Scale-Up to Qwen3.5-27B (H31, seeds 7–8, n = 240): Scaling from 9B to 27B under identical
v4lpSFT + DPO schedules improved every optimization loss monotonically (seed 7: SFT val loss 0.4632 → 0.3882, DPO 0.3002 → 0.2828; seed 8: SFT 0.3750 → 0.3151, DPO 0.3015 → 0.2359). Yet lower cross-entropy loss failed to translate into fewer held-out contradictions underB: 167 → 160/240 (Δ +2.9 pts, CI [−2.1, 7.9], p = 0.3368), and 27B composite vs 9B composite landed at Δ −1.7 pts (CI [−6.2, 2.9]). - Adding a Third Verifier Family (H28 ELECTRA & H32c AlignScore): Adding a third NLI architecture (ELECTRA) yielded only 446 → 441/720 (Δ +0.7 pts, CI [0.0, 1.4], p = 0.125). Replacing
Rwith genuinely non-NLIAlignScore-base(low inter-scorer correlation: Pearson r = 0.268 withD, 0.388 withR) actively degraded held-outB(446 → 464/720, Δ −2.5 pts, CI [−5.0, 0.0], p = 0.0662); combining all three was neutral (446 → 451, Δ −0.7). - Atomic Claim-Decomposed Reranking (H32a): Decomposing candidate sentences into atomic claims and averaging claim-level contradiction scores flipped 85–97 of 120 candidate selections per lane — yet degraded held-out
B(446 → 461/720, Δ −2.1 pts, CI [−5.0, 0.8], p = 0.1953) because short atomic clauses suffered higher single-premise entailment variance. - Verify-Then-Revise Second Pass (H32b): Passing the 439/720 items flagged by
D+Rback to the 9B DPO editor with explicit pointers to the flagged sentences produced an exact null: 446 → 446/720 (Δ 0.0, p = 1.0). Token-level diffing revealed an identity-copy attractor: the editor preserved 98.4%–99.7% of unflagged sentences verbatim, and altered a flagged sentence in only 0.0%–4.3% of targeted items (0.0% on lane s5) — echoing Tyen et al.’s finding that mid-sized LMs fail self-correction even when supplied exact error spans.
5Complete Negative-Results Ledger (26 Pre-Registered Nulls)
Selective reporting destroys small-lab ML research. Table 2 documents all 26 pre-registered hypotheses that failed their acceptance criteria across the core 30-phase sequence and H32a–c. Two failures carried outsized diagnostic weight: (1) DPO failed both independent replications (H19 two-seed Δ +1.2, CI [−3.8, 6.2]; H20 six-seed Δ +2.8, CI [−0.1, 5.7]; ensemble-mined T-Edpo H27 Δ +5.0, CI [−0.8, 10.8]), proving that our single positive H18c DPO signal on 240 circularly scored items did not generalize; and (2) our blind LLM-judge panel (H22) saw virtually zero difference between greedy decoding and best-of-8 E-pick (220 vs 214/720 preferred, Δ +0.8 pts, CI [−2.6, 4.2]) directly contradicting B’s +7.1-point gain.
| ID / Phase | Intervention Tested | Primary Logged Outcome | Status |
|---|---|---|---|
| S8 / Ph 3 | Target length filter ≥ 0.60 / 0.70 | Medians 0.638 / 0.681 vs 0.636 unfiltered | Failed |
| S9 / Ph 3 | Content-preserving delete repair | Median 0.647 vs v2 0.636 (647 pairs) | Failed |
| — / Ph 4 | EOS token forbidden until 0.85× draft | Degenerate repetition loops in 48/51 outputs | Failed |
| — / Ph 5 | 3× long-draft loss upweighting | Long-quartile Δ −0.041; overall Δ −0.029 | Failed |
| — / Ph 6–7 | Early stop k* & 4B dose–response | No eligible k*; 4B monotonicity failed both seeds | Failed |
| H8–H10 | LR ×0.1/×0.3; length prompt; chunking | Prompt 0.592/0.652; chunk 0.725/0.708 (~12–13% boundary flags) | Failed |
| H12–H14 | Ratio ≥0.80 / ≥0.75; mixed v4lp | 471 / 840 pairs ineligible; H14 s2 missed NLI bar | Failed |
| H18b / 18d | Strict v5fc targets; DPO+bo4 gate | v5fc Δ +2.9 CI [−1.2, 7.1]; DPO+bo4 Δ +2.5 | Failed |
| H19 / H20 | DPO replications (s5/s6; 6-seed pooled) | H19 Δ +1.2 [−3.8, 6.2]; H20 Δ +2.8 [−0.1, 5.7] | Failed |
| H21 / H22 | Single-family R-pick; blind LLM judge | R-pick 208 vs 203 (Δ −0.7); blind panel 220 vs 214 (Δ +0.8) | Failed |
| H27 / H28 | T-Edpo (532 pairs); +ELECTRA picker | T-Edpo Δ +5.0 [−0.8, 10.8]; ELECTRA 441 vs 446 (Δ +0.7) | Failed |
| H29 / H30 | “Preserve facts” prompt; temp 0.3/0.5/0.1 | Both 488 vs 497/720 (Δ +1.2, p ≈ 0.5); t05 499, t01 501 | Failed |
| H31 | 27B scale-up (SFT+DPO, s7/s8, n=240) | 160 vs 167/240 (Δ +2.9 [−2.1, 7.9]); all losses lower | Failed |
| H32a / b / c | Claim-E-pick; verify-revise; AlignScore | H32a Δ −2.1; H32b Δ 0.0 (446→446); H32c Δ −2.5 | Failed |
6Threats to Validity, Disclosed Deviations & The Open Measurement Anomaly
We closed October with three stark validity warnings that prevented unattended deployment:
- Unsolved residual flag rate: Even under the strongest reranking arm (
E-pick bo16), 61.3%–62.0% of items (441–446/720) remained flagged by held-out encoderB. - Inter-judge collapse: On a 50-pair spot audit across three external LLM judges, inter-rater reliability fell below chance (Fleiss κ = −0.223; positive flag counts diverged wildly: Astra 6, GLM 42, Grok 1).
- Construct-validity contradiction: Why did an independent blind LLM-judge panel detect essentially zero difference between greedy decoding and
E-pick bo8(Δ +0.8 pts, CI [−2.6, 4.2]) on the exact 720 pairs where held-out NLI encoderBreported a highly significant +7.1-point reduction?
Resolving that discrepancy required a zero-GPU forensic test: score verbatim unchanged copies of the 120 drafts through B, R, and D to measure the instrument’s true false-positive floor. Running that single control is what collapsed the October reranking headline and reshaped our entire research direction in Part 2.
Disclosed pre-registration slips, execution deviations & descriptive tooling (Phase 27)
- Two disclosed pre-registration slips: (1) the length-threshold rule was committed 1 min 48 sec after its gate script launched (strictly prior to any adapter checkpoint existing); (2) one concurrent-session script edit was isolated and reconciled via git SHA reconstruction and raw output attestation.
- Logged operational deviations: one mid-phase resume requiring
--no-early-abort, three overnight CUDA OOM cycles during Phase 18c, one shared invalid basegeneration_configfield affecting all compared arms symmetrically, and external API judge-credit outages on 7 October. - Phase 27 descriptive cascade: A local confidence-based JEV cascade flagged 4.8% of 1,567 audited units, agreed on 43% of low-confidence escalations, and would have reduced external judging spend by ~$53 out of $81.6.
7References
- Brown et al. (2024). Large Language Monkeys: Scaling Inference Compute with Repeated Sampling.
- Cao et al. (2020). Factual Error Correction for Abstractive Summarization Models. EMNLP.
- Cobbe et al. (2021). Training Verifiers to Solve Math Word Problems.
- Dettmers et al. (2023). QLoRA: Efficient Finetuning of Quantized LLMs. NeurIPS.
- Dhuliawala et al. (2023). Chain-of-Verification Reduces Hallucination in Large Language Models.
- Dubois et al. (2024). Length-Controlled AlpacaEval.
- Gao et al. (2023). Scaling Laws for Reward Model Overoptimization.
- Gekhman et al. (2024). Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations? EMNLP.
- Gou et al. (2023). CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing. ICLR.
- Honovich et al. (2022). TRUE: Re-evaluating Factual Consistency Evaluation. EMNLP Findings.
- Hu et al. (2022). LoRA: Low-Rank Adaptation of Large Language Models. ICLR.
- Laban et al. (2022). SummaC: Re-Visiting NLI-based Models for Inconsistency Detection in Summarization. TACL.
- Maynez et al. (2020). On Faithfulness and Factuality in Abstractive Summarization. ACL.
- Min et al. (2023). FActScore: Fine-grained Atomic Evaluation of Factual Precision. EMNLP.
- Rafailov et al. (2023). Direct Preference Optimization: Your Language Model is Secretly a Reward Model. NeurIPS.
- Tyen et al. (2024). LLMs Cannot Find Reasoning Errors, but Can Correct Them Given the Error Location. ACL Findings.
- Yu et al. (2023). RLHF-V. · Zha et al. (2023). AlignScore. EMNLP. · Zheng et al. (2023). Judging LLM-as-a-Judge. NeurIPS.
Cite this
To cite Part 1 of the Canary Builds local-model research series:
@techreport{canarybuilds-2026-part1-thirty-phases,
title = {Part 1: Thirty Phases of Fact-Faithful Editing in a Compact Local Model},
year = {2026},
month = {10},
institution = {Canary Builds},
url = {https://canarybuilds.com/papers/part-1-thirty-phases-local-editor}
}