Wonda
An LLM rewrites bulky solver-made loop invariants into compact candidates, a program verifier grades each one for correctness, sufficiency and speedup, and only the passing ones become training data for small invariant-writing models.
In one paragraph
Wonda (2026, code verification) uses oracle-trained generation, pairing generator Kimi K2 Thinking for rewriting; fine-tuned Qwen3 (0.6B to 14B), Llama-3.1-8B and Mistral-7B for invariant generation with authority UAutomizer program verifier (SV-COMP 2025 release). On 123 hard instances, a fine-tuned Qwen3-4B produces correct invariants 44.4% of the time versus 22.8% before fine-tuning. Limit: UAutomizer is the only source of training invariants.
Verified against primary sources on · It matched its sources.
How does Wonda work?
- Proposes
Compact rewrites of verbose loop invariants taken from UAutomizer output, 4 candidates per invariant from Kimi K2 Thinking; after fine-tuning, the small models propose invariants for new programs
- Judged by
The UAutomizer verifier, which checks that a candidate is a correct invariant, that it suffices to prove the property, and whether it speeds up verification (grade 0 to 3)
- Steers
Candidates graded 2 or 3 are kept as training examples, and small models (Qwen3, Llama-3.1, Mistral) are fine-tuned on them
What did Wonda report?
On 123 hard instances, a fine-tuned Qwen3-4B produces correct invariants 44.4% of the time versus 22.8% before fine-tuning, and Llama-3.1-8B goes from 14.9% to 45.5%.
What does Wonda not prove?
UAutomizer is the only source of training invariants, so coverage is limited to programs that solver can already verify, and the trained models do not use verifier feedback at test time (Section 7).
What a pass means here
The judge is a formal check, so a pass is exact for the statement it checks, not for what the user meant. The checks feed training, so the loop changes the model, not one answer.
How it generalizes the harness
A program verifier decides which LLM rewrites become training data, so its judgment ends up in the weights of the small models.
Classification
| Classification dimension | Verified value |
|---|---|
| What it proposes | Formal specification |
| Generative model | Kimi K2 Thinking for rewriting; fine-tuned Qwen3 (0.6B to 14B), Llama-3.1-8B and Mistral-7B for invariant generation |
| Algorithmic authority | UAutomizer program verifier (SV-COMP 2025 release) |
| Feedback | Score |
| What gets updated | Training data and model weights |
| When it runs | During training |
| Validity | Formal (machine-checked) |
| Evidence | Code released |
| Lineage | Original system |