qwen3-8b-sft-RQ3-grpo-v4
Fine-tuned Qwen3-8B for Rocq (Coq) specification generation
(priyamsahoo/qwen3-8b-sft-RQ3), further trained
with GRPO (run v4). Given a problem description and a Rocq program, it writes a specification
(a Lemma/Theorem about the program). Same prompt format as the base model, thinking off.
Training
- GRPO with TRL 0.19, one epoch (543 steps), 8 attempts × 4 prompts per step. A LoRA adapter (r 16, alpha 32, all attention and MLP projections), merged into the base weights here (bf16).
- Prompts: Codeforces train-split problems, plus leftover benchmark problems and Rocq project theorems, none from the 545-problem evaluation set. The prompt shows half of each problem's tests.
- Reward, checked by the Rocq 8.18 kernel with an LLM prover for proof attempts:
- 0: doesn't compile, proved wrong, or trivial (repeats the code, only states test facts, vacuous, or pins every input to a test value).
- 0.1–0.4: undecided; 0.4 if it rules out a deliberately wrong program that agrees with the real one on the shown tests.
- 0.6: proved correct; 1.0: proved correct and rules out the wrong program.
During training, specs proved correct rose from 4.6% to 8.8% of attempts, and trivial specs did not take over (test facts + pinned inputs 4.2% → 2.6%). Evaluation on the 545-problem set is pending.