IMF: Interaction Model Foundations (TinyStories Pretrained Models)
Developed by Stratum Research Group (SRG)
Official Repositories: GitHub (SRG) | GitLab
1. Model Overview
IMF (Interaction Model Foundations) replaces standard quadratic causal softmax attention with Symmetric-Antisymmetric Virtual Grid Attention (SAVG) and Higher-Dimensional Polytope Landmark Connectors (HDPLC).
By projecting latent states into orthogonal Lie-algebraic sectors ($\mathrm{Sym}^2 \oplus \bigwedge^2$) and routing continuous trajectories across regular polytope hyperfaces (Decayotton $\mathcal{C}_{10}^*$), IMF achieves:
- Zero Directional Conflation / Reversal Leakage: Exact phase margin separation on directional association pairs ($A \to B$ vs. $B \to A$).
- $100%$ Retrieval on 16k Needle-In-A-Haystack (NIAH): Sub-quadratic memory accumulation prevents numerical drift up to $16,384$ tokens.
- Constant $\mathcal{O}(1)$ Memory Autoregressive Inference: Streaming generation at $>190$ tokens/second with flat memory footprint.
- Formal Mathematical Verification in Lean 4: Coordinate bounds and reflection antisymmetry verified with zero external Mathlib dependencies.
2. Checkpoints Included
| Checkpoint File | Architecture Variant | Parameters | Training Steps | Validation Perplexity | Streaming Speed |
|---|---|---|---|---|---|
imf_tinystories_higher_arity.pt |
Simplex 3-Face Binding (Arity-3) | 5,917,398 | 10,000 | 14.34 PPL | 163.9 tok/s |
imf_tinystories_scaled.pt |
Base Multi-Head SAVG (Pairwise) | 5,425,640 | 10,000 | 19.51 PPL | 191.1 tok/s |
imf_tinystories_arity4.pt |
Simplex 4-Face Binding (Arity-4) | 5,936,934 | 3,000 | 38.67 PPL | 219.7 tok/s |
3. Quickstart & Streaming Inference
git clone https://huggingface.co/akarta-315h/imf-tinystories
cd imf-tinystories
pip install torch triton
python generate.py --prompt "Once upon a time, a little girl named Lily"
4. Empirical Verification Summary
- Needle-In-A-Haystack Retrieval: 100% precision across all 25 grid depths up to $N = 16,384$.
- Factual Reversal Discrimination: 100% forward recall with 0.0% reverse leak.
- Chiral Enantiomeric Discrimination: Exact Grassmann $\bigwedge^3$ pseudoscalar inversion on real drug pairs (Thalidomide, Ibuprofen, Ketamine).
- Formal Proofs: 7/7 Lean 4 verification targets compiled with 0
sorryinlake build.
Citation
@article{stratum2026imf,
title={Interaction Model Foundations: Lie-Algebraic Memory Splitting, Polytope Virtual Grids, and the Resolution of Directional Conflation},
author={Stratum Research Group},
year={2026},
url={https://github.com/Stratum-Research-Group/imf}
}