开源权重模型驱动自托管 Agent 参赛 Lean 证明重构
A Self-Hosted, Time-Budgeted Agent for Lean Proof Refactoring with an Open-Weight Model
不用微调,单靠 Qwen3.8-Flash-Next 加一套工具调用框架就把 Lean 证明平均缩短 62%,还全过了 kernel 校验。做形式化验证或 Agent 工程的人能从中学到上下文长度与 KV cache 吞吐的实测权衡,工程细节很扎实。
一个开源赛道参赛作品在 Lean Refactor Arena 中采用通用 LLM Agent 框架而非训练模型,底层使用 FP8 版本的 Qwen3.8-Flash-Next,未经微调,由 vLLM 在 4 张 A100 80GB GPU 上服务。全部问题在 48 小时限时内并发跑完,提交的证明从环境搭建到最终选择共耗时 47.8 小时。
Agent 通过工具在问题所在的 Lean 项目中编译并打分,每个有效证明都保留为候选;流程分发现和精炼两个阶段,长对话从检查点重建,并用无模型 Pass 改进最优候选,最终结果在问题列出的所有 Lean 版本上编译验证。 submitted proofs 得到 79.25 Combined 分,长度平均缩短 62.48%,heartbeat 减少 76.96%,98.3% 为零样本完成,全部通过 Lean kernel 检查。
团队还报告了工程细节:自托管 A100 需要三处兼容性修复;对话重建的上下文长度存在甜点,60 并发下 80k 上下文会撑爆 GPU KV cache,吞吐从约 1,700 tokens/s 降到 530 tokens/s,最终提交方案采用 60k 上下文加 CPU KV offloading。
A Self-Hosted, Time-Budgeted Agent for Lean Proof Refactoring with an Open-Weight Model
We describe our open-track entry in the Lean Refactor Arena, a general LLM agent harness for formal theorem proving and proof refactoring rather than a trained model: it applies to any Lean 4 proof (including Mathlib-based projects), and its prompts contain no proof techniques or content written for particular problems. A single open-weight LLM, Qwen3.8-Flash-Next in its FP8 release without fine-tuning, is served with vLLM on four A100 80 GB GPUs and drives one tool-calling agent per problem, while the node's CPUs compile, measure and search around it. The agent edits the reference proof through tools that compile and score it in the problem's own Lean project, and every valid proof is kept as a scored candidate. Each problem runs a discovery and then a refinement phase; long conversations are rebuilt from checkpoints, model-free passes improve the best candidate, and the final choice compiles candidates on every Lean version the problem lists. All problems run concurrently in one job that ends within the 48-hour limit, setup included (the submitted proofs took 47.8 hours from the first setup step, selection included). Self-hosting on A100 required three compatibility fixes, and the context length at which a conversation is rebuilt has a sweet spot: shorter contexts score less per request, while longer ones overflow the GPU KV cache and evict cached prefixes at 60 concurrent problems (at 80k, throughput falls from about 1,700 to 530 output tokens/s). The submitted run uses 60k with CPU KV offloading. The submitted proofs score 79.25 Combined (62.48% length reduction, 76.96% heartbeat reduction, 98.3% zero-shot), and every one is fully checked by Lean's kernel. Code: https://github.com/grenadeComing/lean-refactor-arena
This report is categorized under AITOP's "Papers" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Qwen3.8-Flash-Next, Lean, vLLM, agents.
Source attribution: curated from arXiv cs.AI (@Ke Zhang, Pengzhen Lin, Zhouxing Shi, Maziar Raissi). Cross-source corroboration: 2 independent sources have covered this development (including rohanpaul_ai), confirming industry-wide signal strength.
- rohanpaul_ai11-30 20:07Source