SpinningStrawIntoGold-Qwen2.5-7B-SFT-AllSeeds
boosting logic through synthetic reasoning
3 min read
A set of 22 fine-tuned checkpoints based on the Qwen2.5-7B language model (7 billion parameters), created by author flaitenberger as part of the Spinning Straw into Gold study. The repository brings together all experimental SFT (Supervised Fine-Tuning) runs on a mixture of 100k Dolci examples, where a portion of the data (5–25%) was replaced with multi-step deduction synthetic tasks generated by a short program without neural networks. This approach teaches the model not to guess the answer, but to carefully transfer intermediate inferences along a reasoning chain. The release will be especially useful for AI researchers and developers studying how formal logic in datasets affects LLM reasoning capabilities.
Key features
- Synthetic data without neural networks: training tasks are based on Horn clauses with abstract constants (colors, trees, directions), rule chains up to 25 layers deep, and distracting conditions.
- Noticeable gains in logic benchmarks: replacing 5–25% of the dataset raises accuracy on the ProofWriter benchmark by 5–16 points (up to 55.8% compared to 42.0–44.4% for the baseline SFT version), on FOLIO by up to +6 points, and on BIG-Bench Hard by up to +7 points.
- Preservation of general skills: metrics on general benchmarks like MMLU (~69.8–70.6%) and GSM8K (~75.4–78.1%) drop almost negligibly when formal logic is added.
- Full reproducibility: each variant resides in a separate subfolder
-/seedwith weights in/bf16 safetensorsformat, a tokenizer, aprovenance.jsonfile, andlm-evaluation-harnessevaluation logs.
What you can do
- Compare the impact of data formats: test checkpoints with formal notation (
Dolci100k-Formal25pct), standard English reasoning (English10pct), and control ablations (shuffled lines or final answer only) intransformersorvLLM. - Use as a baseline for hard logic tasks: use the top variants by metrics (for example,
Qwen2.5-7B-Dolci100k-Formal25pct/seed3409) in rule verification and multi-step condition analysis pipelines in English. - Reproduce measurements: check your runs on
lm-evaluation-harnessagainst the ready results in theeval/folder of each checkpoint.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "flaitenberger/SpinningStrawIntoGold-Qwen2.5-7B-SFT-AllSeeds"
sub = "Qwen2.5-7B-Dolci100k-Formal25pct/seed3409"
tok = AutoTokenizer.from_pretrained(repo, subfolder=sub)
model = AutoModelForCausalLM.from_pretrained(
repo, subfolder=sub, torch_dtype="bfloat16", device_map="auto"
)
Read more
DetailsBenchmarks (best runs vs Baseline): ProofWriter d3 (CoT) — up to 55.8% vs 42.0–44.4%, FOLIO — up to 57.6% vs 51.7–53.7%, BBH — up to 67.5% vs 64.8–65.2%, MMLU — 69.8–70.6%.
Format and hardware: weights are stored in bfloat16 (safetensors), loading a specific subfolder via
subfolder in transformers or allow_patterns for vLLM is supported.Limitations: training was conducted exclusively in English (en), and the article preprint is under review.
License: Apache-2.0 (model weights, same as Qwen2.5-7B), Dolci instruction dataset distributed under ODC-BY.










Comments