CoolFace
Modelpublic

dexmac/progressive-cognitive-qwen3b-dream-lora

sourceHugging Faceapache-2.0updated 7mo agoView on Hugging Face
0likes
Model Card

Progressive Cognitive Architecture — 3B Dream LoRA (English)

⚠️ Inverse scaling case study — Qwen2.5-3B trained with progressive 4-phase training + SVD Dream Pruning. Demonstrates that compression techniques effective on small models can hurt larger ones.

📊 Results

MetricScore
Composite Score66.0
Exact Accuracy56.2% ± 4.2
Adversarial Robustness34.0% ± 6.0
Delegation Accuracy100.0% ± 0.0
Delegation Rate85.3% ± 3.1
Magnitude Sense (OoM±1)100.0% ± 0.0
Catastrophic Errors41.3% ± 13.7
Results: mean ± std over 3 seeds (42, 43, 44), 50 samples × 5 dimensions per seed.

⚠️ Inverse Scaling Effect

This model demonstrates a key finding of the research: Dream pruning helps 1.5B but hurts 3B.

Metric3B Dream (this)3B Flat1.5B Dream
Composite66.078.587.6
Adversarial34.0%84.7%84.0%
Catastrophic41.3%0.0%0.0%

Hypothesis: The LoRA-to-base-weight ratio explains this. Rank-16 LoRA adapters represent a larger proportion of 1.5B parameters than 3B. SVD compression (16→8) on the larger model creates adapters too weak to steer behavior reliably — strong enough to interfere, too weak to guide. An adaptive compression ratio (e.g., rank 16→12 for 3B) would likely resolve this.

🧠 Progressive Cognitive Architecture

A bio-inspired 4-phase training methodology:

PhaseNameWhat happens
1FoundationLearn exact arithmetic via LoRA fine-tuning
2ConsolidationSVD Dream Pruning (rank 16→8) compresses knowledge into intuition
3DelegationLearn complexity-aware routing: compute internally vs. delegate to tool
4OrchestrationFull pipeline: intuit → route → tool → validate

Guiding Principle: Knowledge doesn't disappear — it collapses into attractors. Intuition is the compressed residue of experience.

🌙 Dream Pruning (SVD Low-Rank Factorization)

Instead of zeroing out small weights (magnitude pruning), Dream Pruning uses SVD decomposition to reduce the effective rank of LoRA matrices from 16 to 8. This preserves the principal directions ("logical connections") while discarding noise — analogous to memory consolidation during sleep.

W = U·Σ·V^T  →  W' = U[:,:k]·Σ[:k,:k]·V^T[:k,:]   (k=8)

🔧 Training Configuration

ParameterValue
Base ModelQwen/Qwen2.5-3B
LoRA Rank16 (→ 8 after SVD)
LoRA Alpha32
LoRA Targetsqproj, kproj, vproj, oproj
Dropout0.05
Training Data~6,000 English arithmetic examples
HardwareNVIDIA T4 16GB

🚀 Quick Start

python
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_model = AutoModelForCausalLM.from_pretrained(
    "Qwen/Qwen2.5-3B", device_map="auto", torch_dtype="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B")

model = PeftModel.from_pretrained(
    base_model,
    "dexmac/progressive-cognitive-qwen3b-dream-lora",
    subfolder="lora_adapters"
)

messages = [{"role": "user", "content": "Solve: 342 * 67"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

🔗 Related Models

📝 Citation

bibtex
@software{progressive_cognitive_2026,
  author = {Dex Mac},
  title = {Progressive Cognitive Architecture for LLMs},
  year = {2026},
  url = {https://github.com/dexmac221/progressive-cognitive},
  version = {1.0.0}
}

📄 License

Apache 2.0