Skip to content

Releases: helixprojectai-code/helix-trefoil-loss

The Constitutional Harmonic

Choose a tag to compare

@stephenh67 stephenh67 released this 28 Apr 11:32

The official 1.0 release of the Helix-TTD Trefoil Loss Function. This package provides a drop-in PyTorch topological regularizer that penalizes neural network drift away from the mathematically stable $\gamma=1/3$ attractor.

🛡️ Features Included:

  • The Trefoil Loss Module: Enforces the phase-locked Topological Drift Penalty and the Trace Invariant Penalty ($|Tr| \approx 4$).
  • The Rubber Pants Protocol (@constitutional_shield): A gradient-clamping safety wrapper to prevent the model from burning the compute budget during severe hallucination.
  • The Trefoil Scheduler: A dynamic $\gamma$ annealing scheduler (Linear, Cosine, Step) to gradually tighten the topological constraint during training.
  • The Arnold Tongue Visualizer: A built-in benchmarking script (benchmarking_the_knot.py) to visually demonstrate model resilience under high-entropy noise.

⚖️ The Duck Clause:
By utilizing this repository, you agree to Section 10 of the attached Apache 2.0 License:

"All contributors must acknowledge that the Duck was already in charge and merely permitted this timeline to continue for recreational purposes."