arXiv:2608.23001cs.AIcs.CL2026-08

让AI改论文时只动该动的部分,确保不乱改数据和引用。

PatchWrite: One Line, Not One Section -- Compile-Gated, Validity-Preserving Editing for AI-Drafted Manuscripts

论文配图:PatchWrite: One Line, Not One Section -- Compile-Gated, Validity-Preserving Editing for AI-Drafted Manuscripts
图 1 · 摘自论文原文
  • 只允许通过编译检查和引用证据核验的修改才能生效
  • 在24篇论文8类错误测试中,99%情况下未改动无关内容
  • 适合需要严谨事实一致性的科研写作场景

自动化论文生成流程常因局部缺陷重写整个章节,导致无关数据和引用变化。PatchWrite通过约束候选修改的提交方式:采用有限范围编辑与回滚机制,但收紧编译接受标准,增加致命日志检查,并引入证据锁——要求每条引用和实验数值必须在参考注册表或实验日志中可验证。不通过任一检查的修改将被拒绝,保留先前版本。在24篇论文、8类故障的奥尔多压力测试中(768个任务,编译失败与仅内容错误各半),全段重写导致所有192例中‘12层’等无关行均被改动(0/192保留;数值杰卡德相似度0.6667),而PatchWrite实现192/192完全保留。移除编译门禁使接受率降至0,移除证据门禁则允许虚构引用通过。此规律贯穿全部八类故障。为验证生成式编辑效果,用写作模型生成候选并重跑192个任务,模型候选75%被接受;几乎所有拒绝对应于同一可复现的语法错误(空替换删除行)。所有通过的候选均双门通过,93.75%修复注入故障;其余为技术上合法但语义不当的引用与近似格式变更。在对十六组PDF的盲评中,两位评估者均更偏好PatchWrite在保留实验室事实方面的表现(C1李克特5.0比2.0),而对文笔质量评分无显著差异。来自193次实际产品写作任务的日志显示,同类错误在真实使用中也持续出现。

原文摘要 · Abstract (English)

Automated manuscript pipelines often regenerate an entire section to repair a local defect, allowing unrelated metrics and citations to change even when the resulting PDF still builds. PatchWrite instead constrains how candidate edits become committed manuscript states: it reuses bounded EDIT N M editing and rollback, but tightens compilation acceptance with fatal-log checks and adds evidence locks that require every cited key and experimental numeric token to be attested by a reference registry or experimental log. Candidates that fail either check are rejected and the previous HEAD is retained. On a 24-manuscript x 8-fault oracle stress test (768 jobs, evenly split between compile-breaking and content-only faults), whole-slot rewriting mutated an unrelated "12-layer" line in every case (0/192 preserved; numeric Jaccard 0.6667), whereas PatchWrite preserved it in 192/192 cases. Removing the compile gate reduced acceptance to 0, while removing the evidence gate allowed a hallucinated citation to pass. The same pattern held across all eight faults. To test the protocol with generation rather than oracle edits, we reran the 192 jobs with the writer model proposing the edits. The model's candidates were accepted in 75% of cases; nearly all rejections came from one reproducible failure mode in which the model attempted to delete a line using an empty replacement unsupported by the current grammar. Every accepted candidate passed both gates, and 93.75% fixed the injected fault; the remaining cases involved a technically valid but sentence-inappropriate citation and one markup-changing near-miss. In a blind evaluation of sixteen PDF pairs, both raters preferred PatchWrite for preserving lab-grounded facts (C1 Likert 5.0 vs. 2.0), while rating prose quality nearly identically. Logs from 193 in-product drafting tasks show the same classes of failures occurring in practice.

论文生成编辑验证事实保真AI写作

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。