TRANSMISSION // 2612.04365v1
Can program-made logic lessons improve AI reasoning?
Source published
A preprint reports that adding program-generated deduction examples to instruction tuning improved several reasoning benchmarks in tested models, while exposing important limits.

Language models often learn from synthetic examples written by other models. This study tests a different source: short programs that generate logical puzzles and valid step-by-step solutions. The results suggest that a small dose can help models carry information through multi-step problems—but the effects depend on the model and the training setup.
A different kind of synthetic training data
Many language models are fine-tuned on examples designed to teach them how to follow instructions. Some of those examples are generated by other language models. Filipe Laitenberger and colleagues ask whether a less natural-looking source might help: logical deduction problems created by a program, with solutions produced by a rule-based procedure rather than a model.
The generated examples use made-up names and simple relationships, so they contain no real-world facts. Each problem asks a model to apply rules repeatedly, and the program writes out the resulting chain of deductions. The authors describe the answers as correct by construction and also check generated derivations with a symbolic checker.
The central question is whether training on these artificial exercises helps only with similar logic puzzles—or also with other tasks that require keeping track of intermediate steps.
Replacing part of the training mix
The researchers fine-tuned models on instruction datasets in which a portion of the examples was replaced by program-generated deductions. The total number of training examples was held fixed, so the intervention changed the mixture rather than simply adding more data. They tested different replacement shares and two ways of presenting the same underlying proofs: a formal notation and controlled English sentences.
The main experiments used Qwen2.5-7B, with additional tests on other model families and sizes. Evaluations included ProofWriter and FOLIO, which test logical reasoning; multi-step tasks in BIG-Bench Hard; quantitative questions in GPQA-Diamond; and broader benchmarks. For the generated puzzles, the team also tested whether a model could produce derivations accepted by a checker. The study reports averages across multiple training runs for its main Qwen2.5-7B sweep, but some additional experiments used only one run per condition.
Gains beyond the generated puzzles
In the main model, replacing a small share of the instruction examples improved several deduction and multi-step reasoning results. For example, the paper reports that the English version at a 10% share raised ProofWriter accuracy by 13.9 percentage points at inference depth three. FOLIO improved by as much as 6.4 points in the reported main comparisons. The gains on BIG-Bench Hard were concentrated in subtasks that require propagating a state or truth value across steps; the remaining subtasks changed much less. On GPQA-Diamond, improvements were concentrated in questions involving quantities, rather than the rest of the benchmark.
The authors report that general-purpose benchmarks were broadly unchanged in the main Qwen2.5-7B results. This is not evidence that every capability is unaffected: a particular formal-data setup reduced ProofWriter performance for OLMo-2, and other outcomes varied across models and formats.
The clearest sign of learning the training procedure came from the generated-puzzle test. With only 1% deduction examples, Qwen2.5-7B produced derivations accepted by the checker on most held-out problems, including chains longer than those in training. Baseline models in the study generally did not show that ability. Yet training on deduction examples alone caused a striking failure: the model then began its answers in the derivation format and scored zero on the reported benchmarks. The examples worked as a component of instruction tuning, not as a replacement for it.
What might explain the transfer?
The researchers propose two contributors. First, the examples may teach models to carry an intermediate conclusion forward instead of accidentally reverting to earlier information. In a truth-telling puzzle, for instance, one person’s truth value must be used to work out the next person’s. The study’s analyses of these intermediate steps support this explanation, and shuffling the order of derivation lines reduced some benefits.
Second, the training examples changed which answer labels models tended to choose. The authors found that the original instruction data could produce a strong preference for one label, such as “true,” even when that preference was poorly matched to the benchmark’s answers. Deduction examples shifted the response distribution. This helped in some settings, but it also helps explain why the same intervention could hurt a model whose starting distribution was already closer to the answers.
A promising result, not a universal recipe
The study is a preprint, so its findings have not necessarily been peer reviewed. Its experiments cover particular models, datasets, prompts and training choices; benchmark improvements do not establish that the models have acquired general reasoning ability or that the method will transfer to every system. The authors also note that they did not test reinforcement learning or compare against deduction data written by a language model. Some model-specific results, including the incomplete transfer to OLMo-2, underline the uncertainty.
The practical idea is modest but intriguing: carefully constructed examples can teach a useful procedure without supplying facts about the world or relying on a teacher model. Whether that becomes a dependable training technique will require further testing across models and tasks.
- large language models
- synthetic data
- deductive reasoning
- instruction tuning
- AI training
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
ThinkMorph-SSL trains multimodal models with image tasks
Source published
Shared keywords: ai training
A sparse-concept map helps choose AI training examples
Source published
Shared keywords: instruction tuning
How BOOST Weighs Synthetic AI Training Data
Source published
Shared keywords: large language models, synthetic data
Choosing less, but choosing more broadly, for AI training
Source published
Shared keywords: instruction tuning
PixelProof turns generated images into testable vision questions
Source published
Shared keywords: ai training, synthetic data