Lean verification finds a mistake in the 280k-citation "Attention Is All You Need" paper
mmitchell_ai · x · 2026-11-26
Hugging Face researchers applied Lean-style formal verification to "Attention Is All You Need" (280,000+ citations) and found a mistake that, as far as they know, has never been addressed by the authors.
Their pipeline checks an empirical paper in four layers:
- Model: the architecture is written as a Lean program (Model.lean), auto-codegen'd into PyTorch via lake exe codegen, with properties proven in ModelProofs.lean
- Method: Spec.lean encodes Sections 3.2 and 5.3 to verify the code that ran matches the paper's equations
- Experiments: generated code runs on trusted compute (Hugging Face Jobs) with Trackio logging metrics and code/hardware fingerprints
- Claims: the paper's conclusions are written as a Lean spec so Lean can prove whether they follow from the methods and logged data
The full repo is open-sourced on Hugging Face, with trackio export --format lean for one-click log export — a reusable recipe for provably re-verifying empirical ML papers.
More from Research
- Stanford's Anshul Kundaje: LLMs will become the unified integrators of biological knowledge — anshulkundaje · 2026-11-26
- Japanese AI circle notes a GPG paper whose Bregman Pythagorean geometry is the point — michaelchchoi · 2026-11-26
- GPT-6 in protein biology: strong at constraint-solving via code, weak at global folding — apoorvasriniva · 2026-11-26
- PyRUA-Dex: coding agents learn dexterous bimanual manipulation without demonstrations — DAGroup-PKU · 2026-11-26
- DyLoMo-DiT: dynamic looped MoE diffusion transformer boosts image quality per FLOP — Lernie Li · 2026-11-26
- Looping LLMs today are like 2023 MoEs, says researcher — 40x-style gains may be 3 years away — 1a3orn · 2026-11-26