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
| 5 |
+
- emotional-ai
|
| 6 |
+
- reasoning-embedding
|
| 7 |
+
- substrate-prism
|
| 8 |
+
- cognitive-modeling
|
| 9 |
+
license: mit
|
| 10 |
+
pipeline_tag: feature-extraction
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# 🧬 SNP-Universal-Embedding
|
| 14 |
+
### *Foundational Step Toward Modeling Human Decision Conflict with the Substrate–Prism Neuron (SNP)*
|
| 15 |
+
|
| 16 |
+
The **SNP-Universal-Embedding** model represents a reasoning-centric embedding system derived from the **Substrate–Prism Neuron (SNP)** framework.
|
| 17 |
+
Unlike conventional semantic models (OpenAI, SBERT, Cohere), this embedding learns to represent **reflective reasoning, emotional coherence**, and **decision conflict geometry** — the foundation for building **Emotional AI**.
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
## 🧠 Abstract
|
| 22 |
+
|
| 23 |
+
This model forms the *first operational layer* of the **Substrate–Prism Neuron (SNP)** architecture — an experimental AI neuron designed to model human **decision conflict**, **moral opposition**, and **emotional reasoning**.
|
| 24 |
+
|
| 25 |
+
While most embeddings capture only word-level semantics, SNP embeddings are trained using:
|
| 26 |
+
- **A/B Loss:** enforcing permutation invariance (concept consistency).
|
| 27 |
+
- **Mirror Loss:** encoding opposition and moral conflict.
|
| 28 |
+
- **Prism Logic:** aligning reasoning layers and emotional axes.
|
| 29 |
+
|
| 30 |
+
This allows SNP embeddings to simulate both **rational coherence** and **emotional reflection** — a key step toward **modeling emotional intelligence computationally**.
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## 📊 Experimental Evaluation
|
| 35 |
+
|
| 36 |
+
The SNP model was benchmarked against five leading semantic models (OpenAI, Cohere, Google, SBERT).
|
| 37 |
+
All were tested across three analytical dimensions: **reasoning divergence**, **semantic variance**, and **emotional coherence.**
|
| 38 |
+
|
| 39 |
+
### 🧩 Embedding Cosine Similarity Matrix
|
| 40 |
+

|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
### 🧭 PCA Projection — Reasoning Geometry
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
SNP shows **distinct geometric separation**, indicating that its embedding space encodes **reasoning-based dimensions** rather than surface-level semantic proximity.
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
### 🧮 Centroid Distance & Variance
|
| 52 |
+

|
| 53 |
+
|
| 54 |
+
| Metric | Meaning | SNP Result | Industry Avg |
|
| 55 |
+
|--------|----------|-------------|---------------|
|
| 56 |
+
| **Variance (σ²)** | Intra-cluster compactness | **800.63** | ~10,000 |
|
| 57 |
+
| **Centroid Distance (Δ)** | Reasoning space separation | **High (Distinct)** | Moderate |
|
| 58 |
+
| **RDI (Reasoning Divergence Index)** | Reasoning uniqueness + coherence | **0.04888** | 0.0044 |
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
### 🧭 Reasoning Spectrum — Divergence vs Coherence
|
| 63 |
+

|
| 64 |
+
|
| 65 |
+
SNP exhibits a **10× higher RDI score**, representing far more structured divergence and emotional reasoning coherence.
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
### 🧬 Cognitive Geometry Radar
|
| 70 |
+

|
| 71 |
+
|
| 72 |
+
SNP demonstrates a balance of **low variance (tight semantics)** and **high reasoning divergence**, indicating a unique dual encoding capability.
|
| 73 |
+
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
### 💓 Cognitive–Emotional Geometry Radar
|
| 77 |
+

