Downloads · 30 days
0
KentStone/Holographic_Neural_Mesh
Holographic_Neural_Mesh is a feature extraction model from KentStone. Use it when you need embeddings to search or compare text. It is set up for numpy.
A deterministic sparse semantic substrate for cognitive systems. No GPU required.
Downloads · 30 days
0
Access
Public
Updated Dec 31, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py52.5 KB · 89%
From the Hugging Face model README
A deterministic sparse semantic substrate for cognitive systems. No GPU required.
HNM is not a language model or embedding model replacement. It is a cognitive memory layer providing:
| ✅ HNM Is | ❌ HNM Is Not |
|---|---|
| Semantic memory substrate | Language model |
| Symbolic binding engine | Next-token predictor |
| Deterministic cognitive layer | Embedding model replacement |
| Associative recall system | Foundation model |
from hnm_v3 import HolographicNeuralMeshV3, HNMConfig
# Initialize
hnm = HolographicNeuralMeshV3(HNMConfig())
# Encode text
pattern, stats = hnm.forward("Machine learning is fascinating")
print(f"Latency: {stats['inference_time_ms']:.2f}ms, Sparsity: {1-stats['active_ratio']:.1%}")
# Semantic similarity
sim = hnm.similarity("I am happy", "I feel joyful") # ~0.87
sim = hnm.similarity("dog bites man", "man bites dog") # ~0.52 (role reversal detected)
# Memory storage and retrieval
hnm.encode_and_store("Deep learning uses neural networks")
hnm.encode_and_store("The stock market crashed today")
results = hnm.search("Tell me about neural networks", top_k=3)
# Associative binding
bound = hnm.bind("capital of France", "Paris")
recovered = hnm.unbind(bound, "capital of France") # ≈ Paris vector
| Test | Pair | Score | Target | Status |
|---|---|---|---|---|
| Negation | "alive" / "not alive" | 0.48 | < 0.50 | ✅ |
| Role Reversal | "dog bites man" / "man bites dog" | 0.52 | < 0.70 | ✅ |
| Paraphrase | "happy" / "joyful" | 0.87 | > 0.70 | ✅ |
| Unrelated | "neural networks" / "fishing" | 0.01 | < 0.30 | ✅ |
| Corpus Size | TF-IDF | BM25 | HNM |
|---|---|---|---|
| 20 docs | 0.03ms | 0.04ms | 1.78ms |
| 2,000 docs | 2.45ms | 3.60ms | 1.62ms |
| 100× growth | 78× slower | 98× slower | 0.9× slower |
| Metric | Value |
|---|---|
| Sparsity | 99% |
| FLOPS reduction | 102× |
| Inference latency | ~3.5ms |
| GPU required | No |
Input → Semantic Encoder → Holographic Projection → Interference Layers (×8) → Memory
↓ ↓ ↓ ↓
Word vectors + Complex pattern FFT + Phase mixing Cleanup memory +
Negation handling Phase = semantics 99% sparsification Iterative decoding
Key Components:
bind(key, value) → unbind(bound, key) ≈ value@software{stone2024hnm,
author = {Stone, Kent},
title = {Holographic Neural Mesh: A Deterministic Sparse Semantic Substrate},
year = {2024},
publisher = {JARVIS Cognitive Systems},
url = {https://huggingface.co/jarvis-cognitive/hnm-v3}
}
HNM builds on established cognitive architecture research:
Kent Stone - JARVIS Cognitive Systems