Case study 05 / ML Engineering · Data Science
When fine-tuning does not win.
A controlled comparison of LoRA, DoRA, and IA3 against zero-shot and five-shot math-reasoning baselines, followed by an audit and a same-pipeline rerun.
ML experiment
The problem
Does parameter-efficient fine-tuning improve multi-step math reasoning when training data and compute are constrained?
What I built
Built a training and evaluation harness for LoRA, DoRA, and IA3, with answer extraction and saved predictions. Then audited the original report and re-evaluated every adapter and baseline on the full GSM8K test split through one FP16 V100 pipeline, with bootstrap intervals and paired tests.
How it works
Adapters train Llama-3.2-3B-Instruct on 6,000 GSM8K examples for two epochs at seed 42, with a ten-epoch IA3 follow-up. Every condition is re-evaluated on the 1,319-question test split. Intervals resample questions 10,000 times, and exact McNemar tests use Holm correction across 15 comparisons.
- GSM8K training split
- Adapter training
- Same-pipeline evaluation
- Paired tests
Engineering decisions
Re-test the headline
Under the shared pipeline, zero-shot still has the highest accuracy, but it is not distinguishable from five-shot or two-epoch IA3. It is significantly ahead of LoRA, DoRA, and ten-epoch IA3.
Withdraw what doesn’t hold
The audit withdrew the original latency comparison, the overfitting explanation for ten-epoch IA3, and the category-level claims. Two of five headline claims changed under the rerun.
Preregister the next test
Phase 1 compared three LoRA training-target formats on the same questions, with a decision rule fixed in advance. None was distinguishable. Self-generated reasoning made answers longer without recovering accuracy.
Results & evidence
GSM8K test accuracy, one evaluation pipeline
View data table
| Accuracy | |
|---|---|
| Instruct zero-shot | 74.22% [71.80, 76.57] |
| IA3, 2 epochs | 72.10% [69.67, 74.45] |
| Instruct five-shot | 71.49% [68.99, 73.92] |
| IA3, 10 epochs | 69.37% [66.87, 71.80] |
| DoRA | 63.99% [61.49, 66.64] |
| LoRA | 62.85% [60.27, 65.50] |
Zero-shot accuracy
74.22%
979 of 1,319 GSM8K test questions; 95% CI 71.80–76.57%. Llama-3.2-3B-Instruct, FP16 V100 pipeline.
Best adapter: IA3, two epochs
72.10%
95% CI 69.67–74.45%; not distinguishable from zero-shot after Holm correction. DoRA 63.99%, LoRA 62.85%.
Results are documented in the linked project artifacts. They have not been independently reproduced for this portfolio.
Limits & lessons
One model, one benchmark, and one training seed. The intervals reflect question sampling, not seed variability. Adapters share hyperparameters rather than per-method tuning, and the original baseline scores could not be reproduced within one percentage point. Phase 2 was canceled.
Rerunning your own experiment can change the conclusion. A good report says which claims survived.