EPFL tops Lean Refactor Arena with Qwen
EPFL researchers open-sourced an automated proof refactoring pipeline that pairs an un-fine-tuned Qwen model with the Codex CLI to compress Lean 4 proofs and reduce kernel execution time. Tested against strict multi-version Lean kernel checks, the system took first place in the open-source track of the Lean Refactor Arena at NeurIPS.
Formal verification usually yields verbose, compute-heavy proofs that slow CI pipelines to a crawl; EPFL proves that guided generalist LLMs with deterministic kernel guardrails beat bespoke fine-tunes at cleaning them up.
- –Un-fine-tuned model efficiency: Rather than training a specialized model, the pipeline runs stock Qwen through an OpenAI Codex CLI tool harness, guided by a seven-card heuristics bank.
- –Multi-version kernel verification: The system discards hallucinated or breaking rewrites by compiling candidate proofs directly against Lean 4 kernels across multiple versions, accepting changes only if they measurably reduce cost.
- –Hybrid AI and CPU pipeline: GPU-driven model search runs ten workers in parallel over vLLM, followed by an automated 32-worker CPU cleanup stage that squeezes out additional proof-length gains without model calls.
- –Blueprint for agentic code refactoring: Formal proof environments provide absolute ground truth, making this workflow an ideal reference architecture for robust AI-driven code optimization and compiler passes.
DISCOVERED
2h ago
2026-11-26
PUBLISHED
2h ago
2026-11-26
RELEVANCE
AUTHOR
Discover AI