Expand description
§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).
Structs§
- Byte
Tokenizer - Byte-level tokenizer for message encoding
- Feed
Forward - Feed-forward network in transformer
- Lattice
Params - Parameters for NTRU-like lattice operations
- Layer
Norm - Layer normalization
- Miras
Predictor Stats - Statistics for MIRAS predictor
- Miras
Titans Predictor - MIRAS-adaptive message predictor with automatic variant switching
- Output
Projection - Output projection to predict next byte distribution
- Positional
Encoding - Positional encoding for transformer sequence modeling
- Quantum
KeyEvolution - Quantum-resistant key evolution system.
- Quantum
KeyPair - Quantum-resistant key pair.
- Quantum
Message - Wire format for quantum-protected messages
- Quantum
Speculative Protocol - Combined quantum-resistant speculative protocol
- Ring
Element - Polynomial ring element Z_q[X]/(X^n + 1).
- Titans
Block - Single Titans decoder block with Neural Long-Term Memory
- Titans
Config - Configuration for Titans predictor
- Titans
Predictor - Titans-based message predictor with Neural Long-Term Memory
Enums§
- KemAlgorithm
- Key Encapsulation Mechanism algorithm selection
- Message
Payload