spine-crypto 1.0.0

Advanced cryptographic primitives for SPINE including transformer prediction and post-quantum key evolution
Documentation

SPINE Crypto

Advanced cryptographic primitives for the SPINE stack including:

  • Titans-based message prediction for speculative decoding with Neural Long-Term Memory
  • MIRAS-adaptive prediction with automatic variant switching
  • Post-quantum key evolution using lattice-based cryptography concepts

Titans Predictor (Neural Long-Term Memory)

Uses the Titans architecture with test-time training for unbounded context message prediction, enabling speculative decoding where receivers can pre-compute responses. Unlike standard Transformers, Titans maintains persistent memory that survives across sequences through surprise-gated updates.

Key advantages over Transformers:

  • Unbounded context: Memory persists indefinitely via consolidation
  • Test-time training: Adapts to message patterns during inference
  • Surprise detection: Identifies anomalous messages for security
  • Memory efficiency: O(1) memory vs O(n²) for attention

MIRAS-Adaptive Prediction

Integrates the MIRAS framework for continual learning:

  • YAAD: Yield-Adaptive Anomaly Detection for outlier-robust prediction
  • MONETA: Memory-Optimized Network for stable long-running sessions
  • MEMORA: Balanced updates for mixed traffic patterns

The predictor automatically switches between variants based on surprise levels.

Quantum-Resistant Key Evolution

Implements NTRU-inspired lattice operations for key evolution that resists quantum computing attacks (Shor's algorithm).