Unified PC training: fix energy normalization, add task signal to all blocks
Zae+1: Claude Opus 4.6 (1M context)
77345ce
- Energy uses mean-over-D, sum-over-B×S so denoising (~70%) dominates prediction errors (~30%)
Previously with full sum, prediction errors were 150x larger than denoising — settling
only learned inter-layer consistency, never token prediction.
- Forward blocks now receive task gradient (readout cross-entropy) in addition to local
consistency signal during unified settling.
- Precision heads clamped at 10.0 to prevent NaN explosion.
- Gradient clipping added to all local updates.
- Embedding + precision head updates added to unified_step.
- Training uses unified mode (settling IS learning) instead of local PC.
- Checkpoint resume now continues from saved step counter.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ric
Zae
49589ef
PC-SHO-DLM: full architecture with MSA integration