Building an RL theorem-proving workflow on Modal
AE Studio built a reinforcement-learning loop on Modal that trains an LLM to write Lean proofs, comparing Evolution Strategies (ES) against GRPO using Lean verification as the reward. vLLM generation runs on GPU workers fanned out with .map(), Lean verification runs in short-lived sandboxes so bad proofs can't crash the run, and model state is stored as a ~200-byte-per-iteration history of perturbation seeds and rewards that each worker replays onto base weights from a Volume. ES matched or beat GRPO in several runs and looked sample efficient with limited data, though results varied and scaling remains unclear. The authors estimate the run cost about $122, with generation at 147s of a 538s iteration, but these figures are vendor-favorable estimates.
Related posts
- Kimina-Prover: Applying Test-time RL Search on Large Formal Reasoning Models
Hugging Face hardMasterKimina-Prover-72B, trained with the Kimi k1.5 RL pipeline on Qwen2.5-72B, reaches a 92.2% pass rate on miniF2F-test for Lean 4 theorem proving by combining a lemma-enabled RL pattern, a recursive Test-Time RL search over candidate lemmas, and learned error-fixing from Lean feedback. TTRL search scores lemmas by utilization, builds input variants that are 60% top lemmas and 40% top lemmas plus random extras, prunes lemmas below a 0.10 utilization score after 50 tries, and generates sublemmas recursively after 128 failed attempts. It discards inconsistent lemmas by proving their negation. A Batched Failure Replay strategy trains error correction, and under equal budgets 16 attempts plus 16 fixes beat 32 brute-force samples, 35.6% to 28.8%. Distilled 8B and 1.7B variants are also released.
- Kimina-Prover-RL
Hugging Face hardMasterKimina-Prover-RL is an open-source GRPO training pipeline, released as a recipe in a fork of verl, that teaches small LLMs to prove Lean 4 theorems using a think-then-code output format. The pipeline verifies proofs with kimina-lean-server, applies strict format-checking rewards and adds a single error-correction turn that feeds Lean feedback back to the model. It uses DrGRPO to remove the length bias of GRPO and trains on a filtered set of hard NuminaMath-LEAN problems. After 48 hours on 8 H100s the 1.7B model reaches 76.23% Pass@32 on MiniF2F (77.87% with error fixing), and a 0.6B model reaches 71.30%, both state of the art for open-source models of their size.
- Reinforcement learning is an infrastructure problem
Modal mediumAdept
RL post-training of LLMs is bottlenecked by infrastructure rather than algorithms: training engines, rollout inference and isolated environments must all scale together, and once training goes multi-node, trainer-to-rollout weight sync dominates. Measured estimates show RDMA cutting weight transfer roughly 60x versus TCP (e.g. GLM 4.7 from 115 s to 1.8 s per step), and delta compression shrinking WAN transfers for disaggregated setups by about 98%. Teams commonly struggle with glue code, cluster queueing and GPUs starved by environments; the guidance is to keep at least one sandbox per rollout plus headroom for failures. Modal recommends building on open-source frameworks like slime and verl, upstreams improvements such as delta compression, and introduces Modal Dojo, an experimental library for defining RL jobs in under 100 lines.
- Advancing science & engineering with Antigravity’s /teamwork
Google Research easyNoviceAntigravity's /teamwork multi-agent harness pairs parallel exploration with independent falsifiers (Lean 4, unmodified test suites, simulators, hardware counters) and partitions context so each agent sees only the files and tools it needs, with critics and auditors verifying results from clean contexts. Running on Gemini 4 models, it has contributed to proofs of open problems such as the Courtade–Kumar conjecture and to large Lean formalizations, including about 1.8M lines for the Weil conjectures. It also reached 95% top-1 accuracy on NMR molecular structure elucidation and generated a 50-task causal inference benchmark. Systems results include FarArray, a kernel-bypass PGAS whose graph applications report 40x–180x speedups, TPU GNN kernels and a 9x9 Go engine that gained about 2,600 Elo in eight days.
- StackLLaMA: A hands-on guide to train LLaMA with RLHF
Hugging Face hardMasterA 7B LLaMA model is trained to answer Stack Exchange questions with the full RLHF pipeline: supervised fine-tuning on packed Stack Exchange text, a pairwise reward model trained on upvote-derived preference scores, and PPO with a KL penalty against a frozen reference model. Memory is kept manageable by loading the model in 8-bit and training only LoRA adapters via peft, which needs roughly 1.2-1.4GB per billion parameters. The same frozen base serves as both policy and reference model, and data parallelism through accelerate or torchrun speeds up training. The reward model reaches 67% accuracy, and the RL run takes about 20 hours on 24 A100s. The post closes with practical notes on reward hacking and training instabilities.