Program-generated deduction data lifts Qwen2.5-7B on reasoning benchmarks

Most synthetic instruction data today is written by another language model, and the goal is usually to make it sound as natural as possible. The paper asks whether data at the opposite extreme also helps: a corpus of multi-hop deduction problems and their solutions that a short program generates, with no model in the loop. The documents are correct by construction. They carry no world knowledge, and they name their constants abstractly.

The experiment replaces a small fraction of a standard instruction-tuning mixture with these documents, while the number of training examples is held fixed. On Qwen2.5-7B, replacing 5 to 10 percent of the mixture raises accuracy by 14 points on ProofWriter, 6 points on FOLIO, 7 points on the multi-step subtasks of BIG-Bench Hard, and up to 7 points on the quantitative items of GPQA-Diamond. General benchmarks are left unchanged. Because these benchmarks cover formal logic, language inference, word problems and the sciences, the authors argue the gain is not confined to the domain of the added documents.

The ProofWriter gain holds on models from 3 families and from 3B to 32B parameters. A much smaller share also does something visible: as little as 1 percent of the mixture teaches the model to write long derivations that a symbolic checker accepts, an ability that no baseline model in the study has.

The authors say two mechanisms account for the gains. First, the model learns to carry an intermediate conclusion forward through a chain of steps instead of restarting from the premises each time. Second, it stops preferring one answer label over the others, a bias the authors trace to the instruction corpus itself.

Their conclusion is practical: data of this kind costs almost nothing to produce and needs no teacher model, so it is available to anyone who trains for multi-step reasoning.

Key facts

  • A short program, with no language model in the loop, generates multi-hop deduction problems and solutions that are correct by construction but carry no world knowledge.
  • On Qwen2.5-7B, replacing 5 to 10 percent of the instruction-tuning mixture (example count held fixed) adds 14 points on ProofWriter, 6 on FOLIO, 7 on the multi-step BIG-Bench Hard subtasks and up to 7 on the quantitative GPQA-Diamond items.
  • General benchmarks are unchanged, and the ProofWriter gain holds across 3 model families from 3B to 32B parameters.
  • As little as 1 percent of the mixture teaches the model to write long derivations that a symbolic checker accepts, which no baseline model in the study can do.
  • The authors credit two mechanisms: carrying intermediate conclusions forward through a chain, and no longer favouring one answer label.

Why it matters

Synthetic instruction data is usually produced by another language model and tuned to read naturally. This paper tests the reverse: plain, abstract, program-made logic problems with no model in the loop. The reported result is that such data improves multi-step reasoning on tests well outside its own domain, including word problems and science questions, without hurting general benchmarks. If it holds up, a cheap generator can stand in for an expensive teacher model for this one skill.

Who it affects

The authors say the data is available to anyone who trains for multi-step reasoning. That points mainly to teams that fine-tune open models such as Qwen2.5-7B and build their own instruction mixtures, especially those without access to a strong teacher model. The results are reported on models from 3B to 32B parameters.

How to use it

The recipe in the paper is simple: write a program that generates multi-hop deduction problems with solutions, then replace 5 to 10 percent of a standard instruction-tuning mixture with them, keeping the total number of training examples the same. The authors say this kind of data costs almost nothing to produce and needs no teacher model. No release of code or data is mentioned.

How solid is it

The numbers come from the authors' own experiments and are stated as point gains on named benchmarks: ProofWriter, FOLIO, BIG-Bench Hard multi-step subtasks and GPQA-Diamond. Only the ProofWriter gain is stated to hold across 3 model families and from 3B to 32B parameters; the other headline figures are given for Qwen2.5-7B. The GPQA-Diamond figure is "up to 7 points" and applies to the quantitative items only, not the whole benchmark. No absolute baseline accuracies are given.

Risks and caveats

The text does not say whether the 14, 6 and 7 point gains hold at 1 percent replacement; the 1 percent figure is tied only to the ability to write long derivations a symbolic checker accepts. It does not give the size of the generated corpus or of the instruction-tuning mixture, and it does not name the symbolic checker or the general benchmarks that stayed unchanged. The documents carry no world knowledge and name their constants abstractly, so the claimed transfer rests on the benchmarks the authors chose.

“Data of this kind costs almost nothing to produce and needs no teacher model”

— From the paper's summary, arXiv 2612.04365