Ask a model to explain how to split a discount across five invoice lines and you might get a polished calculation that leaves a one-paise difference. A human reviewer may need time to spot where it happened. A small verifier can check the line amounts and total immediately. That makes invoice arithmetic a useful example of what verifiable feedback can offer a training system.
RLVR defines how the answer earns a reward
Reinforcement Learning with Verifiable Rewards, or RLVR, uses checks that can evaluate some aspect of a model's output automatically. For a maths task, the check can compare an answer with a known result. For generated code, it can run tests. For an invoice exercise, it can check the format, expected tax treatment and arithmetic independently. DeepSeek-R1 research paper
A verifier expresses the requirements it was built to check. If it only compares totals, a response can move an amount from one line to another and still pass. If it requires one rigid string format, a mathematically correct answer might fail for irrelevant formatting. Both mistakes feed misleading signals into training. Start by testing the verifier itself with correct responses, near misses and plausible shortcuts.
GRPO defines how the policy learns from a group
Group Relative Policy Optimization samples multiple responses to the same prompt and scores them. In its common formulation, the approach uses scores relative to the group as a baseline for estimating advantages, avoiding a separately trained value model. Updates favour better-scoring responses within the constraints of the algorithm. A group where every response receives the same score offers little relative signal about which response is preferable. DeepSeekMath paper
GRPO is an optimisation method. RLVR describes the training setup and reward source. You can use GRPO with verifiable rewards, and you can use verifiable rewards with other policy optimisation approaches. The separation is useful when diagnosing a stalled run. You may have a weak reward signal even when the optimiser is working as intended.
A worked example with four invoice drafts
Suppose a synthetic task requires a ₹100.00 discount to be distributed over three lines under a given rounding rule. Each output must use integer paise and reconcile to 10,000 paise.
| Candidate | What the verifier observes |
|---|---|
| A | Correct line allocations and total |
| B | Correct total with one paise moved to the wrong line |
| C | Correct rounding approach with a total of 9,999 paise |
| D | A prose explanation where the workflow requires structured fields |
A binary verifier might give A a reward of one and the others zero. A more detailed verifier can distinguish parsing errors from accounting errors for diagnostics. If you also introduce partial training rewards, decide which requirements must remain mandatory. Otherwise, a model can improve its score by producing well-formed answers that still break your reconciliation requirement.
What to do before training
Keep a held-out evaluation set with invoice patterns and edge cases that the training set lacks. Include tie cases, invalid inputs and credit notes if they belong to your scope. Compare the tuned model against prompt changes, constrained outputs and direct calculation in ordinary application code. A deterministic calculator may already solve the arithmetic. The model may be more useful upstream, identifying which fields need calculation or asking for missing information.
If you only need to improve a deployed workflow, the verifier can still help. Use it as an acceptance check, route unresolved cases for review, and measure improvement before investing in model training. For a related discussion, see why synthetic training data can create quality problems and the AI automation audit.