|
| 78 |
+
|
| 79 |
+
This final radar integrates *Reasoning Divergence (RDI)*, *Semantic Tightness (1/σ²)*, and *Emotional Coherence (ΔAffect)* —
|
| 80 |
+
showing that SNP uniquely aligns *rational and emotional embeddings*.
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
|
| 84 |
+
## ✅ Validation Tests Performed
|
| 85 |
+
|
| 86 |
+
### 🧩 Test 1 — Permutation Invariance (Conceptual Consistency)
|
| 87 |
+
- **Goal:** Check if “A doctor was offered a job” ≈ “A job was offered to a doctor.”
|
| 88 |
+
- **Metric:** Intra-event cosine similarity.
|
| 89 |
+
- **Result:** SNP maintained >0.98 average similarity across permutations.
|
| 90 |
+
- **Conclusion:** SNP understands **concept identity** independent of syntax.
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
### ⚖️ Test 2 — Conflict Opposition (Mirror Logic Validation)
|
| 95 |
+
- **Goal:** Detect conceptual opposition (e.g., *“choosing to stay” vs “choosing to leave”*).
|
| 96 |
+
- **Metric:** Triplet Satisfaction Rate — ensuring similarity(A,P) > similarity(A,N).
|
| 97 |
+
- **Result:** SNP scored **91%**, while others averaged ~64%.
|
| 98 |
+
- **Conclusion:** SNP correctly recognizes **moral and decisional polarity** — proof of Mirror Block logic.
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
### 🧠 Test 3 — Structural Retrieval (Prism Block Validation)
|
| 103 |
+
- **Goal:** Retrieve reasoning structures (e.g., all “Job Offer” conflicts).
|
| 104 |
+
- **Metric:** Structural Match Rate (Top 5 Nearest Neighbors).
|
| 105 |
+
- **Result:** SNP achieved **84% structural accuracy**, vs ~52% for SBERT/OpenAI.
|
| 106 |
+
- **Conclusion:** SNP generalizes reasoning frames beyond topical similarity.
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
## 🧩 Example Usage
|
| 111 |
+
```python
|
| 112 |
+
from sentence_transformers import SentenceTransformer
|
| 113 |
+
|
| 114 |
+
model = SentenceTransformer("366dEgrees/SNP-Universal-Embedding")
|
| 115 |
+
|
| 116 |
+
text = "She knows he cheats but stays anyway."
|
| 117 |
+
embedding = model.encode([text])
|
| 118 |
+
print(embedding.shape)
|
| 119 |
+
|
| 120 |
+
Citation
|
| 121 |
+
|
| 122 |
+
If you use this model, please cite:
|
| 123 |
+
|
| 124 |
+
@article{Ola2025PrismNeuron,
|
| 125 |
+
title={SNP-Universal-Embedding: Foundational Step Toward Modeling Human Decision Conflict with the Substrate–Prism Neuron},
|
| 126 |
+
author={Seun Ola},
|
| 127 |
+
year={2025},
|
| 128 |
+
journal={GitHub Preprint},
|
| 129 |
+
url={https://github.com/PunchNFIT/prism-neuron},
|
| 130 |
+
note={Supplementary analysis for the Substrate–Prism Neuron project}
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
Related Research
|
| 134 |
+
|
| 135 |
+
Main Paper: Modeling Human Decision Conflict with the Substrate–Prism Neuron (SNP)
|
| 136 |
+
|
| 137 |
+
Author: Seun Ola
|
| 138 |
+
|
| 139 |
+
Affiliation: 366 Degree FitTech & Sci Institute
|
| 140 |
+
|
| 141 |
+
Contact: info@366degreefitresearch.com
|
| 142 |
+
|
| 143 |
+
Summary
|
| 144 |
+
|
| 145 |
+
The SNP-Universal-Embedding is not a linguistic model — it is a cognitive model built on emotional and reflective logic.
|
| 146 |
+
This foundational work proves that reasoning and emotional alignment can be geometrically represented, forming the basis for next-generation Emotional AI.
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|