CoolFace
Modelpublic

reasoning-degeneration-dev/algo-sft-cellular-automata-step-simulation-d5

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes6downloads
Model Card

Cellular Automata — Step Simulation

LoRA adapter for Qwen/Qwen2.5-1.5B-Instruct fine-tuned on cellular automata via Algorithmic Template SFT.

Part of the Algorithmic SFT vs Distillation experiment studying whether deterministic algorithmic templates teach procedural reasoning more effectively than distillation from large reasoning models.

Training

ParameterValue
Base modelQwen/Qwen2.5-1.5B-Instruct
MethodAlgorithmic Template SFT
FrameworkLLaMA-Factory (SFT stage)
LoRA rank64
LoRA targetall linear layers
Learning rate1e-4
Epochs3
Batch size4 (grad accum 4)
Cutoff length32,768 tokens
Training data5,000 deterministic step-by-step simulation traces (d5: all 256 rules, 16-20 cells, 3-5 steps)

Evaluation (v3, MAX_TOKENS=32768)

SplitAccuracy
Test (in-distribution)94.6%
Harder variant3.4%
Structural OOD72.0% (Rule 110, never seen)

Notes

Learned to read and apply any rule from lookup table. Generalizes to novel rules (72% OOD) but struggles with multi-step on larger grids (3.4% harder).

Usage

python
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
model = PeftModel.from_pretrained(base, "reasoning-degeneration-dev/algo-sft-cellular-automata-step-simulation-d5")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")

Related Datasets