fractal-agi/fdra-half-life-regularization
0
FDRA Half-Life Regularization V3: Bug-Fixed Implementation
Date: 2026-01-22 Repository: fractal-agi/fdra-half-life-regularization
Summary
This package contains the bug-fixed implementation of the half-life regularizer for FDRA oscillators, addressing critical issues discovered during code review.
The Problem
FDRA models trained at GPT-2 scale experience half-life collapse: all oscillator decay parameters converge to short values (τ ≈ 2-10 steps), losing the ability to maintain long-range context.
The Solution
A half-life regularizer that maintains a log-uniform distribution of τ ∈ [1, L] where L is the sequence length, ensuring some oscillators can attend to the full context.
Bug Fixes (V3)
Results
Before Bug Fixes (V1-V2)
Regularized tau: [0.48, 6931.1] ← PATHOLOGICAL
23/32 oscillators with τ < 1 ← WORSE than collapsed!
Basin width: 256 tokensAfter Bug Fixes (V3)
Regularized tau: [1.0, 4096.0] ← Proper log-uniform spread
3/32 oscillators with τ > 2048 ← Long-range coverage
Basin width: 1024 tokens ← 4x improvementIdentity Reconstruction Comparison
Files
├── half_life_regularizer.py # Core regularizer with bounds constraint
├── fdra_oscillators.py # Oscillator bank implementation
├── identity_reconstruction_experiment_v2.py # Fixed diagnostic experiment
├── identity_v2_*.json # Raw experimental results
├── IDENTITY_V2_REPORT_*.md # Generated reports
├── BUGFIX_REPORT.md # Detailed bug analysis
└── IMPLICATIONS.md # Research implicationsUsage
from half_life_regularizer import HalfLifeRegularizer, HalfLifeRegularizerConfig
config = HalfLifeRegularizerConfig(
sequence_length=4096,
tau_min=1.0,
tau_max=4096.0,
lambda1=0.01, # Log-uniform prior weight
lambda2=0.01, # Long-tail weight
lambda3=0.1 # Bounds constraint weight (NEW!)
)
regularizer = HalfLifeRegularizer(config)
# During training:
loss, metrics = regularizer.compute(oscillator_lambdas)
total_loss = task_loss + lossCitation
If you use this work, please cite:
@misc{fdra-half-life-regularization-2026,
title={Half-Life Regularization for FDRA Oscillators: Preventing Decay Collapse},
author={Fractal AGI},
year={2026},
publisher={Hugging Face},
url={https://huggingface.co/fractal-agi/fdra-half-life-regularization}
}License
Apache 2.0
