Meaningful Human-in-the-Loop Checking of GenAI Synthesis for Restricted Languages
Murat · 2026年11月24日
AI 摘要 AI 生成,可能有误
该文章评述了一篇ECOOP 2026论文,该论文介绍了PICK——一种人在回路(human-in-the-loop)工具,用于消除大语言模型(LLM)为受限语言(正则表达式、线性时序逻辑LTL、访问控制策略)生成的规范中的歧义。其方法是推导出多个候选公式,采样候选公式之间存在分歧的具体场景,并让用户逐一接受或拒绝,直到只剩下正确的候选公式。实验表明,与直接阅读公式相比,PICK显著提高了准确率(例如在正则表达式任务上为60–72%,而直接阅读仅为22%),并且使用户更有可能正确地拒绝所有错误的候选公式。作者还将同一思想反向应用,构建了“Do you Paxos?”(你懂Paxos吗?),这是一个交互式辅导工具,通过就Paxos区别于常见误解的行为向用户提问测验,来教授正确的Paxos。
When the only comment on a PR is "LGTM", due diligence has not been done. A glance is not understanding. Understanding has levels, and we almost always overestimate ours. But the LGTM stamps the code as correct anyway. Make no mistake (pun intended), this is also true for LLM-generated code, even with so-called "correct-by-construction" approaches.
Why does verification catch anything at all? Because of redundancy. You write the specification carefully and then write the implementation separately, and the verification check finds the places where the two disagree.
LLM code synthesis throws that away. It derives the implementation from the specification, so the two can almost never disagree. Correct-by-construction becomes a dangerous misnomer. If the specification is wrong, the implementation is wrong in exactly the same way. Better models will not fix this. Any move from natural language to a specification leaves an intent gap between what the user meant and what the specification captures. The devil is in the cornercases.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要TLAPS-Bench is a benchmark of 265 proof targets drawn from 95 real-world TLA+ specifications (including etcd Raft, ZooKeeper, and MongoDB transactions), designed to measure how well AI agents can carry the burden of deductive correctness proofs using the TLA+ Proof System. Unlike existing verification benchmarks that provide scaffolding such as helper lemmas or invariants, it hands agents only the spec and target theorem—covering safety, liveness, and refinement properties—and its Tilapia harness supplies proof checking, model checking tools, and anti-cheating guards, notably using a 'falsify before you prove' recipe where TLC and Apalache quickly refute bad candidate invariants. On the 70 hardest targets, the best current model proved 44.3%, leaving substantial room for AI labs to improve agents' formal proof and autoformalization capabilities.
AI 摘要The author argues that writing is fundamentally a tool for thinking, likening a human without writing to a finite automaton and one with writing to a Turing machine, and illustrates this with personal experiences from mind maps in school to paper reviews and blogging. They warn that delegating writing to LLMs outsources the very act of thinking, making personal writing a widening comparative advantage. The article closes with five practical rules: produce unrestrained first drafts, edit ruthlessly, keep prose simple and plain, write for yourself without expectations, and put writing on a regular schedule.
AI 摘要This article reviews the TLA-Verus paper, which uses LLM agents in a prover-reviewer loop to translate TLA+ specs from GitHub into Verus and prove safety and liveness properties there. The author criticizes the paper for lacking any refinement proof linking the Verus spec back to the original TLA+ (and producing no executable Rust code at all), understating TLAPS's existing temporal proof capabilities, and presenting a skewed corpus and a benchmark filtered to tasks its own pipeline had already proven. Nonetheless, the author finds Verus itself and the paper's automated task generator genuinely useful contributions.
AI 摘要The article reviews Ananyo Bhattacharya's biography of John von Neumann, chronicling his early years in Budapest and his foundational contributions to an extraordinary range of fields, including set theory, quantum mechanics, game theory, economics, and computing. The author argues that von Neumann's real superpower was the 'art of abstraction'—reducing messy domains to their minimal objects and axioms, as seen in his rigorous Hilbert space formulation of quantum mechanics, his axiomatization of expected utility, and the stored-program computer architecture he deliberately released into the public domain. The piece also explores his upbringing, including his father's seminar-style dinners and multilingual education, as keys to understanding the 'Johnny phenomenon'.
AI 摘要The article summarizes Emile P. Torres's analysis of the TESCREAL ideology cluster (Transhumanism, Extropianism, Singularitarianism, Cosmism, Rationalism, Effective Altruism, and Longtermism) that shapes the people running frontier AI labs, all of whom share the goal of a cosmic post-human utopia achieved through artificial superintelligence. Crucially, even the arch-doomer Eliezer Yudkowsky and AI safety critics belong to 'team post-human'—their disputes with accelerationists are family squabbles about risk timing, not objections to the destination in which biological humans become obsolete and are meant to serve as a transitional species. Torres warns that this worldview functions like a religion whose duty to trillions of hypothetical future digital minds outweighs obligations to living humans, making its adherents dangerous precisely because they believe they are heroic.